@vtj/pro 0.17.6 → 0.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/Editor-Cew4cVll-C_7X_xPy.js +546 -0
- package/dist/assets/auth-HKb8CeRP.js +1 -0
- package/dist/assets/{index-BuGNkP-C.js → index-BQNIPhvJ.js} +2 -2
- package/dist/assets/index-Cn21LEik.js +1 -0
- package/dist/assets/{mockjs-C_1w07tn.js → mockjs-g5zqhxrW.js} +5 -5
- package/dist/assets/page-Bi8-dzve.js +2 -0
- package/dist/assets/preview-44oc_Ot9.js +2 -0
- package/dist/assets/utils-C3UZGY3S.js +1 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-BmOkhsCk.js → @dcloudio-uni-h5-vue-CKVTfNUF.js} +2 -2
- package/dist/uni/assets/index-CL8wKZzi.js +91 -0
- package/dist/uni/assets/{vue-router-BaL-Hp_b.js → vue-router-BuyipnGj.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- package/dist/assets/Editor-C3o0jtM2-SS6YQFnK.js +0 -538
- package/dist/assets/auth-MwmnBWEv.js +0 -1
- package/dist/assets/index-th3c9OdM.js +0 -1
- package/dist/assets/page-DfQNNxIl.js +0 -2
- package/dist/assets/preview-D6c64CQx.js +0 -2
- package/dist/assets/utils-C71Ycgsp.js +0 -1
- package/dist/uni/assets/index-BT50bWB7.js +0 -83
- /package/dist/assets/{Editor-C3o0jtM2-NMmAvvAr.css → Editor-Cew4cVll-NMmAvvAr.css} +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-CKVTfNUF.js","./vue-DefuvV9N.js","./@dcloudio-uni-shared-bWpOwtAM.js","./vue-router-BuyipnGj.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Ou=Object.defineProperty,Iu=Object.defineProperties;var Pu=Object.getOwnPropertyDescriptors;var cs=Object.getOwnPropertySymbols;var ku=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable;var Pt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Nu=e=>{throw TypeError(e)};var wn=(e,t,r)=>t in e?Ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H=(e,t)=>{for(var r in t||(t={}))ku.call(t,r)&&wn(e,r,t[r]);if(cs)for(var r of cs(t))Du.call(t,r)&&wn(e,r,t[r]);return e},de=(e,t)=>Iu(e,Pu(t));var G=(e,t,r)=>wn(e,typeof t!="symbol"?t+"":t,r);var M=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(c){i(c)}},a=u=>{try{o(r.throw(u))}catch(c){i(c)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())}),vt=function(e,t){this[0]=e,this[1]=t},xn=(e,t,r)=>{var n=(a,o,u,c)=>{try{var l=r[a](o),h=(o=l.value)instanceof vt,f=l.done;Promise.resolve(h?o[0]:o).then(p=>h?n(a==="return"?a:"next",o[1]?{done:p.done,value:p.value}:p,u,c):u({value:p,done:f})).catch(p=>n("throw",p,u,c))}catch(p){c(p)}},i=a=>s[a]=o=>new Promise((u,c)=>n(a,o,u,c)),s={};return r=r.apply(e,t),s[Pt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},Sn=e=>{var t=e[Pt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Pt("iterator")](),n=s=>i[s]=a=>t[s](a)):(t=t.call(e),n=s=>i[s]=a=>{if(r){if(r=!1,s==="throw")throw a;return a}return r=!0,{done:!1,value:new vt(new Promise(o=>{var u=t[s](a);u instanceof Object||Nu("Object expected"),o(u)}),1)}}),i[Pt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},us=(e,t,r)=>(t=e[Pt("asyncIterator")])?t.call(e):(e=e[Pt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((a,o,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>a({value:c,done:u}),o)))),r("next"),r("return"),t);import{g as ls,d as Ga,h as Qn,f as $u,B as en,i as Bu}from"./@dcloudio-uni-h5-vue-CKVTfNUF.js";import{useRoute as Lu}from"./vue-router-BuyipnGj.js";import"./vue-DefuvV9N.js";import"./@dcloudio-uni-shared-bWpOwtAM.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();const ju="modulepreload",Mu=function(e,t){return new URL(e,t).href},hs={},fs=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const o=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=a(r.map(l=>{if(l=Mu(l,n),l in hs)return;hs[l]=!0;const h=l.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(!!n)for(let g=o.length-1;g>=0;g--){const v=o[g];if(v.href===l&&(!h||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":ju,h||(d.as="script"),d.crossOrigin="",d.href=l,c&&d.setAttribute("nonce",c),document.head.appendChild(d),h)return new Promise((g,v)=>{d.addEventListener("load",g),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&s(o.reason);return t().catch(s)})};var Vu={ENV_TYPE:"live",NODE_ENV:"production"},Fu=typeof global=="object"&&global&&global.Object===Object&&global;const Ka=Fu;var Uu=typeof self=="object"&&self&&self.Object===Object&&self,Hu=Ka||Uu||Function("return this")();const He=Hu;var qu=He.Symbol;const Je=qu;var Ja=Object.prototype,zu=Ja.hasOwnProperty,Wu=Ja.toString,Qt=Je?Je.toStringTag:void 0;function Gu(e){var t=zu.call(e,Qt),r=e[Qt];try{e[Qt]=void 0;var n=!0}catch(s){}var i=Wu.call(e);return n&&(t?e[Qt]=r:delete e[Qt]),i}var Ku=Object.prototype,Ju=Ku.toString;function Yu(e){return Ju.call(e)}var Zu="[object Null]",Qu="[object Undefined]",ps=Je?Je.toStringTag:void 0;function tt(e){return e==null?e===void 0?Qu:Zu:ps&&ps in Object(e)?Gu(e):Yu(e)}function Be(e){return e!=null&&typeof e=="object"}var Xu="[object Symbol]";function Ya(e){return typeof e=="symbol"||Be(e)&&tt(e)==Xu}function Za(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var el=Array.isArray;const et=el;var ds=Je?Je.prototype:void 0,gs=ds?ds.toString:void 0;function Qa(e){if(typeof e=="string")return e;if(et(e))return Za(e,Qa)+"";if(Ya(e))return gs?gs.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var tl=/\s/;function rl(e){for(var t=e.length;t--&&tl.test(e.charAt(t)););return t}var nl=/^\s+/;function il(e){return e&&e.slice(0,rl(e)+1).replace(nl,"")}function Le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ms=NaN,sl=/^[-+]0x[0-9a-f]+$/i,al=/^0b[01]+$/i,ol=/^0o[0-7]+$/i,cl=parseInt;function vs(e){if(typeof e=="number")return e;if(Ya(e))return ms;if(Le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=il(e);var r=al.test(e);return r||ol.test(e)?cl(e.slice(2),r?2:8):sl.test(e)?ms:+e}function Xa(e){return e}var ul="[object AsyncFunction]",ll="[object Function]",hl="[object GeneratorFunction]",fl="[object Proxy]";function Et(e){if(!Le(e))return!1;var t=tt(e);return t==ll||t==hl||t==ul||t==fl}var pl=He["__core-js_shared__"];const En=pl;var ys=(function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function dl(e){return!!ys&&ys in e}var gl=Function.prototype,ml=gl.toString;function At(e){if(e!=null){try{return ml.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var vl=/[\\^$.*+?()[\]{}|]/g,yl=/^\[object .+?Constructor\]$/,bl=Function.prototype,_l=Object.prototype,wl=bl.toString,xl=_l.hasOwnProperty,Sl=RegExp("^"+wl.call(xl).replace(vl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function El(e){if(!Le(e)||dl(e))return!1;var t=Et(e)?Sl:yl;return t.test(At(e))}function Tl(e,t){return e==null?void 0:e[t]}function Rt(e,t){var r=Tl(e,t);return El(r)?r:void 0}var Cl=Rt(He,"WeakMap");const Xn=Cl;var bs=Object.create,Al=(function(){function e(){}return function(t){if(!Le(t))return{};if(bs)return bs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();const Rl=Al;function eo(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ol(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Il=800,Pl=16,kl=Date.now;function Dl(e){var t=0,r=0;return function(){var n=kl(),i=Pl-(n-r);if(r=n,i>0){if(++t>=Il)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Nl(e){return function(){return e}}var $l=(function(){try{var e=Rt(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();const Wr=$l;var Bl=Wr?function(e,t){return Wr(e,"toString",{configurable:!0,enumerable:!1,value:Nl(t),writable:!0})}:Xa;const Ll=Bl;var jl=Dl(Ll);const Ml=jl;function Vl(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Fl=9007199254740991,Ul=/^(?:0|[1-9]\d*)$/;function to(e,t){var r=typeof e;return t=t==null?Fl:t,!!t&&(r=="number"||r!="symbol"&&Ul.test(e))&&e>-1&&e%1==0&&e<t}function Pi(e,t,r){t=="__proto__"&&Wr?Wr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Gt(e,t){return e===t||e!==e&&t!==t}var Hl=Object.prototype,ql=Hl.hasOwnProperty;function ro(e,t,r){var n=e[t];(!(ql.call(e,t)&&Gt(n,r))||r===void 0&&!(t in e))&&Pi(e,t,r)}function no(e,t,r,n){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var o=t[s],u=n?n(r[o],e[o],o,r,e):void 0;u===void 0&&(u=e[o]),i?Pi(r,o,u):ro(r,o,u)}return r}var _s=Math.max;function zl(e,t,r){return t=_s(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=_s(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=n[i];return o[t]=r(a),eo(e,this,o)}}function io(e,t){return Ml(zl(e,t,Xa),e+"")}var Wl=9007199254740991;function so(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wl}function tn(e){return e!=null&&so(e.length)&&!Et(e)}function Gl(e,t,r){if(!Le(r))return!1;var n=typeof t;return(n=="number"?tn(r)&&to(t,r.length):n=="string"&&t in r)?Gt(r[t],e):!1}function ao(e){return io(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&Gl(r[0],r[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var o=r[n];o&&e(t,o,n,s)}return t})}var Kl=Object.prototype;function ki(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Kl;return e===r}function Jl(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Yl="[object Arguments]";function ws(e){return Be(e)&&tt(e)==Yl}var oo=Object.prototype,Zl=oo.hasOwnProperty,Ql=oo.propertyIsEnumerable,Xl=ws((function(){return arguments})())?ws:function(e){return Be(e)&&Zl.call(e,"callee")&&!Ql.call(e,"callee")};const ei=Xl;function eh(){return!1}var co=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xs=co&&typeof module=="object"&&module&&!module.nodeType&&module,th=xs&&xs.exports===co,Ss=th?He.Buffer:void 0,rh=Ss?Ss.isBuffer:void 0,nh=rh||eh;const or=nh;var ih="[object Arguments]",sh="[object Array]",ah="[object Boolean]",oh="[object Date]",ch="[object Error]",uh="[object Function]",lh="[object Map]",hh="[object Number]",fh="[object Object]",ph="[object RegExp]",dh="[object Set]",gh="[object String]",mh="[object WeakMap]",vh="[object ArrayBuffer]",yh="[object DataView]",bh="[object Float32Array]",_h="[object Float64Array]",wh="[object Int8Array]",xh="[object Int16Array]",Sh="[object Int32Array]",Eh="[object Uint8Array]",Th="[object Uint8ClampedArray]",Ch="[object Uint16Array]",Ah="[object Uint32Array]",se={};se[bh]=se[_h]=se[wh]=se[xh]=se[Sh]=se[Eh]=se[Th]=se[Ch]=se[Ah]=!0;se[ih]=se[sh]=se[vh]=se[ah]=se[yh]=se[oh]=se[ch]=se[uh]=se[lh]=se[hh]=se[fh]=se[ph]=se[dh]=se[gh]=se[mh]=!1;function Rh(e){return Be(e)&&so(e.length)&&!!se[tt(e)]}function Di(e){return function(t){return e(t)}}var uo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ir=uo&&typeof module=="object"&&module&&!module.nodeType&&module,Oh=ir&&ir.exports===uo,Tn=Oh&&Ka.process,Ih=(function(){try{var e=ir&&ir.require&&ir.require("util").types;return e||Tn&&Tn.binding&&Tn.binding("util")}catch(t){}})();const Ye=Ih;var Es=Ye&&Ye.isTypedArray,Ph=Es?Di(Es):Rh;const Ni=Ph;var kh=Object.prototype,Dh=kh.hasOwnProperty;function lo(e,t){var r=et(e),n=!r&&ei(e),i=!r&&!n&&or(e),s=!r&&!n&&!i&&Ni(e),a=r||n||i||s,o=a?Jl(e.length,String):[],u=o.length;for(var c in e)(t||Dh.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||to(c,u)))&&o.push(c);return o}function ho(e,t){return function(r){return e(t(r))}}var Nh=ho(Object.keys,Object);const $h=Nh;var Bh=Object.prototype,Lh=Bh.hasOwnProperty;function jh(e){if(!ki(e))return $h(e);var t=[];for(var r in Object(e))Lh.call(e,r)&&r!="constructor"&&t.push(r);return t}function fo(e){return tn(e)?lo(e):jh(e)}function Mh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Vh=Object.prototype,Fh=Vh.hasOwnProperty;function Uh(e){if(!Le(e))return Mh(e);var t=ki(e),r=[];for(var n in e)n=="constructor"&&(t||!Fh.call(e,n))||r.push(n);return r}function $i(e){return tn(e)?lo(e,!0):Uh(e)}var Hh=ao(function(e,t,r,n){no(t,$i(t),e,n)});const Ts=Hh;var qh=Rt(Object,"create");const cr=qh;function zh(){this.__data__=cr?cr(null):{},this.size=0}function Wh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gh="__lodash_hash_undefined__",Kh=Object.prototype,Jh=Kh.hasOwnProperty;function Yh(e){var t=this.__data__;if(cr){var r=t[e];return r===Gh?void 0:r}return Jh.call(t,e)?t[e]:void 0}var Zh=Object.prototype,Qh=Zh.hasOwnProperty;function Xh(e){var t=this.__data__;return cr?t[e]!==void 0:Qh.call(t,e)}var ef="__lodash_hash_undefined__";function tf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=cr&&t===void 0?ef:t,this}function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tt.prototype.clear=zh;Tt.prototype.delete=Wh;Tt.prototype.get=Yh;Tt.prototype.has=Xh;Tt.prototype.set=tf;function rf(){this.__data__=[],this.size=0}function rn(e,t){for(var r=e.length;r--;)if(Gt(e[r][0],t))return r;return-1}var nf=Array.prototype,sf=nf.splice;function af(e){var t=this.__data__,r=rn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sf.call(t,r,1),--this.size,!0}function of(e){var t=this.__data__,r=rn(t,e);return r<0?void 0:t[r][1]}function cf(e){return rn(this.__data__,e)>-1}function uf(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rt.prototype.clear=rf;rt.prototype.delete=af;rt.prototype.get=of;rt.prototype.has=cf;rt.prototype.set=uf;var lf=Rt(He,"Map");const ur=lf;function hf(){this.size=0,this.__data__={hash:new Tt,map:new(ur||rt),string:new Tt}}function ff(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nn(e,t){var r=e.__data__;return ff(t)?r[typeof t=="string"?"string":"hash"]:r.map}function pf(e){var t=nn(this,e).delete(e);return this.size-=t?1:0,t}function df(e){return nn(this,e).get(e)}function gf(e){return nn(this,e).has(e)}function mf(e,t){var r=nn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function nt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nt.prototype.clear=hf;nt.prototype.delete=pf;nt.prototype.get=df;nt.prototype.has=gf;nt.prototype.set=mf;var vf="Expected a function";function Bi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vf);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Bi.Cache||nt),r}Bi.Cache=nt;var yf=500;function bf(e){var t=Bi(e,function(n){return r.size===yf&&r.clear(),n}),r=t.cache;return t}var _f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wf=/\\(\\)?/g;bf(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_f,function(r,n,i,s){t.push(i?s.replace(wf,"$1"):n||r)}),t});function Kt(e){return e==null?"":Qa(e)}function xf(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Sf=ho(Object.getPrototypeOf,Object);const po=Sf;var Ef="[object Object]",Tf=Function.prototype,Cf=Object.prototype,go=Tf.toString,Af=Cf.hasOwnProperty,Rf=go.call(Object);function mo(e){if(!Be(e)||tt(e)!=Ef)return!1;var t=po(e);if(t===null)return!0;var r=Af.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&go.call(r)==Rf}var Of="[object DOMException]",If="[object Error]";function vo(e){if(!Be(e))return!1;var t=tt(e);return t==If||t==Of||typeof e.message=="string"&&typeof e.name=="string"&&!mo(e)}var Pf=io(function(e,t){try{return eo(e,void 0,t)}catch(r){return vo(r)?r:new Error(r)}});const kf=Pf;function Df(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function Nf(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Df(e,t,r)}var $f="\\ud800-\\udfff",Bf="\\u0300-\\u036f",Lf="\\ufe20-\\ufe2f",jf="\\u20d0-\\u20ff",Mf=Bf+Lf+jf,Vf="\\ufe0e\\ufe0f",Ff="\\u200d",Uf=RegExp("["+Ff+$f+Mf+Vf+"]");function yo(e){return Uf.test(e)}function Hf(e){return e.split("")}var bo="\\ud800-\\udfff",qf="\\u0300-\\u036f",zf="\\ufe20-\\ufe2f",Wf="\\u20d0-\\u20ff",Gf=qf+zf+Wf,Kf="\\ufe0e\\ufe0f",Jf="["+bo+"]",ti="["+Gf+"]",ri="\\ud83c[\\udffb-\\udfff]",Yf="(?:"+ti+"|"+ri+")",_o="[^"+bo+"]",wo="(?:\\ud83c[\\udde6-\\uddff]){2}",xo="[\\ud800-\\udbff][\\udc00-\\udfff]",Zf="\\u200d",So=Yf+"?",Eo="["+Kf+"]?",Qf="(?:"+Zf+"(?:"+[_o,wo,xo].join("|")+")"+Eo+So+")*",Xf=Eo+So+Qf,ep="(?:"+[_o+ti+"?",ti,wo,xo,Jf].join("|")+")",tp=RegExp(ri+"(?="+ri+")|"+ep+Xf,"g");function rp(e){return e.match(tp)||[]}function np(e){return yo(e)?rp(e):Hf(e)}function ip(e){return function(t){t=Kt(t);var r=yo(t)?np(t):void 0,n=r?r[0]:t.charAt(0),i=r?Nf(r,1).join(""):t.slice(1);return n[e]()+i}}var sp=ip("toUpperCase");const To=sp;function ap(e){return To(Kt(e).toLowerCase())}function op(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;)r=t(r,e[i],i,e);return r}function Co(e){return function(t){return e==null?void 0:e[t]}}var cp={À:"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"},up=Co(cp);const lp=up;var hp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fp="\\u0300-\\u036f",pp="\\ufe20-\\ufe2f",dp="\\u20d0-\\u20ff",gp=fp+pp+dp,mp="["+gp+"]",vp=RegExp(mp,"g");function yp(e){return e=Kt(e),e&&e.replace(hp,lp).replace(vp,"")}var bp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function _p(e){return e.match(bp)||[]}var wp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function xp(e){return wp.test(e)}var Ao="\\ud800-\\udfff",Sp="\\u0300-\\u036f",Ep="\\ufe20-\\ufe2f",Tp="\\u20d0-\\u20ff",Cp=Sp+Ep+Tp,Ro="\\u2700-\\u27bf",Oo="a-z\\xdf-\\xf6\\xf8-\\xff",Ap="\\xac\\xb1\\xd7\\xf7",Rp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Op="\\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",Io="A-Z\\xc0-\\xd6\\xd8-\\xde",Pp="\\ufe0e\\ufe0f",Po=Ap+Rp+Op+Ip,ko="['’]",Cs="["+Po+"]",kp="["+Cp+"]",Do="\\d+",Dp="["+Ro+"]",No="["+Oo+"]",$o="[^"+Ao+Po+Do+Ro+Oo+Io+"]",Np="\\ud83c[\\udffb-\\udfff]",$p="(?:"+kp+"|"+Np+")",Bp="[^"+Ao+"]",Bo="(?:\\ud83c[\\udde6-\\uddff]){2}",Lo="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+Io+"]",Lp="\\u200d",As="(?:"+No+"|"+$o+")",jp="(?:"+jt+"|"+$o+")",Rs="(?:"+ko+"(?:d|ll|m|re|s|t|ve))?",Os="(?:"+ko+"(?:D|LL|M|RE|S|T|VE))?",jo=$p+"?",Mo="["+Pp+"]?",Mp="(?:"+Lp+"(?:"+[Bp,Bo,Lo].join("|")+")"+Mo+jo+")*",Vp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Up=Mo+jo+Mp,Hp="(?:"+[Dp,Bo,Lo].join("|")+")"+Up,qp=RegExp([jt+"?"+No+"+"+Rs+"(?="+[Cs,jt,"$"].join("|")+")",jp+"+"+Os+"(?="+[Cs,jt+As,"$"].join("|")+")",jt+"?"+As+"+"+Rs,jt+"+"+Os,Fp,Vp,Do,Hp].join("|"),"g");function zp(e){return e.match(qp)||[]}function Wp(e,t,r){return e=Kt(e),t=t,t===void 0?xp(e)?zp(e):_p(e):e.match(t)||[]}var Gp="['’]",Kp=RegExp(Gp,"g");function Jp(e){return function(t){return op(Wp(yp(t).replace(Kp,"")),e,"")}}var Yp=Jp(function(e,t,r){return t=t.toLowerCase(),e+(r?ap(t):t)});const We=Yp;function Zp(){this.__data__=new rt,this.size=0}function Qp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Xp(e){return this.__data__.get(e)}function ed(e){return this.__data__.has(e)}var td=200;function rd(e,t){var r=this.__data__;if(r instanceof rt){var n=r.__data__;if(!ur||n.length<td-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new nt(n)}return r.set(e,t),this.size=r.size,this}function Ge(e){var t=this.__data__=new rt(e);this.size=t.size}Ge.prototype.clear=Zp;Ge.prototype.delete=Qp;Ge.prototype.get=Xp;Ge.prototype.has=ed;Ge.prototype.set=rd;var Vo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=Vo&&typeof module=="object"&&module&&!module.nodeType&&module,nd=Is&&Is.exports===Vo,Ps=nd?He.Buffer:void 0,ks=Ps?Ps.allocUnsafe:void 0;function Fo(e,t){if(t)return e.slice();var r=e.length,n=ks?ks(r):new e.constructor(r);return e.copy(n),n}function id(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}function sd(){return[]}var ad=Object.prototype,od=ad.propertyIsEnumerable,Ds=Object.getOwnPropertySymbols,cd=Ds?function(e){return e==null?[]:(e=Object(e),id(Ds(e),function(t){return od.call(e,t)}))}:sd;const ud=cd;function ld(e,t,r){var n=t(e);return et(e)?n:xf(n,r(e))}function ni(e){return ld(e,fo,ud)}var hd=Rt(He,"DataView");const ii=hd;var fd=Rt(He,"Promise");const si=fd;var pd=Rt(He,"Set");const ai=pd;var Ns="[object Map]",dd="[object Object]",$s="[object Promise]",Bs="[object Set]",Ls="[object WeakMap]",js="[object DataView]",gd=At(ii),md=At(ur),vd=At(si),yd=At(ai),bd=At(Xn),_t=tt;(ii&&_t(new ii(new ArrayBuffer(1)))!=js||ur&&_t(new ur)!=Ns||si&&_t(si.resolve())!=$s||ai&&_t(new ai)!=Bs||Xn&&_t(new Xn)!=Ls)&&(_t=function(e){var t=tt(e),r=t==dd?e.constructor:void 0,n=r?At(r):"";if(n)switch(n){case gd:return js;case md:return Ns;case vd:return $s;case yd:return Bs;case bd:return Ls}return t});const lr=_t;var _d=Object.prototype,wd=_d.hasOwnProperty;function xd(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&wd.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Sd=He.Uint8Array;const Gr=Sd;function Li(e){var t=new e.constructor(e.byteLength);return new Gr(t).set(new Gr(e)),t}function Ed(e,t){var r=Li(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Td=/\w*$/;function Cd(e){var t=new e.constructor(e.source,Td.exec(e));return t.lastIndex=e.lastIndex,t}var Ms=Je?Je.prototype:void 0,Vs=Ms?Ms.valueOf:void 0;function Ad(e){return Vs?Object(Vs.call(e)):{}}function Uo(e,t){var r=t?Li(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Rd="[object Boolean]",Od="[object Date]",Id="[object Map]",Pd="[object Number]",kd="[object RegExp]",Dd="[object Set]",Nd="[object String]",$d="[object Symbol]",Bd="[object ArrayBuffer]",Ld="[object DataView]",jd="[object Float32Array]",Md="[object Float64Array]",Vd="[object Int8Array]",Fd="[object Int16Array]",Ud="[object Int32Array]",Hd="[object Uint8Array]",qd="[object Uint8ClampedArray]",zd="[object Uint16Array]",Wd="[object Uint32Array]";function Gd(e,t,r){var n=e.constructor;switch(t){case Bd:return Li(e);case Rd:case Od:return new n(+e);case Ld:return Ed(e);case jd:case Md:case Vd:case Fd:case Ud:case Hd:case qd:case zd:case Wd:return Uo(e,r);case Id:return new n;case Pd:case Nd:return new n(e);case kd:return Cd(e);case Dd:return new n;case $d:return Ad(e)}}function Ho(e){return typeof e.constructor=="function"&&!ki(e)?Rl(po(e)):{}}var Kd="[object Map]";function Jd(e){return Be(e)&&lr(e)==Kd}var Fs=Ye&&Ye.isMap,Yd=Fs?Di(Fs):Jd;const Zd=Yd;var Qd="[object Set]";function Xd(e){return Be(e)&&lr(e)==Qd}var Us=Ye&&Ye.isSet,eg=Us?Di(Us):Xd;const tg=eg;var rg=1,qo="[object Arguments]",ng="[object Array]",ig="[object Boolean]",sg="[object Date]",ag="[object Error]",zo="[object Function]",og="[object GeneratorFunction]",cg="[object Map]",ug="[object Number]",Wo="[object Object]",lg="[object RegExp]",hg="[object Set]",fg="[object String]",pg="[object Symbol]",dg="[object WeakMap]",gg="[object ArrayBuffer]",mg="[object DataView]",vg="[object Float32Array]",yg="[object Float64Array]",bg="[object Int8Array]",_g="[object Int16Array]",wg="[object Int32Array]",xg="[object Uint8Array]",Sg="[object Uint8ClampedArray]",Eg="[object Uint16Array]",Tg="[object Uint32Array]",ie={};ie[qo]=ie[ng]=ie[gg]=ie[mg]=ie[ig]=ie[sg]=ie[vg]=ie[yg]=ie[bg]=ie[_g]=ie[wg]=ie[cg]=ie[ug]=ie[Wo]=ie[lg]=ie[hg]=ie[fg]=ie[pg]=ie[xg]=ie[Sg]=ie[Eg]=ie[Tg]=!0;ie[ag]=ie[zo]=ie[dg]=!1;function jr(e,t,r,n,i,s){var a,o=t&rg;if(a!==void 0)return a;if(!Le(e))return e;var u=et(e);if(u)a=xd(e);else{var c=lr(e),l=c==zo||c==og;if(or(e))return Fo(e,o);if(c==Wo||c==qo||l&&!i)a=l?{}:Ho(e);else{if(!ie[c])return i?e:{};a=Gd(e,c,o)}}s||(s=new Ge);var h=s.get(e);if(h)return h;s.set(e,a),tg(e)?e.forEach(function(d){a.add(jr(d,t,r,d,e,s))}):Zd(e)&&e.forEach(function(d,g){a.set(g,jr(d,t,r,g,e,s))});var f=ni,p=u?void 0:f(e);return Vl(p||e,function(d,g){p&&(g=d,d=e[g]),ro(a,g,jr(d,t,r,g,e,s))}),a}var Cg=1,Ag=4;function Hs(e){return jr(e,Cg|Ag)}var Rg="__lodash_hash_undefined__";function Og(e){return this.__data__.set(e,Rg),this}function Ig(e){return this.__data__.has(e)}function Kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nt;++t<r;)this.add(e[t])}Kr.prototype.add=Kr.prototype.push=Og;Kr.prototype.has=Ig;function Pg(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function kg(e,t){return e.has(t)}var Dg=1,Ng=2;function Go(e,t,r,n,i,s){var a=r&Dg,o=e.length,u=t.length;if(o!=u&&!(a&&u>o))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var h=-1,f=!0,p=r&Ng?new Kr:void 0;for(s.set(e,t),s.set(t,e);++h<o;){var d=e[h],g=t[h];if(n)var v=a?n(g,d,h,t,e,s):n(d,g,h,e,t,s);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!Pg(t,function(w,y){if(!kg(p,y)&&(d===w||i(d,w,r,n,s)))return p.push(y)})){f=!1;break}}else if(!(d===g||i(d,g,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function $g(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Bg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Lg=1,jg=2,Mg="[object Boolean]",Vg="[object Date]",Fg="[object Error]",Ug="[object Map]",Hg="[object Number]",qg="[object RegExp]",zg="[object Set]",Wg="[object String]",Gg="[object Symbol]",Kg="[object ArrayBuffer]",Jg="[object DataView]",qs=Je?Je.prototype:void 0,Cn=qs?qs.valueOf:void 0;function Yg(e,t,r,n,i,s,a){switch(r){case Jg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Kg:return!(e.byteLength!=t.byteLength||!s(new Gr(e),new Gr(t)));case Mg:case Vg:case Hg:return Gt(+e,+t);case Fg:return e.name==t.name&&e.message==t.message;case qg:case Wg:return e==t+"";case Ug:var o=$g;case zg:var u=n&Lg;if(o||(o=Bg),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=jg,a.set(e,t);var l=Go(o(e),o(t),n,i,s,a);return a.delete(e),l;case Gg:if(Cn)return Cn.call(e)==Cn.call(t)}return!1}var Zg=1,Qg=Object.prototype,Xg=Qg.hasOwnProperty;function em(e,t,r,n,i,s){var a=r&Zg,o=ni(e),u=o.length,c=ni(t),l=c.length;if(u!=l&&!a)return!1;for(var h=u;h--;){var f=o[h];if(!(a?f in t:Xg.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=a;++h<u;){f=o[h];var w=e[f],y=t[f];if(n)var b=a?n(y,w,f,t,e,s):n(w,y,f,e,t,s);if(!(b===void 0?w===y||i(w,y,r,n,s):b)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var x=e.constructor,S=t.constructor;x!=S&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof S=="function"&&S instanceof S)&&(g=!1)}return s.delete(e),s.delete(t),g}var tm=1,zs="[object Arguments]",Ws="[object Array]",Er="[object Object]",rm=Object.prototype,Gs=rm.hasOwnProperty;function nm(e,t,r,n,i,s){var a=et(e),o=et(t),u=a?Ws:lr(e),c=o?Ws:lr(t);u=u==zs?Er:u,c=c==zs?Er:c;var l=u==Er,h=c==Er,f=u==c;if(f&&or(e)){if(!or(t))return!1;a=!0,l=!1}if(f&&!l)return s||(s=new Ge),a||Ni(e)?Go(e,t,r,n,i,s):Yg(e,t,u,r,n,i,s);if(!(r&tm)){var p=l&&Gs.call(e,"__wrapped__"),d=h&&Gs.call(t,"__wrapped__");if(p||d){var g=p?e.value():e,v=d?t.value():t;return s||(s=new Ge),i(g,v,r,n,s)}}return f?(s||(s=new Ge),em(e,t,r,n,i,s)):!1}function Ko(e,t,r,n,i){return e===t?!0:e==null||t==null||!Be(e)&&!Be(t)?e!==e&&t!==t:nm(e,t,r,n,Ko,i)}function im(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var u=a[++i];if(r(s[u],u,s)===!1)break}return t}}var sm=im();const am=sm;var om=function(){return He.Date.now()};const An=om;var cm="Expected a function",um=Math.max,lm=Math.min;function ji(e,t,r){var n,i,s,a,o,u,c=0,l=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(cm);t=vs(t)||0,Le(r)&&(l=!!r.leading,h="maxWait"in r,s=h?um(vs(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(_){var A=n,I=i;return n=i=void 0,c=_,a=e.apply(I,A),a}function d(_){return c=_,o=setTimeout(w,t),l?p(_):a}function g(_){var A=_-u,I=_-c,V=t-A;return h?lm(V,s-I):V}function v(_){var A=_-u,I=_-c;return u===void 0||A>=t||A<0||h&&I>=s}function w(){var _=An();if(v(_))return y(_);o=setTimeout(w,g(_))}function y(_){return o=void 0,f&&n?p(_):(n=i=void 0,a)}function b(){o!==void 0&&clearTimeout(o),c=0,n=u=i=o=void 0}function x(){return o===void 0?a:y(An())}function S(){var _=An(),A=v(_);if(n=arguments,i=this,u=_,A){if(o===void 0)return d(u);if(h)return clearTimeout(o),o=setTimeout(w,t),p(u)}return o===void 0&&(o=setTimeout(w,t)),a}return S.cancel=b,S.flush=x,S}function oi(e,t,r){(r!==void 0&&!Gt(e[t],r)||r===void 0&&!(t in e))&&Pi(e,t,r)}function hm(e){return Be(e)&&tn(e)}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function fm(e){return no(e,$i(e))}function pm(e,t,r,n,i,s,a){var o=ci(e,r),u=ci(t,r),c=a.get(u);if(c){oi(e,r,c);return}var l=s?s(o,u,r+"",e,t,a):void 0,h=l===void 0;if(h){var f=et(u),p=!f&&or(u),d=!f&&!p&&Ni(u);l=u,f||p||d?et(o)?l=o:hm(o)?l=Ol(o):p?(h=!1,l=Fo(u,!0)):d?(h=!1,l=Uo(u,!0)):l=[]:mo(u)||ei(u)?(l=o,ei(o)?l=fm(o):(!Le(o)||Et(o))&&(l=Ho(u))):h=!1}h&&(a.set(u,l),i(l,u,n,s,a),a.delete(u)),oi(e,r,l)}function Jo(e,t,r,n,i){e!==t&&am(t,function(s,a){if(i||(i=new Ge),Le(s))pm(e,t,a,r,Jo,n,i);else{var o=n?n(ci(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),oi(e,a,o)}},$i)}var dm={"&":"&","<":"<",">":">",'"':""","'":"'"},gm=Co(dm);const mm=gm;var Yo=/[&<>"']/g,vm=RegExp(Yo.source);function ym(e){return e=Kt(e),e&&vm.test(e)?e.replace(Yo,mm):e}var bm="[object String]";function dt(e){return typeof e=="string"||!et(e)&&Be(e)&&tt(e)==bm}function _m(e,t){return Za(t,function(r){return e[r]})}Ye&&Ye.isArrayBuffer;Ye&&Ye.isDate;function wm(e,t){return Ko(e,t)}var xm=ao(function(e,t,r){Jo(e,t,r)});const tr=xm;var Zo=Object.prototype,Sm=Zo.hasOwnProperty;function Ks(e,t,r,n){return e===void 0||Gt(e,Zo[r])&&!Sm.call(n,r)?t:e}var Em={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Tm(e){return"\\"+Em[e]}var Cm=/<%=([\s\S]+?)%>/g;const Qo=Cm;var Am=/<%-([\s\S]+?)%>/g;const Rm=Am;var Om=/<%([\s\S]+?)%>/g;const Im=Om;var Pm={escape:Rm,evaluate:Im,interpolate:Qo,variable:"",imports:{_:{escape:ym}}};const Js=Pm;var km="Invalid `variable` option passed into `_.template`",Dm=/\b__p \+= '';/g,Nm=/\b(__p \+=) '' \+/g,$m=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bm=/[()=,{}\[\]\/\s]/,Lm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tr=/($^)/,jm=/['\n\r\u2028\u2029\\]/g,Mm=Object.prototype,Ys=Mm.hasOwnProperty;function Vm(e,t,r){var n=Js.imports._.templateSettings||Js;e=Kt(e),t=Ts({},t,n,Ks);var i=Ts({},t.imports,n.imports,Ks),s=fo(i),a=_m(i,s),o,u,c=0,l=t.interpolate||Tr,h="__p += '",f=RegExp((t.escape||Tr).source+"|"+l.source+"|"+(l===Qo?Lm:Tr).source+"|"+(t.evaluate||Tr).source+"|$","g"),p=Ys.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
+
`:"";e.replace(f,function(v,w,y,b,x,S){return y||(y=b),h+=e.slice(c,S).replace(jm,Tm),w&&(o=!0,h+=`' +
|
|
4
|
+
__e(`+w+`) +
|
|
5
|
+
'`),x&&(u=!0,h+=`';
|
|
6
|
+
`+x+`;
|
|
7
|
+
__p += '`),y&&(h+=`' +
|
|
8
|
+
((__t = (`+y+`)) == null ? '' : __t) +
|
|
9
|
+
'`),c=S+v.length,v}),h+=`';
|
|
10
|
+
`;var d=Ys.call(t,"variable")&&t.variable;if(!d)h=`with (obj) {
|
|
11
|
+
`+h+`
|
|
12
|
+
}
|
|
13
|
+
`;else if(Bm.test(d))throw new Error(km);h=(u?h.replace(Dm,""):h).replace(Nm,"$1").replace($m,"$1;"),h="function("+(d||"obj")+`) {
|
|
14
|
+
`+(d?"":`obj || (obj = {});
|
|
15
|
+
`)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
|
|
16
|
+
function print() { __p += __j.call(arguments, '') }
|
|
17
|
+
`:`;
|
|
18
|
+
`)+h+`return __p
|
|
19
|
+
}`;var g=kf(function(){return Function(s,p+"return "+h).apply(void 0,a)});if(g.source=h,vo(g))throw g;return g}var Fm="Expected a function";function Um(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Fm);return Le(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),ji(e,t,{leading:n,maxWait:t,trailing:i})}function Hm(e){return To(We(e))}var _e=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function qm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xo={exports:{}};function zm(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 Rn={exports:{}},Zs;function gt(){return Zs||(Zs=1,(function(e,t){(function(r,n){e.exports=n()})(_e,function(){var r=r||(function(n,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof _e!="undefined"&&_e.crypto&&(s=_e.crypto),!s&&typeof zm=="function")try{s=require("crypto")}catch(y){}var a=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||(function(){function y(){}return function(b){var x;return y.prototype=b,x=new y,y.prototype=null,x}})(),u={},c=u.lib={},l=c.Base=(function(){return{extend:function(y){var b=o(this);return y&&b.mixIn(y),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var b in y)y.hasOwnProperty(b)&&(this[b]=y[b]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),h=c.WordArray=l.extend({init:function(y,b){y=this.words=y||[],b!=i?this.sigBytes=b:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var b=this.words,x=y.words,S=this.sigBytes,_=y.sigBytes;if(this.clamp(),S%4)for(var A=0;A<_;A++){var I=x[A>>>2]>>>24-A%4*8&255;b[S+A>>>2]|=I<<24-(S+A)%4*8}else for(var V=0;V<_;V+=4)b[S+V>>>2]=x[V>>>2];return this.sigBytes+=_,this},clamp:function(){var y=this.words,b=this.sigBytes;y[b>>>2]&=4294967295<<32-b%4*8,y.length=n.ceil(b/4)},clone:function(){var y=l.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var b=[],x=0;x<y;x+=4)b.push(a());return new h.init(b,y)}}),f=u.enc={},p=f.Hex={stringify:function(y){for(var b=y.words,x=y.sigBytes,S=[],_=0;_<x;_++){var A=b[_>>>2]>>>24-_%4*8&255;S.push((A>>>4).toString(16)),S.push((A&15).toString(16))}return S.join("")},parse:function(y){for(var b=y.length,x=[],S=0;S<b;S+=2)x[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new h.init(x,b/2)}},d=f.Latin1={stringify:function(y){for(var b=y.words,x=y.sigBytes,S=[],_=0;_<x;_++){var A=b[_>>>2]>>>24-_%4*8&255;S.push(String.fromCharCode(A))}return S.join("")},parse:function(y){for(var b=y.length,x=[],S=0;S<b;S++)x[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new h.init(x,b)}},g=f.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},v=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=g.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var b,x=this._data,S=x.words,_=x.sigBytes,A=this.blockSize,I=A*4,V=_/I;y?V=n.ceil(V):V=n.max((V|0)-this._minBufferSize,0);var E=V*A,C=n.min(E*4,_);if(E){for(var j=0;j<E;j+=A)this._doProcessBlock(S,j);b=S.splice(0,E),x.sigBytes-=C}return new h.init(b,C)},clone:function(){var y=l.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});c.Hasher=v.extend({cfg:l.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(y){return function(b,x){return new y.init(x).finalize(b)}},_createHmacHelper:function(y){return function(b,x){return new w.HMAC.init(y,x).finalize(b)}}});var w=u.algo={};return u})(Math);return r})})(Rn)),Rn.exports}(function(e,t){(function(r,n){e.exports=n(gt())})(_e,function(r){return(function(n){var i=r,s=i.lib,a=s.WordArray,o=s.Hasher,u=i.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=n.abs(n.sin(g+1))*4294967296|0})();var l=u.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var w=0;w<16;w++){var y=v+w,b=g[y];g[y]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,S=g[v+0],_=g[v+1],A=g[v+2],I=g[v+3],V=g[v+4],E=g[v+5],C=g[v+6],j=g[v+7],B=g[v+8],L=g[v+9],P=g[v+10],N=g[v+11],U=g[v+12],F=g[v+13],W=g[v+14],q=g[v+15],O=x[0],$=x[1],R=x[2],D=x[3];O=h(O,$,R,D,S,7,c[0]),D=h(D,O,$,R,_,12,c[1]),R=h(R,D,O,$,A,17,c[2]),$=h($,R,D,O,I,22,c[3]),O=h(O,$,R,D,V,7,c[4]),D=h(D,O,$,R,E,12,c[5]),R=h(R,D,O,$,C,17,c[6]),$=h($,R,D,O,j,22,c[7]),O=h(O,$,R,D,B,7,c[8]),D=h(D,O,$,R,L,12,c[9]),R=h(R,D,O,$,P,17,c[10]),$=h($,R,D,O,N,22,c[11]),O=h(O,$,R,D,U,7,c[12]),D=h(D,O,$,R,F,12,c[13]),R=h(R,D,O,$,W,17,c[14]),$=h($,R,D,O,q,22,c[15]),O=f(O,$,R,D,_,5,c[16]),D=f(D,O,$,R,C,9,c[17]),R=f(R,D,O,$,N,14,c[18]),$=f($,R,D,O,S,20,c[19]),O=f(O,$,R,D,E,5,c[20]),D=f(D,O,$,R,P,9,c[21]),R=f(R,D,O,$,q,14,c[22]),$=f($,R,D,O,V,20,c[23]),O=f(O,$,R,D,L,5,c[24]),D=f(D,O,$,R,W,9,c[25]),R=f(R,D,O,$,I,14,c[26]),$=f($,R,D,O,B,20,c[27]),O=f(O,$,R,D,F,5,c[28]),D=f(D,O,$,R,A,9,c[29]),R=f(R,D,O,$,j,14,c[30]),$=f($,R,D,O,U,20,c[31]),O=p(O,$,R,D,E,4,c[32]),D=p(D,O,$,R,B,11,c[33]),R=p(R,D,O,$,N,16,c[34]),$=p($,R,D,O,W,23,c[35]),O=p(O,$,R,D,_,4,c[36]),D=p(D,O,$,R,V,11,c[37]),R=p(R,D,O,$,j,16,c[38]),$=p($,R,D,O,P,23,c[39]),O=p(O,$,R,D,F,4,c[40]),D=p(D,O,$,R,S,11,c[41]),R=p(R,D,O,$,I,16,c[42]),$=p($,R,D,O,C,23,c[43]),O=p(O,$,R,D,L,4,c[44]),D=p(D,O,$,R,U,11,c[45]),R=p(R,D,O,$,q,16,c[46]),$=p($,R,D,O,A,23,c[47]),O=d(O,$,R,D,S,6,c[48]),D=d(D,O,$,R,j,10,c[49]),R=d(R,D,O,$,W,15,c[50]),$=d($,R,D,O,E,21,c[51]),O=d(O,$,R,D,U,6,c[52]),D=d(D,O,$,R,I,10,c[53]),R=d(R,D,O,$,P,15,c[54]),$=d($,R,D,O,_,21,c[55]),O=d(O,$,R,D,B,6,c[56]),D=d(D,O,$,R,q,10,c[57]),R=d(R,D,O,$,C,15,c[58]),$=d($,R,D,O,F,21,c[59]),O=d(O,$,R,D,V,6,c[60]),D=d(D,O,$,R,N,10,c[61]),R=d(R,D,O,$,A,15,c[62]),$=d($,R,D,O,L,21,c[63]),x[0]=x[0]+O|0,x[1]=x[1]+$|0,x[2]=x[2]+R|0,x[3]=x[3]+D|0},_doFinalize:function(){var g=this._data,v=g.words,w=this._nDataBytes*8,y=g.sigBytes*8;v[y>>>5]|=128<<24-y%32;var b=n.floor(w/4294967296),x=w;v[(y+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(y+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var S=this._hash,_=S.words,A=0;A<4;A++){var I=_[A];_[A]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return S},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});function h(g,v,w,y,b,x,S){var _=g+(v&w|~v&y)+b+S;return(_<<x|_>>>32-x)+v}function f(g,v,w,y,b,x,S){var _=g+(v&y|w&~y)+b+S;return(_<<x|_>>>32-x)+v}function p(g,v,w,y,b,x,S){var _=g+(v^w^y)+b+S;return(_<<x|_>>>32-x)+v}function d(g,v,w,y,b,x,S){var _=g+(w^(v|~y))+b+S;return(_<<x|_>>>32-x)+v}i.MD5=o._createHelper(l),i.HmacMD5=o._createHmacHelper(l)})(Math),r.MD5})})(Xo);var Wm=Xo.exports,ec={exports:{}};(function(e,t){(function(r,n){e.exports=n(gt())})(_e,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,a=n.enc;a.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,h=this._map;u.clamp();for(var f=[],p=0;p<l;p+=3)for(var d=c[p>>>2]>>>24-p%4*8&255,g=c[p+1>>>2]>>>24-(p+1)%4*8&255,v=c[p+2>>>2]>>>24-(p+2)%4*8&255,w=d<<16|g<<8|v,y=0;y<4&&p+y*.75<l;y++)f.push(h.charAt(w>>>6*(3-y)&63));var b=h.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(u){var c=u.length,l=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f<l.length;f++)h[l.charCodeAt(f)]=f}var p=l.charAt(64);if(p){var d=u.indexOf(p);d!==-1&&(c=d)}return o(u,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(u,c,l){for(var h=[],f=0,p=0;p<c;p++)if(p%4){var d=l[u.charCodeAt(p-1)]<<p%4*2,g=l[u.charCodeAt(p)]>>>6-p%4*2,v=d|g;h[f>>>2]|=v<<24-f%4*8,f++}return s.create(h,f)}})(),r.enc.Base64})})(ec);var Gm=ec.exports,Km={exports:{}};(function(e,t){(function(r,n){e.exports=n(gt())})(_e,function(r){return r.enc.Utf8})})(Km);var Jm={exports:{}},On={exports:{}},In={exports:{}},Qs;function Ym(){return Qs||(Qs=1,(function(e,t){(function(r,n){e.exports=n(gt())})(_e,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,a=i.Hasher,o=n.algo,u=[],c=o.SHA1=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,h){for(var f=this._hash.words,p=f[0],d=f[1],g=f[2],v=f[3],w=f[4],y=0;y<80;y++){if(y<16)u[y]=l[h+y]|0;else{var b=u[y-3]^u[y-8]^u[y-14]^u[y-16];u[y]=b<<1|b>>>31}var x=(p<<5|p>>>27)+w+u[y];y<20?x+=(d&g|~d&v)+1518500249:y<40?x+=(d^g^v)+1859775393:y<60?x+=(d&g|d&v|g&v)-1894007588:x+=(d^g^v)-899497514,w=v,v=g,g=d<<30|d>>>2,d=p,p=x}f[0]=f[0]+p|0,f[1]=f[1]+d|0,f[2]=f[2]+g|0,f[3]=f[3]+v|0,f[4]=f[4]+w|0},_doFinalize:function(){var l=this._data,h=l.words,f=this._nDataBytes*8,p=l.sigBytes*8;return h[p>>>5]|=128<<24-p%32,h[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),h[(p+64>>>9<<4)+15]=f,l.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)})(),r.SHA1})})(In)),In.exports}var Pn={exports:{}},Xs;function Zm(){return Xs||(Xs=1,(function(e,t){(function(r,n){e.exports=n(gt())})(_e,function(r){(function(){var n=r,i=n.lib,s=i.Base,a=n.enc,o=a.Utf8,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=o.parse(l));var h=c.blockSize,f=h*4;l.sigBytes>f&&(l=c.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),d=this._iKey=l.clone(),g=p.words,v=d.words,w=0;w<h;w++)g[w]^=1549556828,v[w]^=909522486;p.sigBytes=d.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,h=l.finalize(c);l.reset();var f=l.finalize(this._oKey.clone().concat(h));return f}})})()})})(Pn)),Pn.exports}var ea;function tc(){return ea||(ea=1,(function(e,t){(function(r,n,i){e.exports=n(gt(),Ym(),Zm())})(_e,function(r){return(function(){var n=r,i=n.lib,s=i.Base,a=i.WordArray,o=n.algo,u=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,h){for(var f,p=this.cfg,d=p.hasher.create(),g=a.create(),v=g.words,w=p.keySize,y=p.iterations;v.length<w;){f&&d.update(f),f=d.update(l).finalize(h),d.reset();for(var b=1;b<y;b++)f=d.finalize(f),d.reset();g.concat(f)}return g.sigBytes=w*4,g}});n.EvpKDF=function(l,h,f){return c.create(f).compute(l,h)}})(),r.EvpKDF})})(On)),On.exports}var kn={exports:{}},ta;function Qm(){return ta||(ta=1,(function(e,t){(function(r,n,i){e.exports=n(gt(),tc())})(_e,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,a=s.Base,o=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,h=i.algo,f=h.EvpKDF,p=s.Cipher=u.extend({cfg:a.extend(),createEncryptor:function(E,C){return this.create(this._ENC_XFORM_MODE,E,C)},createDecryptor:function(E,C){return this.create(this._DEC_XFORM_MODE,E,C)},init:function(E,C,j){this.cfg=this.cfg.extend(j),this._xformMode=E,this._key=C,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(E){return this._append(E),this._process()},finalize:function(E){E&&this._append(E);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function E(C){return typeof C=="string"?V:_}return function(C){return{encrypt:function(j,B,L){return E(B).encrypt(C,j,B,L)},decrypt:function(j,B,L){return E(B).decrypt(C,j,B,L)}}}})()});s.StreamCipher=p.extend({_doFinalize:function(){var E=this._process(!0);return E},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=a.extend({createEncryptor:function(E,C){return this.Encryptor.create(E,C)},createDecryptor:function(E,C){return this.Decryptor.create(E,C)},init:function(E,C){this._cipher=E,this._iv=C}}),v=d.CBC=(function(){var E=g.extend();E.Encryptor=E.extend({processBlock:function(j,B){var L=this._cipher,P=L.blockSize;C.call(this,j,B,P),L.encryptBlock(j,B),this._prevBlock=j.slice(B,B+P)}}),E.Decryptor=E.extend({processBlock:function(j,B){var L=this._cipher,P=L.blockSize,N=j.slice(B,B+P);L.decryptBlock(j,B),C.call(this,j,B,P),this._prevBlock=N}});function C(j,B,L){var P,N=this._iv;N?(P=N,this._iv=n):P=this._prevBlock;for(var U=0;U<L;U++)j[B+U]^=P[U]}return E})(),w=i.pad={},y=w.Pkcs7={pad:function(E,C){for(var j=C*4,B=j-E.sigBytes%j,L=B<<24|B<<16|B<<8|B,P=[],N=0;N<B;N+=4)P.push(L);var U=o.create(P,B);E.concat(U)},unpad:function(E){var C=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=C}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:y}),reset:function(){var E;p.reset.call(this);var C=this.cfg,j=C.iv,B=C.mode;this._xformMode==this._ENC_XFORM_MODE?E=B.createEncryptor:(E=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==E?this._mode.init(this,j&&j.words):(this._mode=E.call(B,this,j&&j.words),this._mode.__creator=E)},_doProcessBlock:function(E,C){this._mode.processBlock(E,C)},_doFinalize:function(){var E,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),E=this._process(!0)):(E=this._process(!0),C.unpad(E)),E},blockSize:128/32});var b=s.CipherParams=a.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),x=i.format={},S=x.OpenSSL={stringify:function(E){var C,j=E.ciphertext,B=E.salt;return B?C=o.create([1398893684,1701076831]).concat(B).concat(j):C=j,C.toString(l)},parse:function(E){var C,j=l.parse(E),B=j.words;return B[0]==1398893684&&B[1]==1701076831&&(C=o.create(B.slice(2,4)),B.splice(0,4),j.sigBytes-=16),b.create({ciphertext:j,salt:C})}},_=s.SerializableCipher=a.extend({cfg:a.extend({format:S}),encrypt:function(E,C,j,B){B=this.cfg.extend(B);var L=E.createEncryptor(j,B),P=L.finalize(C),N=L.cfg;return b.create({ciphertext:P,key:j,iv:N.iv,algorithm:E,mode:N.mode,padding:N.padding,blockSize:E.blockSize,formatter:B.format})},decrypt:function(E,C,j,B){B=this.cfg.extend(B),C=this._parse(C,B.format);var L=E.createDecryptor(j,B).finalize(C.ciphertext);return L},_parse:function(E,C){return typeof E=="string"?C.parse(E,this):E}}),A=i.kdf={},I=A.OpenSSL={execute:function(E,C,j,B,L){if(B||(B=o.random(64/8)),L)var P=f.create({keySize:C+j,hasher:L}).compute(E,B);else var P=f.create({keySize:C+j}).compute(E,B);var N=o.create(P.words.slice(C),j*4);return P.sigBytes=C*4,b.create({key:P,iv:N,salt:B})}},V=s.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:I}),encrypt:function(E,C,j,B){B=this.cfg.extend(B);var L=B.kdf.execute(j,E.keySize,E.ivSize,B.salt,B.hasher);B.iv=L.iv;var P=_.encrypt.call(this,E,C,L.key,B);return P.mixIn(L),P},decrypt:function(E,C,j,B){B=this.cfg.extend(B),C=this._parse(C,B.format);var L=B.kdf.execute(j,E.keySize,E.ivSize,C.salt,B.hasher);B.iv=L.iv;var P=_.decrypt.call(this,E,C,L.key,B);return P}})})()})})(kn)),kn.exports}(function(e,t){(function(r,n,i){e.exports=n(gt(),Gm,Wm,tc(),Qm())})(_e,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,a=n.algo,o=[],u=[],c=[],l=[],h=[],f=[],p=[],d=[],g=[],v=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var S=0,_=0,x=0;x<256;x++){var A=_^_<<1^_<<2^_<<3^_<<4;A=A>>>8^A&255^99,o[S]=A,u[A]=S;var I=b[S],V=b[I],E=b[V],C=b[A]*257^A*16843008;c[S]=C<<24|C>>>8,l[S]=C<<16|C>>>16,h[S]=C<<8|C>>>24,f[S]=C;var C=E*16843009^V*65537^I*257^S*16843008;p[A]=C<<24|C>>>8,d[A]=C<<16|C>>>16,g[A]=C<<8|C>>>24,v[A]=C,S?(S=I^b[b[b[E^I]]],_^=b[b[_]]):S=_=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],y=a.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,S=x.words,_=x.sigBytes/4,A=this._nRounds=_+6,I=(A+1)*4,V=this._keySchedule=[],E=0;E<I;E++)E<_?V[E]=S[E]:(b=V[E-1],E%_?_>6&&E%_==4&&(b=o[b>>>24]<<24|o[b>>>16&255]<<16|o[b>>>8&255]<<8|o[b&255]):(b=b<<8|b>>>24,b=o[b>>>24]<<24|o[b>>>16&255]<<16|o[b>>>8&255]<<8|o[b&255],b^=w[E/_|0]<<24),V[E]=V[E-_]^b);for(var C=this._invKeySchedule=[],j=0;j<I;j++){var E=I-j;if(j%4)var b=V[E];else var b=V[E-4];j<4||E<=4?C[j]=b:C[j]=p[o[b>>>24]]^d[o[b>>>16&255]]^g[o[b>>>8&255]]^v[o[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,l,h,f,o)},decryptBlock:function(b,x){var S=b[x+1];b[x+1]=b[x+3],b[x+3]=S,this._doCryptBlock(b,x,this._invKeySchedule,p,d,g,v,u);var S=b[x+1];b[x+1]=b[x+3],b[x+3]=S},_doCryptBlock:function(b,x,S,_,A,I,V,E){for(var C=this._nRounds,j=b[x]^S[0],B=b[x+1]^S[1],L=b[x+2]^S[2],P=b[x+3]^S[3],N=4,U=1;U<C;U++){var F=_[j>>>24]^A[B>>>16&255]^I[L>>>8&255]^V[P&255]^S[N++],W=_[B>>>24]^A[L>>>16&255]^I[P>>>8&255]^V[j&255]^S[N++],q=_[L>>>24]^A[P>>>16&255]^I[j>>>8&255]^V[B&255]^S[N++],O=_[P>>>24]^A[j>>>16&255]^I[B>>>8&255]^V[L&255]^S[N++];j=F,B=W,L=q,P=O}var F=(E[j>>>24]<<24|E[B>>>16&255]<<16|E[L>>>8&255]<<8|E[P&255])^S[N++],W=(E[B>>>24]<<24|E[L>>>16&255]<<16|E[P>>>8&255]<<8|E[j&255])^S[N++],q=(E[L>>>24]<<24|E[P>>>16&255]<<16|E[j>>>8&255]<<8|E[B&255])^S[N++],O=(E[P>>>24]<<24|E[j>>>16&255]<<16|E[B>>>8&255]<<8|E[L&255])^S[N++];b[x]=F,b[x+1]=W,b[x+2]=q,b[x+3]=O},keySize:256/32});n.AES=s._createHelper(y)})(),r.AES})})(Jm);var Xm="0123456789abcdefghijklmnopqrstuvwxyz";function Qe(e){return Xm.charAt(e)}function ev(e,t){return e&t}function Cr(e,t){return e|t}function ra(e,t){return e^t}function na(e,t){return e&~t}function tv(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function rv(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rc="=";function sr(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=Mt.charAt(r>>6)+Mt.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Mt.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Mt.charAt(r>>2)+Mt.charAt((r&3)<<4));(n.length&3)>0;)n+=rc;return n}function ia(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=rc;++r){var s=Mt.indexOf(e.charAt(r));s<0||(n==0?(t+=Qe(s>>2),i=s&3,n=1):n==1?(t+=Qe(i<<2|s>>4),i=s&15,n=2):n==2?(t+=Qe(i),t+=Qe(s>>2),i=s&3,n=3):(t+=Qe(i<<2|s>>4),t+=Qe(s&15),n=0))}return n==1&&(t+=Qe(i<<2)),t}var kt,nv={decode:function(e){var t;if(kt===void 0){var r="0123456789ABCDEF",n=` \f
|
|
20
|
+
\r \u2028\u2029`;for(kt={},t=0;t<16;++t)kt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)kt[r.charAt(t)]=t;for(t=0;t<n.length;++t)kt[n.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<e.length;++t){var o=e.charAt(t);if(o=="=")break;if(o=kt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},yt,ui={decode:function(e){var t;if(yt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
21
|
+
\r \u2028\u2029`;for(yt=Object.create(null),t=0;t<64;++t)yt[r.charAt(t)]=t;for(yt["-"]=62,yt._=63,t=0;t<n.length;++t)yt[n.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<e.length;++t){var o=e.charAt(t);if(o=="=")break;if(o=yt[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,a=0):s<<=6}}switch(a){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=ui.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 ui.decode(e)}},Dt=1e13,rr=(function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,a;for(s=0;s<i;++s)a=n[s]*t+r,a<Dt?r=0:(r=0|a/Dt,a-=r*Dt),n[s]=a;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=Dt,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(Dt+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*Dt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e})(),nc="…",iv=/^(\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)?)?$/,sv=/^(\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 Ut(e,t){return e.length>t&&(e=e.substring(0,t)+nc),e}var Dn=(function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
|
|
22
|
+
`;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,a=t;a<r;)i=this.get(a++),s=this.get(a++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?iv:sv).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,a,o="";n==s&&++t<r;)n=this.get(t);if(a=r-t,a===0)return i?-1:0;if(a>4){for(o=n,a<<=3;((+o^s)&128)==0;)o=+o<<1,--a;o="("+a+` bit)
|
|
23
|
+
`}i&&(n=n-256);for(var u=new rr(n),c=t+1;c<r;++c)u.mulAdd(256,this.get(c));return o+u.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,a="("+s+` bit)
|
|
24
|
+
`,o="",u=t+1;u<r;++u){for(var c=this.get(u),l=u==r-1?i:0,h=7;h>=l;--h)o+=c>>h&1?"1":"0";if(o.length>n)return a+Ut(o,n)}return a+o},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Ut(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
|
|
25
|
+
`;n/=2,i>n&&(r=t+n);for(var a=t;a<r;++a)s+=this.hexByte(this.get(a));return i>n&&(s+=nc),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new rr,a=0,o=t;o<r;++o){var u=this.get(o);if(s.mulAdd(128,u&127),a+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof rr)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return Ut(i,n);s=new rr,a=0}}return a>0&&(i+=".incomplete"),i},e})(),av=(function(){function e(t,r,n,i,s){if(!(i instanceof sa))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ut(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Ut(this.stream.parseStringISO(r,r+n),t);case 30:return Ut(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
|
|
26
|
+
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substring(r,r+n)},e.decode=function(t){var r;t instanceof Dn?r=t:r=new Dn(t,0);var n=new Dn(r),i=new sa(r),s=e.decodeLength(r),a=r.pos,o=a-n.pos,u=null,c=function(){var h=[];if(s!==null){for(var f=a+s;r.pos<f;)h[h.length]=e.decode(r);if(r.pos!=f)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;h[h.length]=p}s=a-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return h};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s)}return new e(n,o,s,i,u)},e})(),sa=(function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new rr;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e})(),ft,ov=0xdeadbeefcafe,aa=(ov&16777215)==15715070,be=[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],cv=(1<<26)/be[be.length-1],J=(function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,a="",o=this.t,u=this.DB-o*this.DB%r;if(o-- >0)for(u<this.DB&&(i=this[o]>>u)>0&&(s=!0,a=Qe(i));o>=0;)u<r?(i=(this[o]&(1<<u)-1)<<r-u,i|=this[--o]>>(u+=this.DB-r)):(i=this[o]>>(u-=r)&n,u<=0&&(u+=this.DB,--o)),i>0&&(s=!0),s&&(a+=Qe(i));return s?a:"0"},e.prototype.negate=function(){var t=Q();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ar(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Q();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new oa(r):n=new ca(r),this.exp(t,n)},e.prototype.clone=function(){var t=Q();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Q();return this.bitwiseTo(t,ev,r),r},e.prototype.or=function(t){var r=Q();return this.bitwiseTo(t,Cr,r),r},e.prototype.xor=function(t){var r=Q();return this.bitwiseTo(t,ra,r),r},e.prototype.andNot=function(t){var r=Q();return this.bitwiseTo(t,na,r),r},e.prototype.not=function(){for(var t=Q(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Q();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Q();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+tv(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=rv(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,Cr)},e.prototype.clearBit=function(t){return this.changeBit(t,na)},e.prototype.flipBit=function(t){return this.changeBit(t,ra)},e.prototype.add=function(t){var r=Q();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Q();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Q();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Q();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Q();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Q(),n=Q();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=ut(1),a;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?a=new oa(r):r.isEven()?a=new lv(r):a=new ca(r);var o=[],u=3,c=i-1,l=(1<<i)-1;if(o[1]=a.convert(this),i>1){var h=Q();for(a.sqrTo(o[1],h);u<=l;)o[u]=Q(),a.mulTo(h,o[u-2],o[u]),u+=2}var f=t.t-1,p,d=!0,g=Q(),v;for(n=Ar(t[f])-1;f>=0;){for(n>=c?p=t[f]>>n-c&l:(p=(t[f]&(1<<n+1)-1)<<c-n,f>0&&(p|=t[f-1]>>this.DB+n-c)),u=i;(p&1)==0;)p>>=1,--u;if((n-=u)<0&&(n+=this.DB,--f),d)o[p].copyTo(s),d=!1;else{for(;u>1;)a.sqrTo(s,g),a.sqrTo(g,s),u-=2;u>0?a.sqrTo(s,g):(v=s,s=g,g=v),a.mulTo(g,o[p],s)}for(;f>=0&&(t[f]&1<<n)==0;)a.sqrTo(s,g),v=s,s=g,g=v,--n<0&&(n=this.DB-1,--f)}return a.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=ut(1),a=ut(0),o=ut(0),u=ut(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),r?((!o.isEven()||!u.isEven())&&(o.addTo(this,o),u.subTo(t,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(o,s),a.subTo(u,a)):(i.subTo(n,i),r&&o.subTo(s,o),u.subTo(a,u))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},e.prototype.pow=function(t){return this.exp(t,new uv)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return r;for(s<a&&(a=s),a>0&&(r.rShiftTo(a,r),n.rShiftTo(a,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=be[be.length-1]){for(r=0;r<be.length;++r)if(n[0]==be[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<be.length;){for(var i=be[r],s=r+1;s<be.length&&i<cv;)i*=be[s++];for(i=n.modInt(i);r<s;)if(i%be[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,a=0;--i>=0;){var o=n==8?+t[i]&255:la(t,i);if(o<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=n,a>=this.DB&&(a-=this.DB)}n==8&&(+t[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,u=this.t-1;u>=0;--u)r[u+a+1]=this[u]>>i|o,o=(this[u]&s)<<n;for(var u=a-1;u>=0;--u)r[u]=0;r[a]=o,r.t=this.t+a+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,a=(1<<i)-1;r[0]=this[n]>>i;for(var o=n+1;o<this.t;++o)r[o-n-1]|=(this[o]&a)<<s,r[o-n]=this[o]>>i;i>0&&(r[this.t-n-1]|=(this.s&a)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r!=null&&r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Q());var a=Q(),o=this.s,u=t.s,c=this.DB-Ar(i[i.t-1]);c>0?(i.lShiftTo(c,a),s.lShiftTo(c,n)):(i.copyTo(a),s.copyTo(n));var l=a.t,h=a[l-1];if(h!=0){var f=h*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,g=1<<this.F2,v=n.t,w=v-l,y=r==null?Q():r;for(a.dlShiftTo(w,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(l,y),y.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--w>=0;){var b=n[--v]==h?this.DM:Math.floor(n[v]*p+(n[v-1]+g)*d);if((n[v]+=a.am(0,b,n,w,0,l))<b)for(a.dlShiftTo(w,y),n.subTo(y,n);n[v]<--b;)n.subTo(y,n)}r!=null&&(n.drShiftTo(l,r),o!=u&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),o<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Q(),i=Q(),s=r.convert(this),a=Ar(t)-1;for(s.copyTo(n);--a>=0;)if(r.sqrTo(n,i),(t&1<<a)>0)r.mulTo(i,s,n);else{var o=n;n=i,i=o}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=ut(n),s=Q(),a=Q(),o="";for(this.divRemTo(i,s,a);s.signum()>0;)o=(n+a.intValue()).toString(t).substring(1)+o,s.divRemTo(i,s,a);return a.intValue().toString(t)+o},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,a=0,o=0,u=0;u<t.length;++u){var c=la(t,u);if(c<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}o=r*o+c,++a>=n&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0)}a>0&&(this.dMultiply(Math.pow(r,a)),this.dAddOffset(o,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Cr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,a=Math.min(t.t,this.t);for(i=0;i<a;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=a;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=a;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>be.length&&(t=be.length);for(var s=Q(),a=0;a<t;++a){s.fromInt(be[Math.floor(Math.random()*be.length)]);var o=s.modPow(i,this);if(o.compareTo(e.ONE)!=0&&o.compareTo(r)!=0){for(var u=1;u++<n&&o.compareTo(r)!=0;)if(o=o.modPowInt(2,this),o.compareTo(e.ONE)==0)return!1;if(o.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Q();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var a=n.getLowestSetBit(),o=i.getLowestSetBit();if(o<0){r(n);return}a<o&&(o=a),o>0&&(n.rShiftTo(o,n),i.rShiftTo(o,i));var u=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(u,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){r(i)},0))};setTimeout(u,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Cr,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var o=[],u=t&7;o.length=(t>>3)+1,r.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},e})(),uv=(function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e})(),oa=(function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),ca=(function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Q();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(J.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Q();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),lv=(function(){function e(t){this.m=t,this.r2=Q(),this.q3=Q(),J.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Q();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})();function Q(){return new J(null)}function ae(e,t){return new J(e,t)}var ua=typeof navigator!="undefined";ua&&aa&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(t,r,n,i,s,a){for(var o=r&32767,u=r>>15;--a>=0;){var c=this[t]&32767,l=this[t++]>>15,h=u*c+l*o;c=o*c+((h&32767)<<15)+n[i]+(s&1073741823),s=(c>>>30)+(h>>>15)+u*l+(s>>>30),n[i++]=c&1073741823}return s},ft=30):ua&&aa&&navigator.appName!="Netscape"?(J.prototype.am=function(t,r,n,i,s,a){for(;--a>=0;){var o=r*this[t++]+n[i]+s;s=Math.floor(o/67108864),n[i++]=o&67108863}return s},ft=26):(J.prototype.am=function(t,r,n,i,s,a){for(var o=r&16383,u=r>>14;--a>=0;){var c=this[t]&16383,l=this[t++]>>14,h=u*c+l*o;c=o*c+((h&16383)<<14)+n[i]+s,s=(c>>28)+(h>>14)+u*l,n[i++]=c&268435455}return s},ft=28);J.prototype.DB=ft;J.prototype.DM=(1<<ft)-1;J.prototype.DV=1<<ft;var Mi=52;J.prototype.FV=Math.pow(2,Mi);J.prototype.F1=Mi-ft;J.prototype.F2=2*ft-Mi;var sn=[],Jt,De;Jt=48;for(De=0;De<=9;++De)sn[Jt++]=De;Jt=97;for(De=10;De<36;++De)sn[Jt++]=De;Jt=65;for(De=10;De<36;++De)sn[Jt++]=De;function la(e,t){var r=sn[e.charCodeAt(t)];return r==null?-1:r}function ut(e){var t=Q();return t.fromInt(e),t}function Ar(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}J.ZERO=ut(0);J.ONE=ut(1);var hv=(function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e})();function fv(){return new hv}var ic=256,Rr,ht=null,Ue;if(ht==null){ht=[],Ue=0;var Or=void 0;if(typeof window!="undefined"&&self.crypto&&self.crypto.getRandomValues){var Nn=new Uint32Array(256);for(self.crypto.getRandomValues(Nn),Or=0;Or<Nn.length;++Or)ht[Ue++]=Nn[Or]&255}var Ir=0,Pr=function(e){if(Ir=Ir||0,Ir>=256||Ue>=ic){self.removeEventListener?self.removeEventListener("mousemove",Pr,!1):self.detachEvent&&self.detachEvent("onmousemove",Pr);return}try{var t=e.x+e.y;ht[Ue++]=t&255,Ir+=1}catch(r){}};typeof window!="undefined"&&(self.addEventListener?self.addEventListener("mousemove",Pr,!1):self.attachEvent&&self.attachEvent("onmousemove",Pr))}function pv(){if(Rr==null){for(Rr=fv();Ue<ic;){var e=Math.floor(65536*Math.random());ht[Ue++]=e&255}for(Rr.init(ht),Ue=0;Ue<ht.length;++Ue)ht[Ue]=0;Ue=0}return Rr.next()}var Jr=(function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=pv()},e})();function li(e){return gv(Sv(dv(e),e.length*8))}function ha(e){for(var t="0123456789abcdef",r="",n=0;n<e.length;n++){var i=e.charCodeAt(n);r+=t.charAt(i>>>4&15)+t.charAt(i&15)}return r}function dv(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<e.length*8;r+=8)t[r>>5]|=(e.charCodeAt(r/8)&255)<<24-r%32;return t}function gv(e){for(var t="",r=0;r<e.length*32;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}function Ke(e,t){return e>>>t|e<<32-t}function sc(e,t){return e>>>t}function mv(e,t,r){return e&t^~e&r}function vv(e,t,r){return e&t^e&r^t&r}function yv(e){return Ke(e,2)^Ke(e,13)^Ke(e,22)}function bv(e){return Ke(e,6)^Ke(e,11)^Ke(e,25)}function _v(e){return Ke(e,7)^Ke(e,18)^sc(e,3)}function wv(e){return Ke(e,17)^Ke(e,19)^sc(e,10)}var xv=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Sv(e,t){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,a,o,u,c,l,h,f,p,d,g;for(e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t,f=0;f<e.length;f+=16){for(i=r[0],s=r[1],a=r[2],o=r[3],u=r[4],c=r[5],l=r[6],h=r[7],p=0;p<64;p++)p<16?n[p]=e[p+f]:n[p]=ge(ge(ge(wv(n[p-2]),n[p-7]),_v(n[p-15])),n[p-16]),d=ge(ge(ge(ge(h,bv(u)),mv(u,c,l)),xv[p]),n[p]),g=ge(yv(i),vv(i,s,a)),h=l,l=c,c=u,u=ge(o,d),o=a,a=s,s=i,i=ge(d,g);r[0]=ge(i,r[0]),r[1]=ge(s,r[1]),r[2]=ge(a,r[2]),r[3]=ge(o,r[3]),r[4]=ge(u,r[4]),r[5]=ge(c,r[5]),r[6]=ge(l,r[6]),r[7]=ge(h,r[7])}return r}function ge(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function Ev(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return ae(s,16)}function Tv(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new Jr,a=[];t>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);r[--t]=a[0]}return r[--t]=2,r[--t]=0,new J(r)}function fa(e,t,r){for(var n="",i=0;n.length<t;)n+=r(String.fromCharCode.apply(String,e.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var Cv=32;function Av(e,t){var r=Cv,n=li;if(e.length+2*r+2>t)throw"Message too long for RSA";var i="",s;for(s=0;s<t-e.length-2*r-2;s+=1)i+="\0";var a=n("")+i+""+e,o=new Array(r);new Jr().nextBytes(o);var u=fa(o,a.length,n),c=[];for(s=0;s<a.length;s+=1)c[s]=a.charCodeAt(s)^u.charCodeAt(s);var l=fa(c,o.length,n),h=[0];for(s=0;s<o.length;s+=1)h[s+1]=o[s]^l.charCodeAt(s);return new J(h.concat(c))}var Rv=(function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=ae(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t,r){typeof r=="undefined"&&(r=Tv);var n=this.n.bitLength()+7>>3,i=r(t,n);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var a=s.toString(16),o=a.length,u=0;u<n*2-o;u++)a="0"+a;return a},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=ae(t,16),this.e=parseInt(r,16),this.d=ae(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,a,o,u){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=ae(t,16),this.e=parseInt(r,16),this.d=ae(n,16),this.p=ae(i,16),this.q=ae(s,16),this.dmp1=ae(a,16),this.dmq1=ae(o,16),this.coeff=ae(u,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Jr,i=t>>1;this.e=parseInt(r,16);for(var s=new J(r,16);;){for(;this.p=new J(t-i,1,n),!(this.p.subtract(J.ONE).gcd(s).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(i,1,n),!(this.q.subtract(J.ONE).gcd(s).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(J.ONE),u=this.q.subtract(J.ONE),c=o.multiply(u);if(c.gcd(s).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=ae(t,16),n=this.doPrivate(r);return n==null?null:Ov(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Jr,s=t>>1;this.e=parseInt(r,16);var a=new J(r,16),o=this,u=function(){var c=function(){if(o.p.compareTo(o.q)<=0){var f=o.p;o.p=o.q,o.q=f}var p=o.p.subtract(J.ONE),d=o.q.subtract(J.ONE),g=p.multiply(d);g.gcd(a).compareTo(J.ONE)==0?(o.n=o.p.multiply(o.q),o.d=a.modInverse(g),o.dmp1=o.d.mod(p),o.dmq1=o.d.mod(d),o.coeff=o.q.modInverse(o.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){o.q=Q(),o.q.fromNumberAsync(s,1,i,function(){o.q.subtract(J.ONE).gcda(a,function(f){f.compareTo(J.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},h=function(){o.p=Q(),o.p.fromNumberAsync(t-s,1,i,function(){o.p.subtract(J.ONE).gcda(a,function(f){f.compareTo(J.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(u,0)},e.prototype.sign=function(t,r,n){var i=Iv(n),s=i+r(t).toString(),a=this.n.bitLength()/4,o=Ev(s,a);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;for(var c=u.toString(16),l=c.length,h=0;h<a-l;h++)c="0"+c;return c},e.prototype.verify=function(t,r,n){var i=ae(r,16),s=this.doPublic(i);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),o=Pv(a);return o==n(t).toString()},e})();function Ov(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Mr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Iv(e){return Mr[e]||""}function Pv(e){for(var t in Mr)if(Mr.hasOwnProperty(t)){var r=Mr[t],n=r.length;if(e.substring(0,n)==r)return e.substring(n)}return e}function fe(e,t,r){if(!t||!e)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}/**
|
|
27
|
+
* @fileOverview
|
|
28
|
+
* @name asn1-1.0.js
|
|
29
|
+
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
30
|
+
* @version asn1 1.0.13 (2017-Jun-02)
|
|
31
|
+
* @since jsrsasign 2.1
|
|
32
|
+
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
33
|
+
*/var k={};(typeof k.asn1=="undefined"||!k.asn1)&&(k.asn1={});k.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.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substring(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var a=new J(i,16),o=a.xor(e).add(J.ONE);t=o.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=k,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,h=r.DERNumericString,f=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,g=r.DERUTCTime,v=r.DERGeneralizedTime,w=r.DERSequence,y=r.DERSet,b=r.DERTaggedObject,x=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var _=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":")==-1)throw"undefined key: "+_;if(_=="bool")return new n(e[_]);if(_=="int")return new i(e[_]);if(_=="bitstr")return new s(e[_]);if(_=="octstr")return new a(e[_]);if(_=="null")return new o(e[_]);if(_=="oid")return new u(e[_]);if(_=="enum")return new c(e[_]);if(_=="utf8str")return new l(e[_]);if(_=="numstr")return new h(e[_]);if(_=="prnstr")return new f(e[_]);if(_=="telstr")return new p(e[_]);if(_=="ia5str")return new d(e[_]);if(_=="utctime")return new g(e[_]);if(_=="gentime")return new v(e[_]);if(_=="seq"){for(var A=e[_],I=[],V=0;V<A.length;V++){var E=x(A[V]);I.push(E)}return new w({array:I})}if(_=="set"){for(var A=e[_],I=[],V=0;V<A.length;V++){var E=x(A[V]);I.push(E)}return new y({array:I})}if(_=="tag"){var C=e[_];if(Object.prototype.toString.call(C)==="[object Array]"&&C.length==3){var j=x(C[2]);return new b({tag:C[0],explicit:C[1],obj:j})}else{var B={};if(C.explicit!==void 0&&(B.explicit=C.explicit),C.tag!==void 0&&(B.tag=C.tag),C.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=x(C.obj),new b(B)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};k.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substring(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",a=2;a<e.length;a+=2){var o=parseInt(e.substring(a,a+2),16),u=("00000000"+o.toString(2)).slice(-8);if(s=s+u.substring(1,8),u.substring(0,1)=="0"){var c=new J(s,2);i=i+"."+c.toString(10),s=""}}return i};k.asn1.ASN1Util.oidIntToHex=function(e){var t=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},r=function(o){var u="",c=new J(o,10),l=c.toString(2),h=7-l.length%7;h==7&&(h=0);for(var f="",p=0;p<h;p++)f+="0";l=f+l;for(var p=0;p<l.length-1;p+=7){var d=l.substring(p,p+7);p!=l.length-7&&(d="1"+d),u+=t(parseInt(d,2))}return u};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);return n};k.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};k.asn1.DERAbstractString=function(e){k.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!="undefined"&&(typeof e=="string"?this.setString(e):typeof e.str!="undefined"?this.setString(e.str):typeof e.hex!="undefined"&&this.setStringHex(e.hex))};fe(k.asn1.DERAbstractString,k.asn1.ASN1Object);k.asn1.DERAbstractTime=function(e){k.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),a=String(s.getFullYear());r=="utc"&&(a=a.substring(2,4));var o=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),h=i(String(s.getSeconds()),2),f=a+o+u+c+l+h;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),f=f+"."+d}}return f+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,a){var o=new Date(Date.UTC(t,r-1,n,i,s,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};fe(k.asn1.DERAbstractTime,k.asn1.ASN1Object);k.asn1.DERAbstractStructured=function(e){k.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!="undefined"&&typeof e.array!="undefined"&&(this.asn1Array=e.array)};fe(k.asn1.DERAbstractStructured,k.asn1.ASN1Object);k.asn1.DERBoolean=function(){k.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};fe(k.asn1.DERBoolean,k.asn1.ASN1Object);k.asn1.DERInteger=function(e){k.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e.bigint!="undefined"?this.setByBigInteger(e.bigint):typeof e.int!="undefined"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex!="undefined"&&this.setValueHex(e.hex))};fe(k.asn1.DERInteger,k.asn1.ASN1Object);k.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=k.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}k.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var a=r.substring(i,i+8),o=parseInt(a,2).toString(16);o.length==1&&(o="0"+o),s+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex!="undefined"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin!="undefined"?this.setByBinaryString(e.bin):typeof e.array!="undefined"&&this.setByBooleanArray(e.array))};fe(k.asn1.DERBitString,k.asn1.ASN1Object);k.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=k.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}k.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};fe(k.asn1.DEROctetString,k.asn1.DERAbstractString);k.asn1.DERNull=function(){k.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};fe(k.asn1.DERNull,k.asn1.ASN1Object);k.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new J(n,10),a=s.toString(2),o=7-a.length%7;o==7&&(o=0);for(var u="",c=0;c<o;c++)u+="0";a=u+a;for(var c=0;c<a.length-1;c+=7){var l=a.substring(c,c+7);c!=a.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};k.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),a=parseInt(s[0])*40+parseInt(s[1]);i+=t(a),s.splice(0,2);for(var o=0;o<s.length;o++)i+=r(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=k.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))};fe(k.asn1.DERObjectIdentifier,k.asn1.ASN1Object);k.asn1.DEREnumerated=function(e){k.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=k.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e.int!="undefined"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex!="undefined"&&this.setValueHex(e.hex))};fe(k.asn1.DEREnumerated,k.asn1.ASN1Object);k.asn1.DERUTF8String=function(e){k.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};fe(k.asn1.DERUTF8String,k.asn1.DERAbstractString);k.asn1.DERNumericString=function(e){k.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};fe(k.asn1.DERNumericString,k.asn1.DERAbstractString);k.asn1.DERPrintableString=function(e){k.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};fe(k.asn1.DERPrintableString,k.asn1.DERAbstractString);k.asn1.DERTeletexString=function(e){k.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};fe(k.asn1.DERTeletexString,k.asn1.DERAbstractString);k.asn1.DERIA5String=function(e){k.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};fe(k.asn1.DERIA5String,k.asn1.DERAbstractString);k.asn1.DERUTCTime=function(e){k.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=="undefined"&&typeof this.s=="undefined"&&(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))};fe(k.asn1.DERUTCTime,k.asn1.DERAbstractTime);k.asn1.DERGeneralizedTime=function(e){k.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))};fe(k.asn1.DERGeneralizedTime,k.asn1.DERAbstractTime);k.asn1.DERSequence=function(e){k.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}};fe(k.asn1.DERSequence,k.asn1.DERAbstractStructured);k.asn1.DERSet=function(e){k.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e!="undefined"&&typeof e.sortflag!="undefined"&&e.sortflag==!1&&(this.sortFlag=!1)};fe(k.asn1.DERSet,k.asn1.DERAbstractStructured);k.asn1.DERTaggedObject=function(e){k.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e.tag!="undefined"&&(this.hT=e.tag),typeof e.explicit!="undefined"&&(this.isExplicit=e.explicit),typeof e.obj!="undefined"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};fe(k.asn1.DERTaggedObject,k.asn1.ASN1Object);var kv=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pa=(function(e){kv(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=s.test(r)?nv.decode(r):ui.unarmor(r),o=av.decode(a);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){n=o.sub[1].getHexStringValue(),this.n=ae(n,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=o.sub[3].getHexStringValue();this.d=ae(u,16);var c=o.sub[4].getHexStringValue();this.p=ae(c,16);var l=o.sub[5].getHexStringValue();this.q=ae(l,16);var h=o.sub[6].getHexStringValue();this.dmp1=ae(h,16);var f=o.sub[7].getHexStringValue();this.dmq1=ae(f,16);var p=o.sub[8].getHexStringValue();this.coeff=ae(p,16)}else if(o.sub.length===2)if(o.sub[0].sub){var d=o.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=ae(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=o.sub[0].getHexStringValue(),this.n=ae(n,16),i=o.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(v){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new k.asn1.DERInteger({int:0}),new k.asn1.DERInteger({bigint:this.n}),new k.asn1.DERInteger({int:this.e}),new k.asn1.DERInteger({bigint:this.d}),new k.asn1.DERInteger({bigint:this.p}),new k.asn1.DERInteger({bigint:this.q}),new k.asn1.DERInteger({bigint:this.dmp1}),new k.asn1.DERInteger({bigint:this.dmq1}),new k.asn1.DERInteger({bigint:this.coeff})]},n=new k.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return sr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new k.asn1.DERSequence({array:[new k.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new k.asn1.DERNull]}),n=new k.asn1.DERSequence({array:[new k.asn1.DERInteger({bigint:this.n}),new k.asn1.DERInteger({int:this.e})]}),i=new k.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new k.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return sr(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
34
|
+
?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
|
|
35
|
+
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
36
|
+
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
37
|
+
`,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
38
|
+
`;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
39
|
+
`,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t})(Rv),$n,Dv=typeof process!="undefined"?($n=Vu)===null||$n===void 0?void 0:$n.npm_package_version:void 0,Nv=(function(){function e(t){t===void 0&&(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=t.key||null}return e.prototype.setKey=function(t){t?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new pa(t)):!this.key&&this.log&&console.error("A key was not set.")},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(ia(t))}catch(r){return!1}},e.prototype.encrypt=function(t){try{return sr(this.getKey().encrypt(t))}catch(r){return!1}},e.prototype.encryptOAEP=function(t){try{return sr(this.getKey().encrypt(t,Av))}catch(r){return!1}},e.prototype.sign=function(t,r,n){r===void 0&&(r=function(i){return i}),n===void 0&&(n="");try{return sr(this.getKey().sign(t,r,n))}catch(i){return!1}},e.prototype.signSha256=function(t){return this.sign(t,function(r){return ha(li(r))},"sha256")},e.prototype.verify=function(t,r,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(t,ia(r),n)}catch(i){return!1}},e.prototype.verifySha256=function(t,r){return this.verify(t,r,function(n){return ha(li(n))})},e.prototype.getKey=function(t){if(!this.key){if(this.key=new pa,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 $v="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function da(e,t=$v){const r=new Nv;return r.setPrivateKey(t),r.decrypt(e)}const ac=/^(http|https):\/\/[\w.:\-@]*/;function hr(e){return ac.test(e)}var Bv={exports:{}};/*! @preserve
|
|
40
|
+
* numeral.js
|
|
41
|
+
* version : 2.0.6
|
|
42
|
+
* author : Adam Draper
|
|
43
|
+
* license : MIT
|
|
44
|
+
* http://adamwdraper.github.com/Numeral-js/
|
|
45
|
+
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(_e,function(){var t,r,n="2.0.6",i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return t=function(c){var l,h,f,p;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c=="undefined")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(o.zeroFormat&&c===o.zeroFormat)l=0;else if(o.nullFormat&&c===o.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(h in i)if(p=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,p&&c.match(p)){f=i[h].unformat;break}f=f||t._.stringToNumber,l=f(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,h){var f=s[t.options.currentLocale],p=!1,d=!1,g=0,v="",w=1e12,y=1e9,b=1e6,x=1e3,S="",_=!1,A,I,V,E,C,j,B;if(c=c||0,I=Math.abs(c),t._.includes(l,"(")?(p=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(C=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(A=l.match(/a(k|m|b|t)?/),A=A?A[1]:!1,t._.includes(l," a")&&(v=" "),l=l.replace(new RegExp(v+"a[kmbt]?"),""),I>=w&&!A||A==="t"?(v+=f.abbreviations.trillion,c=c/w):I<w&&I>=y&&!A||A==="b"?(v+=f.abbreviations.billion,c=c/y):I<y&&I>=b&&!A||A==="m"?(v+=f.abbreviations.million,c=c/b):(I<b&&I>=x&&!A||A==="k")&&(v+=f.abbreviations.thousand,c=c/x)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],E=l.split(".")[1],j=l.indexOf(","),g=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),S=t._.toFixed(c,E[0].length+E[1].length,h,E[1].length)):S=t._.toFixed(c,E.length,h),V=S.split(".")[0],t._.includes(S,".")?S=f.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,h),v&&!A&&Number(V)>=1e3&&v!==f.abbreviations.trillion)switch(V=String(Number(V)/1e3),v){case f.abbreviations.thousand:v=f.abbreviations.million;break;case f.abbreviations.million:v=f.abbreviations.billion;break;case f.abbreviations.billion:v=f.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),_=!0),V.length<g)for(var L=g-V.length;L>0;L--)V="0"+V;return j>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),l.indexOf(".")===0&&(V=""),B=V+S+(v||""),p?B=(p&&_?"(":"")+B+(p&&_?")":""):C>=0?B=C===0?(_?"-":"+")+B:B+(_?"-":"+"):_&&(B="-"+B),B},stringToNumber:function(c){var l=s[o.currentLocale],h=c,f={thousand:3,million:6,billion:9,trillion:12},p,d,g;if(o.zeroFormat&&c===o.zeroFormat)d=0;else if(o.nullFormat&&c===o.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(p in f)if(g=new RegExp("[^a-zA-Z]"+l.abbreviations[p]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),h.match(g)){d*=Math.pow(10,f[p]);break}d*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),d*=Number(c)}return d},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,h){return c.slice(0,h)+l+c.slice(h)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var h=Object(c),f=h.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<f&&!(p in h);)p++;if(p>=f)throw new TypeError("Reduce of empty array with no initial value");d=h[p++]}for(;p<f;p++)p in h&&(d=l(d,h[p],p,h));return d},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,h){var f=r.multiplier(h);return l>f?l:f},1)},toFixed:function(c,l,h,f){var p=c.toString().split("."),d=l-(f||0),g,v,w,y;return p.length===2?g=Math.min(Math.max(p[1].length,d),l):g=d,w=Math.pow(10,g),y=(h(c+"e+"+g)/w).toFixed(g),f>l-g&&(v=new RegExp("\\.?0{1,"+(f-(l-g))+"}$"),y=y.replace(v,"")),y}},t.options=o,t.formats=i,t.locales=s,t.locale=function(c){return c&&(o.currentLocale=c.toLowerCase()),o.currentLocale},t.localeData=function(c){if(!c)return s[o.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},t.reset=function(){for(var c in a)o[c]=a[c]},t.zeroFormat=function(c){o.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){o.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){o.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,l,h){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=h,h},t.validate=function(c,l){var h,f,p,d,g,v,w,y;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{w=t.localeData(l)}catch(b){w=t.localeData(t.locale())}return p=w.currency.symbol,g=w.abbreviations,h=w.delimiters.decimal,w.delimiters.thousands==="."?f="\\.":f=w.delimiters.thousands,y=c.match(/^[^\d]+/),y!==null&&(c=c.substr(1),y[0]!==p)||(y=c.match(/[^\d]+$/),y!==null&&(c=c.slice(0,-1),y[0]!==g.thousand&&y[0]!==g.million&&y[0]!==g.billion&&y[0]!==g.trillion))?!1:(v=new RegExp(f+"{2}"),c.match(/[^\d.,]/g)?!1:(d=c.split(h),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(v)&&!!d[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var h=this._value,f=c||o.defaultFormat,p,d,g;if(l=l||Math.round,h===0&&o.zeroFormat!==null)d=o.zeroFormat;else if(h===null&&o.nullFormat!==null)d=o.nullFormat;else{for(p in i)if(f.match(i[p].regexps.format)){g=i[p].format;break}g=g||t._.numberToFormat,d=g(h,f,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,g){return f+Math.round(l*p)}return this._value=r.reduce([this._value,c],h,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,g){return f-Math.round(l*p)}return this._value=r.reduce([c],h,Math.round(this._value*l))/l,this},multiply:function(c){function l(h,f,p,d){var g=r.correctionFactor(h,f);return Math.round(h*g)*Math.round(f*g)/Math.round(g*g)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(h,f,p,d){var g=r.correctionFactor(h,f);return Math.round(h*g)/Math.round(f*g)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,h){var f=t._.includes(l," BPS")?" ":"",p;return c=c*1e4,l=l.replace(/\s?BPS/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"BPS"),p=p.join("")):p=p+f+"BPS",p},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})})(),(function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(l.suffixes.filter(function(p){return c.suffixes.indexOf(p)<0})),f=h.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(p,d,g){var v,w=t._.includes(d,"ib")?l:c,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",b,x,S;for(d=d.replace(/\s?i?b/,""),b=0;b<=w.suffixes.length;b++)if(x=Math.pow(w.base,b),S=Math.pow(w.base,b+1),p===null||p===0||p>=x&&p<S){y+=w.suffixes[b],x>0&&(p=p/x);break}return v=t._.numberToFormat(p,d,g),v+y},unformat:function(p){var d=t._.stringToNumber(p),g,v;if(d){for(g=c.suffixes.length-1;g>=0;g--){if(t._.includes(p,c.suffixes[g])){v=Math.pow(c.base,g);break}if(t._.includes(p,l.suffixes[g])){v=Math.pow(l.base,g);break}}d*=v||1}return d}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,v;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(c,l,h),c>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v<p.before.length;v++)switch(g=p.before[v],g){case"$":d=t._.insert(d,f.currency.symbol,v);break;case" ":d=t._.insert(d," ",v+f.currency.symbol.length-1);break}for(v=p.after.length-1;v>=0;v--)switch(g=p.after[v],g){case"$":d=v===p.after.length-1?d+f.currency.symbol:t._.insert(d,f.currency.symbol,-(p.after.length-(1+v)));break;case" ":d=v===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+v)+f.currency.symbol.length-1));break}return d}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,h){var f,p=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",d=p.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(d[0]),l,h),f+"e"+d[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(l[0]),f=Number(l[1]);f=t._.includes(c,"e-")?f*=-1:f;function p(d,g,v,w){var y=t._.correctionFactor(d,g),b=d*y*(g*y)/(y*y);return b}return t._.reduce([h,Math.pow(10,f)],p,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=f.ordinal(c),p=t._.numberToFormat(c,l,h),p+d}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,h){var f=t._.includes(l," %")?" ":"",p;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"%"),p=p.join("")):p=p+f+"%",p},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,h){var f=Math.floor(c/60/60),p=Math.floor((c-f*60*60)/60),d=Math.round(c-f*60*60-p*60);return f+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(c){var l=c.split(":"),h=0;return l.length===3?(h=h+Number(l[0])*60*60,h=h+Number(l[1])*60,h=h+Number(l[2])):l.length===2&&(h=h+Number(l[0])*60,h=h+Number(l[1])),Number(h)}})})(),t})})(Bv);var oc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(_e,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",c="day",l="week",h="month",f="quarter",p="year",d="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|YYYY|YY|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,y={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(L){var P=["th","st","nd","rd"],N=L%100;return"["+L+(P[(N-20)%10]||P[N]||P[0])+"]"}},b=function(L,P,N){var U=String(L);return!U||U.length>=P?L:""+Array(P+1-U.length).join(N)+L},x={s:b,z:function(L){var P=-L.utcOffset(),N=Math.abs(P),U=Math.floor(N/60),F=N%60;return(P<=0?"+":"-")+b(U,2,"0")+":"+b(F,2,"0")},m:function L(P,N){if(P.date()<N.date())return-L(N,P);var U=12*(N.year()-P.year())+(N.month()-P.month()),F=P.clone().add(U,h),W=N-F<0,q=P.clone().add(U+(W?-1:1),h);return+(-(U+(N-F)/(W?F-q:q-F))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:p,w:l,d:c,D:d,h:u,m:o,s:a,ms:s,Q:f}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},S="en",_={};_[S]=y;var A="$isDayjsObject",I=function(L){return L instanceof j||!(!L||!L[A])},V=function L(P,N,U){var F;if(!P)return S;if(typeof P=="string"){var W=P.toLowerCase();_[W]&&(F=W),N&&(_[W]=N,F=W);var q=P.split("-");if(!F&&q.length>1)return L(q[0])}else{var O=P.name;_[O]=P,F=O}return!U&&F&&(S=F),F||!U&&S},E=function(L,P){if(I(L))return L.clone();var N=typeof P=="object"?P:{};return N.date=L,N.args=arguments,new j(N)},C=x;C.l=V,C.i=I,C.w=function(L,P){return E(L,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var j=(function(){function L(N){this.$L=V(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[A]=!0}var P=L.prototype;return P.parse=function(N){this.$d=(function(U){var F=U.date,W=U.utc;if(F===null)return new Date(NaN);if(C.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var q=F.match(v);if(q){var O=q[2]-1||0,$=(q[7]||"0").substring(0,3);return W?new Date(Date.UTC(q[1],O,q[3]||1,q[4]||0,q[5]||0,q[6]||0,$)):new Date(q[1],O,q[3]||1,q[4]||0,q[5]||0,q[6]||0,$)}}return new Date(F)})(N),this.init()},P.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},P.$utils=function(){return C},P.isValid=function(){return this.$d.toString()!==g},P.isSame=function(N,U){var F=E(N);return this.startOf(U)<=F&&F<=this.endOf(U)},P.isAfter=function(N,U){return E(N)<this.startOf(U)},P.isBefore=function(N,U){return this.endOf(U)<E(N)},P.$g=function(N,U,F){return C.u(N)?this[U]:this.set(F,N)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(N,U){var F=this,W=!!C.u(U)||U,q=C.p(N),O=function(Se,pe){var Ce=C.w(F.$u?Date.UTC(F.$y,pe,Se):new Date(F.$y,pe,Se),F);return W?Ce:Ce.endOf(c)},$=function(Se,pe){return C.w(F.toDate()[Se].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(pe)),F)},R=this.$W,D=this.$M,ne=this.$D,Te="set"+(this.$u?"UTC":"");switch(q){case p:return W?O(1,0):O(31,11);case h:return W?O(1,D):O(0,D+1);case l:var le=this.$locale().weekStart||0,re=(R<le?R+7:R)-le;return O(W?ne-re:ne+(6-re),D);case c:case d:return $(Te+"Hours",0);case u:return $(Te+"Minutes",1);case o:return $(Te+"Seconds",2);case a:return $(Te+"Milliseconds",3);default:return this.clone()}},P.endOf=function(N){return this.startOf(N,!1)},P.$set=function(N,U){var F,W=C.p(N),q="set"+(this.$u?"UTC":""),O=(F={},F[c]=q+"Date",F[d]=q+"Date",F[h]=q+"Month",F[p]=q+"FullYear",F[u]=q+"Hours",F[o]=q+"Minutes",F[a]=q+"Seconds",F[s]=q+"Milliseconds",F)[W],$=W===c?this.$D+(U-this.$W):U;if(W===h||W===p){var R=this.clone().set(d,1);R.$d[O]($),R.init(),this.$d=R.set(d,Math.min(this.$D,R.daysInMonth())).$d}else O&&this.$d[O]($);return this.init(),this},P.set=function(N,U){return this.clone().$set(N,U)},P.get=function(N){return this[C.p(N)]()},P.add=function(N,U){var F,W=this;N=Number(N);var q=C.p(U),O=function(D){var ne=E(W);return C.w(ne.date(ne.date()+Math.round(D*N)),W)};if(q===h)return this.set(h,this.$M+N);if(q===p)return this.set(p,this.$y+N);if(q===c)return O(1);if(q===l)return O(7);var $=(F={},F[o]=n,F[u]=i,F[a]=r,F)[q]||1,R=this.$d.getTime()+N*$;return C.w(R,this)},P.subtract=function(N,U){return this.add(-1*N,U)},P.format=function(N){var U=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var W=N||"YYYY-MM-DDTHH:mm:ssZ",q=C.z(this),O=this.$H,$=this.$m,R=this.$M,D=F.weekdays,ne=F.months,Te=F.meridiem,le=function(pe,Ce,ot,It){return pe&&(pe[Ce]||pe(U,W))||ot[Ce].slice(0,It)},re=function(pe){return C.s(O%12||12,pe,"0")},Se=Te||function(pe,Ce,ot){var It=pe<12?"AM":"PM";return ot?It.toLowerCase():It};return W.replace(w,(function(pe,Ce){return Ce||(function(ot){switch(ot){case"YY":return String(U.$y).slice(-2);case"YYYY":return C.s(U.$y,4,"0");case"M":return R+1;case"MM":return C.s(R+1,2,"0");case"MMM":return le(F.monthsShort,R,ne,3);case"MMMM":return le(ne,R);case"D":return U.$D;case"DD":return C.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return le(F.weekdaysMin,U.$W,D,2);case"ddd":return le(F.weekdaysShort,U.$W,D,3);case"dddd":return D[U.$W];case"H":return String(O);case"HH":return C.s(O,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return Se(O,$,!0);case"A":return Se(O,$,!1);case"m":return String($);case"mm":return C.s($,2,"0");case"s":return String(U.$s);case"ss":return C.s(U.$s,2,"0");case"SSS":return C.s(U.$ms,3,"0");case"Z":return q}return null})(pe)||q.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(N,U,F){var W,q=this,O=C.p(U),$=E(N),R=($.utcOffset()-this.utcOffset())*n,D=this-$,ne=function(){return C.m(q,$)};switch(O){case p:W=ne()/12;break;case h:W=ne();break;case f:W=ne()/3;break;case l:W=(D-R)/6048e5;break;case c:W=(D-R)/864e5;break;case u:W=D/i;break;case o:W=D/n;break;case a:W=D/r;break;default:W=D}return F?W:C.a(W)},P.daysInMonth=function(){return this.endOf(h).$D},P.$locale=function(){return _[this.$L]},P.locale=function(N,U){if(!N)return this.$L;var F=this.clone(),W=V(N,U,!0);return W&&(F.$L=W),F},P.clone=function(){return C.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},L})(),B=j.prototype;return E.prototype=B,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",c],["$M",h],["$y",p],["$D",d]].forEach((function(L){B[L[1]]=function(P){return this.$g(P,L[0],L[1])}})),E.extend=function(L,P){return L.$i||(L(P,j,E),L.$i=!0),E},E.locale=V,E.isDayjs=I,E.unix=function(L){return E(1e3*L)},E.en=_[S],E.Ls=_,E.p={},E}))})(oc);var cc=oc.exports;const Lv=qm(cc);var jv={exports:{}};(function(e,t){(function(r,n){e.exports=n(cc)})(_e,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,o){return o==="W"?a+"周":a+"日"},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(a,o){var u=100*a+o;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s}))})(jv);Lv.locale("zh-cn");function Mv(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Yr(e=0){return M(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Vv(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Fv(e,t){return Array.from(new Set(e))}function ga(e){return e?[].concat(e):[]}function Bn(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Uv(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}var uc={exports:{}};(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function a(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var o={compressToBase64:function(u){if(u==null)return"";var c=o._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:o._decompress(u.length,32,function(c){return a(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":o._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:o._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=o.compress(u),l=new Uint8Array(c.length*2),h=0,f=c.length;h<f;h++){var p=c.charCodeAt(h);l[h*2]=p>>>8,l[h*2+1]=p%256}return l},decompressFromUint8Array:function(u){if(u==null)return o.decompress(u);for(var c=new Array(u.length/2),l=0,h=c.length;l<h;l++)c[l]=u[l*2]*256+u[l*2+1];var f=[];return c.forEach(function(p){f.push(r(p))}),o.decompress(f.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":o._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),o._decompress(u.length,32,function(c){return a(i,u.charAt(c))}))},compress:function(u){return o._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var h,f,p={},d={},g="",v="",w="",y=2,b=3,x=2,S=[],_=0,A=0,I;for(I=0;I<u.length;I+=1)if(g=u.charAt(I),Object.prototype.hasOwnProperty.call(p,g)||(p[g]=b++,d[g]=!0),v=w+g,Object.prototype.hasOwnProperty.call(p,v))w=v;else{if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(h=0;h<x;h++)_=_<<1,A==c-1?(A=0,S.push(l(_)),_=0):A++;for(f=w.charCodeAt(0),h=0;h<8;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1}else{for(f=1,h=0;h<x;h++)_=_<<1|f,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=0;for(f=w.charCodeAt(0),h=0;h<16;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1}y--,y==0&&(y=Math.pow(2,x),x++),delete d[w]}else for(f=p[w],h=0;h<x;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1;y--,y==0&&(y=Math.pow(2,x),x++),p[v]=b++,w=String(g)}if(w!==""){if(Object.prototype.hasOwnProperty.call(d,w)){if(w.charCodeAt(0)<256){for(h=0;h<x;h++)_=_<<1,A==c-1?(A=0,S.push(l(_)),_=0):A++;for(f=w.charCodeAt(0),h=0;h<8;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1}else{for(f=1,h=0;h<x;h++)_=_<<1|f,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=0;for(f=w.charCodeAt(0),h=0;h<16;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1}y--,y==0&&(y=Math.pow(2,x),x++),delete d[w]}else for(f=p[w],h=0;h<x;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1;y--,y==0&&(y=Math.pow(2,x),x++)}for(f=2,h=0;h<x;h++)_=_<<1|f&1,A==c-1?(A=0,S.push(l(_)),_=0):A++,f=f>>1;for(;;)if(_=_<<1,A==c-1){S.push(l(_));break}else A++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:o._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var h=[],f=4,p=4,d=3,g="",v=[],w,y,b,x,S,_,A,I={val:l(0),position:c,index:1};for(w=0;w<3;w+=1)h[w]=w;for(b=0,S=Math.pow(2,2),_=1;_!=S;)x=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),b|=(x>0?1:0)*_,_<<=1;switch(b){case 0:for(b=0,S=Math.pow(2,8),_=1;_!=S;)x=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),b|=(x>0?1:0)*_,_<<=1;A=r(b);break;case 1:for(b=0,S=Math.pow(2,16),_=1;_!=S;)x=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),b|=(x>0?1:0)*_,_<<=1;A=r(b);break;case 2:return""}for(h[3]=A,y=A,v.push(A);;){if(I.index>u)return"";for(b=0,S=Math.pow(2,d),_=1;_!=S;)x=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),b|=(x>0?1:0)*_,_<<=1;switch(A=b){case 0:for(b=0,S=Math.pow(2,8),_=1;_!=S;)x=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),b|=(x>0?1:0)*_,_<<=1;h[p++]=r(b),A=p-1,f--;break;case 1:for(b=0,S=Math.pow(2,16),_=1;_!=S;)x=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=l(I.index++)),b|=(x>0?1:0)*_,_<<=1;h[p++]=r(b),A=p-1,f--;break;case 2:return v.join("")}if(f==0&&(f=Math.pow(2,d),d++),h[A])g=h[A];else if(A===p)g=y+y.charAt(0);else return null;v.push(g),h[p++]=y+g.charAt(0),f--,y=g,f==0&&(f=Math.pow(2,d),d++)}}};return o})();e!=null?e.exports=t:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(uc);var lc=uc.exports;function Hv(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var a=e.charCodeAt(s);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var o=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(o--,o===0){s++;break}}else if(e[s]==="("&&(o++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(o)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function hc(e,t){t===void 0&&(t={});for(var r=Hv(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(Vt(t.delimiter||"/#?"),"]+?"),a=[],o=0,u=0,c="",l=function(_){if(u<r.length&&r[u].type===_)return r[u++].value},h=function(_){var A=l(_);if(A!==void 0)return A;var I=r[u],V=I.type,E=I.index;throw new TypeError("Unexpected ".concat(V," at ").concat(E,", expected ").concat(_))},f=function(){for(var _="",A;A=l("CHAR")||l("ESCAPED_CHAR");)_+=A;return _};u<r.length;){var p=l("CHAR"),d=l("NAME"),g=l("PATTERN");if(d||g){var v=p||"";i.indexOf(v)===-1&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:d||o++,prefix:v,suffix:"",pattern:g||s,modifier:l("MODIFIER")||""});continue}var w=p||l("ESCAPED_CHAR");if(w){c+=w;continue}c&&(a.push(c),c="");var y=l("OPEN");if(y){var v=f(),b=l("NAME")||"",x=l("PATTERN")||"",S=f();h("CLOSE"),a.push({name:b||(x?o++:""),pattern:b&&!x?s:x,prefix:v,suffix:S,modifier:l("MODIFIER")||""});continue}h("END")}return a}function qv(e,t){return zv(hc(e,t),t)}function zv(e,t){t===void 0&&(t={});var r=Vi(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,a=s===void 0?!0:s,o=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var h=e[l];if(typeof h=="string"){c+=h;continue}var f=u?u[h.name]:void 0,p=h.modifier==="?"||h.modifier==="*",d=h.modifier==="*"||h.modifier==="+";if(Array.isArray(f)){if(!d)throw new TypeError('Expected "'.concat(h.name,'" to not repeat, but got an array'));if(f.length===0){if(p)continue;throw new TypeError('Expected "'.concat(h.name,'" to not be empty'))}for(var g=0;g<f.length;g++){var v=i(f[g],h);if(a&&!o[l].test(v))throw new TypeError('Expected all "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(v,'"'));c+=h.prefix+v+h.suffix}continue}if(typeof f=="string"||typeof f=="number"){var v=i(String(f),h);if(a&&!o[l].test(v))throw new TypeError('Expected "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(v,'"'));c+=h.prefix+v+h.suffix;continue}if(!p){var w=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(w))}}return c}}function Wv(e,t){var r=[],n=Fi(e,r,t);return Gv(n,r,t)}function Gv(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var a=e.exec(s);if(!a)return!1;for(var o=a[0],u=a.index,c=Object.create(null),l=function(f){if(a[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?c[p.name]=a[f].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):c[p.name]=i(a[f],p)},h=1;h<a.length;h++)l(h);return{path:o,index:u,params:c}}}function Vt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Vi(e){return e&&e.sensitive?"":"i"}function Kv(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function Jv(e,t,r){var n=e.map(function(i){return Fi(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Vi(r))}function Yv(e,t,r){return Zv(hc(e,r),t,r)}function Zv(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,a=s===void 0?!0:s,o=r.end,u=o===void 0?!0:o,c=r.encode,l=c===void 0?function(E){return E}:c,h=r.delimiter,f=h===void 0?"/#?":h,p=r.endsWith,d=p===void 0?"":p,g="[".concat(Vt(d),"]|$"),v="[".concat(Vt(f),"]"),w=a?"^":"",y=0,b=e;y<b.length;y++){var x=b[y];if(typeof x=="string")w+=Vt(l(x));else{var S=Vt(l(x.prefix)),_=Vt(l(x.suffix));if(x.pattern)if(t&&t.push(x),S||_)if(x.modifier==="+"||x.modifier==="*"){var A=x.modifier==="*"?"?":"";w+="(?:".concat(S,"((?:").concat(x.pattern,")(?:").concat(_).concat(S,"(?:").concat(x.pattern,"))*)").concat(_,")").concat(A)}else w+="(?:".concat(S,"(").concat(x.pattern,")").concat(_,")").concat(x.modifier);else x.modifier==="+"||x.modifier==="*"?w+="((?:".concat(x.pattern,")").concat(x.modifier,")"):w+="(".concat(x.pattern,")").concat(x.modifier);else w+="(?:".concat(S).concat(_,")").concat(x.modifier)}}if(u)i||(w+="".concat(v,"?")),w+=r.endsWith?"(?=".concat(g,")"):"$";else{var I=e[e.length-1],V=typeof I=="string"?v.indexOf(I[I.length-1])>-1:I===void 0;i||(w+="(?:".concat(v,"(?=").concat(g,"))?")),V||(w+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(w,Vi(r))}function Fi(e,t,r){return e instanceof RegExp?Kv(e,t):Array.isArray(e)?Jv(e,t,r):Yv(e,t,r)}var Qv=Object.defineProperty,Xv=(e,t,r)=>t in e?Qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xt=(e,t,r)=>(Xv(e,typeof t!="symbol"?t+"":t,r),r);class ey{constructor(){Xt(this,"queue",[]),Xt(this,"isProcessing",!1),Xt(this,"results",[]),Xt(this,"cache",new Map),Xt(this,"pendingTasks",new Map)}add(t,r){const n=this.cache.get(t);if(n)return n.status==="fulfilled"?Promise.resolve(n.value):Promise.reject(n.reason);const i=this.pendingTasks.get(t);if(i)return i;const s=new Promise((a,o)=>{this.queue.push({key:t,task:r,resolve:a,reject:o}),this.isProcessing||this.processQueue()});return this.pendingTasks.set(t,s),s}getAllResults(){return[...this.results]}getResult(t){return this.cache.get(t)}clearCacheForKey(t){this.cache.delete(t)}clearAllCache(){this.cache.clear()}processQueue(){return M(this,null,function*(){if(this.queue.length===0){this.isProcessing=!1;return}this.isProcessing=!0;const{key:t,task:r,resolve:n,reject:i}=this.queue.shift();try{const s=this.cache.get(t);if(s){s.status==="fulfilled"?n(s.value):i(s.reason),this.pendingTasks.delete(t),this.processQueue();return}const a=yield r(),o={key:t,status:"fulfilled",value:a};this.results.push(o),this.cache.set(t,o),n(a),this.pendingTasks.delete(t)}catch(s){const a={key:t,status:"rejected",reason:s};this.results.push(a),this.cache.set(t,a),i(s),this.pendingTasks.delete(t)}finally{this.processQueue()}})}}lc.compress;lc.decompress;/**!
|
|
46
|
+
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
47
|
+
* @name @vtj/core
|
|
48
|
+
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
+
* @version 0.17.7
|
|
50
|
+
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
|
+
*/const ty="VueMaterial",ry="VueRouterMaterial",ny={[ty]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[ry]:["RouterView","RouterLink"]};let iy=class{constructor(){G(this,"listeners",[]);G(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}};var sy=Object.defineProperty,ay=(e,t,r)=>t in e?sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pe=(e,t,r)=>ay(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();function fc(e,t){return function(){return e.apply(t,arguments)}}const{toString:oy}=Object.prototype,{getPrototypeOf:an}=Object,{iterator:on,toStringTag:pc}=Symbol,cn=(e=>t=>{const r=oy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>cn(t)===e),un=e=>t=>typeof t===e,{isArray:Yt}=Array,qt=un("undefined");function vr(e){return e!==null&&!qt(e)&&e.constructor!==null&&!qt(e.constructor)&&Ee(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dc=qe("ArrayBuffer");function cy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dc(e.buffer),t}const uy=un("string"),Ee=un("function"),gc=un("number"),yr=e=>e!==null&&typeof e=="object",ly=e=>e===!0||e===!1,Vr=e=>{if(cn(e)!=="object")return!1;const t=an(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pc in e)&&!(on in e)},hy=e=>{if(!yr(e)||vr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},fy=qe("Date"),py=qe("File"),dy=e=>!!(e&&typeof e.uri<"u"),gy=e=>e&&typeof e.getParts<"u",my=qe("Blob"),vy=qe("FileList"),yy=e=>yr(e)&&Ee(e.pipe);function by(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ma=by(),va=typeof ma.FormData<"u"?ma.FormData:void 0,_y=e=>{if(!e)return!1;if(va&&e instanceof va)return!0;const t=an(e);if(!t||t===Object.prototype||!Ee(e.append))return!1;const r=cn(e);return r==="formdata"||r==="object"&&Ee(e.toString)&&e.toString()==="[object FormData]"},wy=qe("URLSearchParams"),[xy,Sy,Ey,Ty]=["ReadableStream","Request","Response","Headers"].map(qe),Cy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function br(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Yt(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(vr(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let o;for(n=0;n<a;n++)o=s[n],t.call(null,e[o],o,e)}}function mc(e,t){if(vr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vc=e=>!qt(e)&&e!==wt;function hi(...e){const{caseless:t,skipUndefined:r}=vc(this)&&this||{},n={},i=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=t&&mc(n,a)||a,u=fi(n,o)?n[o]:void 0;Vr(u)&&Vr(s)?n[o]=hi(u,s):Vr(s)?n[o]=hi({},s):Yt(s)?n[o]=s.slice():(!r||!qt(s))&&(n[o]=s)};for(let s=0,a=e.length;s<a;s++)e[s]&&br(e[s],i);return n}const Ay=(e,t,r,{allOwnKeys:n}={})=>(br(t,(i,s)=>{r&&Ee(i)?Object.defineProperty(e,s,{__proto__:null,value:fc(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Ry=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Oy=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},Iy=(e,t,r,n)=>{let i,s,a;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=r!==!1&&an(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Py=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ky=e=>{if(!e)return null;if(Yt(e))return e;let t=e.length;if(!gc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Dy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&an(Uint8Array)),Ny=(e,t)=>{const r=(e&&e[on]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},$y=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},By=qe("HTMLFormElement"),Ly=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),fi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),jy=qe("RegExp"),yc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};br(r,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(n[s]=a||i)}),Object.defineProperties(e,n)},My=e=>{yc(e,(t,r)=>{if(Ee(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(Ee(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Vy=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Yt(e)?n(e):n(String(e).split(t)),r},Fy=()=>{},Uy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Hy(e){return!!(e&&Ee(e.append)&&e[pc]==="FormData"&&e[on])}const qy=e=>{const t=new WeakSet,r=n=>{if(yr(n)){if(t.has(n))return;if(vr(n))return n;if(!("toJSON"in n)){t.add(n);const i=Yt(n)?[]:{};return br(n,(s,a)=>{const o=r(s);!qt(o)&&(i[a]=o)}),t.delete(n),i}}return n};return r(e)},zy=qe("AsyncFunction"),Wy=e=>e&&(yr(e)||Ee(e))&&Ee(e.then)&&Ee(e.catch),bc=((e,t)=>e?setImmediate:t?((r,n)=>(wt.addEventListener("message",({source:i,data:s})=>{i===wt&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),wt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ee(wt.postMessage)),Gy=typeof queueMicrotask<"u"?queueMicrotask.bind(wt):typeof process<"u"&&process.nextTick||bc,Ky=e=>e!=null&&Ee(e[on]),T={isArray:Yt,isArrayBuffer:dc,isBuffer:vr,isFormData:_y,isArrayBufferView:cy,isString:uy,isNumber:gc,isBoolean:ly,isObject:yr,isPlainObject:Vr,isEmptyObject:hy,isReadableStream:xy,isRequest:Sy,isResponse:Ey,isHeaders:Ty,isUndefined:qt,isDate:fy,isFile:py,isReactNativeBlob:dy,isReactNative:gy,isBlob:my,isRegExp:jy,isFunction:Ee,isStream:yy,isURLSearchParams:wy,isTypedArray:Dy,isFileList:vy,forEach:br,merge:hi,extend:Ay,trim:Cy,stripBOM:Ry,inherits:Oy,toFlatObject:Iy,kindOf:cn,kindOfTest:qe,endsWith:Py,toArray:ky,forEachEntry:Ny,matchAll:$y,isHTMLForm:By,hasOwnProperty:fi,hasOwnProp:fi,reduceDescriptors:yc,freezeMethods:My,toObjectSet:Vy,toCamelCase:Ly,noop:Fy,toFiniteNumber:Uy,findKey:mc,global:wt,isContextDefined:vc,isSpecCompliantForm:Hy,toJSONObject:qy,isAsyncFn:zy,isThenable:Wy,setImmediate:bc,asap:Gy,isIterable:Ky},Jy=T.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"]),Yy=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
52
|
+
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Jy[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};function Zy(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const Qy=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Xy=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ui(e,t){return T.isArray(e)?e.map(r=>Ui(r,t)):Zy(String(e).replace(t,""))}const e1=e=>Ui(e,Qy),t1=e=>Ui(e,Xy);function _c(e){const t=Object.create(null);return T.forEach(e.toJSON(),(r,n)=>{t[n]=t1(r)}),t}const ya=Symbol("internals");function er(e){return e&&String(e).trim().toLowerCase()}function Fr(e){return e===!1||e==null?e:T.isArray(e)?e.map(Fr):e1(String(e))}function r1(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const n1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ln(e,t,r,n,i){if(T.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!T.isString(t)){if(T.isString(n))return t.indexOf(n)!==-1;if(T.isRegExp(n))return n.test(t)}}function i1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function s1(e,t){const r=T.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(i,s,a){return this[n].call(this,t,i,s,a)},configurable:!0})})}let we=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(o,u,c){const l=er(u);if(!l)throw new Error("header name must be a non-empty string");const h=T.findKey(i,l);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||u]=Fr(o))}const a=(o,u)=>T.forEach(o,(c,l)=>s(c,l,u));if(T.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(T.isString(t)&&(t=t.trim())&&!n1(t))a(Yy(t),r);else if(T.isObject(t)&&T.isIterable(t)){let o={},u,c;for(const l of t){if(!T.isArray(l))throw TypeError("Object iterator must return a key-value pair");o[c=l[0]]=(u=o[c])?T.isArray(u)?[...u,l[1]]:[u,l[1]]:l[1]}a(o,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=er(t),t){const n=T.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return r1(i);if(T.isFunction(r))return r.call(this,i,n);if(T.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=er(t),t){const n=T.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ln(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(a){if(a=er(a),a){const o=T.findKey(n,a);o&&(!r||Ln(n,n[o],o,r))&&(delete n[o],i=!0)}}return T.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||Ln(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return T.forEach(this,(i,s)=>{const a=T.findKey(n,s);if(a){r[a]=Fr(i),delete r[s];return}const o=t?i1(s):String(s).trim();o!==s&&delete r[s],r[o]=Fr(i),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return T.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&T.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
53
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[ya]=this[ya]={accessors:{}}).accessors,n=this.prototype;function i(s){const a=er(s);r[a]||(s1(n,s),r[a]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}};we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(we.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});T.freezeMethods(we);const a1="[REDACTED ****]";function o1(e){if(T.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(T.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function c1(e,t){const r=new Set(t.map(s=>String(s).toLowerCase())),n=[],i=s=>{if(s===null||typeof s!="object"||T.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof we&&(s=s.toJSON()),n.push(s);let a;if(T.isArray(s))a=[],s.forEach((o,u)=>{const c=i(o);T.isUndefined(c)||(a[u]=c)});else{if(!T.isPlainObject(s)&&o1(s))return n.pop(),s;a=Object.create(null);for(const[o,u]of Object.entries(s)){const c=r.has(o.toLowerCase())?a1:i(u);T.isUndefined(c)||(a[o]=c)}}return n.pop(),a};return i(e)}let z=class wc extends Error{static from(t,r,n,i,s,a){const o=new wc(t.message,r||t.code,n,i,s);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),a&&Object.assign(o,a),o}constructor(t,r,n,i,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,r=t&&T.hasOwnProp(t,"redact")?t.redact:void 0,n=T.isArray(r)&&r.length>0?c1(t,r):T.toJSONObject(t);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:n,code:this.code,status:this.status}}};z.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";z.ERR_BAD_OPTION="ERR_BAD_OPTION";z.ECONNABORTED="ECONNABORTED";z.ETIMEDOUT="ETIMEDOUT";z.ECONNREFUSED="ECONNREFUSED";z.ERR_NETWORK="ERR_NETWORK";z.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";z.ERR_DEPRECATED="ERR_DEPRECATED";z.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";z.ERR_BAD_REQUEST="ERR_BAD_REQUEST";z.ERR_CANCELED="ERR_CANCELED";z.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";z.ERR_INVALID_URL="ERR_INVALID_URL";z.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const u1=null;function pi(e){return T.isPlainObject(e)||T.isArray(e)}function xc(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function jn(e,t,r){return e?e.concat(t).map(function(n,i){return n=xc(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function l1(e){return T.isArray(e)&&!e.some(pi)}const h1=T.toFlatObject(T,{},null,function(e){return/^is[A-Z]/.test(e)});function ln(e,t,r){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=T.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!T.isUndefined(v[g])});const n=r.metaTokens,i=r.visitor||h,s=r.dots,a=r.indexes,o=r.Blob||typeof Blob<"u"&&Blob,u=r.maxDepth===void 0?100:r.maxDepth,c=o&&T.isSpecCompliantForm(t);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(T.isDate(g))return g.toISOString();if(T.isBoolean(g))return g.toString();if(!c&&T.isBlob(g))throw new z("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(g)||T.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,v,w){let y=g;if(T.isReactNative(t)&&T.isReactNativeBlob(g))return t.append(jn(w,v,s),l(g)),!1;if(g&&!w&&typeof g=="object"){if(T.endsWith(v,"{}"))v=n?v:v.slice(0,-2),g=JSON.stringify(g);else if(T.isArray(g)&&l1(g)||(T.isFileList(g)||T.endsWith(v,"[]"))&&(y=T.toArray(g)))return v=xc(v),y.forEach(function(b,x){!(T.isUndefined(b)||b===null)&&t.append(a===!0?jn([v],x,s):a===null?v:v+"[]",l(b))}),!1}return pi(g)?!0:(t.append(jn(w,v,s),l(g)),!1)}const f=[],p=Object.assign(h1,{defaultVisitor:h,convertValue:l,isVisitable:pi});function d(g,v,w=0){if(!T.isUndefined(g)){if(w>u)throw new z("Object is too deeply nested ("+w+" levels). Max depth: "+u,z.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),T.forEach(g,function(y,b){(!(T.isUndefined(y)||y===null)&&i.call(t,y,T.isString(b)?b.trim():b,v,p))===!0&&d(y,v?v.concat(b):[b],w+1)}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return d(e),t}function ba(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Hi(e,t){this._pairs=[],e&&ln(e,this,t)}const Sc=Hi.prototype;Sc.append=function(e,t){this._pairs.push([e,t])};Sc.toString=function(e){const t=e?function(r){return e.call(this,r,ba)}:ba;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function f1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ec(e,t,r){if(!t)return e;const n=r&&r.encode||f1,i=T.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let a;if(s?a=s(t,i):a=T.isURLSearchParams(t)?t.toString():new Hi(t,i).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}let _a=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}};const qi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},p1=typeof URLSearchParams<"u"?URLSearchParams:Hi,d1=typeof FormData<"u"?FormData:null,g1=typeof Blob<"u"?Blob:null,m1={isBrowser:!0,classes:{URLSearchParams:p1,FormData:d1,Blob:g1},protocols:["http","https","file","blob","url","data"]},zi=typeof window<"u"&&typeof document<"u",di=typeof navigator=="object"&&navigator||void 0,v1=zi&&(!di||["ReactNative","NativeScript","NS"].indexOf(di.product)<0),y1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b1=zi&&window.location.href||"http://localhost",_1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zi,hasStandardBrowserEnv:v1,hasStandardBrowserWebWorkerEnv:y1,navigator:di,origin:b1},Symbol.toStringTag,{value:"Module"})),ye=H(H({},_1),m1);function w1(e,t){return ln(e,new ye.classes.URLSearchParams,H({visitor:function(r,n,i,s){return ye.isNode&&T.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function x1(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S1(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Tc(e){function t(r,n,i,s){let a=r[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),u=s>=r.length;return a=!a&&T.isArray(i)?i.length:a,u?(T.hasOwnProp(i,a)?i[a]=T.isArray(i[a])?i[a].concat(n):[i[a],n]:i[a]=n,!o):((!T.hasOwnProp(i,a)||!T.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],s)&&T.isArray(i[a])&&(i[a]=S1(i[a])),!o)}if(T.isFormData(e)&&T.isFunction(e.entries)){const r={};return T.forEachEntry(e,(n,i)=>{t(x1(n),i,r,0)}),r}return null}const Nt=(e,t)=>e!=null&&T.hasOwnProp(e,t)?e[t]:void 0;function E1(e,t,r){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _r={transitional:qi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=T.isObject(e);if(i&&T.isHTMLForm(e)&&(e=new FormData(e)),T.isFormData(e))return n?JSON.stringify(Tc(e)):e;if(T.isArrayBuffer(e)||T.isBuffer(e)||T.isStream(e)||T.isFile(e)||T.isBlob(e)||T.isReadableStream(e))return e;if(T.isArrayBufferView(e))return e.buffer;if(T.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){const a=Nt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return w1(e,a).toString();if((s=T.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=Nt(this,"env"),u=o&&o.FormData;return ln(s?{"files[]":e}:e,u&&new u,a)}}return i||n?(t.setContentType("application/json",!1),E1(e)):e}],transformResponse:[function(e){const t=Nt(this,"transitional")||_r.transitional,r=t&&t.forcedJSONParsing,n=Nt(this,"responseType"),i=n==="json";if(T.isResponse(e)||T.isReadableStream(e))return e;if(e&&T.isString(e)&&(r&&!n||i)){const s=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Nt(this,"parseReviver"))}catch(a){if(s)throw a.name==="SyntaxError"?z.from(a,z.ERR_BAD_RESPONSE,this,null,Nt(this,"response")):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch","query"],e=>{_r.headers[e]={}});function Mn(e,t){const r=this||_r,n=t||r,i=we.from(n.headers);let s=n.data;return T.forEach(e,function(a){s=a.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Cc(e){return!!(e&&e.__CANCEL__)}let wr=class extends z{constructor(t,r,n){super(t!=null?t:"canceled",z.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ac(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new z("Request failed with status code "+r.status,r.status>=400&&r.status<500?z.ERR_BAD_REQUEST:z.ERR_BAD_RESPONSE,r.config,r.request,r))}function T1(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function C1(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(o){const u=Date.now(),c=n[s];a||(a=u),r[i]=o,n[i]=u;let l=s,h=0;for(;l!==i;)h+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-a<t)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function A1(e,t){let r=0,n=1e3/t,i,s;const a=(o,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),e(...o)};return[(...o)=>{const u=Date.now(),c=u-r;c>=n?a(o,u):(i=o,s||(s=setTimeout(()=>{s=null,a(i)},n-c)))},()=>i&&a(i)]}const Zr=(e,t,r=3)=>{let n=0;const i=C1(50,250);return A1(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,o=s.lengthComputable?s.total:void 0,u=o!=null?Math.min(a,o):a,c=Math.max(0,u-n),l=i(c);n=Math.max(n,u);const h={loaded:u,total:o,progress:o?u/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-u)/l:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(h)},r)},wa=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},xa=e=>(...t)=>T.asap(()=>e(...t)),R1=ye.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ye.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ye.origin),ye.navigator&&/(msie|trident)/i.test(ye.navigator.userAgent)):()=>!0,O1=ye.hasStandardBrowserEnv?{write(e,t,r,n,i,s,a){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];T.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),T.isString(n)&&o.push(`path=${n}`),T.isString(i)&&o.push(`domain=${i}`),s===!0&&o.push("secure"),T.isString(a)&&o.push(`SameSite=${a}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===e)return decodeURIComponent(n.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function I1(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rc(e,t,r){let n=!I1(t);return e&&(n||r===!1)?P1(e,t):t}const Sa=e=>e instanceof we?H({},e):e;function Ct(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,l,h,f){return T.isPlainObject(c)&&T.isPlainObject(l)?T.merge.call({caseless:f},c,l):T.isPlainObject(l)?T.merge({},l):T.isArray(l)?l.slice():l}function i(c,l,h,f){if(T.isUndefined(l)){if(!T.isUndefined(c))return n(void 0,c,h,f)}else return n(c,l,h,f)}function s(c,l){if(!T.isUndefined(l))return n(void 0,l)}function a(c,l){if(T.isUndefined(l)){if(!T.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function o(c,l,h){if(T.hasOwnProp(t,h))return n(c,l);if(T.hasOwnProp(e,h))return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:o,headers:(c,l,h)=>i(Sa(c),Sa(l),h,!0)};return T.forEach(Object.keys(H(H({},e),t)),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const l=T.hasOwnProp(u,c)?u[c]:i,h=T.hasOwnProp(e,c)?e[c]:void 0,f=T.hasOwnProp(t,c)?t[c]:void 0,p=l(h,f,c);T.isUndefined(p)&&l!==o||(r[c]=p)}),r}const k1=["content-type","content-length"];function D1(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,i])=>{k1.includes(n.toLowerCase())&&e.set(n,i)})}const N1=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Oc=e=>{const t=Ct({},e),r=f=>T.hasOwnProp(t,f)?t[f]:void 0,n=r("data");let i=r("withXSRFToken");const s=r("xsrfHeaderName"),a=r("xsrfCookieName");let o=r("headers");const u=r("auth"),c=r("baseURL"),l=r("allowAbsoluteUrls"),h=r("url");if(t.headers=o=we.from(o),t.url=Ec(Rc(c,h,l),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?N1(u.password):""))),T.isFormData(n)&&(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):T.isFunction(n.getHeaders)&&D1(o,n.getHeaders(),r("formDataHeaderPolicy"))),ye.hasStandardBrowserEnv&&(T.isFunction(i)&&(i=i(t)),i===!0||i==null&&R1(t.url))){const f=s&&a&&O1.read(a);f&&o.set(s,f)}return t},$1=typeof XMLHttpRequest<"u",B1=$1&&function(e){return new Promise(function(t,r){const n=Oc(e);let i=n.data;const s=we.from(n.headers).normalize();let{responseType:a,onUploadProgress:o,onDownloadProgress:u}=n,c,l,h,f,p;function d(){f&&f(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function v(){if(!g)return;const y=we.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};Ac(function(x){t(x),d()},function(x){r(x),d()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(v)},g.onabort=function(){g&&(r(new z("Request aborted",z.ECONNABORTED,e,g)),d(),g=null)},g.onerror=function(y){const b=y&&y.message?y.message:"Network Error",x=new z(b,z.ERR_NETWORK,e,g);x.event=y||null,r(x),d(),g=null},g.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||qi;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new z(y,b.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,g)),d(),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&T.forEach(_c(s),function(y,b){g.setRequestHeader(b,y)}),T.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),a&&a!=="json"&&(g.responseType=n.responseType),u&&([h,p]=Zr(u,!0),g.addEventListener("progress",h)),o&&g.upload&&([l,f]=Zr(o),g.upload.addEventListener("progress",l),g.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(c=y=>{g&&(r(!y||y.type?new wr(null,e,g):y),g.abort(),d(),g=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const w=T1(n.url);if(w&&!ye.protocols.includes(w)){r(new z("Unsupported protocol "+w+":",z.ERR_BAD_REQUEST,e));return}g.send(i||null)})},L1=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const i=function(u){if(!n){n=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof z?c:new wr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,i(new z(`timeout of ${t}ms exceeded`,z.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:o}=r;return o.unsubscribe=()=>T.asap(a),o},j1=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},M1=function(e,t){return xn(this,null,function*(){try{for(var r=us(V1(e)),n,i,s;n=!(i=yield new vt(r.next())).done;n=!1){const a=i.value;yield*Sn(j1(a,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new vt(i.call(r)))}finally{if(s)throw s[0]}}})},V1=function(e){return xn(this,null,function*(){if(e[Symbol.asyncIterator]){yield*Sn(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new vt(t.read());if(r)break;yield n}}finally{yield new vt(t.cancel())}})},Ea=(e,t,r,n)=>{const i=M1(e,t);let s=0,a,o=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({pull(c){return M(this,null,function*(){try{const{done:l,value:h}=yield i.next();if(l){o(),c.close();return}let f=h.byteLength;if(r){let p=s+=f;r(p)}c.enqueue(new Uint8Array(h))}catch(l){throw o(l),l}})},cancel(c){return o(c),i.return()}},{highWaterMark:2})};function F1(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let s=n.length;const a=n.length;for(let h=0;h<a;h++)if(n.charCodeAt(h)===37&&h+2<a){const f=n.charCodeAt(h+1),p=n.charCodeAt(h+2);(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(s-=2,h+=2)}let o=0,u=a-1;const c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(o++,u--):c(u)&&(o++,u-=3)),o===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&o++;const l=Math.floor(s/4)*3-(o||0);return l>0?l:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let i=0;for(let s=0,a=n.length;s<a;s++){const o=n.charCodeAt(s);if(o<128)i+=1;else if(o<2048)i+=2;else if(o>=55296&&o<=56319&&s+1<a){const u=n.charCodeAt(s+1);u>=56320&&u<=57343?(i+=4,s++):i+=3}else i+=3}return i}const Wi="1.16.1",Ta=64*1024,{isFunction:kr}=T,Ca=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},U1=e=>{const t=T.global!==void 0&&T.global!==null?T.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=T.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:s,Response:a}=e,o=i?kr(i):typeof fetch=="function",u=kr(s),c=kr(a);if(!o)return!1;const l=o&&kr(r),h=o&&(typeof n=="function"?(w=>y=>w.encode(y))(new n):w=>M(null,null,function*(){return new Uint8Array(yield new s(w).arrayBuffer())})),f=u&&l&&Ca(()=>{let w=!1;const y=new s(ye.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),b=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),w&&!b}),p=c&&l&&Ca(()=>T.isReadableStream(new a("").body)),d={stream:p&&(w=>w.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!d[w]&&(d[w]=(y,b)=>{let x=y&&y[w];if(x)return x.call(y);throw new z(`Response type '${w}' is not supported`,z.ERR_NOT_SUPPORT,b)})});const g=w=>M(null,null,function*(){if(w==null)return 0;if(T.isBlob(w))return w.size;if(T.isSpecCompliantForm(w))return(yield new s(ye.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(T.isArrayBufferView(w)||T.isArrayBuffer(w))return w.byteLength;if(T.isURLSearchParams(w)&&(w=w+""),T.isString(w))return(yield h(w)).byteLength}),v=(w,y)=>M(null,null,function*(){const b=T.toFiniteNumber(w.getContentLength());return b!=null?b:g(y)});return w=>M(null,null,function*(){let{url:y,method:b,data:x,signal:S,cancelToken:_,timeout:A,onDownloadProgress:I,onUploadProgress:V,responseType:E,headers:C,withCredentials:j="same-origin",fetchOptions:B,maxContentLength:L,maxBodyLength:P}=Oc(w);const N=T.isNumber(L)&&L>-1,U=T.isNumber(P)&&P>-1;let F=i||fetch;E=E?(E+"").toLowerCase():"text";let W=L1([S,_&&_.toAbortSignal()],A),q=null;const O=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let $;try{if(N&&typeof y=="string"&&y.startsWith("data:")&&F1(y)>L)throw new z("maxContentLength size of "+L+" exceeded",z.ERR_BAD_RESPONSE,w,q);if(U&&b!=="get"&&b!=="head"){const re=yield v(C,x);if(typeof re=="number"&&isFinite(re)&&re>P)throw new z("Request body larger than maxBodyLength limit",z.ERR_BAD_REQUEST,w,q)}if(V&&f&&b!=="get"&&b!=="head"&&($=yield v(C,x))!==0){let re=new s(y,{method:"POST",body:x,duplex:"half"}),Se;if(T.isFormData(x)&&(Se=re.headers.get("content-type"))&&C.setContentType(Se),re.body){const[pe,Ce]=wa($,Zr(xa(V)));x=Ea(re.body,Ta,pe,Ce)}}T.isString(j)||(j=j?"include":"omit");const R=u&&"credentials"in s.prototype;if(T.isFormData(x)){const re=C.getContentType();re&&/^multipart\/form-data/i.test(re)&&!/boundary=/i.test(re)&&C.delete("content-type")}C.set("User-Agent","axios/"+Wi,!1);const D=de(H({},B),{signal:W,method:b.toUpperCase(),headers:_c(C.normalize()),body:x,duplex:"half",credentials:R?j:void 0});q=u&&new s(y,D);let ne=yield u?F(q,B):F(y,D);if(N){const re=T.toFiniteNumber(ne.headers.get("content-length"));if(re!=null&&re>L)throw new z("maxContentLength size of "+L+" exceeded",z.ERR_BAD_RESPONSE,w,q)}const Te=p&&(E==="stream"||E==="response");if(p&&ne.body&&(I||N||Te&&O)){const re={};["status","statusText","headers"].forEach(Zt=>{re[Zt]=ne[Zt]});const Se=T.toFiniteNumber(ne.headers.get("content-length")),[pe,Ce]=I&&wa(Se,Zr(xa(I),!0))||[];let ot=0;const It=Zt=>{if(N&&(ot=Zt,ot>L))throw new z("maxContentLength size of "+L+" exceeded",z.ERR_BAD_RESPONSE,w,q);pe&&pe(Zt)};ne=new a(Ea(ne.body,Ta,It,()=>{Ce&&Ce(),O&&O()}),re)}E=E||"text";let le=yield d[T.findKey(d,E)||"text"](ne,w);if(N&&!p&&!Te){let re;if(le!=null&&(typeof le.byteLength=="number"?re=le.byteLength:typeof le.size=="number"?re=le.size:typeof le=="string"&&(re=typeof n=="function"?new n().encode(le).byteLength:le.length)),typeof re=="number"&&re>L)throw new z("maxContentLength size of "+L+" exceeded",z.ERR_BAD_RESPONSE,w,q)}return!Te&&O&&O(),yield new Promise((re,Se)=>{Ac(re,Se,{data:le,headers:we.from(ne.headers),status:ne.status,statusText:ne.statusText,config:w,request:q})})}catch(R){if(O&&O(),W&&W.aborted&&W.reason instanceof z){const D=W.reason;throw D.config=w,q&&(D.request=q),R!==D&&(D.cause=R),D}throw R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,w,q,R&&R.response),{cause:R.cause||R}):z.from(R,R&&R.code,w,q,R&&R.response)}})},H1=new Map,Ic=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,s=[n,i,r];let a=s.length,o=a,u,c,l=H1;for(;o--;)u=s[o],c=l.get(u),c===void 0&&l.set(u,c=o?new Map:U1(t)),l=c;return c};Ic();const Gi={http:u1,xhr:B1,fetch:{get:Ic}};T.forEach(Gi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(r){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Aa=e=>`- ${e}`,q1=e=>T.isFunction(e)||e===null||e===!1;function z1(e,t){e=T.isArray(e)?e:[e];const{length:r}=e;let n,i;const s={};for(let a=0;a<r;a++){n=e[a];let o;if(i=n,!q1(n)&&(i=Gi[(o=String(n)).toLowerCase()],i===void 0))throw new z(`Unknown adapter '${o}'`);if(i&&(T.isFunction(i)||(i=i.get(t))))break;s[o||"#"+a]=i}if(!i){const a=Object.entries(s).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=r?a.length>1?`since :
|
|
54
|
+
`+a.map(Aa).join(`
|
|
55
|
+
`):" "+Aa(a[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i}const Pc={getAdapter:z1,adapters:Gi};function Vn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wr(null,e)}function Ra(e){return Vn(e),e.headers=we.from(e.headers),e.data=Mn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pc.getAdapter(e.adapter||_r.adapter,e)(e).then(function(t){Vn(e),e.response=t;try{t.data=Mn.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=we.from(t.headers),t},function(t){if(!Cc(t)&&(Vn(e),t&&t.response)){e.response=t.response;try{t.response.data=Mn.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=we.from(t.response.headers)}return Promise.reject(t)})}const hn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Oa={};hn.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Wi+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new z(n(s," has been removed"+(t?" in "+t:"")),z.ERR_DEPRECATED);return t&&!Oa[s]&&(Oa[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,a):!0}};hn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function W1(e,t,r){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){const o=e[s],u=o===void 0||a(o,s,e);if(u!==!0)throw new z("option "+s+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new z("Unknown option "+s,z.ERR_BAD_OPTION)}}const Ur={assertOptions:W1,validators:hn},Re=Ur.validators;let St=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _a,response:new _a}}request(t,r){return M(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const a=i.stack.indexOf(`
|
|
56
|
+
`);return a===-1?"":i.stack.slice(a+1)})();try{if(!n.stack)n.stack=s;else if(s){const a=s.indexOf(`
|
|
57
|
+
`),o=a===-1?-1:s.indexOf(`
|
|
58
|
+
`,a+1),u=o===-1?"":s.slice(o+1);String(n.stack).endsWith(u)||(n.stack+=`
|
|
59
|
+
`+s)}}catch(a){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ct(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Ur.assertOptions(n,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean),legacyInterceptorReqResOrdering:Re.transitional(Re.boolean)},!1),i!=null&&(T.isFunction(i)?r.paramsSerializer={serialize:i}:Ur.assertOptions(i,{encode:Re.function,serialize:Re.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ur.assertOptions(r,{baseUrl:Re.spelling("baseURL"),withXsrfToken:Re.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&T.merge(s.common,s[r.method]);s&&T.forEach(["delete","get","head","post","put","patch","query","common"],d=>{delete s[d]}),r.headers=we.concat(a,s);const o=[];let u=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;u=u&&d.synchronous;const g=r.transitional||qi;g&&g.legacyInterceptorReqResOrdering?o.unshift(d.fulfilled,d.rejected):o.push(d.fulfilled,d.rejected)});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let l,h=0,f;if(!u){const d=[Ra.bind(this),void 0];for(d.unshift(...o),d.push(...c),f=d.length,l=Promise.resolve(r);h<f;)l=l.then(d[h++],d[h++]);return l}f=o.length;let p=r;for(;h<f;){const d=o[h++],g=o[h++];try{p=d(p)}catch(v){g.call(this,v);break}}try{l=Ra.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)l=l.then(c[h++],c[h++]);return l}getUri(t){t=Ct(this.defaults,t);const r=Rc(t.baseURL,t.url,t.allowAbsoluteUrls);return Ec(r,t.params,t.paramsSerializer)}};T.forEach(["delete","get","head","options"],function(e){St.prototype[e]=function(t,r){return this.request(Ct(r||{},{method:e,url:t,data:(r||{}).data}))}});T.forEach(["post","put","patch","query"],function(e){function t(r){return function(n,i,s){return this.request(Ct(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}St.prototype[e]=t(),e!=="query"&&(St.prototype[e+"Form"]=t(!0))});let G1=class kc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{n.subscribe(o),s=o}).then(i);return a.cancel=function(){n.unsubscribe(s)},a},t(function(i,s,a){n.reason||(n.reason=new wr(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new kc(function(r){t=r}),cancel:t}}};function K1(e){return function(t){return e.apply(null,t)}}function J1(e){return T.isObject(e)&&e.isAxiosError===!0}const gi={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gi).forEach(([e,t])=>{gi[t]=e});function Dc(e){const t=new St(e),r=fc(St.prototype.request,t);return T.extend(r,St.prototype,t,{allOwnKeys:!0}),T.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Dc(Ct(e,n))},r}const oe=Dc(_r);oe.Axios=St;oe.CanceledError=wr;oe.CancelToken=G1;oe.isCancel=Cc;oe.VERSION=Wi;oe.toFormData=ln;oe.AxiosError=z;oe.Cancel=oe.CanceledError;oe.all=function(e){return Promise.all(e)};oe.spread=K1;oe.isAxiosError=J1;oe.mergeConfig=Ct;oe.AxiosHeaders=we;oe.formToJSON=e=>Tc(T.isHTMLForm(e)?new FormData(e):e);oe.getAdapter=Pc.getAdapter;oe.HttpStatusCode=gi;oe.default=oe;const{Axios:Ew,AxiosError:Tw,CanceledError:Cw,isCancel:Aw,CancelToken:Rw,VERSION:Ow,all:Iw,Cancel:Pw,isAxiosError:kw,spread:Dw,toFormData:Nw,AxiosHeaders:$w,HttpStatusCode:Bw,formToJSON:Lw,getAdapter:jw,mergeConfig:Mw,create:Vw}=oe,Y1={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Z1=["put","post","patch"],Ia="Local-Request-Id",Q1=100,X1=300,e0="/api/proxy";let t0=class{constructor(t={}){Pe(this,"axios"),Pe(this,"settings"),Pe(this,"records",{}),Pe(this,"isLoading",!1),Pe(this,"stopSkipWarn"),Pe(this,"showLoading"),Pe(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=Bn(t,["settings","query"]);this.axios=oe.create(tr({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=ji(this.openLoading.bind(this),Q1),this.showError=Um(this._showError.bind(this),X1,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=tr(this.settings,t.settings||{});const r=Bn(t,["settings","query"]);this.axios.defaults=tr(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=H(H({"Content-Type":Y1[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[Ia]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:a,skipWarn:o}=t,{name:u="skipWarn"}=o||{};let{data:c,params:l={},method:h="get"}=r;const f=i?{[u]:!0}:{};return Z1.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=a!=="json"||!this.isJsonType(n)?this.toFormData(c,a):c,l=H({},s)):a==="form"?l=H(H(H({},c||{}),s),f):(c&&(a!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,a)),l=H(H({},s),f)),{data:c,params:l}}createUrl(t){let{url:r,params:n}=t;if(r){let i=hr(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const a=qv(s,{encode:encodeURIComponent});return i+a(n||{})}catch(a){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(t,r,n){if(!t.proxy)return{url:r,headers:n};const i=t.proxyPath||e0,{protocol:s,host:a}=location||{},o=hr(r)?r:`${s}//${a}${r}`;return n.Target=o,{url:i,headers:n}}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{hideLoading:r}=t;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const a=(s=r==null?void 0:r.response)==null?void 0:s.data,o=(a==null?void 0:a.message)||(a==null?void 0:a.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(o,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=tr({},this.settings,t.settings||{}),i=t.query||{},s=Bn(t,["settings","query"]),a=Mv(!1),o=oe.CancelToken.source();this.records[a]={settings:n,config:s,source:o};const u=this.createUrl(s)||"",c=this.createHeaders(a,n,s),{url:l,headers:h}=this.createProxy(n,u,c),{data:f,params:p}=this.createSendData(n,s,h,r,i);return this.showLoading(n),new Promise((d,g)=>{this.axios(de(H({cancelToken:o.token},s),{url:l,headers:h,data:f,params:p})).then(v=>{var w;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(w=v.data)==null?void 0:w.data):(this.showError(n,v.data),g(v.data))}).catch(v=>(this.showError(n,v),g(v))).finally(()=>{delete this.records[a],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(a=>{const o=(a.config.headers||{})[Ia],u=this.records[o];if(!u)return a;const{data:c}=a;if(!c||typeof c!="object")return a;if((c==null?void 0:c.code)===r){i&&i(a);const l=new Promise(n).then(()=>this.send(de(H({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),a.promise=l}return a})}};function Ki(e={}){const t=new t0(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),a=t.useResponse.bind(t);return Object.assign(r,de(H({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:a}))}const mi=Ki({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),vi=typeof window<"u";function r0(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}let Nc=class{constructor(t={}){Pe(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),Pe(this,"caches",{}),Pe(this,"types"),this.types={local:vi?window.localStorage:this.caches,session:vi?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:a}=H(H({},this.options),n),o=Date.now(),u=a+t,c=this.types[i]||this.caches,l={value:r,timestamp:o,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=H(H({},this.options),r),s=i+t,a=this.types[n]||this.caches;let o;if(a===this.caches)o=a[s];else{const h=a.getItem(s);if(h)try{o=JSON.parse(h)}catch(f){console.warn("[Storage] JSON.parse",f)}}if(!o)return null;const{value:u,timestamp:c,expired:l}=o;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=H(H({},this.options),r),s=this.types[n]||this.caches,a=i+t;s===this.caches?delete s[a]:s.removeItem(a)}clear(t={}){const{type:r}=H(H({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}};const Fn=new Nc;function $c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}},n0=Hr.exports,Pa;function i0(){return Pa||(Pa=1,(function(e,t){(function(r,n){n(t,e)})(n0,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(c){try{delete window[c]}catch(l){window[c]=void 0}}function o(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,v){var w=l.jsonpCallbackFunction||s(),y=p+"_"+w;window[w]=function(x){g({ok:!0,json:function(){return Promise.resolve(x)}}),d&&clearTimeout(d),o(y),a(w)},h+=h.indexOf("?")===-1?"?":"&";var b=document.createElement("script");b.setAttribute("src",""+h+p+"="+w),l.charset&&b.setAttribute("charset",l.charset),l.nonce&&b.setAttribute("nonce",l.nonce),l.referrerPolicy&&b.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&b.setAttribute("crossorigin","true"),b.id=y,document.getElementsByTagName("head")[0].appendChild(b),d=setTimeout(function(){v(new Error("JSONP request to "+c+" timed out")),a(w),o(y),window[w]=function(){a(w)}},f),b.onerror=function(){v(new Error("JSONP request to "+c+" failed")),a(w),o(y),d&&clearTimeout(d)}})}n.exports=u})})(Hr,Hr.exports)),Hr.exports}var s0=i0();const a0=$c(s0);function o0(e){if(vi){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function c0(e=""){const t=e.match(ac);return t?t[0]:""}function Bc(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function yi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Lc(e,t){t=typeof t=="string"?yi(t):t;const r=e.split("?")[0],n=yi(e),i=Object.assign({},n,t),s=Bc(i);return s?[r,s].join("?"):e}const qr=Object.freeze(Object.defineProperty({__proto__:null,append:Lc,getCurrentHost:o0,getHost:c0,parse:yi,stringify:Bc},Symbol.toStringTag,{value:"Module"}));function jc(r){return M(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Vm(e)(n||{}));const i=Lc(e,n);return yield(yield a0(i,t)).json()})}var Un,ka;function u0(){if(ka)return Un;ka=1,Un=function(n,i,s){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},o.type=i.type||"text/javascript",o.charset=i.charset||"utf8",o.async="async"in i?!!i.async:!0,o.src=n,i.attrs&&e(o,i.attrs),i.text&&(o.text=""+i.text);var u="onload"in o?t:r;u(o,s),o.onload||t(o,s),a.appendChild(o)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Un}var l0=u0();const h0=$c(l0);function Da(e,t={}){return new Promise((r,n)=>{const{library:i}=t;h0(e,t,(s,a)=>{s?n(s):r(i?window[i]:void 0)})})}const Na={debug:-1,log:0,info:0,warn:1,error:2},f0=function(e,t,r,n){return function(...i){if(t&&Na[t]<=Na[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,p0(i,r))}};function p0(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function d0(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const g0={level:"warn",bizName:"*"};class m0{constructor(t){Pe(this,"config"),Pe(this,"options"),this.options=H(H({},g0),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=d0(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return f0(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function v0(e){return new m0(e)}const Ht=v0({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)n!=="__proto__"&&(e[n]=r[n])}return e}var y0={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 bi(e,t){function r(i,s,a){if(!(typeof document>"u")){a=Dr({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in a)a[u]&&(o+="; "+u,a[u]!==!0&&(o+="="+a[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+o}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var u=s[o].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(l in a||(a[l]=e.read(c,l)),i===l)break}catch(h){}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Dr({},s,{expires:-1}))},withAttributes:function(i){return bi(this.converter,Dr({},this.attributes,i))},withConverter:function(i){return bi(Dr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ji=bi(y0,{path:"/"});function b0(e,t,r){Ji.set(e,t,r)}function _0(e){return Ji.get(e)}function w0(e,t){Ji.remove(e,t)}const Hn=Object.freeze(Object.defineProperty({__proto__:null,get:_0,remove:w0,set:b0},Symbol.toStringTag,{value:"Module"}));/**!
|
|
60
|
+
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
61
|
+
* @name @vtj/renderer
|
|
62
|
+
* @author CHC chenhuachun1549@dingtalk.com
|
|
63
|
+
* @version 0.17.7
|
|
64
|
+
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
65
|
+
*/const qn="0.17.7";var ce=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ce||{});const $a=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],x0=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],S0={String,Number,Boolean,Array,Object,Function,Date},zr="VtjPage",zn="VtjHomepage",Mc="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,svg".split(","),E0="component,slot".split(",");function Nr(e,t){return e.map(r=>hr(r)||r.startsWith("/")?r:`${t}${r}`)}function fn(e){return/\.css$/.test(e)}function pn(e){return/\.js$/.test(e)}function T0(e){return/\.json$/.test(e)}function C0(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function A0(e,t,r=!1){const n=e.filter(f=>!!f.enabled),i=[],s=[],a=[],o=[],u={},c={},l=[],h={};return n.forEach(({urls:f,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{f==null||f.forEach(w=>{pn(w)&&i.push(C0(w,r)),fn(w)&&s.push(w)}),d&&(o.push(d),u[d]=Nr(f||[],t),v&&(c[d]=v)),p&&a.push(p),g&&l.push(g),d&&g&&(h[g]=d)}),{scripts:Nr(i,t),css:Nr(s,t),materials:Nr(a,t),libraryExports:o,materialExports:Fv(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function R0(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function O0(e=[]){const t=e.filter(n=>fn(n)),r=e.filter(n=>pn(n));return{css:t,js:r}}function I0(e,t){const r=c=>{const l=[];let h=0;for(;h<c.length;){if(/\s/.test(c[h])){h++;continue}if(c.substring(h,h+2)==="/*"){const w=c.indexOf("*/",h+2);if(w!==-1){h=w+2;continue}}if(c[h]==="@"){const w=h;for(;h<c.length&&c[h]!=="{"&&c[h]!==";";)h++;const y=c.substring(w,h).trim(),b=y.includes("@keyframes");if(c[h]===";")l.push({type:"simple-at-rule",content:c.substring(w,h+1)}),h++;else if(c[h]==="{"){const x=h+1;let S=1;for(h++;h<c.length&&S>0;)c[h]==="{"?S++:c[h]==="}"&&S--,h++;const _=c.substring(w,h),A=c.substring(x,h-1);l.push({type:b?"keyframes":"at-rule",rule:y,content:_,inner:A})}continue}const f=h;for(;h<c.length&&c[h]!=="{";)h++;if(h>=c.length)break;const p=c.substring(f,h).trim();if(!p){h++;continue}const d=h+1;let g=1;for(h++;h<c.length&&g>0;)c[h]==="{"?g++:c[h]==="}"&&g--,h++;const v=c.substring(d,h-1);l.push({type:"rule",selector:p,content:v.trim()})}return l},n=c=>{const l=c.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},i=c=>c.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,h,f)=>{const p=h.trim(),d=f.trim();return p?`${p}[${t}] ${d}`:d}),s=c=>{const l=c.trim();if(!l||l.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||n(l))return l;const h=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(h){const[,f,p=""]=h,d=f.trim();return d?`${d}[${t}]${p}`:l}return`${l}[${t}]`},a=c=>i(c).split(",").map(l=>s(l)).filter(l=>l.trim()).join(", "),o=c=>c.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const f=r(l.inner),p=o(f);return`${l.rule} { ${p} }`}catch(f){return l.content}case"rule":if(!l.selector||!l.content)return"";const h=a(l.selector);return h.trim()?`${h} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),u=c=>c.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const c=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
66
|
+
`),l=r(c),h=o(l);return u(h)}catch(c){return console.error("CSS scoping failed:",c),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,l=>l).replace(/([^{}@]+)(?=\s*{)/g,l=>{const h=l.trim();return!h||h.startsWith("@")||h.includes(`[${t}]`)||n(h)?l:`${h}[${t}]`})}}const P0=750;function k0(e,t,r){let n;typeof e<"u"?n=e.innerWidth||e.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=P0;return t*n/i}function D0(e,t){let r=!1,n=!1,i=!1,s="";for(let a=0;a<t.length;a++){const o=t[a];if(o==="'"&&!n&&!i?r=!r:o==='"'&&!r&&!i?n=!n:t.substr(a,4).toLowerCase()==="url("&&!r&&!n?i=!0:o===")"&&i&&(i=!1),!r&&!n&&!i){const u=t.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(u){const c=u[1],l=parseFloat(c),h=`${k0(e,l).toFixed(6).replace(/\.?0+$/,"")}px`;s+=h,a+=u[0].length-1;continue}}s+=o}return s}function Vc(e){return dt(e)?e:JSON.stringify(e)}function dn(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,a=e.__uniConfig?D0(e,r):r,o=n?I0(a,s):a,u=!!e.__uniConfig;if(i.prototype.replaceSync&&!u){const c=new i;c.id=t,c.replaceSync(o);const l=e.document,h=l.adoptedStyleSheets,f=Array.from(h).filter(p=>p.id!==t);l.adoptedStyleSheets=[...f,c]}else{const c=e.document;let l=c.getElementById(t);l?l.innerHTML=o:(l=c.createElement("style"),l.id=t,l.innerHTML=o,c.head.appendChild(l))}}function N0(e,t){return M(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&dn(window,e,r)})}function Fc(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function Uc(n,i){return M(this,arguments,function*(e,t,r=window){const s=r.document,a=r.document.head;let o=r[t];return o?o.default||o:new Promise((u,c)=>{for(const l of e){const h=s.createElement("script");h.src=l,h.onload=()=>{o=r[t],o?u(o.default||o):c(null)},h.onerror=f=>{c(f)},a.appendChild(h)}})})}function $0(e){return Et(e)&&Object.getOwnPropertyNames(e.prototype||{}).length===0||Et(e==null?void 0:e.install)}function B0(e){return E0.includes(e)}function L0(e){return Mc.includes(e)}function fr(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function j0(e){return/^\([\s\S]*\)/.test(e.trim())}function M0(e){return/\w+\([\s\S]*\)$/.test(e.trim())}function V0(e){return e.includes("=")}var Wn={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Gn="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",F0={5:Gn,"5module":Gn+" export import",6:Gn+" const class extends export import super"},U0=/^in(stanceof)?$/,Yi="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Hc="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",H0=new RegExp("["+Yi+"]"),q0=new RegExp("["+Yi+Hc+"]");Yi=Hc=null;var qc=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],z0=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function _i(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}}function pt(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&H0.test(String.fromCharCode(e)):t===!1?!1:_i(e,qc)}function zt(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&q0.test(String.fromCharCode(e)):t===!1?!1:_i(e,qc)||_i(e,z0)}var te=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Oe(e,t){return new te(e,{beforeExpr:!0,binop:t})}var Ie={beforeExpr:!0},Ae={startsExpr:!0},Zi={};function ee(e,t){return t===void 0&&(t={}),t.keyword=e,Zi[e]=new te(e,t)}var m={num:new te("num",Ae),regexp:new te("regexp",Ae),string:new te("string",Ae),name:new te("name",Ae),eof:new te("eof"),bracketL:new te("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new te("]"),braceL:new te("{",{beforeExpr:!0,startsExpr:!0}),braceR:new te("}"),parenL:new te("(",{beforeExpr:!0,startsExpr:!0}),parenR:new te(")"),comma:new te(",",Ie),semi:new te(";",Ie),colon:new te(":",Ie),dot:new te("."),question:new te("?",Ie),questionDot:new te("?."),arrow:new te("=>",Ie),template:new te("template"),invalidTemplate:new te("invalidTemplate"),ellipsis:new te("...",Ie),backQuote:new te("`",Ae),dollarBraceL:new te("${",{beforeExpr:!0,startsExpr:!0}),eq:new te("=",{beforeExpr:!0,isAssign:!0}),assign:new te("_=",{beforeExpr:!0,isAssign:!0}),incDec:new te("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new te("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Oe("||",1),logicalAND:Oe("&&",2),bitwiseOR:Oe("|",3),bitwiseXOR:Oe("^",4),bitwiseAND:Oe("&",5),equality:Oe("==/!=/===/!==",6),relational:Oe("</>/<=/>=",7),bitShift:Oe("<</>>/>>>",8),plusMin:new te("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Oe("%",10),star:Oe("*",10),slash:Oe("/",10),starstar:new te("**",{beforeExpr:!0}),coalesce:Oe("??",1),_break:ee("break"),_case:ee("case",Ie),_catch:ee("catch"),_continue:ee("continue"),_debugger:ee("debugger"),_default:ee("default",Ie),_do:ee("do",{isLoop:!0,beforeExpr:!0}),_else:ee("else",Ie),_finally:ee("finally"),_for:ee("for",{isLoop:!0}),_function:ee("function",Ae),_if:ee("if"),_return:ee("return",Ie),_switch:ee("switch"),_throw:ee("throw",Ie),_try:ee("try"),_var:ee("var"),_const:ee("const"),_while:ee("while",{isLoop:!0}),_with:ee("with"),_new:ee("new",{beforeExpr:!0,startsExpr:!0}),_this:ee("this",Ae),_super:ee("super",Ae),_class:ee("class",Ae),_extends:ee("extends",Ie),_export:ee("export"),_import:ee("import",Ae),_null:ee("null",Ae),_true:ee("true",Ae),_false:ee("false",Ae),_in:ee("in",{beforeExpr:!0,binop:7}),_instanceof:ee("instanceof",{beforeExpr:!0,binop:7}),_typeof:ee("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ee("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ee("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Me=/\r\n?|\n|\u2028|\u2029/,pr=new RegExp(Me.source,"g");function xr(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var zc=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ke=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wc=Object.prototype,W0=Wc.hasOwnProperty,G0=Wc.toString;function gn(e,t){return W0.call(e,t)}var Ba=Array.isArray||(function(e){return G0.call(e)==="[object Array]"});function xt(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var dr=function(e,t){this.line=e,this.column=t};dr.prototype.offset=function(e){return new dr(this.line,this.column+e)};var mn=function(e,t,r){this.start=t,this.end=r,e.sourceFile!==null&&(this.source=e.sourceFile)};function Gc(e,t){for(var r=1,n=0;;){pr.lastIndex=n;var i=pr.exec(e);if(i&&i.index<t)++r,n=i.index+i[0].length;else return new dr(r,t-n)}}var wi={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function K0(e){var t={};for(var r in wi)t[r]=e&&gn(e,r)?e[r]:wi[r];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),Ba(t.onToken)){var n=t.onToken;t.onToken=function(i){return n.push(i)}}return Ba(t.onComment)&&(t.onComment=J0(t,t.onComment)),t}function J0(e,t){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};e.locations&&(u.loc=new mn(this,a,o)),e.ranges&&(u.range=[i,s]),t.push(u)}}var gr=1,Sr=2,Qi=gr|Sr,Kc=4,Jc=8,Yc=16,Zc=32,Qc=64,Xc=128;function Xi(e,t){return Sr|(e?Kc:0)|(t?Jc:0)}var La=0,es=1,Xe=2,eu=3,tu=4,ru=5,he=function(e,t,r){this.options=e=K0(e),this.sourceFile=e.sourceFile,this.keywords=xt(F0[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var n="";if(e.allowReserved!==!0){for(var i=e.ecmaVersion;!(n=Wn[i]);i--);e.sourceType==="module"&&(n+=" await")}this.reservedWords=xt(n);var s=(n?n+" ":"")+Wn.strict;this.reservedWordsStrict=xt(s),this.reservedWordsStrictBind=xt(s+" "+Wn.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
|
|
67
|
+
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Me).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(gr),this.regexpState=null},Ot={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};he.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};Ot.inFunction.get=function(){return(this.currentVarScope().flags&Sr)>0};Ot.inGenerator.get=function(){return(this.currentVarScope().flags&Jc)>0};Ot.inAsync.get=function(){return(this.currentVarScope().flags&Kc)>0};Ot.allowSuper.get=function(){return(this.currentThisScope().flags&Qc)>0};Ot.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Xc)>0};Ot.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};he.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&Sr)>0};he.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r};he.parse=function(e,t){return new this(t,e).parse()};he.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()};he.tokenizer=function(e,t){return new this(t,e)};Object.defineProperties(he.prototype,Ot);var xe=he.prototype,Y0=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;xe.strictDirective=function(e){for(;;){ke.lastIndex=e,e+=ke.exec(this.input)[0].length;var t=Y0.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ke.lastIndex=e+t[0].length;var r=ke.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||Me.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}e+=t[0].length,ke.lastIndex=e,e+=ke.exec(this.input)[0].length,this.input[e]===";"&&e++}};xe.eat=function(e){return this.type===e?(this.next(),!0):!1};xe.isContextual=function(e){return this.type===m.name&&this.value===e&&!this.containsEsc};xe.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};xe.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};xe.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||Me.test(this.input.slice(this.lastTokEnd,this.start))};xe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};xe.semicolon=function(){!this.eat(m.semi)&&!this.insertSemicolon()&&this.unexpected()};xe.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};xe.expect=function(e){this.eat(e)||this.unexpected()};xe.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};function vn(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}xe.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};xe.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};xe.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};xe.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Y=he.prototype;Y.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==m.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ts={kind:"loop"},Z0={kind:"switch"};Y.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ke.lastIndex=this.pos;var t=ke.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(n===91)return!0;if(e)return!1;if(n===123)return!0;if(pt(n,!0)){for(var i=r+1;zt(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(r,i);if(!U0.test(s))return!0}return!1};Y.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ke.lastIndex=this.pos;var e=ke.exec(this.input),t=this.pos+e[0].length;return!Me.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!zt(this.input.charAt(t+8)))};Y.parseStatement=function(e,t,r){var n=this.type,i=this.startNode(),s;switch(this.isLet(e)&&(n=m._var,s="let"),n){case m._break:case m._continue:return this.parseBreakContinueStatement(i,n.keyword);case m._debugger:return this.parseDebuggerStatement(i);case m._do:return this.parseDoStatement(i);case m._for:return this.parseForStatement(i);case m._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case m._class:return e&&this.unexpected(),this.parseClass(i,!0);case m._if:return this.parseIfStatement(i);case m._return:return this.parseReturnStatement(i);case m._switch:return this.parseSwitchStatement(i);case m._throw:return this.parseThrowStatement(i);case m._try:return this.parseTryStatement(i);case m._const:case m._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case m._while:return this.parseWhileStatement(i);case m._with:return this.parseWithStatement(i);case m.braceL:return this.parseBlock(!0,i);case m.semi:return this.parseEmptyStatement(i);case m._export:case m._import:if(this.options.ecmaVersion>10&&n===m._import){ke.lastIndex=this.pos;var a=ke.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===m._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var c=this.value,l=this.parseExpression();return n===m.name&&l.type==="Identifier"&&this.eat(m.colon)?this.parseLabeledStatement(i,c,l,e):this.parseExpressionStatement(i,l)}};Y.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(m.semi)||this.insertSemicolon()?e.label=null:this.type!==m.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};Y.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Y.parseDoStatement=function(e){return this.next(),this.labels.push(ts),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(m._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(m.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Y.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ts),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===m._var||this.type===m._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===m._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var s=new vn,a=this.parseExpression(!0,s);return this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===m._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))};Y.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,ar|(r?0:xi),!1,t)};Y.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Y.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Y.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(m.braceL),this.labels.push(Z0),this.enterScope(0);for(var t,r=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var n=this.type===m._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(m.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Y.parseThrowStatement=function(e){return this.next(),Me.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q0=[];Y.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===m._catch){var t=this.startNode();if(this.next(),this.eat(m.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?Zc:0),this.checkLVal(t.param,r?tu:Xe),this.expect(m.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(m._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Y.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Y.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ts),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Y.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Y.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Y.parseLabeledStatement=function(e,t,r,n){for(var i=0,s=this.labels;i<s.length;i+=1){var a=s[i];a.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===m._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};Y.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Y.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(m.braceL),e&&this.enterScope(0);this.type!==m.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Y.parseFor=function(e,t){return e.init=t,this.expect(m.semi),e.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),e.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Y.parseForIn=function(e,t){var r=this.type===m._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):t.type==="AssignmentPattern"&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};Y.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(m.eq)?n.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():n.id.type!=="Identifier"&&!(t&&(this.type===m._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(m.comma))break}return e};Y.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t==="var"?es:Xe,!1)};var ar=1,xi=2,nu=4;Y.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===m.star&&t&xi&&this.unexpected(),e.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&ar&&(e.id=t&nu&&this.type!==m.name?null:this.parseIdent(),e.id&&!(t&xi)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?es:Xe:eu));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Xi(e.async,e.generator)),t&ar||(e.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&ar?"FunctionDeclaration":"FunctionExpression")};Y.parseFunctionParams=function(e){this.expect(m.parenL),e.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Y.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),i=!1;for(n.body=[],this.expect(m.braceL);this.type!==m.braceR;){var s=this.parseClassElement(e.superClass!==null);s&&(n.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Y.parseClassElement=function(e){var t=this;if(this.eat(m.semi))return null;var r=this.startNode(),n=function(u,c){c===void 0&&(c=!1);var l=t.start,h=t.startLoc;return t.eatContextual(u)?t.type!==m.parenL&&(!c||!t.canInsertSemicolon())?!0:(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(l,h),r.key.name=u,t.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=n("static");var i=this.eat(m.star),s=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(m.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,o=!1;return!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")?(r.kind!=="method"&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",o=e):r.static&&a.type==="Identifier"&&a.name==="prototype"&&this.raise(a.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,i,s,o),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};Y.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")};Y.parseClassId=function(e,t){this.type===m.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,Xe,!1)):(t===!0&&this.unexpected(),e.id=null)};Y.parseClassSuper=function(e){e.superClass=this.eat(m._extends)?this.parseExprSubscripts():null};Y.parseExport=function(e,t){if(this.next(),this.eat(m.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(m._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===m._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,ar|nu,!1,r)}else if(this.type===m._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,a=e.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Y.checkExport=function(e,t,r){e&&(gn(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};Y.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t.name,t.start);else if(r==="ObjectPattern")for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(e,s)}else if(r==="ArrayPattern")for(var a=0,o=t.elements;a<o.length;a+=1){var u=o[a];u&&this.checkPatternExport(e,u)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"?this.checkPatternExport(e,t.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)};Y.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}};Y.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Y.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(r)r=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t};Y.parseImport=function(e){return this.next(),this.type===m.string?(e.specifiers=Q0,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===m.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Y.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===m.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,Xe),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(m.comma))return e}if(this.type===m.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLVal(n.local,Xe),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(m.braceL);!this.eat(m.braceR);){if(t)t=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,Xe),e.push(this.finishNode(i,"ImportSpecifier"))}return e};Y.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Y.isDirectiveCandidate=function(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var it=he.prototype;it.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};it.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var s=e[r-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};it.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};it.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==m.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};it.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case m.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(m.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case m.braceL:return this.parseObj(!0)}return this.parseIdent()};it.parseBindingList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(m.comma),t&&this.type===m.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===m.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),n.push(s),this.type===m.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}}return n};it.parseBindingListItem=function(e){return e};it.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(m.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};it.checkLVal=function(e,t,r){switch(t===void 0&&(t=La),e.type){case"Identifier":t===Xe&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(gn(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==La&&t!==ru&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkLVal(s,t,r)}break;case"Property":this.checkLVal(e.value,t,r);break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var u=o[a];u&&this.checkLVal(u,t,r)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r);break;case"RestElement":this.checkLVal(e.argument,t,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var Z=he.prototype;Z.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n=e.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var a=t[i];if(a){var o;s==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[s],o&&this.raiseRecoverable(n.start,"Redefinition of property")}else a=t[i]={init:!1,get:!1,set:!1};a[s]=!0}};Z.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===m.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(m.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i};Z.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,s=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new vn,n=!0);var a=this.start,o=this.startLoc;(this.type===m.parenL||this.type===m.name)&&(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,a,o)),this.type.isAssign){var c=this.startNodeAt(a,o);return c.operator=this.value,c.left=this.type===m.eq?this.toAssignable(u,!1,t):u,n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}else n&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),u};Z.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(m.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(m.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i};Z.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,e)};Z.parseExprOp=function(e,t,r,n,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==m._in)&&s>n){var a=this.type===m.logicalOR||this.type===m.logicalAND,o=this.type===m.coalesce;o&&(s=m.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,l,s,i),f=this.buildBinary(t,r,e,h,u,a||o);return(a&&this.type===m.coalesce||o&&(this.type===m.logicalOR||this.type===m.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,r,n,i)}return e};Z.buildBinary=function(e,t,r,n,i,s){var a=this.startNodeAt(e,t);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};Z.parseMaybeUnary=function(e,t){var r=this.start,n=this.startLoc,i;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),t=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===m.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(s.argument):this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,i=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,n);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!t&&this.eat(m.starstar)?this.buildBinary(r,n,i,this.parseMaybeUnary(null,!1),"**",!1):i};Z.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,n=this.parseExprAtom(e);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var i=this.parseSubscripts(n,t,r);return e&&i.type==="MemberExpression"&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i};Z.parseSubscripts=function(e,t,r,n){for(var i=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,r,n,i,s);if(a.optional&&(s=!0),a===e||a.type==="ArrowFunctionExpression"){if(s){var o=this.startNodeAt(t,r);o.expression=a,a=this.finishNode(o,"ChainExpression")}return a}e=a}};Z.parseSubscript=function(e,t,r,n,i,s){var a=this.options.ecmaVersion>=11,o=a&&this.eat(m.questionDot);n&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(m.bracketL);if(u||o&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var c=this.startNodeAt(t,r);c.object=e,c.property=u?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!u,u&&this.expect(m.bracketR),a&&(c.optional=o),e=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(m.parenL)){var l=new vn,h=this.yieldPos,f=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var d=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1,l);if(i&&!o&&!this.canInsertSemicolon()&&this.eat(m.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=f,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,r),d,!0);this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var g=this.startNodeAt(t,r);g.callee=e,g.arguments=d,a&&(g.optional=o),e=this.finishNode(g,"CallExpression")}else if(this.type===m.backQuote){(o||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,r);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e};Z.parseExprAtom=function(e){this.type===m.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case m._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type===m.parenL&&!this.allowDirectSuper&&this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL&&this.unexpected(),this.finishNode(t,"Super");case m._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case m.name:var n=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[a],!1);if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===m.name&&!s)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(m.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[a],!0)}return a;case m.regexp:var o=this.value;return t=this.parseLiteral(o.value),t.regex={pattern:o.pattern,flags:o.flags},t;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return t=this.startNode(),t.value=this.type===m._null?null:this.type===m._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case m.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case m.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(m.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case m.braceL:return this.parseObj(!1,e);case m._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};Z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case m.parenL:return this.parseDynamicImport(e);case m.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};Z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(m.parenR)){var t=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};Z.parseParenExpression=function(){this.expect(m.parenL);var e=this.parseExpression();return this.expect(m.parenR),e};Z.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc,o=[],u=!0,c=!1,l=new vn,h=this.yieldPos,f=this.awaitPos,p;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;)if(u?u=!1:this.expect(m.comma),i&&this.afterTrailingComma(m.parenR,!0)){c=!0;break}else if(this.type===m.ellipsis){p=this.start,o.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else o.push(this.parseMaybeAssign(!1,l,this.parseParenItem));var d=this.start,g=this.startLoc;if(this.expect(m.parenR),e&&!this.canInsertSemicolon()&&this.eat(m.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=f,this.parseParenArrowList(t,r,o);(!o.length||c)&&this.unexpected(this.lastTokStart),p&&this.unexpected(p),this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,o.length>1?(n=this.startNodeAt(s,a),n.expressions=o,this.finishNodeAt(n,"SequenceExpression",d,g)):n=o[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(t,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}else return n};Z.parseParenItem=function(e){return e};Z.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var X0=[];Z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(m.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc,s=this.type===m._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),s&&e.callee.type==="ImportExpression"&&this.raise(n,"Cannot use new with import()"),this.eat(m.parenL)?e.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):e.arguments=X0,this.finishNode(e,"NewExpression")};Z.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===m.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
68
|
+
`),cooked:this.value},this.next(),r.tail=this.type===m.backQuote,this.finishNode(r,"TemplateElement")};Z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(m.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};Z.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!Me.test(this.input.slice(this.lastTokEnd,this.start))};Z.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(m.braceR);){if(n)n=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};Z.parseProperty=function(e,t){var r=this.startNode(),n,i,s,a;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===m.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===m.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,t),this.type===m.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(n=this.eat(m.star)));var o=this.containsEsc;return this.parsePropertyName(r),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(r,t)):i=!1,this.parsePropertyValue(r,e,n,i,s,a,t,o),this.finishNode(r,"Property")};Z.parsePropertyValue=function(e,t,r,n,i,s,a,o){if((r||n)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===m.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq){(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u=e.kind==="get"?0:1;if(e.value.params.length!==u){var c=e.value.start;e.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,e.key):this.type===m.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()};Z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(m.bracketR),e.key;e.computed=!1}return e.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Z.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Xi(t,n.generator)|Qc|(r?Xc:0)),this.expect(m.parenL),n.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")};Z.parseArrowExpression=function(e,t,r){var n=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(Xi(r,!1)|Yc),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")};Z.parseFunctionBody=function(e,t,r){var n=t&&this.type!==m.braceL,i=this.strict,s=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!i||a)&&(s=this.strictDirective(this.end),s&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var o=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,ru),e.body=this.parseBlock(!1,void 0,s&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitScope()};Z.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var n=r[t];if(n.type!=="Identifier")return!1}return!0};Z.checkParams=function(e,t){for(var r={},n=0,i=e.params;n<i.length;n+=1){var s=i[n];this.checkLVal(s,es,t?null:r)}};Z.parseExprList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(m.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===m.comma?a=null:this.type===m.ellipsis?(a=this.parseSpread(n),n&&this.type===m.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),i.push(a)}return i};Z.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}};Z.parseIdent=function(e,t){var r=this.startNode();return this.type===m.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,(r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r};Z.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(m.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Z.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var Qr=he.prototype;Qr.raise=function(e,t){var r=Gc(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n};Qr.raiseRecoverable=Qr.raise;Qr.curPosition=function(){if(this.options.locations)return new dr(this.curLine,this.pos-this.lineStart)};var mt=he.prototype,eb=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};mt.enterScope=function(e){this.scopeStack.push(new eb(e))};mt.exitScope=function(){this.scopeStack.pop()};mt.treatFunctionsAsVarInScope=function(e){return e.flags&Sr||!this.inModule&&e.flags&gr};mt.declareName=function(e,t,r){var n=!1;if(t===Xe){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&gr&&delete this.undefinedExports[e]}else if(t===tu){var s=this.currentScope();s.lexical.push(e)}else if(t===eu){var a=this.currentScope();this.treatFunctionsAsVar?n=a.lexical.indexOf(e)>-1:n=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var u=this.scopeStack[o];if(u.lexical.indexOf(e)>-1&&!(u.flags&Zc&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){n=!0;break}if(u.var.push(e),this.inModule&&u.flags&gr&&delete this.undefinedExports[e],u.flags&Qi)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};mt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};mt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};mt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Qi)return t}};mt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Qi&&!(t.flags&Yc))return t}};var rs=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new mn(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},yn=he.prototype;yn.startNode=function(){return new rs(this,this.start,this.startLoc)};yn.startNodeAt=function(e,t){return new rs(this,e,t)};function iu(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}yn.finishNode=function(e,t){return iu.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};yn.finishNodeAt=function(e,t,r,n){return iu.call(this,e,t,r,n)};var Ve=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},ue={b_stat:new Ve("{",!1),b_expr:new Ve("{",!0),b_tmpl:new Ve("${",!1),p_stat:new Ve("(",!1),p_expr:new Ve("(",!0),q_tmpl:new Ve("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ve("function",!1),f_expr:new Ve("function",!0),f_expr_gen:new Ve("function",!0,!1,null,!0),f_gen:new Ve("function",!1,!1,null,!0)},bn=he.prototype;bn.initialContext=function(){return[ue.b_stat]};bn.braceIsBlock=function(e){var t=this.curContext();return t===ue.f_expr||t===ue.f_stat?!0:e===m.colon&&(t===ue.b_stat||t===ue.b_expr)?!t.isExpr:e===m._return||e===m.name&&this.exprAllowed?Me.test(this.input.slice(this.lastTokEnd,this.start)):e===m._else||e===m.semi||e===m.eof||e===m.parenR||e===m.arrow?!0:e===m.braceL?t===ue.b_stat:e===m._var||e===m._const||e===m.name?!1:!this.exprAllowed};bn.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};bn.updateContext=function(e){var t,r=this.type;r.keyword&&e===m.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ue.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};m.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ue.b_stat:ue.b_expr),this.exprAllowed=!0};m.dollarBraceL.updateContext=function(){this.context.push(ue.b_tmpl),this.exprAllowed=!0};m.parenL.updateContext=function(e){var t=e===m._if||e===m._for||e===m._with||e===m._while;this.context.push(t?ue.p_stat:ue.p_expr),this.exprAllowed=!0};m.incDec.updateContext=function(){};m._function.updateContext=m._class.updateContext=function(e){e.beforeExpr&&e!==m.semi&&e!==m._else&&!(e===m._return&&Me.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===m.colon||e===m.braceL)&&this.curContext()===ue.b_stat)?this.context.push(ue.f_expr):this.context.push(ue.f_stat),this.exprAllowed=!1};m.backQuote.updateContext=function(){this.curContext()===ue.q_tmpl?this.context.pop():this.context.push(ue.q_tmpl),this.exprAllowed=!1};m.star.updateContext=function(e){if(e===m._function){var t=this.context.length-1;this.context[t]===ue.f_expr?this.context[t]=ue.f_expr_gen:this.context[t]=ue.f_gen}this.exprAllowed=!0};m.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==m.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var su="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",au=su+" Extended_Pictographic",tb=au,rb={9:su,10:au,11:tb},ja="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ou="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",cu=ou+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",nb=cu+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ib={9:ou,10:cu,11:nb},uu={};function ns(e){var t=uu[e]={binary:xt(rb[e]+" "+ja),nonBinary:{General_Category:xt(ja),Script:xt(ib[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}ns(9);ns(10);ns(11);var K=he.prototype,st=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=uu[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};st.prototype.reset=function(e,t,r){var n=r.indexOf("u")!==-1;this.start=e|0,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9};st.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};st.prototype.at=function(e,t){t===void 0&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=n)return i;var s=r.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i};st.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i=r.charCodeAt(e),s;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=n||(s=r.charCodeAt(e+1))<56320||s>57343?e+1:e+2};st.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)};st.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)};st.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)};st.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1};function Xr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}K.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var i=r.charAt(n);t.indexOf(i)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}};K.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};K.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames.indexOf(n)===-1&&e.raise("Invalid named capture referenced")}};K.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};K.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};K.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};K.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};K.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};K.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};K.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};K.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};K.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};K.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};K.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};K.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};K.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};K.regexp_eatSyntaxCharacter=function(e){var t=e.current();return lu(t)?(e.lastIntValue=t,e.advance(),!0):!1};function lu(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}K.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!lu(r);)e.advance();return e.pos!==t};K.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};K.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};K.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};K.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Xr(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Xr(e.lastIntValue);return!0}return!1};K.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),sb(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function sb(e){return pt(e,!0)||e===36||e===95}K.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),ab(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function ab(e){return zt(e,!0)||e===36||e===95||e===8204||e===8205}K.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};K.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};K.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};K.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};K.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};K.regexp_eatZero=function(e){return e.current()===48&&!_n(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};K.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};K.regexp_eatControlLetter=function(e){var t=e.current();return hu(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function hu(e){return e>=65&&e<=90||e>=97&&e<=122}K.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(n&&i>=55296&&i<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(i-55296)*1024+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ob(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function ob(e){return e>=0&&e<=1114111}K.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};K.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};K.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(cb(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function cb(e){return e===100||e===68||e===115||e===83||e===119||e===87}K.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1};K.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){gn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};K.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};K.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";fu(t=e.current());)e.lastStringValue+=Xr(t),e.advance();return e.lastStringValue!==""};function fu(e){return hu(e)||e===95}K.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ub(t=e.current());)e.lastStringValue+=Xr(t),e.advance();return e.lastStringValue!==""};function ub(e){return fu(e)||_n(e)}K.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};K.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};K.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};K.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||gu(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1};K.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};K.regexp_eatClassControlLetter=function(e){var t=e.current();return _n(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};K.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};K.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;_n(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function _n(e){return e>=48&&e<=57}K.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;pu(r=e.current());)e.lastIntValue=16*e.lastIntValue+du(r),e.advance();return e.pos!==t};function pu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function du(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}K.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};K.regexp_eatOctalDigit=function(e){var t=e.current();return gu(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function gu(e){return e>=48&&e<=55}K.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!pu(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+du(i),e.advance()}return!0};var is=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new mn(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},X=he.prototype;X.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new is(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};X.getToken=function(){return this.next(),new is(this)};typeof Symbol<"u"&&(X[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===m.eof,value:t}}}});X.curContext=function(){return this.context[this.context.length-1]};X.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(m.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};X.readToken=function(e){return pt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};X.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};X.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){pr.lastIndex=t;for(var n;(n=pr.exec(this.input))&&n.index<this.pos;)++this.curLine,this.lineStart=n.index+n[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};X.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!xr(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};X.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&zc.test(String.fromCharCode(e)))++this.pos;else break e}}};X.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};X.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))};X.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(m.assign,2):this.finishOp(m.slash,1)};X.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=e===42?m.star:m.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,n=m.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(m.assign,r+1):this.finishOp(n,r)};X.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(m.assign,3)}return this.finishOp(e===124?m.logicalOR:m.logicalAND,2)}return t===61?this.finishOp(m.assign,2):this.finishOp(e===124?m.bitwiseOR:m.bitwiseAND,1)};X.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)};X.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Me.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(m.incDec,2):t===61?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)};X.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(m.assign,r+1):this.finishOp(m.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(m.relational,r))};X.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(e===61?m.eq:m.prefix,1)};X.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(m.questionDot,2)}if(t===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(m.assign,3)}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)};X.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1)}this.raise(this.pos,"Unexpected character '"+ss(e)+"'")};X.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};X.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(Me.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(n==="[")t=!0;else if(n==="]"&&t)t=!1;else if(n==="/"&&!t)break;e=n==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new st(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var u=null;try{u=new RegExp(i,a)}catch(c){}return this.finishToken(m.regexp,{pattern:i,flags:a,value:u})};X.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,a=0,o=0,u=0,c=t!=null?t:1/0;u<c;++u,++this.pos){var l=this.input.charCodeAt(this.pos),h=void 0;if(n&&l===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;continue}if(l>=97?h=l-97+10:l>=65?h=l-65+10:l>=48&&l<=57?h=l-48:h=1/0,h>=e)break;o=l,a=a*e+h}return n&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:a};function lb(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function mu(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}X.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=mu(this.input.slice(t,this.pos)),++this.pos):pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,r)};X.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&n===110){var i=mu(this.input.slice(t,this.pos));return++this.pos,pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),n===46&&!r&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!r&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=lb(this.input.slice(t,this.pos),r);return this.finishToken(m.num,s)};X.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};function ss(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}X.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(xr(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(m.string,t)};var vu={};X.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===vu)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};X.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw vu;this.raise(e,t)};X.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(m.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(xr(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
69
|
+
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};X.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(m.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};X.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
70
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ss(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return xr(t)?"":String.fromCharCode(t)}};X.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};X.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(zt(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?pt:zt)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=ss(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};X.readWord=function(){var e=this.readWord1(),t=m.name;return this.keywords.test(e)&&(t=Zi[e]),this.finishToken(t,e)};var hb="7.4.1";he.acorn={Parser:he,version:hb,defaultOptions:wi,Position:dr,SourceLocation:mn,getLineInfo:Gc,Node:rs,TokenType:te,tokTypes:m,keywordTypes:Zi,TokContext:Ve,tokContexts:ue,isIdentifierChar:zt,isIdentifierStart:pt,Token:is,isNewLine:xr,lineBreak:Me,lineBreakG:pr,nonASCIIwhitespace:zc};function fb(e,t){return he.parse(e,t)}class pb extends Error{}class db extends SyntaxError{}class Si extends ReferenceError{}class gb extends TypeError{}class yu extends pb{}class mb extends db{}let Fe=class extends Si{};const ve={ExecutionTimeOutError:[3002,"Script execution timed out after %0ms",yu],NodeTypeSyntaxError:[1001,"Unknown node type: %0",Fe],BinaryOperatorSyntaxError:[1002,"Unknown binary operator: %0",Fe],LogicalOperatorSyntaxError:[1003,"Unknown logical operator: %0",Fe],UnaryOperatorSyntaxError:[1004,"Unknown unary operator: %0",Fe],UpdateOperatorSyntaxError:[1005,"Unknown update operator: %0",Fe],ObjectStructureSyntaxError:[1006,"Unknown object structure: %0",Fe],AssignmentExpressionSyntaxError:[1007,"Unknown assignment expression: %0",Fe],VariableTypeSyntaxError:[1008,"Unknown variable type: %0",Fe],ParamTypeSyntaxError:[1009,"Unknown param type: %0",Fe],AssignmentTypeSyntaxError:[1010,"Unknown assignment type: %0",Fe],FunctionUndefinedReferenceError:[2001,"%0 is not a function",Si],VariableUndefinedReferenceError:[2002,"%0 is not defined",Si],IsNotConstructor:[2003,"%0 is not a constructor",gb]},vb="1.4.8";function Ma(e,t){Object.defineProperty(e,"name",{value:t,writable:!1,enumerable:!1,configurable:!0})}const yb=Object.prototype.hasOwnProperty,$t=Symbol("Break"),Bt=Symbol("Continue"),Va=Symbol("DefaultCase"),me=Symbol("EmptyStatementReturn"),Fa=Symbol("WithScopeName"),Ua=Symbol("SuperScopeName"),Ha=Symbol("RootScopeName"),qa=Symbol("GlobalScopeName");function Kn(e){return typeof e=="function"}class lt{constructor(t){this.interpreter=t}generator(){const t=this.interpreter;function r(){return this.getCurrentScope()}function n(){return this.getGlobalScope()}function i(){return this.getCurrentContext()}return{getOptions:t.getOptions.bind(t),getCurrentScope:r.bind(t),getGlobalScope:n.bind(t),getCurrentContext:i.bind(t),getExecStartTime:t.getExecStartTime.bind(t)}}}function as(e,t,r=!0){if(!(e instanceof lt))throw new Error("Illegal call");if(typeof t!="string")return t;if(!t)return;const n=e.generator(),i={timeout:n.getOptions().timeout,_initEnv:function(){r||this.setCurrentContext(n.getCurrentContext()),this.execStartTime=n.getExecStartTime(),this.execEndTime=this.execStartTime}},s=r?n.getGlobalScope():n.getCurrentScope();return new at(s,i).evaluate(t)}Object.defineProperty(as,"__IS_EVAL_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});function os(e,...t){if(!(e instanceof lt))throw new Error("Illegal call");const r=e.generator(),n=t.pop(),i=new at(r.getGlobalScope(),r.getOptions()),s=`
|
|
71
|
+
(function anonymous(${t.join(",")}){
|
|
72
|
+
${n}
|
|
73
|
+
});
|
|
74
|
+
`;return i.evaluate(s)}Object.defineProperty(os,"__IS_FUNCTION_FUNC",{value:!0,writable:!1,enumerable:!1,configurable:!1});let ze=class{constructor(t){this.value=t}},bt=class{constructor(t){this.value=t}};class ct{constructor(t){this.value=t}}class Ft{constructor(t,r=null,n){this.name=n,this.parent=r,this.data=t,this.labelStack=[]}}function $r(){}function bb(e=null,t){return new Ft(Object.create(null),e,t)}function _b(e){return Object.create(e)}const Ze={NaN:NaN,Infinity:1/0,undefined:void 0,Object,Array,String,Boolean,Number,Date,RegExp,Error,URIError,TypeError,RangeError,SyntaxError,ReferenceError,Math,parseInt,parseFloat,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,unescape,eval:as,Function:os};typeof JSON<"u"&&(Ze.JSON=JSON);typeof Promise<"u"&&(Ze.Promise=Promise);typeof Set<"u"&&(Ze.Set=Set);typeof Map<"u"&&(Ze.Map=Map);typeof Symbol<"u"&&(Ze.Symbol=Symbol);typeof Proxy<"u"&&(Ze.Proxy=Proxy);typeof WeakMap<"u"&&(Ze.WeakMap=WeakMap);typeof WeakSet<"u"&&(Ze.WeakSet=WeakSet);typeof Reflect<"u"&&(Ze.Reflect=Reflect);let at=class nr{constructor(t=nr.global,r={}){this.sourceList=[],this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.isVarDeclMode=!1,this.lastExecNode=null,this.isRunning=!1,this.options={ecmaVersion:r.ecmaVersion||nr.ecmaVersion,timeout:r.timeout||0,rootContext:r.rootContext,globalContextInFunction:r.globalContextInFunction===void 0?nr.globalContextInFunction:r.globalContextInFunction,_initEnv:r._initEnv},this.context=t||Object.create(null),this.callStack=[],this.initEnvironment(this.context)}initEnvironment(t){let r;if(t instanceof Ft)r=t;else{let i=null;const s=this.createSuperScope(t);this.options.rootContext&&(i=new Ft(_b(this.options.rootContext),s,Ha)),r=new Ft(t,i||s,qa)}this.globalScope=r,this.currentScope=this.globalScope,this.globalContext=r.data,this.currentContext=r.data,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null),this.execStartTime=Date.now(),this.execEndTime=this.execStartTime;const n=this.options._initEnv;n&&n.call(this)}getExecStartTime(){return this.execStartTime}getExecutionTime(){return this.execEndTime-this.execStartTime}setExecTimeout(t=0){this.options.timeout=t}getOptions(){return this.options}getGlobalScope(){return this.globalScope}getCurrentScope(){return this.currentScope}getCurrentContext(){return this.currentContext}isInterruptThrow(t){return t instanceof yu||t instanceof Fe||t instanceof mb}createSuperScope(t){let r=Object.assign({},Ze);return Object.keys(r).forEach(n=>{n in t&&delete r[n]}),new Ft(r,null,Ua)}setCurrentContext(t){this.currentContext=t}setCurrentScope(t){this.currentScope=t}evaluate(t=""){let r;if(t)return r=fb(t,{ranges:!0,locations:!0,ecmaVersion:this.options.ecmaVersion||nr.ecmaVersion}),this.evaluateNode(r,t)}appendCode(t){return this.evaluate(t)}evaluateNode(t,r=""){this.value=void 0,this.source=r,this.sourceList.push(r),this.isRunning=!0,this.execStartTime=Date.now(),this.execEndTime=this.execStartTime,this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);const n=this.getCurrentScope(),i=this.getCurrentContext(),s=n.labelStack.concat([]),a=this.callStack.concat([]),o=()=>{this.setCurrentScope(n),this.setCurrentContext(i),n.labelStack=s,this.callStack=a};try{const u=this.createClosure(t);this.addDeclarationsToScope(this.collectDeclVars,this.collectDeclFuncs,this.getCurrentScope()),u()}catch(u){throw u}finally{o(),this.execEndTime=Date.now()}return this.isRunning=!1,this.getValue()}createErrorMessage(t,r,n){let i=t[1].replace("%0",String(r));return n!==null&&(i+=this.getNodePosition(n||this.lastExecNode)),i}createError(t,r){return new r(t)}createThrowError(t,r){return this.createError(t,r)}createInternalThrowError(t,r,n){return this.createError(this.createErrorMessage(t,r,n),t[2])}checkTimeout(){if(!this.isRunning)return!1;const t=this.options.timeout||0;return Date.now()-this.execStartTime>t}getNodePosition(t){return t&&t.loc?` [${t.loc.start.line}:${t.loc.start.column}]`:""}createClosure(t){let r;switch(t.type){case"BinaryExpression":r=this.binaryExpressionHandler(t);break;case"LogicalExpression":r=this.logicalExpressionHandler(t);break;case"UnaryExpression":r=this.unaryExpressionHandler(t);break;case"UpdateExpression":r=this.updateExpressionHandler(t);break;case"ObjectExpression":r=this.objectExpressionHandler(t);break;case"ArrayExpression":r=this.arrayExpressionHandler(t);break;case"CallExpression":r=this.callExpressionHandler(t);break;case"NewExpression":r=this.newExpressionHandler(t);break;case"MemberExpression":r=this.memberExpressionHandler(t);break;case"ThisExpression":r=this.thisExpressionHandler(t);break;case"SequenceExpression":r=this.sequenceExpressionHandler(t);break;case"Literal":r=this.literalHandler(t);break;case"Identifier":r=this.identifierHandler(t);break;case"AssignmentExpression":r=this.assignmentExpressionHandler(t);break;case"FunctionDeclaration":r=this.functionDeclarationHandler(t);break;case"VariableDeclaration":r=this.variableDeclarationHandler(t);break;case"BlockStatement":case"Program":r=this.programHandler(t);break;case"ExpressionStatement":r=this.expressionStatementHandler(t);break;case"EmptyStatement":r=this.emptyStatementHandler(t);break;case"ReturnStatement":r=this.returnStatementHandler(t);break;case"FunctionExpression":r=this.functionExpressionHandler(t);break;case"IfStatement":r=this.ifStatementHandler(t);break;case"ConditionalExpression":r=this.conditionalExpressionHandler(t);break;case"ForStatement":r=this.forStatementHandler(t);break;case"WhileStatement":r=this.whileStatementHandler(t);break;case"DoWhileStatement":r=this.doWhileStatementHandler(t);break;case"ForInStatement":r=this.forInStatementHandler(t);break;case"WithStatement":r=this.withStatementHandler(t);break;case"ThrowStatement":r=this.throwStatementHandler(t);break;case"TryStatement":r=this.tryStatementHandler(t);break;case"ContinueStatement":r=this.continueStatementHandler(t);break;case"BreakStatement":r=this.breakStatementHandler(t);break;case"SwitchStatement":r=this.switchStatementHandler(t);break;case"LabeledStatement":r=this.labeledStatementHandler(t);break;case"DebuggerStatement":r=this.debuggerStatementHandler(t);break;default:throw this.createInternalThrowError(ve.NodeTypeSyntaxError,t.type,t)}return(...n)=>{const i=this.options.timeout;if(i&&i>0&&this.checkTimeout())throw this.createInternalThrowError(ve.ExecutionTimeOutError,i,null);return this.lastExecNode=t,r(...n)}}binaryExpressionHandler(t){const r=this.createClosure(t.left),n=this.createClosure(t.right);return()=>{const i=r(),s=n();switch(t.operator){case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"<":return i<s;case"<=":return i<=s;case">":return i>s;case">=":return i>=s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s;case"+":return i+s;case"-":return i-s;case"*":return i*s;case"**":return Math.pow(i,s);case"/":return i/s;case"%":return i%s;case"|":return i|s;case"^":return i^s;case"&":return i&s;case"in":return i in s;case"instanceof":return i instanceof s;default:throw this.createInternalThrowError(ve.BinaryOperatorSyntaxError,t.operator,t)}}}logicalExpressionHandler(t){const r=this.createClosure(t.left),n=this.createClosure(t.right);return()=>{switch(t.operator){case"||":return r()||n();case"&&":return r()&&n();default:throw this.createInternalThrowError(ve.LogicalOperatorSyntaxError,t.operator,t)}}}unaryExpressionHandler(t){switch(t.operator){case"delete":const r=this.createObjectGetter(t.argument),n=this.createNameGetter(t.argument);return()=>{let s=r();const a=n();return delete s[a]};default:let i;if(t.operator==="typeof"&&t.argument.type==="Identifier"){const s=this.createObjectGetter(t.argument),a=this.createNameGetter(t.argument);i=()=>s()[a()]}else i=this.createClosure(t.argument);return()=>{const s=i();switch(t.operator){case"-":return-s;case"+":return+s;case"!":return!s;case"~":return~s;case"void":return;case"typeof":return typeof s;default:throw this.createInternalThrowError(ve.UnaryOperatorSyntaxError,t.operator,t)}}}}updateExpressionHandler(t){const r=this.createObjectGetter(t.argument),n=this.createNameGetter(t.argument);return()=>{const i=r(),s=n();switch(this.assertVariable(i,s,t),t.operator){case"++":return t.prefix?++i[s]:i[s]++;case"--":return t.prefix?--i[s]:i[s]--;default:throw this.createInternalThrowError(ve.UpdateOperatorSyntaxError,t.operator,t)}}}objectExpressionHandler(t){const r=[];function n(s){return s.type==="Identifier"?s.name:s.type==="Literal"?s.value:this.throwError(ve.ObjectStructureSyntaxError,s.type,s)}const i=Object.create(null);return t.properties.forEach(s=>{const a=s.kind,o=n(s.key);(!i[o]||a==="init")&&(i[o]={}),i[o][a]=this.createClosure(s.value),r.push({key:o,property:s})}),()=>{const s={},a=r.length;for(let o=0;o<a;o++){const u=r[o],c=u.key,l=i[c],h=l.init?l.init():void 0,f=l.get?l.get():function(){},p=l.set?l.set():function(d){};if("set"in l||"get"in l)Object.defineProperty(s,c,{configurable:!0,enumerable:!0,get:f,set:p});else{const d=u.property,g=d.kind;d.key.type==="Identifier"&&d.value.type==="FunctionExpression"&&g==="init"&&!d.value.id&&Ma(h,d.key.name),s[c]=h}}return s}}arrayExpressionHandler(t){const r=t.elements.map(n=>n&&this.createClosure(n));return()=>{const n=r.length,i=Array(n);for(let s=0;s<n;s++){const a=r[s];a&&(i[s]=a())}return i}}safeObjectGet(t,r,n){return t[r]}createCallFunctionGetter(t){switch(t.type){case"MemberExpression":const r=this.createClosure(t.object),n=this.createMemberKeyGetter(t),i=this.source;return()=>{const a=r(),o=n(),u=this.safeObjectGet(a,o,t);if(!u||!Kn(u)){const c=i.slice(t.start,t.end);throw this.createInternalThrowError(ve.FunctionUndefinedReferenceError,c,t)}return u.__IS_EVAL_FUNC?c=>u(new lt(this),c,!0):u.__IS_FUNCTION_FUNC?(...c)=>u(new lt(this),...c):u.bind(a)};default:const s=this.createClosure(t);return()=>{let a="";t.type==="Identifier"&&(a=t.name);const o=s();if(!o||!Kn(o))throw this.createInternalThrowError(ve.FunctionUndefinedReferenceError,a,t);if(t.type==="Identifier"&&o.__IS_EVAL_FUNC&&a==="eval")return c=>{const l=this.getScopeFromName(a,this.getCurrentScope()),h=l.name===Ua||l.name===qa||l.name===Ha;return o(new lt(this),c,!h)};if(o.__IS_EVAL_FUNC)return c=>o(new lt(this),c,!0);if(o.__IS_FUNCTION_FUNC)return(...c)=>o(new lt(this),...c);let u=this.options.globalContextInFunction;if(t.type==="Identifier"){const c=this.getIdentifierScope(t);c.name===Fa&&(u=c.data)}return o.bind(u)}}}callExpressionHandler(t){const r=this.createCallFunctionGetter(t.callee),n=t.arguments.map(i=>this.createClosure(i));return()=>r()(...n.map(i=>i()))}functionExpressionHandler(t){const r=this,n=this.source,i=this.collectDeclVars,s=this.collectDeclFuncs;this.collectDeclVars=Object.create(null),this.collectDeclFuncs=Object.create(null);const a=t.id?t.id.name:"",o=t.params.length,u=t.params.map(f=>this.createParamNameGetter(f)),c=this.createClosure(t.body),l=this.collectDeclVars,h=this.collectDeclFuncs;return this.collectDeclVars=i,this.collectDeclFuncs=s,()=>{const f=r.getCurrentScope(),p=function(...d){r.callStack.push(`${a}`);const g=r.getCurrentScope(),v=bb(f,`FunctionScope(${a})`);r.setCurrentScope(v),r.addDeclarationsToScope(l,h,v),a&&(v.data[a]=p),v.data.arguments=arguments,u.forEach((b,x)=>{v.data[b()]=d[x]});const w=r.getCurrentContext();r.setCurrentContext(this);const y=c();if(r.setCurrentContext(w),r.setCurrentScope(g),r.callStack.pop(),y instanceof ze)return y.value};return Ma(p,a),Object.defineProperty(p,"length",{value:o,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(p,"toString",{value:()=>n.slice(t.start,t.end),writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(p,"valueOf",{value:()=>n.slice(t.start,t.end),writable:!0,configurable:!0,enumerable:!1}),p}}newExpressionHandler(t){const r=this.source,n=this.createClosure(t.callee),i=t.arguments.map(s=>this.createClosure(s));return()=>{const s=n();if(!Kn(s)||s.__IS_EVAL_FUNC){const a=t.callee,o=r.slice(a.start,a.end);throw this.createInternalThrowError(ve.IsNotConstructor,o,t)}return s.__IS_FUNCTION_FUNC?s(new lt(this),...i.map(a=>a())):new s(...i.map(a=>a()))}}memberExpressionHandler(t){const r=this.createClosure(t.object),n=this.createMemberKeyGetter(t);return()=>{const i=r();let s=n();return i[s]}}thisExpressionHandler(t){return()=>this.getCurrentContext()}sequenceExpressionHandler(t){const r=t.expressions.map(n=>this.createClosure(n));return()=>{let n;const i=r.length;for(let s=0;s<i;s++){const a=r[s];n=a()}return n}}literalHandler(t){return()=>t.regex?new RegExp(t.regex.pattern,t.regex.flags):t.value}identifierHandler(t){return()=>{const r=this.getCurrentScope(),n=this.getScopeDataFromName(t.name,r);return this.assertVariable(n,t.name,t),n[t.name]}}getIdentifierScope(t){const r=this.getCurrentScope();return this.getScopeFromName(t.name,r)}assignmentExpressionHandler(t){t.left.type==="Identifier"&&t.right.type==="FunctionExpression"&&!t.right.id&&(t.right.id={type:"Identifier",name:t.left.name});const r=this.createObjectGetter(t.left),n=this.createNameGetter(t.left),i=this.createClosure(t.right);return()=>{const s=r(),a=n(),o=i();switch(t.operator!=="="&&this.assertVariable(s,a,t),t.operator){case"=":return s[a]=o;case"+=":return s[a]+=o;case"-=":return s[a]-=o;case"*=":return s[a]*=o;case"**=":return s[a]=Math.pow(s[a],o);case"/=":return s[a]/=o;case"%=":return s[a]%=o;case"<<=":return s[a]<<=o;case">>=":return s[a]>>=o;case">>>=":return s[a]>>>=o;case"&=":return s[a]&=o;case"^=":return s[a]^=o;case"|=":return s[a]|=o;default:throw this.createInternalThrowError(ve.AssignmentExpressionSyntaxError,t.type,t)}}}functionDeclarationHandler(t){if(t.id){const r=this.functionExpressionHandler(t);Object.defineProperty(r,"isFunctionDeclareClosure",{value:!0,writable:!1,configurable:!1,enumerable:!1}),this.funcDeclaration(t.id.name,r)}return()=>me}getVariableName(t){if(t.type==="Identifier")return t.name;throw this.createInternalThrowError(ve.VariableTypeSyntaxError,t.type,t)}variableDeclarationHandler(t){let r;const n=[];for(let i=0;i<t.declarations.length;i++){const s=t.declarations[i];this.varDeclaration(this.getVariableName(s.id)),s.init&&n.push({type:"AssignmentExpression",operator:"=",left:s.id,right:s.init})}return n.length&&(r=this.createClosure({type:"BlockStatement",body:n})),()=>{if(r){const i=this.isVarDeclMode;this.isVarDeclMode=!0,r(),this.isVarDeclMode=i}return me}}assertVariable(t,r,n){if(t===this.globalScope.data&&!(r in t))throw this.createInternalThrowError(ve.VariableUndefinedReferenceError,r,n)}programHandler(t){const r=t.body.map(n=>this.createClosure(n));return()=>{let n=me;for(let i=0;i<r.length;i++){const s=r[i],a=this.setValue(s());if(a!==me&&(n=a,n instanceof ze||n instanceof bt||n instanceof ct||n===$t||n===Bt))break}return n}}expressionStatementHandler(t){return this.createClosure(t.expression)}emptyStatementHandler(t){return()=>me}returnStatementHandler(t){const r=t.argument?this.createClosure(t.argument):$r;return()=>new ze(r())}ifStatementHandler(t){const r=this.createClosure(t.test),n=this.createClosure(t.consequent),i=t.alternate?this.createClosure(t.alternate):(()=>me);return()=>r()?n():i()}conditionalExpressionHandler(t){return this.ifStatementHandler(t)}forStatementHandler(t){let r=$r,n=t.test?this.createClosure(t.test):()=>!0,i=$r;const s=this.createClosure(t.body);return t.type==="ForStatement"&&(r=t.init?this.createClosure(t.init):r,i=t.update?this.createClosure(t.update):$r),a=>{let o,u=me,c=t.type==="DoWhileStatement";for(a&&a.type==="LabeledStatement"&&(o=a.label.name),r();c||n();i()){c=!1;const l=this.setValue(s());if(!(l===me||l===Bt)){if(l===$t)break;if(u=l,u instanceof ct&&u.value===o){u=me;continue}if(u instanceof ze||u instanceof bt||u instanceof ct)break}}return u}}whileStatementHandler(t){return this.forStatementHandler(t)}doWhileStatementHandler(t){return this.forStatementHandler(t)}forInStatementHandler(t){let r=t.left;const n=this.createClosure(t.right),i=this.createClosure(t.body);return t.left.type==="VariableDeclaration"&&(this.createClosure(t.left)(),r=t.left.declarations[0].id),s=>{let a,o=me,u;s&&s.type==="LabeledStatement"&&(a=s.label.name);const c=n();for(u in c){this.assignmentExpressionHandler({type:"AssignmentExpression",operator:"=",left:r,right:{type:"Literal",value:u}})();const l=this.setValue(i());if(!(l===me||l===Bt)){if(l===$t)break;if(o=l,o instanceof ct&&o.value===a){o=me;continue}if(o instanceof ze||o instanceof bt||o instanceof ct)break}}return o}}withStatementHandler(t){const r=this.createClosure(t.object),n=this.createClosure(t.body);return()=>{const i=r(),s=this.getCurrentScope(),a=new Ft(i,s,Fa);this.setCurrentScope(a);const o=this.setValue(n());return this.setCurrentScope(s),o}}throwStatementHandler(t){const r=this.createClosure(t.argument);return()=>{throw this.setValue(void 0),r()}}tryStatementHandler(t){const r=this.createClosure(t.block),n=t.handler?this.catchClauseHandler(t.handler):null,i=t.finalizer?this.createClosure(t.finalizer):null;return()=>{const s=this.getCurrentScope(),a=this.getCurrentContext(),o=s.labelStack.concat([]),u=this.callStack.concat([]);let c=me,l,h;const f=()=>{this.setCurrentScope(s),this.setCurrentContext(a),s.labelStack=o,this.callStack=u};try{c=this.setValue(r()),c instanceof ze&&(l=c)}catch(p){if(f(),this.isInterruptThrow(p))throw p;if(n)try{c=this.setValue(n(p)),c instanceof ze&&(l=c)}catch(d){if(f(),this.isInterruptThrow(d))throw d;h=d}}if(i)try{c=i(),c instanceof ze&&(l=c)}catch(p){if(f(),this.isInterruptThrow(p))throw p;h=p}if(h)throw h;return l||c}}catchClauseHandler(t){const r=this.createParamNameGetter(t.param),n=this.createClosure(t.body);return i=>{let s;const a=this.getCurrentScope().data,o=r(),u=yb.call(a,o),c=a[o];return a[o]=i,s=n(),u?a[o]=c:delete a[o],s}}continueStatementHandler(t){return()=>t.label?new ct(t.label.name):Bt}breakStatementHandler(t){return()=>t.label?new bt(t.label.name):$t}switchStatementHandler(t){const r=this.createClosure(t.discriminant),n=t.cases.map(i=>this.switchCaseHandler(i));return()=>{const i=r();let s=!1,a,o,u=0,c=!1;for(let l=0;l<2;l++){for(let h=u;h<n.length;h++){const f=n[h](),p=f.testClosure();if(!c&&p===Va&&(c=!0,u=h),s||p===i){if(s=!0,o=this.setValue(f.bodyClosure()),o===me)continue;if(o===$t||(a=o,a instanceof ze||a instanceof bt||a instanceof ct||a===Bt))break}}if(!s&&c)s=!0;else break}return a}}switchCaseHandler(t){const r=t.test?this.createClosure(t.test):()=>Va,n=this.createClosure({type:"BlockStatement",body:t.consequent});return()=>({testClosure:r,bodyClosure:n})}labeledStatementHandler(t){const r=t.label.name,n=this.createClosure(t.body);return()=>{let i;const s=this.getCurrentScope();return s.labelStack.push(r),i=n(t),i instanceof bt&&i.value===r&&(i=me),s.labelStack.pop(),i}}debuggerStatementHandler(t){return()=>{debugger;return me}}createParamNameGetter(t){if(t.type==="Identifier")return()=>t.name;throw this.createInternalThrowError(ve.ParamTypeSyntaxError,t.type,t)}createObjectKeyGetter(t){let r;return t.type==="Identifier"?r=()=>t.name:r=this.createClosure(t),function(){return r()}}createMemberKeyGetter(t){return t.computed?this.createClosure(t.property):this.createObjectKeyGetter(t.property)}createObjectGetter(t){switch(t.type){case"Identifier":return()=>this.getScopeDataFromName(t.name,this.getCurrentScope());case"MemberExpression":return this.createClosure(t.object);default:throw this.createInternalThrowError(ve.AssignmentTypeSyntaxError,t.type,t)}}createNameGetter(t){switch(t.type){case"Identifier":return()=>t.name;case"MemberExpression":return this.createMemberKeyGetter(t);default:throw this.createInternalThrowError(ve.AssignmentTypeSyntaxError,t.type,t)}}varDeclaration(t){const r=this.collectDeclVars;r[t]=void 0}funcDeclaration(t,r){const n=this.collectDeclFuncs;n[t]=r}addDeclarationsToScope(t,r,n){const i=n.data;for(let s in r){const a=r[s];i[s]=a&&a()}for(let s in t)s in i||(i[s]=void 0)}getScopeValue(t,r){return this.getScopeFromName(t,r).data[t]}getScopeDataFromName(t,r){return this.getScopeFromName(t,r).data}getScopeFromName(t,r){let n=r;do if(t in n.data)return n;while(n=n.parent);return this.globalScope}setValue(t){const r=this.callStack.length;return this.isVarDeclMode||r||t===me||t===$t||t===Bt||t instanceof bt||t instanceof ct||(this.value=t instanceof ze?t.value:t),t}getValue(){return this.value}};at.version=vb;at.eval=as;at.Function=os;at.ecmaVersion=5;at.globalContextInFunction=void 0;at.global=Object.create(null);const wb=(()=>{try{return new Function("return 1")(),!0}catch(e){return!1}})();function xb(e){if(typeof window>"u")return;const t=window[0]||window;if(t.__simulator__)try{const r=t.__simulator__.engine.provider.errorHandler;r&&r(e)}catch(r){}}function Sb(e,t){return new at(t,{rootContext:t,globalContextInFunction:t}).evaluate(`(function($scope){ ${e} }).call(this, this)`)}function mr(e,t,r=!1,n=!1,i=!1){var s;try{const a=['"use strict";',"var __self = arguments[0];"];a.push("return ");let o=(e.value||"").trim();i||(o=o.replace(/this(\W|$)/g,(c,l)=>`__self${l}`)),o=a.join(`
|
|
75
|
+
`)+o;const u=i?`
|
|
76
|
+
${o}
|
|
77
|
+
`:`with(${r?"{}":"$scope || {}"}) { ${o} }`;return wb?new Function("$scope",u)(t):Sb(u,t)}catch(a){if(Ht.error("parseExpression.error",a,e,(s=t==null?void 0:t.__self)!=null?s:t),xb(a),n)throw a}}function Ne(e,t,r=!1,n=!1,i=!1){var a;const s=mr(e,t,r,n,i);if(typeof s!="function"&&(Ht.error("parseFunction.error","not a function",e,(a=t==null?void 0:t.__self)!=null?a:t),n))throw new Error(`"${e.value}" not a function`);return s}function je(e){return e&&e.type==="JSExpression"}function $e(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const Eb={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Tb=Symbol("access");class bu{constructor(t){G(this,"options");G(this,"data",null);G(this,"mode",ce.Raw);G(this,"interceptResponse",!0);G(this,"isTipShowing",!1);this.options=Object.assign({},Eb,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode!==ce.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Fn.save(r,t,{type:"local",prefix:n}),i&&Hn.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Fn.remove(t,{type:"local",prefix:r}),n&&Hn.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ga(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ga(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(Tb,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>da(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?da(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=Fn.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Hn.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===zr){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):t.meta.permission?this.can(t.meta.permission):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return M(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Et(i)?(i(),r(!1)):dt(i)?r(i):r(!1)}}r(!1),yield Yr(0),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return M(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r))&&this.toLogin()})}showTip(t){return M(this,null,function*(){var n,i;const{alert:r}=this.options;return this.isTipShowing?!1:r?(this.isTipShowing=!0,yield Yr(150),yield(i=(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(t),!0)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>M(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>M(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Cb(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:a,alert:o}=e;let u=null;return{request:Ki({adapter:e.axiosAdapter,settings:H({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:c=>{var l,h;return((l=c.data)==null?void 0:l.code)===0||!!((h=c.data)!=null&&h.success)},failMessage:!0,showError:c=>{t&&t(c||"未知错误")},showLoading:()=>{u&&u.close(),r&&(u=r())},hideLoading:()=>{u&&(u.close(),u=null)}},n)}),jsonp:jc,notify:t,loading:r,useTitle:a,alert:o,startupComponent:i,access:s?new bu(H({alert:o},s)):void 0}}function Ab(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,de(H({},e.jsonpOptions),{query:i}));{const i=e.headers?mr(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:de(H({},e.settings),{headers:i})};return(a,o)=>(delete s.data,n.send(tr(s,o||{},{data:a})))}}function Rb(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,a)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,a)}}function Ob(e=[],t=[],r){const n={};for(const i of e){const s=Ab(i,r);n[i.id]=s,n[i.name]=s}for(const i of t)n[i.id]=Rb(i,r);return n}function Ib(){return M(this,arguments,function*(e=[],t=window){const r=fr(t);r&&(_u(t),e.forEach(n=>kb(r,n)))})}function Pb(e,t=window){const r=$e(e.mockTemplate)&&e.mockTemplate.value?Ne(e.mockTemplate,{},!0):void 0,n=fr(t);return(...i)=>M(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(a){Ht.warn("模拟数据模版异常",a)}return n==null?void 0:n.mock(s)})}function kb(e,t){if(!t.mock)return;const{url:r,mockTemplate:n,method:i="get"}=t;if(r&&n)try{const s=hr(r)?new URL(r).pathname:r,a=Fi(`(.*)${s}(.*)`),o=Wv(s,{decode:decodeURIComponent}),u=mr(n,{},!0);e.mock(a,i.toLowerCase(),c=>{var d;const l=qr.parse(c.url)||{},h=c.body instanceof FormData?r0(c.body):c.body,f=hr(c.url)?new URL(c.url).pathname:c.url.split("?")[0],p=(d=o(f))==null?void 0:d.params;Object.assign(c,{data:h,params:p,query:l});try{return e.mock(u(c))}catch(g){return console.warn("[mockApi]",a,c,g),null}})}catch(s){console.warn("mockApi",s)}}function _u(e=window){const t=fr(e);t&&(t._mocked={})}class Db{constructor(t){G(this,"__id",null);G(this,"__mode");G(this,"__instance",null);G(this,"__contextRefs",{});G(this,"__refs",{});G(this,"__refCaches",{});G(this,"context",{});G(this,"state",{});G(this,"props",{});G(this,"$props",{});G(this,"$refs",{});G(this,"$el",null);G(this,"$emit",null);G(this,"$nextTick",null);G(this,"$parent",null);G(this,"$root",null);G(this,"$attrs",null);G(this,"$slots",null);G(this,"$watch",null);G(this,"$options",null);G(this,"$forceUpdate",null);G(this,"$components",{});G(this,"$libs",{});G(this,"$apis",{});G(this,"$provider",null);G(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=en){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){if(!this.__instance)return;const t=this.__instance;$a.forEach(r=>{var n;this[r]=t[r]||((n=t._)==null?void 0:n[r.replace("$","")])||null})}__cleanup(){$a.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===ce.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Ne({type:i,value:s},this)}else return Ne(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ce.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return mr({type:i,value:s},this)}else return mr(t,this)}__ref(t=null,r){if(this.__mode===ce.VNode)return;t&&t!==this.__id&&(this.__contextRefs[t]=this);let n=t?this.__refCaches[t]:null;return n||(n=i=>M(this,null,function*(){var a,o;yield Yr(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((o=(a=i==null?void 0:i._)==null?void 0:a.vnode)==null?void 0:o.el)||i;if(!s){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=t,ce.Design===this.__mode&&(s.__context__=this,s.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,i)),typeof r=="function"?r(i):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,i)),i}),t&&(this.__refCaches[t]=n),n)}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=H(H({},this.context),t),n=de(H({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Ei(e){var h,p;const{Vue:t=en,mode:r=ce.Runtime,components:n={},libs:i={},apis:s={},loader:a}=e,o=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new Db({mode:r,dsl:o.value,attrs:u}),l=t.defineComponent(H({name:o.value.name,__scopeId:o.value.id?`data-v-${o.value.id}`:void 0,props:H({},$b((h=o.value.props)!=null?h:[],c)),setup(){return M(this,arguments,function*(d={}){var x,S,_,A;c.$props=d,c.props=d,o.value.id&&dn(e.window||window,o.value.id,o.value.css||"",!0),c.state=Bb(t,(x=o.value.state)!=null?x:{},c);const g=Lb(t,(S=o.value.computed)!=null?S:{},c),v=jb((_=o.value.methods)!=null?_:{},c),w=Mb(t,o.value.inject,c);for(const[I,V]of Object.entries(w||{}))w[I]=t.inject(I,V);const y=Vb(o.value.dataSources||{},c),b=H(H(H(H({},w),g),v),y);return c.setup(b,t),Fb(t,(A=o.value.watch)!=null?A:[],c),H(H(H({vtj:c,state:c.state},d),g),v)})},emits:Nb(o.value.emits),expose:["vtj",...o.value.expose||[]],render(){if(!o.value.nodes)return null;const d=o.value.nodes||[];if(d.length===1)return Wt(d[0],c,t,a,d);{const g=d.map(v=>Wt(v,c,t,a,d));return t.createVNode("div",{},g)}}},Ub((p=o.value.lifeCycles)!=null?p:{},c)));return{renderer:t.markRaw(l),context:c}}function Nb(e=[]){return e.map(t=>dt(t)?t:t.name)}function $b(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>S0[i]):void 0;return e.map(n=>dt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:je(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Bb(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return je(s)?s=r.__parseExpression(s):$e(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function Lb(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function jb(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Mb(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:a}=i||{};i.default;const o=je(a)?r.__parseExpression(a)||s:a!=null?a:s,u=je(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(o,u),n},{})}function Vb(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=Pb(i);else if(i.ref){const s=t.$apis[i.ref],a=$e(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...o)=>M(null,null,function*(){const u=yield s.apply(t,o);return a?a(u):u})}return r},{})}function Fb(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Ub(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>M(null,null,function*(){Et(s)&&(yield Yr(0),yield s())}),r},{})}class Hb{constructor(){G(this,"__props",{});G(this,"__events",{});G(this,"__nodes",{})}setProps(t,r){this.__props[t]=r}getProps(t){return this.__props[t]}loadProps(t,r){return(t?this.getProps(t):null)||(t&&this.setProps(t,r),r)}setEvents(t,r){}getEvents(t){return this.__events[t]}loadEvents(t,r){return(t?this.getEvents(t):null)||(t&&this.setEvents(t,r),r)}setNode(t,r){this.__nodes[t]=r}getNode(t){return this.__nodes[t]}loadNode(t,r){return(t?this.getNode(t):null)||(t&&this.setNode(t,r),r)}isEqual(t,r){return wm(t,r)}clear(){this.__props={},this.__events={},this.__nodes={}}}const Br=new Hb,qb=new ey;let Jn=[],Lt={},Lr={};const zb=(e,t)=>t;function wu(r){return M(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(o=>pn(o));if(s.length===0||!i)return null;const a=n.filter(o=>fn(o));return a.length&&Fc(a,t),yield Uc(s,i,t).catch(o=>(console.warn("loadScriptUrl error",s,i,o),null))})}function Ti(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Jn.forEach(i=>{delete n.window[i]}),Jn=[]),(i,s,a,o=en)=>{if(!a||typeof a=="string")return s;let u="";if(a.type==="Schema"&&a.id)return u=a.id+"_"+i,Lr[u]||(Lr[u]=o.defineAsyncComponent(()=>M(null,null,function*(){const c=Lt[a.id]||(yield qb.add(a.id,()=>t(a.id)));return c&&(c.name=s,Lt[a.id]=c),c?Ei(de(H({Vue:o,mode:ce.Runtime},n),{dsl:Hs(c),loader:Ti(e)})).renderer:null})));if(a.type==="UrlSchema"&&a.url)return u=a.url+"_"+i,Lr[u]||(Lr[u]=o.defineAsyncComponent(()=>M(null,null,function*(){const c=Lt[a.url]||(yield r(a.url));return c&&(c.name=s,Lt[a.url]=c),c?Ei(de(H({},n),{Vue:o,dsl:Hs(c),mode:ce.Runtime,loader:Ti(e)})).renderer:null})));if(a.type==="Plugin"){let c=a.library?Lt[a.library]:null;return c||(a.library&&Jn.push(a.library),c=Lt[a.library||Symbol()]=o.defineAsyncComponent(()=>M(null,null,function*(){return(yield wu(a,n.window))||(console.warn("getPlugin result is null",a),null)})),c)}return s}}function Wt(e,t,r=en,n=zb,i=[],s=!1,a=0){var x;if(!e||!e.name||e.invisible)return null;const o=(x=r.getCurrentInstance())==null?void 0:x.appContext,{id:u=null,directives:c=[]}=e,{vIf:l,vElseIf:h,vElse:f,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:w,others:y}=xu(c);if(!s&&(h||f))return null;if(l&&!Gb(l,t))return Xb(e,t,r,n,i);const b=(S,_=0)=>{var W,q,O,$;const A=S.$components,I=(()=>{var D,ne,Te,le;if(e.name==="component")return Kb(S,(D=e.props)==null?void 0:D.is);if(e.name==="slot")return e.name;const R=n(`${e.id}_${_}`,e.name,e.from,r);return dt(R)?B0(R)||L0(R)?R:(le=(Te=A[R])!=null?Te:(ne=o==null?void 0:o.app)==null?void 0:ne.component(R))!=null?le:R:R})(),V=Jb(u,(W=e.props)!=null?W:{},S),E=Qb(r,e.id,(q=e.events)!=null?q:{},S);if(e.name==="slot")return e_(r,e,V,S,n);v&&Object.assign(V,S.__parseExpression(v.value)),d&&(V.style=Object.assign((O=V.style)!=null?O:{},r_(d,S))),w&&Object.assign(V,n_(w,S)),g.forEach(R=>{Mc.includes(e.name)?Object.assign(V,i_(R,S)):Object.assign(V,s_(r,R,S))});const C=a_(r,($=e.children)!=null?$:[],S,n,e),j=S!=null&&S.__id?`data-v-${S.__id}`:void 0,B=j?{[j]:""}:{},L=S.__mode===ce.Design?{"data-vtj":u}:{},P=`${u}_${_}`,N=H(H(H(H({key:P},B),L),V),E);Br.isEqual(N,Br.getNode(P))||Br.setNode(P,N);let U=r.createVNode(I,Br.getNode(P)||N||{},C);const F=o?Wb(o,y,S):[];return F.length&&(U=r.withDirectives(U,F)),U};return p?u_(p,b,t):b(t,a)}function Wb(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const a=[s];return i.value&&a.push(r.__parseExpression(i.value)),i.arg&&a.push(i.arg),i.modifiers&&a.push(i.modifiers),a}).filter(i=>!!i)}function xu(e=[]){const t=e.find(l=>We(l.name)==="vIf"),r=e.find(l=>We(l.name)==="vElseIf"),n=e.find(l=>We(l.name)==="vElse"),i=e.find(l=>We(l.name)==="vFor"),s=e.find(l=>We(l.name)==="vShow"),a=e.find(l=>We(l.name)==="vBind"),o=e.find(l=>We(l.name)==="vHtml"),u=e.filter(l=>We(l.name)==="vModel"),c=e.filter(l=>!x0.includes(We(l.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:u,vBind:a,others:c,vHtml:o}}function Gb(e,t){return!!t.__parseExpression(e.value)}function Kb(e,t){return t?je(t)?e.__parseExpression(t):t:"div"}function Jb(e,t,r){const n=Ci(t,r);return n.ref=r.__ref(e,n.ref),n}function Ci(e,t){return je(e)?t.__parseExpression(e):$e(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Ci(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Ci(i,t),r},{}):e}function Yb(e,t){return r=>{var n;((n=r==null?void 0:r.key)==null?void 0:n.toLowerCase())===t.toLowerCase()&&e(r)}}function Zb(e){return j0(e.value)?e:M0(e.value)?{type:"JSFunction",value:`(...args) => (() => {
|
|
78
|
+
return (($event) => {
|
|
79
|
+
${e.value}
|
|
80
|
+
}).apply(this, args);
|
|
81
|
+
})()`}:V0(e.value)?{type:"JSFunction",value:`() => { ${e.value}}`}:e}function Qb(e,t,r,n){const i=["passive","capture","once"],s={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(r||{}).reduce((a,o)=>{const u=r[o],c=Su(u.modifiers),l=c.find(p=>i.includes(p)),h="on"+Hm(o)+(l&&s[l]||""),f=u.handler?n.__parseFunction(Zb(u.handler)):null;return f&&(a[h]=e.withModifiers(c.includes("enter")?Yb(f,"enter"):f,c)),a},{})}function Xb(e,t,r,n,i=[]){let s=i.findIndex(a=>a.id===e.id);for(let a=++s;a<i.length;a++){const{directives:o=[]}=i[a],{vElseIf:u,vElse:c}=xu(o);if(u){if(t.__parseExpression(u.value))return Wt(i[a],t,r,n,i,!0);continue}if(c)return Wt(i[a],t,r,n,i,!0)}return null}function Su(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function e_(e,t,r,n,i){var u;const{children:s}=t,a=t_(t,n),o=(u=n.$slots)==null?void 0:u[a.name];return o?o(r):s?dt(s)?e.createTextVNode(s):je(s)?e.createTextVNode(Vc(n.__parseExpression(s))):Array.isArray(s)?s.map((c,l)=>Wt(c,n,e,i,s,!1,l)):null:null}function t_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:je(n)?t.__parseExpression(n):n,params:[]}}function r_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function n_(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function i_(e,t){var n;const r={type:"JSFunction",value:(n=e.value)!=null&&n.value?`(v) => {
|
|
82
|
+
${e.value.value} = v?.target.value;
|
|
83
|
+
}`:"(v) => {}"};return{[je(e.arg)?t.__parseExpression(e.arg):e.arg||"value"]:t.__parseExpression(e.value),onInput:t.__parseFunction(r)}}function s_(e,t,r){var o;const n={type:"JSFunction",value:(o=t.value)!=null&&o.value?`(v) => {
|
|
84
|
+
${t.value.value} = v;
|
|
85
|
+
}`:"(v) => {}"},i=r.__parseFunction(n),s=Su(je(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),a=je(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[a]:r.__parseExpression(t.value),[`onUpdate:${a}`]:s.length&&i?e.withModifiers(i,s):i}}function a_(e,t,r,n,i){if(!t)return null;if(dt(t))return{default:()=>t};if(je(t))return{default:()=>Vc(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=o_(t),a=(o,u)=>!o||!i?{}:i!=null&&i.id&&Object.keys(o).length?u?{[u]:o}:{[`scope_${i.id}`]:o}:u?{[u]:Object.create(null)}:{};return Object.entries(s).reduce((o,[u,{nodes:c,params:l,scope:h}])=>(o[u]=f=>{const p=l.length?Uv(f!=null?f:{},l):a(f,h);return c.map((d,g)=>Wt(d,r.__clone(p),e,n,c,!1,g))},o),{})}return null}function o_(e){const t={};for(const r of e){const n=c_(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[r],params:n.params,scope:n.scope||""}}return t}function c_(e="default"){return dt(e)?{name:e,params:[],scope:""}:H({params:[],scope:""},e)}function u_(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:a="index"}=i||{};let o=r.__parseExpression(n)||[];return Number.isInteger(o)&&(o=new Array(o).fill(!0).map((u,c)=>c+1)),Array.isArray(o)?o.map((u,c)=>t(r.__clone({[s]:u,[a]:c}),c)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Yn=Ga({name:"VtjPageContainer",setup(){return M(this,null,function*(){const e=__(),t=Lu(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=$u(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:a}=e==null?void 0:e.adapter;if(a){const o=t.meta.title||n.title||"VTJ.PRO";a(o)}}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Qn(e,de(H({},t),{key:r})):Qn("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),l_=Ga({name:"VtjStartupContainer",render(){return Qn("div","page not found!")}});function Ai(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:a,icon:o,children:u,hidden:c,layout:l}=i;if(l){const h=Ai(e,t,u||[]);n.push(...h)}else{const h={id:s,title:a,icon:o,hidden:c,url:`${e}/${t}/${s}`,children:u&&u.length?Ai(e,t,u):void 0};n.push(h)}}return n}function Zn(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:a="",component:o,routeMeta:u}=t;return{name:r,path:`${a}${s}/${r}`,component:o,meta:de(H(H({title:n},u),i),{__vtj__:r})}}function Ri(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:a,homepage:o}=e,u=[];for(const c of n){const{id:l,title:h,dir:f,layout:p,children:d,meta:g}=c;if(f){const v=Ri({name:t,prefix:r,component:i,routeMeta:a,homepage:o,loader:s,pages:d||[]});u.push(...v)}else if(p){const v=Ri({name:t,prefix:r,component:i,routeMeta:a,homepage:o,loader:s,pages:d||[]}),w={name:`layout_${l}`,path:r,component:()=>s(l),meta:de(H(H({title:h},a),g),{__vtj__:l}),children:v};u.push(w),u.push(Zn(c,e))}else if(u.push(Zn(c,e)),o===l){const v=Zn(c,e);v.path="",v.name=`home_${l}`,u.push(v)}}return u}function h_(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:a,library:o={},adapter:u,mode:c}=t,{Pinia:l}=o;a.config.globalProperties.$libs=o,dn(s,"global-css",r||""),l&&n&&f_(n,a,l),d_(a,u,e),!u.access&&e.access&&p_(e.access,a,c,u),g_(a,e),i&&m_(i,a,o)}function f_(e,t,r){const n=r.createPinia();if(t.use(n),$e(e)&&e.value){const i=Ne(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function p_(e,t,r,n){if($e(e)&&e.value){const i=Ne(e,{},!1,!1,!0),{alert:s,request:a}=n,o=new bu(H({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),u=t.config.globalProperties.$router;o.connect({mode:r,router:u,request:a}),t.use(o)}}function d_(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&$e(n)&&n.value){const a=Ne(n,{},!1,!1,!0);t.request.setConfig(a(e))}if(i&&$e(i)&&i.value){const a=Ne(i,{},!1,!1,!0),o=t.request;o.__unReq&&o.__unReq(),o.__unReq=t.request.useRequest(u=>a(u,e))}if(s&&$e(s)&&s.value){const a=Ne(s,{},!1,!1,!0),o=t.request;o.__unRes&&o.__unRes(),o.__unRes=t.request.useResponse(u=>a(u,e))}}function g_(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&$e(r)&&r.value){const s=Ne(r,{},!1,!1,!0);i&&i.beforeEach((a,o,u)=>s(a,o,u,e))}if(n&&$e(n)&&n.value){const s=Ne(n,{},!1,!1,!0);i&&i.afterEach((a,o,u)=>s(a,o,u,e))}}function m_(e,t,r={}){$e(e)&&e.value&&Ne(e,{},!1,!1,!0)(t,r)}function v_(e,t,r){if(!e||!t||!r)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:a=[]}=r,o={};for(let c of a){const l=Object.keys(c).filter(h=>h!=="key");for(const h of l)o[h]||(o[h]={}),o[h][c.key]=c[h]}const u=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:o});e.use(u)}}const Eu=Symbol("Provider");class y_ extends iy{constructor(r){super();G(this,"mode");G(this,"globals",{});G(this,"modules",{});G(this,"adapter",{request:mi,jsonp:jc});G(this,"apis",{});G(this,"dependencies",{});G(this,"materials",{});G(this,"library",{});G(this,"libraryLocales",{});G(this,"libraryLocaleMap",{});G(this,"service");G(this,"project",null);G(this,"components",{});G(this,"nodeEnv","development");G(this,"env",{});G(this,"router",null);G(this,"materialPath","./");G(this,"urlDslCaches",{});G(this,"errorHandler",null);this.options=r;const{service:n,mode:i=ce.Raw,dependencies:s,materials:a,project:o={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=f,this.nodeEnv=p,s&&(this.dependencies=s),a&&(this.materials=a),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:h,request:g}),o&&i!==ce.Design?this.load(o):this.project=o}createMock(r){return(...n)=>M(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(a){Ht.warn("模拟数据模版异常",a)}return(s=fr())==null?void 0:s.mock(i)})}load(r){return M(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:a=[],env:o=[]}=this.project,u=window;u&&(u.CKEDITOR_VERSION=void 0),this.initEnv(o),this.mode===ce.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=Ob(s,a,this.adapter),_u(u),Ib(s,u),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=fr(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return M(this,arguments,function*(r={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(){return M(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:a,materialPath:o,nodeEnv:u,libraryLocales:c}=this,{libraryExports:l,libraryMap:h,materials:f,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=A0(n,o,u==="development");Object.assign(this.libraryLocaleMap,g);for(const v of l){const w=i[v],y=r[v];if(y)s[v]=y;else if(w)r[v]=s[v]=yield w();else{const x=h[v]||[];for(const S of x)fn(S)&&(yield N0(S,qr.append(S,{v:qn}))),pn(S)&&(yield Da(qr.append(S,{v:qn})));s[v]=r[v]}const b=g[v];if(b){const x=i[b];c[b]=x?yield x():r[b]}}if(u==="development"){for(const w of f)yield Da(qr.append(w,{v:qn}));const v=this.materials||{};for(const w of p){const y=r[d[w]],b=(y==null?void 0:y.default)||y,x=ny[w];if(x)b&&x.forEach(S=>{a[S]=b[S]});else{const S=v[w]?(yield v[w]()).default:r[w];S&&b&&(S.components||[]).forEach(_=>{a[_.name]=R0(_,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const a=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:o,pageRouteName:u=a,routeMeta:c}=i,l=o?"":"/",h={path:`${l}${u}/:id`,name:zr,component:Yn},f=this.getHomepage(),p={path:l,name:zn,component:f?Yn:s.startupComponent||l_,meta:c};if(r.hasRoute(zr)&&r.removeRoute(zr),r.hasRoute(zn)&&r.removeRoute(zn),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];Ri({name:u,prefix:l,pages:d,component:Yn,loader:this.getRenderComponent.bind(this),homepage:f==null?void 0:f.id}).forEach(g=>{o?r.addRoute(o,g):r.addRoute(g)}),f||(o?r.addRoute(o,p):r.addRoute(p))}else o?(r.addRoute(o,h),r.addRoute(o,p)):(r.addRoute(h),r.addRoute(p))}setErrorHandler(r){r.config.errorHandler=ji((n,i,s)=>{const a=i==null?void 0:i.$options.name,o=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",u=`[ ${a} ] ${o} ${s}`;["getComputedStyle","ResizeObserver"].some(c=>u.includes(c))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error"))},300)}install(r){var o,u,c,l;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,a=r.config.globalProperties.installed||{};for(const[h,f]of Object.entries(this.library))if(!a[h]&&$0(f)){const p={locale:i[n[h]]},d=s[h]||{},g=H(H({},p),d);r.use(f,g),a[h]=!0}r.provide(Eu,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$apis=this.apis,r.config.globalProperties.$request=(o=this.adapter)==null?void 0:o.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((u=this.project)==null?void 0:u.platform)!=="uniapp"&&this.mode!==ce.Design&&this.initGlobals(((c=this.project)==null?void 0:c.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==ce.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===ce.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=a}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,a=[])=>{for(const o of a){if(o.id===s)return o;if(o.children&&o.children.length){const u=i(s,o.children);if(u)return u}}};return i(r,n)||null}getFirstPage(){const{pages:r=[]}=this.project||{};if(!r.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const a=n(s.children);if(a)return a}}};return n(r)||null}getMenus(r="page",n=""){var i;return Ai(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):this.getFirstPage()}getDsl(r){return M(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return M(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:a,apis:o}=this,u=H({mode:a,Vue:i.Vue,components:s,libs:i,apis:o,window},n),c=Ti({getDsl:l=>M(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>M(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Ei(de(H({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return M(this,null,function*(){var a;const i=this.getFile(r);if(!i)return Ht.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===ce.Raw){const{vtjRawDir:o=".vtj/vue"}=this.options,u=`${o}/${r}.vue`,c=this.modules[u]||this.modules[`/src/pages/${r}.vue`];return c?(a=yield c())==null?void 0:a.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(Ht.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ls(()=>M(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ls(()=>M(null,null,function*(){return yield wu(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);h_(r,i)}initI18n(r,n,i){v_(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function b_(e){const t=new y_(e);return{provider:t,onReady:r=>t.ready(r)}}function __(e={}){const t=Bu(Eu,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&M(null,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}function w_(e,t=""){return M(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(o=>t+o),{css:s,js:a}=O0(i);if(s.length&&Fc(s),a.length)return yield Uc(a,r).catch(()=>{})})}const Tu={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},x_=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:Tu}),S_=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>M(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:de(H({},Tu),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function E_(e){return Ki({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class T_{constructor(t=mi){G(this,"api");G(this,"pluginCaches",{});G(this,"uploader");this.req=t,this.api=x_(t),this.uploader=S_(t)}getExtension(){return M(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return M(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return M(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return M(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return M(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return M(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return M(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return M(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return M(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return M(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return M(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return M(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return M(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return M(this,null,function*(){return yield this.api("parseVue",H({project:t},r))})}createRawPage(t){return M(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return M(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return M(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return M(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return M(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return M(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return M(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>T0(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=mi.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return M(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Nc({type:"local",expired:0,prefix:"__VTJ_"});class C_ extends T_{constructor(){super(...arguments);G(this,"getFileCaches",{})}getExtension(){return M(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return M(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return M(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return M(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Vv(n)}).catch(()=>!1))})}saveFile(r){return M(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return M(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return M(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return M(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return M(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return M(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return M(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
86
|
+
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
87
|
+
* @name @vtj/uni
|
|
88
|
+
* @author CHC chenhuachun1549@dingtalk.com
|
|
89
|
+
* @version 0.17.7
|
|
90
|
+
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
91
|
+
*/const A_=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],za="/pages",R_="VTJ",O_="__UNI__1FC118B",I_="VTJ移动跨端项目",P_="1.0.0",k_="100",D_=!1,N_={},$_={enable:!1},B_="3",L_={name:R_,appid:O_,description:I_,versionName:P_,versionCode:k_,transformPx:D_,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:N_,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:$_,vueVersion:B_},j_=[],M_={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},V_={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},F_={pages:j_,globalStyle:M_,easycom:V_};function U_(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:a,style:o,needLogin:u}=s;return{path:a,style:o,needLogin:u}});return de(H({},e),{manifestJson:Object.assign({},L_,t),pagesJson:Object.assign({},F_,r,{pages:i})})}const Oi={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Cu(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Oi[n]&&(t[Oi[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function H_(e){const t={};for(const r in e)Oi[r]||(t[r]=e[r]);return t}function q_(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function z_(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function W_(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function G_(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function K_(e){var o;const t=G_(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.navigationBar=!0;const a=(o=i==null?void 0:i.h5)==null?void 0:o.titleNView;return s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.buttons.length)})&&(r.navigationBarButtons=!0),(a!=null&&a.searchInput||s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.searchInput)}))&&(r.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||s.find(u=>{var c,l,h;return((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)==null?void 0:h.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function J_(e,t=window){var f,p,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:a}=z_(r),{navigationBar:o,navigationBarButtons:u,navigationBarSearchInput:c,navigationBarTransparent:l}=K_(e),h={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:q_(n),__UNI_FEATURE_PAGES__:!!((f=r.pages)!=null&&f.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:o,__UNI_FEATURE_PULL_DOWN_REFRESH__:W_(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:u,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:c,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(h).forEach(([v,w])=>{t[v]=w})}const Y_="4.76";function Z_(e,t=window){var h,f;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:a="",versionCode:o="",versionName:u=""}=n,c=r.globalStyle,l=((h=n.h5)==null?void 0:h.router)||{};t.__uniConfig={easycom:i,globalStyle:de(H({},H_(c)),{navigationBar:Cu(c),isNVue:!1}),compilerVersion:Y_,appId:s,appName:a,appVersion:u,appVersionCode:String(o),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((f=n.h5)==null?void 0:f.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?H({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function Q_(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:a,upx2px:o,setupPage:u}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=a,t.upx2px=o,t.__setupPage=c=>u(c)}function X_(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:a}=e,{PageComponent:o,setupPage:u,getApp:c}=t;return{mpType:"page",setup(){return M(this,null,function*(){var g,v;const h=((v=(g=c())==null?void 0:g.$route)==null?void 0:v.query)||{},{loader:f,component:p}=r,d=f?yield f(r):p||{};return()=>(n(),i(o,null,{page:s(()=>[a(u(d),Object.assign({},h,{ref:"page"}),null,512)]),_:1}))})}}}function ew(e,t,r){var p;const{path:n,style:i={},meta:s={},home:a,id:o}=t,u=((p=e.tabBar)==null?void 0:p.list)||[],c=u.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(o))}),l=u[c],h=!!l,f=r===0;return H({isTabBar:h,tabBarIndex:c,isQuit:a!=null?a:f,isEntry:a!=null?a:f,navigationBar:H({type:"default"},Cu(i)),isNVue:!1,route:l?l.pagePath:n},s)}function tw(e,t,r,n,i=window){const s=r.map((a,o)=>{const u=ew(n,a,o),c=X_(e,t,a),{path:l}=a;return{path:l,alias:l,meta:u,component:{render(){return e.h(e.Suspense,[e.h(c)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function rw(e,t,r=window){dn(r,String(e),t)}function nw(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function iw(e){const t=U_(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:a={},manifestJson:o={},window:u,css:c=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:h}=i;J_(t,u),Z_(t,u),Q_(i,u),tw(r,i,s,a,u),rw(o.appid||Date.now(),c,u);const f=r.createApp(h(n));return f.use(nw,i),f.use(l),f}function sw(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{A_.includes(n)&&i&&(r[n]=t(i))}),r}function Wa(e,t){return()=>M(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function aw(n){return M(this,arguments,function*(e,t=!1,r=za){var o,u,c;const i=((o=e.project)==null?void 0:o.pages)||[],s=[];for(const l of i){const h=((u=e.project)==null?void 0:u.homepage)===l.id;s.push({id:l.id,path:`${r}/${l.id}`,loader:Wa(e,l.id),style:H({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:h})}const a=s.find(l=>!!l.home)||s[0];if(a){const l=r===za?"/":r;s.unshift(de(H({},a),{path:l}))}if(t){const l=((c=e.project)==null?void 0:c.blocks)||[];for(const h of l)s.push({id:h.id,path:`${r}/${h.id}`,loader:Wa(e,h.id),style:{navigationStyle:"custom"}})}return s})}function Ii(){if(typeof uni<"u")return uni;if(typeof globalThis<"u"&&globalThis.uni)return globalThis.uni;if(typeof window<"u"&&window.uni)return window.uni}function ow(){const e=Ii();return e!=null&&e.showLoading&&e.showLoading({title:"加载中...",mask:!0}),{close:()=>{const t=Ii();t!=null&&t.hideLoading&&t.hideLoading()}}}function Au(e,t="",r="warning"){return M(this,null,function*(){const n=Ii();return n!=null&&n.showModal?n.showModal({title:t,content:e,showCancel:!1}):(typeof window<"u"&&window.alert(e),!0)})}function cw(e=ce.Runtime){let t={};e===ce.Runtime?t=Object.assign({}):t=Object.assign({});let r={};for(const[n,i]of Object.entries(t))r[n]=()=>Promise.resolve(i);return r}const uw=Cb({loading:ow,notify:Au}),Ru=new C_(E_(Au)),lw=cw(),{provider:hw,onReady:fw}=b_({nodeEnv:"production",mode:ce.Runtime,modules:lw,materialPath:"../",adapter:uw,service:Ru,dependencies:{Vue:()=>fs(()=>import("./@dcloudio-uni-h5-vue-CKVTfNUF.js").then(e=>e.B),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>fs(()=>import("./vue-router-BuyipnGj.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),pw=e=>M(null,null,function*(){const t=(yield Ru.getExtension().catch(()=>null))||{},r=top||window,n=yield w_(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,a=e.project;if(!a)return;const o=a.uniConfig||{},u=sw(o,d=>Ne(d,window,!1,!0)),{manifestJson:c,pagesJson:l,css:h}=o,f=yield aw(e,!0),p=iw({Vue:i,App:u,UniH5:s,routes:f,css:h,manifestJson:c,pagesJson:l});p.use(e),n&&p.use(n,e),p.mount(document.body)});fw(()=>pw(hw));
|