@vtj/pro 0.13.25 → 0.13.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/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/icons/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -10
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +4 -39
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +22 -22
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/pinia/pinia.iife.js +1940 -2
- package/dist/@vtj/materials/deps/pinia/pinia.iife.prod.js +7 -0
- package/dist/@vtj/materials/deps/uni-h5-vue/uni-h5-vue.js +11719 -0
- package/dist/@vtj/materials/deps/uni-h5-vue/uni-h5-vue.prod.js +8 -0
- package/dist/__devtools__/assets/IconTitle.vue_vue_type_script_setup_true_lang-B9Nj8PlY.js +1 -0
- package/dist/__devtools__/assets/SectionBlock-BYDDTsu3.css +1 -0
- package/dist/__devtools__/assets/SectionBlock-BrHcKx8P.js +1 -0
- package/dist/__devtools__/assets/assets-tWZ16yre.js +12 -0
- package/dist/__devtools__/assets/components-EaHI7FxW.js +1 -0
- package/dist/__devtools__/assets/css-DPfMkruS.js +1 -0
- package/dist/__devtools__/assets/custom-inspector-tab-view-CZIfhGNk.js +1 -0
- package/dist/__devtools__/assets/custom-tab-view-BGjRlmIC.js +1 -0
- package/dist/__devtools__/assets/diff-D97Zzqfu.js +1 -0
- package/dist/__devtools__/assets/graph-Dvz7NSzX.js +1068 -0
- package/dist/__devtools__/assets/html-B8pBdPMQ.js +1 -0
- package/dist/__devtools__/assets/index-CtdYRAx7.js +2382 -0
- package/dist/__devtools__/assets/index-DkeGUpKU.css +1 -0
- package/dist/__devtools__/assets/index-ENvNlo7R.css +1 -0
- package/dist/__devtools__/assets/javascript-BMMyXqK5.js +1 -0
- package/dist/__devtools__/assets/json-Cp-IABpG.js +1 -0
- package/dist/__devtools__/assets/overview-CXo9qbzV.js +1 -0
- package/dist/__devtools__/assets/pages-BLZMWMb9.js +1 -0
- package/dist/__devtools__/assets/pinia-CsnX6hr4.js +1 -0
- package/dist/__devtools__/assets/router-BZru8YYb.js +1 -0
- package/dist/__devtools__/assets/settings-C2YlJymx.js +1 -0
- package/dist/__devtools__/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/__devtools__/assets/timeline-B5ZeLLK0.js +1 -0
- package/dist/__devtools__/assets/timeline-DQ8UE2TV.css +1 -0
- package/dist/__devtools__/assets/typescript-DlfHMoPT.js +1 -0
- package/dist/__devtools__/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/__devtools__/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/__devtools__/assets/vue-CYH3TOzo.js +1 -0
- package/dist/__devtools__/assets/vue-apis-DJBctb31.js +1 -0
- package/dist/__devtools__/assets/vue-html-zSiQ3dJi.js +1 -0
- package/dist/__devtools__/assets/yaml-Buea-lGh.js +1 -0
- package/dist/__devtools__/color-scheme.js +6 -0
- package/dist/__devtools__/index.html +15 -0
- package/dist/__devtools__/logo.svg +208 -0
- package/dist/assets/@vueuse-BJJKbYUL.js +1 -0
- package/dist/assets/Editor-CDMLuXiC-CorvqbXP.css +1 -0
- package/dist/assets/Editor-CDMLuXiC-qMegSvLz.js +316 -0
- package/dist/assets/{auth-BDaeLIgH.js → auth-B_8v5-7D.js} +1 -1
- package/dist/assets/{element-plus-BAo4E1qD.css → element-plus-BsdZdiCp.css} +1 -1
- package/dist/assets/element-plus-DI7qTjX8.js +12 -0
- package/dist/assets/{index-DFFN6nqN.js → index-BFgirofd.js} +2 -2
- package/dist/assets/index-DMKPq5x8.js +1 -0
- package/dist/assets/{lodash-es-KLPqz5pm.js → lodash-es-BOeLjWVX.js} +1 -1
- package/dist/assets/{mockjs-DzuwJaHx.js → mockjs-DKzs-0ke.js} +1 -1
- package/dist/assets/page-BRVrjPjg.js +2 -0
- package/dist/assets/preview-DS2ozlz9.js +2 -0
- package/dist/assets/utils-pirouenX.js +1 -0
- package/dist/index.html +14 -12
- package/dist/uni/assets/{index-DxSQR7tq.js → index-B9AeAmg0.js} +19 -19
- package/dist/uni/index.html +1 -1
- package/package.json +13 -12
- package/dist/.vtj/block.json +0 -304
- package/dist/.vtj/vtj.png +0 -0
- package/dist/assets/@vueuse-BpC0PsDL.js +0 -1
- package/dist/assets/Editor-kx6e0Tx5-BVnhtbiv.css +0 -1
- package/dist/assets/Editor-kx6e0Tx5-Drro8HP6.js +0 -309
- package/dist/assets/element-plus-Ls1uDfNj.js +0 -12
- package/dist/assets/index-DbLwVuBm.js +0 -1
- package/dist/assets/page-Bj0iK2Rq.js +0 -2
- package/dist/assets/preview-B7Qb431f.js +0 -2
- package/dist/assets/utils-CvjgPIO6.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-BtM9Eyib.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-Cc-Ey1iB.js","./vue-router-CbZ0Q__O.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var ya=Object.defineProperty,va=Object.defineProperties;var ba=Object.getOwnPropertyDescriptors;var Rn=Object.getOwnPropertySymbols;var wa=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable;var Gt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ea=e=>{throw TypeError(e)};var dr=(e,t,r)=>t in e?ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))wa.call(t,r)&&dr(e,r,t[r]);if(Rn)for(var r of Rn(t))_a.call(t,r)&&dr(e,r,t[r]);return e},et=(e,t)=>va(e,ba(t));var z=(e,t,r)=>dr(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{u(r.next(l))}catch(a){i(a)}},o=l=>{try{u(r.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((r=r.apply(e,t)).next())}),kt=function(e,t){this[0]=e,this[1]=t},gr=(e,t,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof kt,p=c.done;Promise.resolve(f?u[0]:u).then(h=>f?n(o==="return"?o:"next",u[1]?{done:h.done,value:h.value}:h,l,a):l({value:h,done:p})).catch(h=>n("throw",h,l,a))}catch(h){a(h)}},i=o=>s[o]=u=>new Promise((l,a)=>n(o,u,l,a)),s={};return r=r.apply(e,t),s[Gt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},mr=e=>{var t=e[Gt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Gt("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new kt(new Promise(u=>{var l=t[s](o);l instanceof Object||Ea("Object expected"),u(l)}),1)}}),i[Gt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},An=(e,t,r)=>(t=e[Gt("asyncIterator")])?t.call(e):(e=e[Gt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,u,l)=>(s=i.call(e,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),r("next"),r("return"),t);import{d as is,g as $n,h as Ir,r as Sa,z as tr,i as xa}from"./@dcloudio-uni-h5-vue-BtM9Eyib.js";import{useRoute as Ta}from"./vue-router-CbZ0Q__O.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-Cc-Ey1iB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();const Ra="modulepreload",Aa=function(e,t){return new URL(e,t).href},On={},jn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const u=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(r.map(c=>{if(c=Aa(c,n),c in On)return;On[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const b=u[g];if(b.href===c&&(!f||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Ra,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var $a={ENV_TYPE:"live",NODE_ENV:"production"},Oa=typeof global=="object"&&global&&global.Object===Object&&global;const ss=Oa;var ja=typeof self=="object"&&self&&self.Object===Object&&self,Da=ss||ja||Function("return this")();const yt=Da;var Ba=yt.Symbol;const _t=Ba;var os=Object.prototype,Ca=os.hasOwnProperty,Na=os.toString,pe=_t?_t.toStringTag:void 0;function Pa(e){var t=Ca.call(e,pe),r=e[pe];try{e[pe]=void 0;var n=!0}catch(s){}var i=Na.call(e);return n&&(t?e[pe]=r:delete e[pe]),i}var Ia=Object.prototype,ka=Ia.toString;function Fa(e){return ka.call(e)}var Ma="[object Null]",Ua="[object Undefined]",Dn=_t?_t.toStringTag:void 0;function At(e){return e==null?e===void 0?Ua:Ma:Dn&&Dn in Object(e)?Pa(e):Fa(e)}function St(e){return e!=null&&typeof e=="object"}var La="[object Symbol]";function as(e){return typeof e=="symbol"||St(e)&&At(e)==La}function us(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 Va=Array.isArray;const qt=Va;var Bn=_t?_t.prototype:void 0,Cn=Bn?Bn.toString:void 0;function cs(e){if(typeof e=="string")return e;if(qt(e))return us(e,cs)+"";if(as(e))return Cn?Cn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ha=/\s/;function qa(e){for(var t=e.length;t--&&Ha.test(e.charAt(t)););return t}var za=/^\s+/;function Ka(e){return e&&e.slice(0,qa(e)+1).replace(za,"")}function lt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nn=NaN,Wa=/^[-+]0x[0-9a-f]+$/i,Ja=/^0b[01]+$/i,Ya=/^0o[0-7]+$/i,Ga=parseInt;function Pn(e){if(typeof e=="number")return e;if(as(e))return Nn;if(lt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ka(e);var r=Ja.test(e);return r||Ya.test(e)?Ga(e.slice(2),r?2:8):Wa.test(e)?Nn:+e}function ls(e){return e}var Za="[object AsyncFunction]",Xa="[object Function]",Qa="[object GeneratorFunction]",tu="[object Proxy]";function zt(e){if(!lt(e))return!1;var t=At(e);return t==Xa||t==Qa||t==Za||t==tu}var eu=yt["__core-js_shared__"];const yr=eu;var In=(function(){var e=/[^.]+$/.exec(yr&&yr.keys&&yr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function ru(e){return!!In&&In in e}var nu=Function.prototype,iu=nu.toString;function Wt(e){if(e!=null){try{return iu.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var su=/[\\^$.*+?()[\]{}|]/g,ou=/^\[object .+?Constructor\]$/,au=Function.prototype,uu=Object.prototype,cu=au.toString,lu=uu.hasOwnProperty,fu=RegExp("^"+cu.call(lu).replace(su,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hu(e){if(!lt(e)||ru(e))return!1;var t=zt(e)?fu:ou;return t.test(Wt(e))}function pu(e,t){return e==null?void 0:e[t]}function Jt(e,t){var r=pu(e,t);return hu(r)?r:void 0}var du=Jt(yt,"WeakMap");const kr=du;var kn=Object.create,gu=(function(){function e(){}return function(t){if(!lt(t))return{};if(kn)return kn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();const mu=gu;function fs(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 yu(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var vu=800,bu=16,wu=Date.now;function _u(e){var t=0,r=0;return function(){var n=wu(),i=bu-(n-r);if(r=n,i>0){if(++t>=vu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Eu(e){return function(){return e}}var Su=(function(){try{var e=Jt(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();const Je=Su;var xu=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:Eu(t),writable:!0})}:ls;const Tu=xu;var Ru=_u(Tu);const Au=Ru;function $u(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ou=9007199254740991,ju=/^(?:0|[1-9]\d*)$/;function hs(e,t){var r=typeof e;return t=t!=null?t:Ou,!!t&&(r=="number"||r!="symbol"&&ju.test(e))&&e>-1&&e%1==0&&e<t}function fn(e,t,r){t=="__proto__"&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Te(e,t){return e===t||e!==e&&t!==t}var Du=Object.prototype,Bu=Du.hasOwnProperty;function ps(e,t,r){var n=e[t];(!(Bu.call(e,t)&&Te(n,r))||r===void 0&&!(t in e))&&fn(e,t,r)}function ds(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var u=t[s],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),i?fn(r,u,l):ps(r,u,l)}return r}var Fn=Math.max;function Cu(e,t,r){return t=Fn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Fn(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),fs(e,this,u)}}function gs(e,t){return Au(Cu(e,t,ls),e+"")}var Nu=9007199254740991;function ms(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nu}function er(e){return e!=null&&ms(e.length)&&!zt(e)}function Pu(e,t,r){if(!lt(r))return!1;var n=typeof t;return(n=="number"?er(r)&&hs(t,r.length):n=="string"&&t in r)?Te(r[t],e):!1}function ys(e){return gs(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&Pu(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var u=r[n];u&&e(t,u,n,s)}return t})}var Iu=Object.prototype;function hn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Iu;return e===r}function ku(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fu="[object Arguments]";function Mn(e){return St(e)&&At(e)==Fu}var vs=Object.prototype,Mu=vs.hasOwnProperty,Uu=vs.propertyIsEnumerable,Lu=Mn((function(){return arguments})())?Mn:function(e){return St(e)&&Mu.call(e,"callee")&&!Uu.call(e,"callee")};const Fr=Lu;function Vu(){return!1}var bs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=bs&&typeof module=="object"&&module&&!module.nodeType&&module,Hu=Un&&Un.exports===bs,Ln=Hu?yt.Buffer:void 0,qu=Ln?Ln.isBuffer:void 0,zu=qu||Vu;const pn=zu;var Ku="[object Arguments]",Wu="[object Array]",Ju="[object Boolean]",Yu="[object Date]",Gu="[object Error]",Zu="[object Function]",Xu="[object Map]",Qu="[object Number]",tc="[object Object]",ec="[object RegExp]",rc="[object Set]",nc="[object String]",ic="[object WeakMap]",sc="[object ArrayBuffer]",oc="[object DataView]",ac="[object Float32Array]",uc="[object Float64Array]",cc="[object Int8Array]",lc="[object Int16Array]",fc="[object Int32Array]",hc="[object Uint8Array]",pc="[object Uint8ClampedArray]",dc="[object Uint16Array]",gc="[object Uint32Array]",G={};G[ac]=G[uc]=G[cc]=G[lc]=G[fc]=G[hc]=G[pc]=G[dc]=G[gc]=!0,G[Ku]=G[Wu]=G[sc]=G[Ju]=G[oc]=G[Yu]=G[Gu]=G[Zu]=G[Xu]=G[Qu]=G[tc]=G[ec]=G[rc]=G[nc]=G[ic]=!1;function mc(e){return St(e)&&ms(e.length)&&!!G[At(e)]}function dn(e){return function(t){return e(t)}}var ws=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ve=ws&&typeof module=="object"&&module&&!module.nodeType&&module,yc=ve&&ve.exports===ws,vr=yc&&ss.process,vc=(function(){try{var e=ve&&ve.require&&ve.require("util").types;return e||vr&&vr.binding&&vr.binding("util")}catch(t){}})();const Et=vc;var Vn=Et&&Et.isTypedArray,bc=Vn?dn(Vn):mc;const _s=bc;var wc=Object.prototype,_c=wc.hasOwnProperty;function Es(e,t){var r=qt(e),n=!r&&Fr(e),i=!r&&!n&&pn(e),s=!r&&!n&&!i&&_s(e),o=r||n||i||s,u=o?ku(e.length,String):[],l=u.length;for(var a in e)(t||_c.call(e,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||hs(a,l)))&&u.push(a);return u}function Ss(e,t){return function(r){return e(t(r))}}var Ec=Ss(Object.keys,Object);const Sc=Ec;var xc=Object.prototype,Tc=xc.hasOwnProperty;function Rc(e){if(!hn(e))return Sc(e);var t=[];for(var r in Object(e))Tc.call(e,r)&&r!="constructor"&&t.push(r);return t}function xs(e){return er(e)?Es(e):Rc(e)}function Ac(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var $c=Object.prototype,Oc=$c.hasOwnProperty;function jc(e){if(!lt(e))return Ac(e);var t=hn(e),r=[];for(var n in e)n=="constructor"&&(t||!Oc.call(e,n))||r.push(n);return r}function gn(e){return er(e)?Es(e,!0):jc(e)}var Dc=ys(function(e,t,r,n){ds(t,gn(t),e,n)});const Hn=Dc;var Bc=Jt(Object,"create");const we=Bc;function Cc(){this.__data__=we?we(null):{},this.size=0}function Nc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pc="__lodash_hash_undefined__",Ic=Object.prototype,kc=Ic.hasOwnProperty;function Fc(e){var t=this.__data__;if(we){var r=t[e];return r===Pc?void 0:r}return kc.call(t,e)?t[e]:void 0}var Mc=Object.prototype,Uc=Mc.hasOwnProperty;function Lc(e){var t=this.__data__;return we?t[e]!==void 0:Uc.call(t,e)}var Vc="__lodash_hash_undefined__";function Hc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=we&&t===void 0?Vc:t,this}function Ut(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])}}Ut.prototype.clear=Cc,Ut.prototype.delete=Nc,Ut.prototype.get=Fc,Ut.prototype.has=Lc,Ut.prototype.set=Hc;function qc(){this.__data__=[],this.size=0}function rr(e,t){for(var r=e.length;r--;)if(Te(e[r][0],t))return r;return-1}var zc=Array.prototype,Kc=zc.splice;function Wc(e){var t=this.__data__,r=rr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kc.call(t,r,1),--this.size,!0}function Jc(e){var t=this.__data__,r=rr(t,e);return r<0?void 0:t[r][1]}function Yc(e){return rr(this.__data__,e)>-1}function Gc(e,t){var r=this.__data__,n=rr(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=qc,Rt.prototype.delete=Wc,Rt.prototype.get=Jc,Rt.prototype.has=Yc,Rt.prototype.set=Gc;var Zc=Jt(yt,"Map");const _e=Zc;function Xc(){this.size=0,this.__data__={hash:new Ut,map:new(_e||Rt),string:new Ut}}function Qc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nr(e,t){var r=e.__data__;return Qc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tl(e){var t=nr(this,e).delete(e);return this.size-=t?1:0,t}function el(e){return nr(this,e).get(e)}function rl(e){return nr(this,e).has(e)}function nl(e,t){var r=nr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Dt(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])}}Dt.prototype.clear=Xc,Dt.prototype.delete=tl,Dt.prototype.get=el,Dt.prototype.has=rl,Dt.prototype.set=nl;var il="Expected a function";function mn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(il);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(mn.Cache||Dt),r}mn.Cache=Dt;var sl=500;function ol(e){var t=mn(e,function(n){return r.size===sl&&r.clear(),n}),r=t.cache;return t}var al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ul=/\\(\\)?/g;ol(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(al,function(r,n,i,s){t.push(i?s.replace(ul,"$1"):n||r)}),t});function ae(e){return e==null?"":cs(e)}function cl(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ll=Ss(Object.getPrototypeOf,Object);const Ts=ll;var fl="[object Object]",hl=Function.prototype,pl=Object.prototype,Rs=hl.toString,dl=pl.hasOwnProperty,gl=Rs.call(Object);function As(e){if(!St(e)||At(e)!=fl)return!1;var t=Ts(e);if(t===null)return!0;var r=dl.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Rs.call(r)==gl}var ml="[object DOMException]",yl="[object Error]";function $s(e){if(!St(e))return!1;var t=At(e);return t==yl||t==ml||typeof e.message=="string"&&typeof e.name=="string"&&!As(e)}var vl=gs(function(e,t){try{return fs(e,void 0,t)}catch(r){return $s(r)?r:new Error(r)}});const bl=vl;function wl(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 _l(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:wl(e,t,r)}var El="\\ud800-\\udfff",Sl="\\u0300-\\u036f",xl="\\ufe20-\\ufe2f",Tl="\\u20d0-\\u20ff",Rl=Sl+xl+Tl,Al="\\ufe0e\\ufe0f",$l="\\u200d",Ol=RegExp("["+$l+El+Rl+Al+"]");function Os(e){return Ol.test(e)}function jl(e){return e.split("")}var js="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Bl="\\ufe20-\\ufe2f",Cl="\\u20d0-\\u20ff",Nl=Dl+Bl+Cl,Pl="\\ufe0e\\ufe0f",Il="["+js+"]",Mr="["+Nl+"]",Ur="\\ud83c[\\udffb-\\udfff]",kl="(?:"+Mr+"|"+Ur+")",Ds="[^"+js+"]",Bs="(?:\\ud83c[\\udde6-\\uddff]){2}",Cs="[\\ud800-\\udbff][\\udc00-\\udfff]",Fl="\\u200d",Ns=kl+"?",Ps="["+Pl+"]?",Ml="(?:"+Fl+"(?:"+[Ds,Bs,Cs].join("|")+")"+Ps+Ns+")*",Ul=Ps+Ns+Ml,Ll="(?:"+[Ds+Mr+"?",Mr,Bs,Cs,Il].join("|")+")",Vl=RegExp(Ur+"(?="+Ur+")|"+Ll+Ul,"g");function Hl(e){return e.match(Vl)||[]}function ql(e){return Os(e)?Hl(e):jl(e)}function zl(e){return function(t){t=ae(t);var r=Os(t)?ql(t):void 0,n=r?r[0]:t.charAt(0),i=r?_l(r,1).join(""):t.slice(1);return n[e]()+i}}var Kl=zl("toUpperCase");const Is=Kl;function Wl(e){return Is(ae(e).toLowerCase())}function Jl(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function ks(e){return function(t){return e==null?void 0:e[t]}}var Yl={À:"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"},Gl=ks(Yl);const Zl=Gl;var Xl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ql="\\u0300-\\u036f",tf="\\ufe20-\\ufe2f",ef="\\u20d0-\\u20ff",rf=Ql+tf+ef,nf="["+rf+"]",sf=RegExp(nf,"g");function of(e){return e=ae(e),e&&e.replace(Xl,Zl).replace(sf,"")}var af=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function uf(e){return e.match(af)||[]}var cf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function lf(e){return cf.test(e)}var Fs="\\ud800-\\udfff",ff="\\u0300-\\u036f",hf="\\ufe20-\\ufe2f",pf="\\u20d0-\\u20ff",df=ff+hf+pf,Ms="\\u2700-\\u27bf",Us="a-z\\xdf-\\xf6\\xf8-\\xff",gf="\\xac\\xb1\\xd7\\xf7",mf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yf="\\u2000-\\u206f",vf=" \\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",Ls="A-Z\\xc0-\\xd6\\xd8-\\xde",bf="\\ufe0e\\ufe0f",Vs=gf+mf+yf+vf,Hs="['’]",qn="["+Vs+"]",wf="["+df+"]",qs="\\d+",_f="["+Ms+"]",zs="["+Us+"]",Ks="[^"+Fs+Vs+qs+Ms+Us+Ls+"]",Ef="\\ud83c[\\udffb-\\udfff]",Sf="(?:"+wf+"|"+Ef+")",xf="[^"+Fs+"]",Ws="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+Ls+"]",Tf="\\u200d",zn="(?:"+zs+"|"+Ks+")",Rf="(?:"+te+"|"+Ks+")",Kn="(?:"+Hs+"(?:d|ll|m|re|s|t|ve))?",Wn="(?:"+Hs+"(?:D|LL|M|RE|S|T|VE))?",Ys=Sf+"?",Gs="["+bf+"]?",Af="(?:"+Tf+"(?:"+[xf,Ws,Js].join("|")+")"+Gs+Ys+")*",$f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jf=Gs+Ys+Af,Df="(?:"+[_f,Ws,Js].join("|")+")"+jf,Bf=RegExp([te+"?"+zs+"+"+Kn+"(?="+[qn,te,"$"].join("|")+")",Rf+"+"+Wn+"(?="+[qn,te+zn,"$"].join("|")+")",te+"?"+zn+"+"+Kn,te+"+"+Wn,Of,$f,qs,Df].join("|"),"g");function Cf(e){return e.match(Bf)||[]}function Nf(e,t,r){return e=ae(e),t=t,t===void 0?lf(e)?Cf(e):uf(e):e.match(t)||[]}var Pf="['’]",If=RegExp(Pf,"g");function kf(e){return function(t){return Jl(Nf(of(t).replace(If,"")),e,"")}}var Ff=kf(function(e,t,r){return t=t.toLowerCase(),e+(r?Wl(t):t)});const xt=Ff;function Mf(){this.__data__=new Rt,this.size=0}function Uf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Lf(e){return this.__data__.get(e)}function Vf(e){return this.__data__.has(e)}var Hf=200;function qf(e,t){var r=this.__data__;if(r instanceof Rt){var n=r.__data__;if(!_e||n.length<Hf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Dt(n)}return r.set(e,t),this.size=r.size,this}function Lt(e){var t=this.__data__=new Rt(e);this.size=t.size}Lt.prototype.clear=Mf,Lt.prototype.delete=Uf,Lt.prototype.get=Lf,Lt.prototype.has=Vf,Lt.prototype.set=qf;var Zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jn=Zs&&typeof module=="object"&&module&&!module.nodeType&&module,zf=Jn&&Jn.exports===Zs,Yn=zf?yt.Buffer:void 0,Gn=Yn?Yn.allocUnsafe:void 0;function Xs(e,t){if(t)return e.slice();var r=e.length,n=Gn?Gn(r):new e.constructor(r);return e.copy(n),n}function Kf(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Wf(){return[]}var Jf=Object.prototype,Yf=Jf.propertyIsEnumerable,Zn=Object.getOwnPropertySymbols,Gf=Zn?function(e){return e==null?[]:(e=Object(e),Kf(Zn(e),function(t){return Yf.call(e,t)}))}:Wf;const Zf=Gf;function Xf(e,t,r){var n=t(e);return qt(e)?n:cl(n,r(e))}function Qf(e){return Xf(e,xs,Zf)}var th=Jt(yt,"DataView");const Lr=th;var eh=Jt(yt,"Promise");const Vr=eh;var rh=Jt(yt,"Set");const Hr=rh;var Xn="[object Map]",nh="[object Object]",Qn="[object Promise]",ti="[object Set]",ei="[object WeakMap]",ri="[object DataView]",ih=Wt(Lr),sh=Wt(_e),oh=Wt(Vr),ah=Wt(Hr),uh=Wt(kr),Mt=At;(Lr&&Mt(new Lr(new ArrayBuffer(1)))!=ri||_e&&Mt(new _e)!=Xn||Vr&&Mt(Vr.resolve())!=Qn||Hr&&Mt(new Hr)!=ti||kr&&Mt(new kr)!=ei)&&(Mt=function(e){var t=At(e),r=t==nh?e.constructor:void 0,n=r?Wt(r):"";if(n)switch(n){case ih:return ri;case sh:return Xn;case oh:return Qn;case ah:return ti;case uh:return ei}return t});const yn=Mt;var ch=Object.prototype,lh=ch.hasOwnProperty;function fh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&lh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var hh=yt.Uint8Array;const ni=hh;function vn(e){var t=new e.constructor(e.byteLength);return new ni(t).set(new ni(e)),t}function ph(e,t){var r=vn(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var dh=/\w*$/;function gh(e){var t=new e.constructor(e.source,dh.exec(e));return t.lastIndex=e.lastIndex,t}var ii=_t?_t.prototype:void 0,si=ii?ii.valueOf:void 0;function mh(e){return si?Object(si.call(e)):{}}function Qs(e,t){var r=t?vn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var yh="[object Boolean]",vh="[object Date]",bh="[object Map]",wh="[object Number]",_h="[object RegExp]",Eh="[object Set]",Sh="[object String]",xh="[object Symbol]",Th="[object ArrayBuffer]",Rh="[object DataView]",Ah="[object Float32Array]",$h="[object Float64Array]",Oh="[object Int8Array]",jh="[object Int16Array]",Dh="[object Int32Array]",Bh="[object Uint8Array]",Ch="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Ph="[object Uint32Array]";function Ih(e,t,r){var n=e.constructor;switch(t){case Th:return vn(e);case yh:case vh:return new n(+e);case Rh:return ph(e);case Ah:case $h:case Oh:case jh:case Dh:case Bh:case Ch:case Nh:case Ph:return Qs(e,r);case bh:return new n;case wh:case Sh:return new n(e);case _h:return gh(e);case Eh:return new n;case xh:return mh(e)}}function to(e){return typeof e.constructor=="function"&&!hn(e)?mu(Ts(e)):{}}var kh="[object Map]";function Fh(e){return St(e)&&yn(e)==kh}var oi=Et&&Et.isMap,Mh=oi?dn(oi):Fh;const Uh=Mh;var Lh="[object Set]";function Vh(e){return St(e)&&yn(e)==Lh}var ai=Et&&Et.isSet,Hh=ai?dn(ai):Vh;const qh=Hh;var zh=1,eo="[object Arguments]",Kh="[object Array]",Wh="[object Boolean]",Jh="[object Date]",Yh="[object Error]",ro="[object Function]",Gh="[object GeneratorFunction]",Zh="[object Map]",Xh="[object Number]",no="[object Object]",Qh="[object RegExp]",tp="[object Set]",ep="[object String]",rp="[object Symbol]",np="[object WeakMap]",ip="[object ArrayBuffer]",sp="[object DataView]",op="[object Float32Array]",ap="[object Float64Array]",up="[object Int8Array]",cp="[object Int16Array]",lp="[object Int32Array]",fp="[object Uint8Array]",hp="[object Uint8ClampedArray]",pp="[object Uint16Array]",dp="[object Uint32Array]",Y={};Y[eo]=Y[Kh]=Y[ip]=Y[sp]=Y[Wh]=Y[Jh]=Y[op]=Y[ap]=Y[up]=Y[cp]=Y[lp]=Y[Zh]=Y[Xh]=Y[no]=Y[Qh]=Y[tp]=Y[ep]=Y[rp]=Y[fp]=Y[hp]=Y[pp]=Y[dp]=!0,Y[Yh]=Y[ro]=Y[np]=!1;function Ue(e,t,r,n,i,s){var o,u=t&zh;if(o!==void 0)return o;if(!lt(e))return e;var l=qt(e);if(l)o=fh(e);else{var a=yn(e),c=a==ro||a==Gh;if(pn(e))return Xs(e,u);if(a==no||a==eo||c&&!i)o=c?{}:to(e);else{if(!Y[a])return i?e:{};o=Ih(e,a,u)}}s||(s=new Lt);var f=s.get(e);if(f)return f;s.set(e,o),qh(e)?e.forEach(function(d){o.add(Ue(d,t,r,d,e,s))}):Uh(e)&&e.forEach(function(d,g){o.set(g,Ue(d,t,r,g,e,s))});var p=Qf,h=l?void 0:p(e);return $u(h||e,function(d,g){h&&(g=d,d=e[g]),ps(o,g,Ue(d,t,r,g,e,s))}),o}var gp=1,mp=4;function ui(e){return Ue(e,gp|mp)}var ci=_t?_t.prototype:void 0;ci&&ci.valueOf;function yp(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),u=o.length;u--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return t}}var vp=yp();const bp=vp;var wp=function(){return yt.Date.now()};const br=wp;var _p="Expected a function",Ep=Math.max,Sp=Math.min;function io(e,t,r){var n,i,s,o,u,l,a=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(_p);t=Pn(t)||0,lt(r)&&(c=!!r.leading,f="maxWait"in r,s=f?Ep(Pn(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function h(m){var x=n,A=i;return n=i=void 0,a=m,o=e.apply(A,x),o}function d(m){return a=m,u=setTimeout(_,t),c?h(m):o}function g(m){var x=m-l,A=m-a,U=t-x;return f?Sp(U,s-A):U}function b(m){var x=m-l,A=m-a;return l===void 0||x>=t||x<0||f&&A>=s}function _(){var m=br();if(b(m))return y(m);u=setTimeout(_,g(m))}function y(m){return u=void 0,p&&n?h(m):(n=i=void 0,o)}function v(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function w(){return u===void 0?o:y(br())}function E(){var m=br(),x=b(m);if(n=arguments,i=this,l=m,x){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(_,t),h(l)}return u===void 0&&(u=setTimeout(_,t)),o}return E.cancel=v,E.flush=w,E}function qr(e,t,r){(r!==void 0&&!Te(e[t],r)||r===void 0&&!(t in e))&&fn(e,t,r)}function xp(e){return St(e)&&er(e)}function zr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Tp(e){return ds(e,gn(e))}function Rp(e,t,r,n,i,s,o){var u=zr(e,r),l=zr(t,r),a=o.get(l);if(a){qr(e,r,a);return}var c=s?s(u,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var p=qt(l),h=!p&&pn(l),d=!p&&!h&&_s(l);c=l,p||h||d?qt(u)?c=u:xp(u)?c=yu(u):h?(f=!1,c=Xs(l,!0)):d?(f=!1,c=Qs(l,!0)):c=[]:As(l)||Fr(l)?(c=u,Fr(u)?c=Tp(u):(!lt(u)||zt(u))&&(c=to(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),qr(e,r,c)}function so(e,t,r,n,i){e!==t&&bp(t,function(s,o){if(i||(i=new Lt),lt(s))Rp(e,t,o,r,so,n,i);else{var u=n?n(zr(e,o),s,o+"",e,t,i):void 0;u===void 0&&(u=s),qr(e,o,u)}},gn)}var Ap={"&":"&","<":"<",">":">",'"':""","'":"'"},$p=ks(Ap);const Op=$p;var oo=/[&<>"']/g,jp=RegExp(oo.source);function Dp(e){return e=ae(e),e&&jp.test(e)?e.replace(oo,Op):e}var Bp="[object String]";function Ct(e){return typeof e=="string"||!qt(e)&&St(e)&&At(e)==Bp}function Cp(e,t){return us(t,function(r){return e[r]})}Et&&Et.isArrayBuffer;Et&&Et.isDate;var Np=ys(function(e,t,r){so(e,t,r)});const me=Np;var ao=Object.prototype,Pp=ao.hasOwnProperty;function li(e,t,r,n){return e===void 0||Te(e,ao[r])&&!Pp.call(n,r)?t:e}var Ip={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function kp(e){return"\\"+Ip[e]}var Fp=/<%=([\s\S]+?)%>/g;const uo=Fp;var Mp=/<%-([\s\S]+?)%>/g;const Up=Mp;var Lp=/<%([\s\S]+?)%>/g;const Vp=Lp;var Hp={escape:Up,evaluate:Vp,interpolate:uo,variable:"",imports:{_:{escape:Dp}}};const fi=Hp;var qp="Invalid `variable` option passed into `_.template`",zp=/\b__p \+= '';/g,Kp=/\b(__p \+=) '' \+/g,Wp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jp=/[()=,{}\[\]\/\s]/,Yp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/($^)/,Gp=/['\n\r\u2028\u2029\\]/g,Zp=Object.prototype,hi=Zp.hasOwnProperty;function Xp(e,t,r){var n=fi.imports._.templateSettings||fi;e=ae(e),t=Hn({},t,n,li);var i=Hn({},t.imports,n.imports,li),s=xs(i),o=Cp(i,s),u,l,a=0,c=t.interpolate||De,f="__p += '",p=RegExp((t.escape||De).source+"|"+c.source+"|"+(c===uo?Yp:De).source+"|"+(t.evaluate||De).source+"|$","g"),h=hi.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
-
`:"";e.replace(p,function(
|
|
2
|
+
var ya=Object.defineProperty,va=Object.defineProperties;var ba=Object.getOwnPropertyDescriptors;var Rn=Object.getOwnPropertySymbols;var wa=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable;var Gt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ea=e=>{throw TypeError(e)};var dr=(e,t,r)=>t in e?ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))wa.call(t,r)&&dr(e,r,t[r]);if(Rn)for(var r of Rn(t))_a.call(t,r)&&dr(e,r,t[r]);return e},et=(e,t)=>va(e,ba(t));var z=(e,t,r)=>dr(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{u(r.next(l))}catch(a){i(a)}},o=l=>{try{u(r.throw(l))}catch(a){i(a)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);u((r=r.apply(e,t)).next())}),kt=function(e,t){this[0]=e,this[1]=t},gr=(e,t,r)=>{var n=(o,u,l,a)=>{try{var c=r[o](u),f=(u=c.value)instanceof kt,p=c.done;Promise.resolve(f?u[0]:u).then(h=>f?n(o==="return"?o:"next",u[1]?{done:h.done,value:h.value}:h,l,a):l({value:h,done:p})).catch(h=>n("throw",h,l,a))}catch(h){a(h)}},i=o=>s[o]=u=>new Promise((l,a)=>n(o,u,l,a)),s={};return r=r.apply(e,t),s[Gt("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},mr=e=>{var t=e[Gt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Gt("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new kt(new Promise(u=>{var l=t[s](o);l instanceof Object||Ea("Object expected"),u(l)}),1)}}),i[Gt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},An=(e,t,r)=>(t=e[Gt("asyncIterator")])?t.call(e):(e=e[Gt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,u,l)=>(s=i.call(e,s),l=s.done,Promise.resolve(s.value).then(a=>o({value:a,done:l}),u)))),r("next"),r("return"),t);import{d as is,g as $n,h as Ir,r as Sa,z as tr,i as xa}from"./@dcloudio-uni-h5-vue-BtM9Eyib.js";import{useRoute as Ta}from"./vue-router-CbZ0Q__O.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-Cc-Ey1iB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();const Ra="modulepreload",Aa=function(e,t){return new URL(e,t).href},On={},jn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let o=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const u=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=o(r.map(c=>{if(c=Aa(c,n),c in On)return;On[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!n)for(let g=u.length-1;g>=0;g--){const w=u[g];if(w.href===c&&(!f||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Ra,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((g,w)=>{d.addEventListener("load",g),d.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var $a={ENV_TYPE:"live",NODE_ENV:"production"},Oa=typeof global=="object"&&global&&global.Object===Object&&global;const ss=Oa;var ja=typeof self=="object"&&self&&self.Object===Object&&self,Da=ss||ja||Function("return this")();const yt=Da;var Ba=yt.Symbol;const _t=Ba;var os=Object.prototype,Ca=os.hasOwnProperty,Na=os.toString,pe=_t?_t.toStringTag:void 0;function Pa(e){var t=Ca.call(e,pe),r=e[pe];try{e[pe]=void 0;var n=!0}catch(s){}var i=Na.call(e);return n&&(t?e[pe]=r:delete e[pe]),i}var Ia=Object.prototype,ka=Ia.toString;function Fa(e){return ka.call(e)}var Ma="[object Null]",Ua="[object Undefined]",Dn=_t?_t.toStringTag:void 0;function At(e){return e==null?e===void 0?Ua:Ma:Dn&&Dn in Object(e)?Pa(e):Fa(e)}function St(e){return e!=null&&typeof e=="object"}var La="[object Symbol]";function as(e){return typeof e=="symbol"||St(e)&&At(e)==La}function us(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 Va=Array.isArray;const qt=Va;var Bn=_t?_t.prototype:void 0,Cn=Bn?Bn.toString:void 0;function cs(e){if(typeof e=="string")return e;if(qt(e))return us(e,cs)+"";if(as(e))return Cn?Cn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ha=/\s/;function qa(e){for(var t=e.length;t--&&Ha.test(e.charAt(t)););return t}var za=/^\s+/;function Ka(e){return e&&e.slice(0,qa(e)+1).replace(za,"")}function lt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nn=NaN,Wa=/^[-+]0x[0-9a-f]+$/i,Ja=/^0b[01]+$/i,Ya=/^0o[0-7]+$/i,Ga=parseInt;function Pn(e){if(typeof e=="number")return e;if(as(e))return Nn;if(lt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ka(e);var r=Ja.test(e);return r||Ya.test(e)?Ga(e.slice(2),r?2:8):Wa.test(e)?Nn:+e}function ls(e){return e}var Za="[object AsyncFunction]",Xa="[object Function]",Qa="[object GeneratorFunction]",tu="[object Proxy]";function zt(e){if(!lt(e))return!1;var t=At(e);return t==Xa||t==Qa||t==Za||t==tu}var eu=yt["__core-js_shared__"];const yr=eu;var In=(function(){var e=/[^.]+$/.exec(yr&&yr.keys&&yr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function ru(e){return!!In&&In in e}var nu=Function.prototype,iu=nu.toString;function Wt(e){if(e!=null){try{return iu.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var su=/[\\^$.*+?()[\]{}|]/g,ou=/^\[object .+?Constructor\]$/,au=Function.prototype,uu=Object.prototype,cu=au.toString,lu=uu.hasOwnProperty,fu=RegExp("^"+cu.call(lu).replace(su,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hu(e){if(!lt(e)||ru(e))return!1;var t=zt(e)?fu:ou;return t.test(Wt(e))}function pu(e,t){return e==null?void 0:e[t]}function Jt(e,t){var r=pu(e,t);return hu(r)?r:void 0}var du=Jt(yt,"WeakMap");const kr=du;var kn=Object.create,gu=(function(){function e(){}return function(t){if(!lt(t))return{};if(kn)return kn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();const mu=gu;function fs(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 yu(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var vu=800,bu=16,wu=Date.now;function _u(e){var t=0,r=0;return function(){var n=wu(),i=bu-(n-r);if(r=n,i>0){if(++t>=vu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Eu(e){return function(){return e}}var Su=(function(){try{var e=Jt(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();const Je=Su;var xu=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:Eu(t),writable:!0})}:ls;const Tu=xu;var Ru=_u(Tu);const Au=Ru;function $u(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ou=9007199254740991,ju=/^(?:0|[1-9]\d*)$/;function hs(e,t){var r=typeof e;return t=t!=null?t:Ou,!!t&&(r=="number"||r!="symbol"&&ju.test(e))&&e>-1&&e%1==0&&e<t}function fn(e,t,r){t=="__proto__"&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Te(e,t){return e===t||e!==e&&t!==t}var Du=Object.prototype,Bu=Du.hasOwnProperty;function ps(e,t,r){var n=e[t];(!(Bu.call(e,t)&&Te(n,r))||r===void 0&&!(t in e))&&fn(e,t,r)}function ds(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var u=t[s],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),i?fn(r,u,l):ps(r,u,l)}return r}var Fn=Math.max;function Cu(e,t,r){return t=Fn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Fn(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),fs(e,this,u)}}function gs(e,t){return Au(Cu(e,t,ls),e+"")}var Nu=9007199254740991;function ms(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nu}function er(e){return e!=null&&ms(e.length)&&!zt(e)}function Pu(e,t,r){if(!lt(r))return!1;var n=typeof t;return(n=="number"?er(r)&&hs(t,r.length):n=="string"&&t in r)?Te(r[t],e):!1}function ys(e){return gs(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&Pu(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var u=r[n];u&&e(t,u,n,s)}return t})}var Iu=Object.prototype;function hn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Iu;return e===r}function ku(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fu="[object Arguments]";function Mn(e){return St(e)&&At(e)==Fu}var vs=Object.prototype,Mu=vs.hasOwnProperty,Uu=vs.propertyIsEnumerable,Lu=Mn((function(){return arguments})())?Mn:function(e){return St(e)&&Mu.call(e,"callee")&&!Uu.call(e,"callee")};const Fr=Lu;function Vu(){return!1}var bs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=bs&&typeof module=="object"&&module&&!module.nodeType&&module,Hu=Un&&Un.exports===bs,Ln=Hu?yt.Buffer:void 0,qu=Ln?Ln.isBuffer:void 0,zu=qu||Vu;const pn=zu;var Ku="[object Arguments]",Wu="[object Array]",Ju="[object Boolean]",Yu="[object Date]",Gu="[object Error]",Zu="[object Function]",Xu="[object Map]",Qu="[object Number]",tc="[object Object]",ec="[object RegExp]",rc="[object Set]",nc="[object String]",ic="[object WeakMap]",sc="[object ArrayBuffer]",oc="[object DataView]",ac="[object Float32Array]",uc="[object Float64Array]",cc="[object Int8Array]",lc="[object Int16Array]",fc="[object Int32Array]",hc="[object Uint8Array]",pc="[object Uint8ClampedArray]",dc="[object Uint16Array]",gc="[object Uint32Array]",G={};G[ac]=G[uc]=G[cc]=G[lc]=G[fc]=G[hc]=G[pc]=G[dc]=G[gc]=!0,G[Ku]=G[Wu]=G[sc]=G[Ju]=G[oc]=G[Yu]=G[Gu]=G[Zu]=G[Xu]=G[Qu]=G[tc]=G[ec]=G[rc]=G[nc]=G[ic]=!1;function mc(e){return St(e)&&ms(e.length)&&!!G[At(e)]}function dn(e){return function(t){return e(t)}}var ws=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ve=ws&&typeof module=="object"&&module&&!module.nodeType&&module,yc=ve&&ve.exports===ws,vr=yc&&ss.process,vc=(function(){try{var e=ve&&ve.require&&ve.require("util").types;return e||vr&&vr.binding&&vr.binding("util")}catch(t){}})();const Et=vc;var Vn=Et&&Et.isTypedArray,bc=Vn?dn(Vn):mc;const _s=bc;var wc=Object.prototype,_c=wc.hasOwnProperty;function Es(e,t){var r=qt(e),n=!r&&Fr(e),i=!r&&!n&&pn(e),s=!r&&!n&&!i&&_s(e),o=r||n||i||s,u=o?ku(e.length,String):[],l=u.length;for(var a in e)(t||_c.call(e,a))&&!(o&&(a=="length"||i&&(a=="offset"||a=="parent")||s&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||hs(a,l)))&&u.push(a);return u}function Ss(e,t){return function(r){return e(t(r))}}var Ec=Ss(Object.keys,Object);const Sc=Ec;var xc=Object.prototype,Tc=xc.hasOwnProperty;function Rc(e){if(!hn(e))return Sc(e);var t=[];for(var r in Object(e))Tc.call(e,r)&&r!="constructor"&&t.push(r);return t}function xs(e){return er(e)?Es(e):Rc(e)}function Ac(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var $c=Object.prototype,Oc=$c.hasOwnProperty;function jc(e){if(!lt(e))return Ac(e);var t=hn(e),r=[];for(var n in e)n=="constructor"&&(t||!Oc.call(e,n))||r.push(n);return r}function gn(e){return er(e)?Es(e,!0):jc(e)}var Dc=ys(function(e,t,r,n){ds(t,gn(t),e,n)});const Hn=Dc;var Bc=Jt(Object,"create");const we=Bc;function Cc(){this.__data__=we?we(null):{},this.size=0}function Nc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pc="__lodash_hash_undefined__",Ic=Object.prototype,kc=Ic.hasOwnProperty;function Fc(e){var t=this.__data__;if(we){var r=t[e];return r===Pc?void 0:r}return kc.call(t,e)?t[e]:void 0}var Mc=Object.prototype,Uc=Mc.hasOwnProperty;function Lc(e){var t=this.__data__;return we?t[e]!==void 0:Uc.call(t,e)}var Vc="__lodash_hash_undefined__";function Hc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=we&&t===void 0?Vc:t,this}function Ut(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])}}Ut.prototype.clear=Cc,Ut.prototype.delete=Nc,Ut.prototype.get=Fc,Ut.prototype.has=Lc,Ut.prototype.set=Hc;function qc(){this.__data__=[],this.size=0}function rr(e,t){for(var r=e.length;r--;)if(Te(e[r][0],t))return r;return-1}var zc=Array.prototype,Kc=zc.splice;function Wc(e){var t=this.__data__,r=rr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kc.call(t,r,1),--this.size,!0}function Jc(e){var t=this.__data__,r=rr(t,e);return r<0?void 0:t[r][1]}function Yc(e){return rr(this.__data__,e)>-1}function Gc(e,t){var r=this.__data__,n=rr(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=qc,Rt.prototype.delete=Wc,Rt.prototype.get=Jc,Rt.prototype.has=Yc,Rt.prototype.set=Gc;var Zc=Jt(yt,"Map");const _e=Zc;function Xc(){this.size=0,this.__data__={hash:new Ut,map:new(_e||Rt),string:new Ut}}function Qc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nr(e,t){var r=e.__data__;return Qc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tl(e){var t=nr(this,e).delete(e);return this.size-=t?1:0,t}function el(e){return nr(this,e).get(e)}function rl(e){return nr(this,e).has(e)}function nl(e,t){var r=nr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Dt(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])}}Dt.prototype.clear=Xc,Dt.prototype.delete=tl,Dt.prototype.get=el,Dt.prototype.has=rl,Dt.prototype.set=nl;var il="Expected a function";function mn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(il);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(mn.Cache||Dt),r}mn.Cache=Dt;var sl=500;function ol(e){var t=mn(e,function(n){return r.size===sl&&r.clear(),n}),r=t.cache;return t}var al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ul=/\\(\\)?/g;ol(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(al,function(r,n,i,s){t.push(i?s.replace(ul,"$1"):n||r)}),t});function ae(e){return e==null?"":cs(e)}function cl(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ll=Ss(Object.getPrototypeOf,Object);const Ts=ll;var fl="[object Object]",hl=Function.prototype,pl=Object.prototype,Rs=hl.toString,dl=pl.hasOwnProperty,gl=Rs.call(Object);function As(e){if(!St(e)||At(e)!=fl)return!1;var t=Ts(e);if(t===null)return!0;var r=dl.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Rs.call(r)==gl}var ml="[object DOMException]",yl="[object Error]";function $s(e){if(!St(e))return!1;var t=At(e);return t==yl||t==ml||typeof e.message=="string"&&typeof e.name=="string"&&!As(e)}var vl=gs(function(e,t){try{return fs(e,void 0,t)}catch(r){return $s(r)?r:new Error(r)}});const bl=vl;function wl(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 _l(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:wl(e,t,r)}var El="\\ud800-\\udfff",Sl="\\u0300-\\u036f",xl="\\ufe20-\\ufe2f",Tl="\\u20d0-\\u20ff",Rl=Sl+xl+Tl,Al="\\ufe0e\\ufe0f",$l="\\u200d",Ol=RegExp("["+$l+El+Rl+Al+"]");function Os(e){return Ol.test(e)}function jl(e){return e.split("")}var js="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Bl="\\ufe20-\\ufe2f",Cl="\\u20d0-\\u20ff",Nl=Dl+Bl+Cl,Pl="\\ufe0e\\ufe0f",Il="["+js+"]",Mr="["+Nl+"]",Ur="\\ud83c[\\udffb-\\udfff]",kl="(?:"+Mr+"|"+Ur+")",Ds="[^"+js+"]",Bs="(?:\\ud83c[\\udde6-\\uddff]){2}",Cs="[\\ud800-\\udbff][\\udc00-\\udfff]",Fl="\\u200d",Ns=kl+"?",Ps="["+Pl+"]?",Ml="(?:"+Fl+"(?:"+[Ds,Bs,Cs].join("|")+")"+Ps+Ns+")*",Ul=Ps+Ns+Ml,Ll="(?:"+[Ds+Mr+"?",Mr,Bs,Cs,Il].join("|")+")",Vl=RegExp(Ur+"(?="+Ur+")|"+Ll+Ul,"g");function Hl(e){return e.match(Vl)||[]}function ql(e){return Os(e)?Hl(e):jl(e)}function zl(e){return function(t){t=ae(t);var r=Os(t)?ql(t):void 0,n=r?r[0]:t.charAt(0),i=r?_l(r,1).join(""):t.slice(1);return n[e]()+i}}var Kl=zl("toUpperCase");const Is=Kl;function Wl(e){return Is(ae(e).toLowerCase())}function Jl(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function ks(e){return function(t){return e==null?void 0:e[t]}}var Yl={À:"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"},Gl=ks(Yl);const Zl=Gl;var Xl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ql="\\u0300-\\u036f",tf="\\ufe20-\\ufe2f",ef="\\u20d0-\\u20ff",rf=Ql+tf+ef,nf="["+rf+"]",sf=RegExp(nf,"g");function of(e){return e=ae(e),e&&e.replace(Xl,Zl).replace(sf,"")}var af=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function uf(e){return e.match(af)||[]}var cf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function lf(e){return cf.test(e)}var Fs="\\ud800-\\udfff",ff="\\u0300-\\u036f",hf="\\ufe20-\\ufe2f",pf="\\u20d0-\\u20ff",df=ff+hf+pf,Ms="\\u2700-\\u27bf",Us="a-z\\xdf-\\xf6\\xf8-\\xff",gf="\\xac\\xb1\\xd7\\xf7",mf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yf="\\u2000-\\u206f",vf=" \\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",Ls="A-Z\\xc0-\\xd6\\xd8-\\xde",bf="\\ufe0e\\ufe0f",Vs=gf+mf+yf+vf,Hs="['’]",qn="["+Vs+"]",wf="["+df+"]",qs="\\d+",_f="["+Ms+"]",zs="["+Us+"]",Ks="[^"+Fs+Vs+qs+Ms+Us+Ls+"]",Ef="\\ud83c[\\udffb-\\udfff]",Sf="(?:"+wf+"|"+Ef+")",xf="[^"+Fs+"]",Ws="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+Ls+"]",Tf="\\u200d",zn="(?:"+zs+"|"+Ks+")",Rf="(?:"+te+"|"+Ks+")",Kn="(?:"+Hs+"(?:d|ll|m|re|s|t|ve))?",Wn="(?:"+Hs+"(?:D|LL|M|RE|S|T|VE))?",Ys=Sf+"?",Gs="["+bf+"]?",Af="(?:"+Tf+"(?:"+[xf,Ws,Js].join("|")+")"+Gs+Ys+")*",$f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jf=Gs+Ys+Af,Df="(?:"+[_f,Ws,Js].join("|")+")"+jf,Bf=RegExp([te+"?"+zs+"+"+Kn+"(?="+[qn,te,"$"].join("|")+")",Rf+"+"+Wn+"(?="+[qn,te+zn,"$"].join("|")+")",te+"?"+zn+"+"+Kn,te+"+"+Wn,Of,$f,qs,Df].join("|"),"g");function Cf(e){return e.match(Bf)||[]}function Nf(e,t,r){return e=ae(e),t=t,t===void 0?lf(e)?Cf(e):uf(e):e.match(t)||[]}var Pf="['’]",If=RegExp(Pf,"g");function kf(e){return function(t){return Jl(Nf(of(t).replace(If,"")),e,"")}}var Ff=kf(function(e,t,r){return t=t.toLowerCase(),e+(r?Wl(t):t)});const xt=Ff;function Mf(){this.__data__=new Rt,this.size=0}function Uf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Lf(e){return this.__data__.get(e)}function Vf(e){return this.__data__.has(e)}var Hf=200;function qf(e,t){var r=this.__data__;if(r instanceof Rt){var n=r.__data__;if(!_e||n.length<Hf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Dt(n)}return r.set(e,t),this.size=r.size,this}function Lt(e){var t=this.__data__=new Rt(e);this.size=t.size}Lt.prototype.clear=Mf,Lt.prototype.delete=Uf,Lt.prototype.get=Lf,Lt.prototype.has=Vf,Lt.prototype.set=qf;var Zs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jn=Zs&&typeof module=="object"&&module&&!module.nodeType&&module,zf=Jn&&Jn.exports===Zs,Yn=zf?yt.Buffer:void 0,Gn=Yn?Yn.allocUnsafe:void 0;function Xs(e,t){if(t)return e.slice();var r=e.length,n=Gn?Gn(r):new e.constructor(r);return e.copy(n),n}function Kf(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function Wf(){return[]}var Jf=Object.prototype,Yf=Jf.propertyIsEnumerable,Zn=Object.getOwnPropertySymbols,Gf=Zn?function(e){return e==null?[]:(e=Object(e),Kf(Zn(e),function(t){return Yf.call(e,t)}))}:Wf;const Zf=Gf;function Xf(e,t,r){var n=t(e);return qt(e)?n:cl(n,r(e))}function Qf(e){return Xf(e,xs,Zf)}var th=Jt(yt,"DataView");const Lr=th;var eh=Jt(yt,"Promise");const Vr=eh;var rh=Jt(yt,"Set");const Hr=rh;var Xn="[object Map]",nh="[object Object]",Qn="[object Promise]",ti="[object Set]",ei="[object WeakMap]",ri="[object DataView]",ih=Wt(Lr),sh=Wt(_e),oh=Wt(Vr),ah=Wt(Hr),uh=Wt(kr),Mt=At;(Lr&&Mt(new Lr(new ArrayBuffer(1)))!=ri||_e&&Mt(new _e)!=Xn||Vr&&Mt(Vr.resolve())!=Qn||Hr&&Mt(new Hr)!=ti||kr&&Mt(new kr)!=ei)&&(Mt=function(e){var t=At(e),r=t==nh?e.constructor:void 0,n=r?Wt(r):"";if(n)switch(n){case ih:return ri;case sh:return Xn;case oh:return Qn;case ah:return ti;case uh:return ei}return t});const yn=Mt;var ch=Object.prototype,lh=ch.hasOwnProperty;function fh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&lh.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var hh=yt.Uint8Array;const ni=hh;function vn(e){var t=new e.constructor(e.byteLength);return new ni(t).set(new ni(e)),t}function ph(e,t){var r=vn(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var dh=/\w*$/;function gh(e){var t=new e.constructor(e.source,dh.exec(e));return t.lastIndex=e.lastIndex,t}var ii=_t?_t.prototype:void 0,si=ii?ii.valueOf:void 0;function mh(e){return si?Object(si.call(e)):{}}function Qs(e,t){var r=t?vn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var yh="[object Boolean]",vh="[object Date]",bh="[object Map]",wh="[object Number]",_h="[object RegExp]",Eh="[object Set]",Sh="[object String]",xh="[object Symbol]",Th="[object ArrayBuffer]",Rh="[object DataView]",Ah="[object Float32Array]",$h="[object Float64Array]",Oh="[object Int8Array]",jh="[object Int16Array]",Dh="[object Int32Array]",Bh="[object Uint8Array]",Ch="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Ph="[object Uint32Array]";function Ih(e,t,r){var n=e.constructor;switch(t){case Th:return vn(e);case yh:case vh:return new n(+e);case Rh:return ph(e);case Ah:case $h:case Oh:case jh:case Dh:case Bh:case Ch:case Nh:case Ph:return Qs(e,r);case bh:return new n;case wh:case Sh:return new n(e);case _h:return gh(e);case Eh:return new n;case xh:return mh(e)}}function to(e){return typeof e.constructor=="function"&&!hn(e)?mu(Ts(e)):{}}var kh="[object Map]";function Fh(e){return St(e)&&yn(e)==kh}var oi=Et&&Et.isMap,Mh=oi?dn(oi):Fh;const Uh=Mh;var Lh="[object Set]";function Vh(e){return St(e)&&yn(e)==Lh}var ai=Et&&Et.isSet,Hh=ai?dn(ai):Vh;const qh=Hh;var zh=1,eo="[object Arguments]",Kh="[object Array]",Wh="[object Boolean]",Jh="[object Date]",Yh="[object Error]",ro="[object Function]",Gh="[object GeneratorFunction]",Zh="[object Map]",Xh="[object Number]",no="[object Object]",Qh="[object RegExp]",tp="[object Set]",ep="[object String]",rp="[object Symbol]",np="[object WeakMap]",ip="[object ArrayBuffer]",sp="[object DataView]",op="[object Float32Array]",ap="[object Float64Array]",up="[object Int8Array]",cp="[object Int16Array]",lp="[object Int32Array]",fp="[object Uint8Array]",hp="[object Uint8ClampedArray]",pp="[object Uint16Array]",dp="[object Uint32Array]",Y={};Y[eo]=Y[Kh]=Y[ip]=Y[sp]=Y[Wh]=Y[Jh]=Y[op]=Y[ap]=Y[up]=Y[cp]=Y[lp]=Y[Zh]=Y[Xh]=Y[no]=Y[Qh]=Y[tp]=Y[ep]=Y[rp]=Y[fp]=Y[hp]=Y[pp]=Y[dp]=!0,Y[Yh]=Y[ro]=Y[np]=!1;function Ue(e,t,r,n,i,s){var o,u=t&zh;if(o!==void 0)return o;if(!lt(e))return e;var l=qt(e);if(l)o=fh(e);else{var a=yn(e),c=a==ro||a==Gh;if(pn(e))return Xs(e,u);if(a==no||a==eo||c&&!i)o=c?{}:to(e);else{if(!Y[a])return i?e:{};o=Ih(e,a,u)}}s||(s=new Lt);var f=s.get(e);if(f)return f;s.set(e,o),qh(e)?e.forEach(function(d){o.add(Ue(d,t,r,d,e,s))}):Uh(e)&&e.forEach(function(d,g){o.set(g,Ue(d,t,r,g,e,s))});var p=Qf,h=l?void 0:p(e);return $u(h||e,function(d,g){h&&(g=d,d=e[g]),ps(o,g,Ue(d,t,r,g,e,s))}),o}var gp=1,mp=4;function ui(e){return Ue(e,gp|mp)}var ci=_t?_t.prototype:void 0;ci&&ci.valueOf;function yp(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),u=o.length;u--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return t}}var vp=yp();const bp=vp;var wp=function(){return yt.Date.now()};const br=wp;var _p="Expected a function",Ep=Math.max,Sp=Math.min;function io(e,t,r){var n,i,s,o,u,l,a=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(_p);t=Pn(t)||0,lt(r)&&(c=!!r.leading,f="maxWait"in r,s=f?Ep(Pn(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function h(m){var x=n,A=i;return n=i=void 0,a=m,o=e.apply(A,x),o}function d(m){return a=m,u=setTimeout(_,t),c?h(m):o}function g(m){var x=m-l,A=m-a,U=t-x;return f?Sp(U,s-A):U}function w(m){var x=m-l,A=m-a;return l===void 0||x>=t||x<0||f&&A>=s}function _(){var m=br();if(w(m))return y(m);u=setTimeout(_,g(m))}function y(m){return u=void 0,p&&n?h(m):(n=i=void 0,o)}function v(){u!==void 0&&clearTimeout(u),a=0,n=l=i=u=void 0}function b(){return u===void 0?o:y(br())}function E(){var m=br(),x=w(m);if(n=arguments,i=this,l=m,x){if(u===void 0)return d(l);if(f)return clearTimeout(u),u=setTimeout(_,t),h(l)}return u===void 0&&(u=setTimeout(_,t)),o}return E.cancel=v,E.flush=b,E}function qr(e,t,r){(r!==void 0&&!Te(e[t],r)||r===void 0&&!(t in e))&&fn(e,t,r)}function xp(e){return St(e)&&er(e)}function zr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Tp(e){return ds(e,gn(e))}function Rp(e,t,r,n,i,s,o){var u=zr(e,r),l=zr(t,r),a=o.get(l);if(a){qr(e,r,a);return}var c=s?s(u,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var p=qt(l),h=!p&&pn(l),d=!p&&!h&&_s(l);c=l,p||h||d?qt(u)?c=u:xp(u)?c=yu(u):h?(f=!1,c=Xs(l,!0)):d?(f=!1,c=Qs(l,!0)):c=[]:As(l)||Fr(l)?(c=u,Fr(u)?c=Tp(u):(!lt(u)||zt(u))&&(c=to(l))):f=!1}f&&(o.set(l,c),i(c,l,n,s,o),o.delete(l)),qr(e,r,c)}function so(e,t,r,n,i){e!==t&&bp(t,function(s,o){if(i||(i=new Lt),lt(s))Rp(e,t,o,r,so,n,i);else{var u=n?n(zr(e,o),s,o+"",e,t,i):void 0;u===void 0&&(u=s),qr(e,o,u)}},gn)}var Ap={"&":"&","<":"<",">":">",'"':""","'":"'"},$p=ks(Ap);const Op=$p;var oo=/[&<>"']/g,jp=RegExp(oo.source);function Dp(e){return e=ae(e),e&&jp.test(e)?e.replace(oo,Op):e}var Bp="[object String]";function Ct(e){return typeof e=="string"||!qt(e)&&St(e)&&At(e)==Bp}function Cp(e,t){return us(t,function(r){return e[r]})}Et&&Et.isArrayBuffer;Et&&Et.isDate;var Np=ys(function(e,t,r){so(e,t,r)});const me=Np;var ao=Object.prototype,Pp=ao.hasOwnProperty;function li(e,t,r,n){return e===void 0||Te(e,ao[r])&&!Pp.call(n,r)?t:e}var Ip={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function kp(e){return"\\"+Ip[e]}var Fp=/<%=([\s\S]+?)%>/g;const uo=Fp;var Mp=/<%-([\s\S]+?)%>/g;const Up=Mp;var Lp=/<%([\s\S]+?)%>/g;const Vp=Lp;var Hp={escape:Up,evaluate:Vp,interpolate:uo,variable:"",imports:{_:{escape:Dp}}};const fi=Hp;var qp="Invalid `variable` option passed into `_.template`",zp=/\b__p \+= '';/g,Kp=/\b(__p \+=) '' \+/g,Wp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jp=/[()=,{}\[\]\/\s]/,Yp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/($^)/,Gp=/['\n\r\u2028\u2029\\]/g,Zp=Object.prototype,hi=Zp.hasOwnProperty;function Xp(e,t,r){var n=fi.imports._.templateSettings||fi;e=ae(e),t=Hn({},t,n,li);var i=Hn({},t.imports,n.imports,li),s=xs(i),o=Cp(i,s),u,l,a=0,c=t.interpolate||De,f="__p += '",p=RegExp((t.escape||De).source+"|"+c.source+"|"+(c===uo?Yp:De).source+"|"+(t.evaluate||De).source+"|$","g"),h=hi.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
+
`:"";e.replace(p,function(w,_,y,v,b,E){return y||(y=v),f+=e.slice(a,E).replace(Gp,kp),_&&(u=!0,f+=`' +
|
|
4
4
|
__e(`+_+`) +
|
|
5
|
-
'`),
|
|
6
|
-
`+
|
|
5
|
+
'`),b&&(l=!0,f+=`';
|
|
6
|
+
`+b+`;
|
|
7
7
|
__p += '`),y&&(f+=`' +
|
|
8
8
|
((__t = (`+y+`)) == null ? '' : __t) +
|
|
9
|
-
'`),a=E+
|
|
9
|
+
'`),a=E+w.length,w}),f+=`';
|
|
10
10
|
`;var d=hi.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
|
|
11
11
|
`+f+`
|
|
12
12
|
}
|
|
@@ -16,21 +16,21 @@ __p += '`),y&&(f+=`' +
|
|
|
16
16
|
function print() { __p += __j.call(arguments, '') }
|
|
17
17
|
`:`;
|
|
18
18
|
`)+f+`return __p
|
|
19
|
-
}`;var g=bl(function(){return Function(s,h+"return "+f).apply(void 0,o)});if(g.source=f,$s(g))throw g;return g}var Qp="Expected a function";function td(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Qp);return lt(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),io(e,t,{leading:n,maxWait:t,trailing:i})}var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var co={exports:{}};function ed(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 pi={exports:{}},di;function Nt(){return di||(di=1,(function(e,t){(function(r,n){e.exports=n()})(st,function(){var r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof st<"u"&&st.crypto&&(s=st.crypto),!s&&typeof ed=="function")try{s=require("crypto")}catch(y){}var o=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.")},u=Object.create||(function(){function y(){}return function(v){var w;return y.prototype=v,w=new y,y.prototype=null,w}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(y){var v=u(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var v=this.words,w=y.words,E=this.sigBytes,m=y.sigBytes;if(this.clamp(),E%4)for(var x=0;x<m;x++){var A=w[x>>>2]>>>24-x%4*8&255;v[E+x>>>2]|=A<<24-(E+x)%4*8}else for(var U=0;U<m;U+=4)v[E+U>>>2]=w[U>>>2];return this.sigBytes+=m,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=c.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],w=0;w<y;w+=4)v.push(o());return new f.init(v,y)}}),p=l.enc={},h=p.Hex={stringify:function(y){for(var v=y.words,w=y.sigBytes,E=[],m=0;m<w;m++){var x=v[m>>>2]>>>24-m%4*8&255;E.push((x>>>4).toString(16)),E.push((x&15).toString(16))}return E.join("")},parse:function(y){for(var v=y.length,w=[],E=0;E<v;E+=2)w[E>>>3]|=parseInt(y.substr(E,2),16)<<24-E%8*4;return new f.init(w,v/2)}},d=p.Latin1={stringify:function(y){for(var v=y.words,w=y.sigBytes,E=[],m=0;m<w;m++){var x=v[m>>>2]>>>24-m%4*8&255;E.push(String.fromCharCode(x))}return E.join("")},parse:function(y){for(var v=y.length,w=[],E=0;E<v;E++)w[E>>>2]|=(y.charCodeAt(E)&255)<<24-E%4*8;return new f.init(w,v)}},g=p.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.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 v,w=this._data,E=w.words,m=w.sigBytes,x=this.blockSize,A=x*4,U=m/A;y?U=n.ceil(U):U=n.max((U|0)-this._minBufferSize,0);var S=U*x,T=n.min(S*4,m);if(S){for(var F=0;F<S;F+=x)this._doProcessBlock(E,F);v=E.splice(0,S),w.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=c.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});a.Hasher=b.extend({cfg:c.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,w){return new y.init(w).finalize(v)}},_createHmacHelper:function(y){return function(v,w){return new _.HMAC.init(y,w).finalize(v)}}});var _=l.algo={};return l})(Math);return r})})(pi)),pi.exports}(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,b){for(var _=0;_<16;_++){var y=b+_,v=g[y];g[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var w=this._hash.words,E=g[b+0],m=g[b+1],x=g[b+2],A=g[b+3],U=g[b+4],S=g[b+5],T=g[b+6],F=g[b+7],B=g[b+8],I=g[b+9],j=g[b+10],N=g[b+11],L=g[b+12],M=g[b+13],H=g[b+14],q=g[b+15],$=w[0],D=w[1],C=w[2],P=w[3];$=f($,D,C,P,E,7,a[0]),P=f(P,$,D,C,m,12,a[1]),C=f(C,P,$,D,x,17,a[2]),D=f(D,C,P,$,A,22,a[3]),$=f($,D,C,P,U,7,a[4]),P=f(P,$,D,C,S,12,a[5]),C=f(C,P,$,D,T,17,a[6]),D=f(D,C,P,$,F,22,a[7]),$=f($,D,C,P,B,7,a[8]),P=f(P,$,D,C,I,12,a[9]),C=f(C,P,$,D,j,17,a[10]),D=f(D,C,P,$,N,22,a[11]),$=f($,D,C,P,L,7,a[12]),P=f(P,$,D,C,M,12,a[13]),C=f(C,P,$,D,H,17,a[14]),D=f(D,C,P,$,q,22,a[15]),$=p($,D,C,P,m,5,a[16]),P=p(P,$,D,C,T,9,a[17]),C=p(C,P,$,D,N,14,a[18]),D=p(D,C,P,$,E,20,a[19]),$=p($,D,C,P,S,5,a[20]),P=p(P,$,D,C,j,9,a[21]),C=p(C,P,$,D,q,14,a[22]),D=p(D,C,P,$,U,20,a[23]),$=p($,D,C,P,I,5,a[24]),P=p(P,$,D,C,H,9,a[25]),C=p(C,P,$,D,A,14,a[26]),D=p(D,C,P,$,B,20,a[27]),$=p($,D,C,P,M,5,a[28]),P=p(P,$,D,C,x,9,a[29]),C=p(C,P,$,D,F,14,a[30]),D=p(D,C,P,$,L,20,a[31]),$=h($,D,C,P,S,4,a[32]),P=h(P,$,D,C,B,11,a[33]),C=h(C,P,$,D,N,16,a[34]),D=h(D,C,P,$,H,23,a[35]),$=h($,D,C,P,m,4,a[36]),P=h(P,$,D,C,U,11,a[37]),C=h(C,P,$,D,F,16,a[38]),D=h(D,C,P,$,j,23,a[39]),$=h($,D,C,P,M,4,a[40]),P=h(P,$,D,C,E,11,a[41]),C=h(C,P,$,D,A,16,a[42]),D=h(D,C,P,$,T,23,a[43]),$=h($,D,C,P,I,4,a[44]),P=h(P,$,D,C,L,11,a[45]),C=h(C,P,$,D,q,16,a[46]),D=h(D,C,P,$,x,23,a[47]),$=d($,D,C,P,E,6,a[48]),P=d(P,$,D,C,F,10,a[49]),C=d(C,P,$,D,H,15,a[50]),D=d(D,C,P,$,S,21,a[51]),$=d($,D,C,P,L,6,a[52]),P=d(P,$,D,C,A,10,a[53]),C=d(C,P,$,D,j,15,a[54]),D=d(D,C,P,$,m,21,a[55]),$=d($,D,C,P,B,6,a[56]),P=d(P,$,D,C,q,10,a[57]),C=d(C,P,$,D,T,15,a[58]),D=d(D,C,P,$,M,21,a[59]),$=d($,D,C,P,U,6,a[60]),P=d(P,$,D,C,N,10,a[61]),C=d(C,P,$,D,x,15,a[62]),D=d(D,C,P,$,I,21,a[63]),w[0]=w[0]+$|0,w[1]=w[1]+D|0,w[2]=w[2]+C|0,w[3]=w[3]+P|0},_doFinalize:function(){var g=this._data,b=g.words,_=this._nDataBytes*8,y=g.sigBytes*8;b[y>>>5]|=128<<24-y%32;var v=n.floor(_/4294967296),w=_;b[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(y+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,g.sigBytes=(b.length+1)*4,this._process();for(var E=this._hash,m=E.words,x=0;x<4;x++){var A=m[x];m[x]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return E},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,b,_,y,v,w,E){var m=g+(b&_|~b&y)+v+E;return(m<<w|m>>>32-w)+b}function p(g,b,_,y,v,w,E){var m=g+(b&y|_&~y)+v+E;return(m<<w|m>>>32-w)+b}function h(g,b,_,y,v,w,E){var m=g+(b^_^y)+v+E;return(m<<w|m>>>32-w)+b}function d(g,b,_,y,v,w,E){var m=g+(_^(b|~y))+v+E;return(m<<w|m>>>32-w)+b}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(co);var lo=co.exports;ue(lo);var fo={exports:{}};(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var p=[],h=0;h<c;h+=3)for(var d=a[h>>>2]>>>24-h%4*8&255,g=a[h+1>>>2]>>>24-(h+1)%4*8&255,b=a[h+2>>>2]>>>24-(h+2)%4*8&255,_=d<<16|g<<8|b,y=0;y<4&&h+y*.75<c;y++)p.push(f.charAt(_>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;p.length%4;)p.push(v);return p.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<c.length;p++)f[c.charCodeAt(p)]=p}var h=c.charAt(64);if(h){var d=l.indexOf(h);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],p=0,h=0;h<a;h++)if(h%4){var d=c[l.charCodeAt(h-1)]<<h%4*2,g=c[l.charCodeAt(h)]>>>6-h%4*2,b=d|g;f[p>>>2]|=b<<24-p%4*8,p++}return s.create(f,p)}})(),r.enc.Base64})})(fo);var ho=fo.exports;ue(ho);var po={exports:{}};(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return r.enc.Utf8})})(po);var rd=po.exports;ue(rd);var go={exports:{}},gi={exports:{}},mi={exports:{}},yi;function nd(){return yi||(yi=1,(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var p=this._hash.words,h=p[0],d=p[1],g=p[2],b=p[3],_=p[4],y=0;y<80;y++){if(y<16)l[y]=c[f+y]|0;else{var v=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=v<<1|v>>>31}var w=(h<<5|h>>>27)+_+l[y];y<20?w+=(d&g|~d&b)+1518500249:y<40?w+=(d^g^b)+1859775393:y<60?w+=(d&g|d&b|g&b)-1894007588:w+=(d^g^b)-899497514,_=b,b=g,g=d<<30|d>>>2,d=h,h=w}p[0]=p[0]+h|0,p[1]=p[1]+d|0,p[2]=p[2]+g|0,p[3]=p[3]+b|0,p[4]=p[4]+_|0},_doFinalize:function(){var c=this._data,f=c.words,p=this._nDataBytes*8,h=c.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),r.SHA1})})(mi)),mi.exports}var vi={exports:{}},bi;function id(){return bi||(bi=1,(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,p=f*4;c.sigBytes>p&&(c=a.finalize(c)),c.clamp();for(var h=this._oKey=c.clone(),d=this._iKey=c.clone(),g=h.words,b=d.words,_=0;_<f;_++)g[_]^=1549556828,b[_]^=909522486;h.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,f=c.finalize(a);c.reset();var p=c.finalize(this._oKey.clone().concat(f));return p}})})()})})(vi)),vi.exports}var wi;function mo(){return wi||(wi=1,(function(e,t){(function(r,n,i){e.exports=n(Nt(),nd(),id())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var p,h=this.cfg,d=h.hasher.create(),g=o.create(),b=g.words,_=h.keySize,y=h.iterations;b.length<_;){p&&d.update(p),p=d.update(c).finalize(f),d.reset();for(var v=1;v<y;v++)p=d.finalize(p),d.reset();g.concat(p)}return g.sigBytes=_*4,g}});n.EvpKDF=function(c,f,p){return a.create(p).compute(c,f)}})(),r.EvpKDF})})(gi)),gi.exports}var _i={exports:{}},Ei;function sd(){return Ei||(Ei=1,(function(e,t){(function(r,n,i){e.exports=n(Nt(),mo())})(st,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,o=s.Base,u=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,f=i.algo,p=f.EvpKDF,h=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(S,T){return this.create(this._ENC_XFORM_MODE,S,T)},createDecryptor:function(S,T){return this.create(this._DEC_XFORM_MODE,S,T)},init:function(S,T,F){this.cfg=this.cfg.extend(F),this._xformMode=S,this._key=T,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(T){return typeof T=="string"?U:m}return function(T){return{encrypt:function(F,B,I){return S(B).encrypt(T,F,B,I)},decrypt:function(F,B,I){return S(B).decrypt(T,F,B,I)}}}})()});s.StreamCipher=h.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(S,T){return this.Encryptor.create(S,T)},createDecryptor:function(S,T){return this.Decryptor.create(S,T)},init:function(S,T){this._cipher=S,this._iv=T}}),b=d.CBC=(function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(F,B){var I=this._cipher,j=I.blockSize;T.call(this,F,B,j),I.encryptBlock(F,B),this._prevBlock=F.slice(B,B+j)}}),S.Decryptor=S.extend({processBlock:function(F,B){var I=this._cipher,j=I.blockSize,N=F.slice(B,B+j);I.decryptBlock(F,B),T.call(this,F,B,j),this._prevBlock=N}});function T(F,B,I){var j,N=this._iv;N?(j=N,this._iv=n):j=this._prevBlock;for(var L=0;L<I;L++)F[B+L]^=j[L]}return S})(),_=i.pad={},y=_.Pkcs7={pad:function(S,T){for(var F=T*4,B=F-S.sigBytes%F,I=B<<24|B<<16|B<<8|B,j=[],N=0;N<B;N+=4)j.push(I);var L=u.create(j,B);S.concat(L)},unpad:function(S){var T=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=T}};s.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:y}),reset:function(){var S;h.reset.call(this);var T=this.cfg,F=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?S=B.createEncryptor:(S=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,F&&F.words):(this._mode=S.call(B,this,F&&F.words),this._mode.__creator=S)},_doProcessBlock:function(S,T){this._mode.processBlock(S,T)},_doFinalize:function(){var S,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),T.unpad(S)),S},blockSize:128/32});var v=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),w=i.format={},E=w.OpenSSL={stringify:function(S){var T,F=S.ciphertext,B=S.salt;return B?T=u.create([1398893684,1701076831]).concat(B).concat(F):T=F,T.toString(c)},parse:function(S){var T,F=c.parse(S),B=F.words;return B[0]==1398893684&&B[1]==1701076831&&(T=u.create(B.slice(2,4)),B.splice(0,4),F.sigBytes-=16),v.create({ciphertext:F,salt:T})}},m=s.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(S,T,F,B){B=this.cfg.extend(B);var I=S.createEncryptor(F,B),j=I.finalize(T),N=I.cfg;return v.create({ciphertext:j,key:F,iv:N.iv,algorithm:S,mode:N.mode,padding:N.padding,blockSize:S.blockSize,formatter:B.format})},decrypt:function(S,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var I=S.createDecryptor(F,B).finalize(T.ciphertext);return I},_parse:function(S,T){return typeof S=="string"?T.parse(S,this):S}}),x=i.kdf={},A=x.OpenSSL={execute:function(S,T,F,B,I){if(B||(B=u.random(64/8)),I)var j=p.create({keySize:T+F,hasher:I}).compute(S,B);else var j=p.create({keySize:T+F}).compute(S,B);var N=u.create(j.words.slice(T),F*4);return j.sigBytes=T*4,v.create({key:j,iv:N,salt:B})}},U=s.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:A}),encrypt:function(S,T,F,B){B=this.cfg.extend(B);var I=B.kdf.execute(F,S.keySize,S.ivSize,B.salt,B.hasher);B.iv=I.iv;var j=m.encrypt.call(this,S,T,I.key,B);return j.mixIn(I),j},decrypt:function(S,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var I=B.kdf.execute(F,S.keySize,S.ivSize,T.salt,B.hasher);B.iv=I.iv;var j=m.decrypt.call(this,S,T,I.key,B);return j}})})()})})(_i)),_i.exports}(function(e,t){(function(r,n,i){e.exports=n(Nt(),ho,lo,mo(),sd())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],p=[],h=[],d=[],g=[],b=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var E=0,m=0,w=0;w<256;w++){var x=m^m<<1^m<<2^m<<3^m<<4;x=x>>>8^x&255^99,u[E]=x,l[x]=E;var A=v[E],U=v[A],S=v[U],T=v[x]*257^x*16843008;a[E]=T<<24|T>>>8,c[E]=T<<16|T>>>16,f[E]=T<<8|T>>>24,p[E]=T;var T=S*16843009^U*65537^A*257^E*16843008;h[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,g[x]=T<<8|T>>>24,b[x]=T,E?(E=A^v[v[v[S^A]]],m^=v[v[m]]):E=m=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,E=w.words,m=w.sigBytes/4,x=this._nRounds=m+6,A=(x+1)*4,U=this._keySchedule=[],S=0;S<A;S++)S<m?U[S]=E[S]:(v=U[S-1],S%m?m>6&&S%m==4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]):(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=_[S/m|0]<<24),U[S]=U[S-m]^v);for(var T=this._invKeySchedule=[],F=0;F<A;F++){var S=A-F;if(F%4)var v=U[S];else var v=U[S-4];F<4||S<=4?T[F]=v:T[F]=h[u[v>>>24]]^d[u[v>>>16&255]]^g[u[v>>>8&255]]^b[u[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,a,c,f,p,u)},decryptBlock:function(v,w){var E=v[w+1];v[w+1]=v[w+3],v[w+3]=E,this._doCryptBlock(v,w,this._invKeySchedule,h,d,g,b,l);var E=v[w+1];v[w+1]=v[w+3],v[w+3]=E},_doCryptBlock:function(v,w,E,m,x,A,U,S){for(var T=this._nRounds,F=v[w]^E[0],B=v[w+1]^E[1],I=v[w+2]^E[2],j=v[w+3]^E[3],N=4,L=1;L<T;L++){var M=m[F>>>24]^x[B>>>16&255]^A[I>>>8&255]^U[j&255]^E[N++],H=m[B>>>24]^x[I>>>16&255]^A[j>>>8&255]^U[F&255]^E[N++],q=m[I>>>24]^x[j>>>16&255]^A[F>>>8&255]^U[B&255]^E[N++],$=m[j>>>24]^x[F>>>16&255]^A[B>>>8&255]^U[I&255]^E[N++];F=M,B=H,I=q,j=$}var M=(S[F>>>24]<<24|S[B>>>16&255]<<16|S[I>>>8&255]<<8|S[j&255])^E[N++],H=(S[B>>>24]<<24|S[I>>>16&255]<<16|S[j>>>8&255]<<8|S[F&255])^E[N++],q=(S[I>>>24]<<24|S[j>>>16&255]<<16|S[F>>>8&255]<<8|S[B&255])^E[N++],$=(S[j>>>24]<<24|S[F>>>16&255]<<16|S[B>>>8&255]<<8|S[I&255])^E[N++];v[w]=M,v[w+1]=H,v[w+2]=q,v[w+3]=$},keySize:256/32});n.AES=s._createHelper(y)})(),r.AES})})(go);var od=go.exports;ue(od);var ad="0123456789abcdefghijklmnopqrstuvwxyz";function Tt(e){return ad.charAt(e)}function ud(e,t){return e&t}function Be(e,t){return e|t}function Si(e,t){return e^t}function xi(e,t){return e&~t}function cd(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function ld(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yo="=";function be(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=ee.charAt(r>>6)+ee.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=ee.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=ee.charAt(r>>2)+ee.charAt((r&3)<<4));(n.length&3)>0;)n+=yo;return n}function Ti(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=yo;++r){var s=ee.indexOf(e.charAt(r));s<0||(n==0?(t+=Tt(s>>2),i=s&3,n=1):n==1?(t+=Tt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=Tt(i),t+=Tt(s>>2),i=s&3,n=3):(t+=Tt(i<<2|s>>4),t+=Tt(s&15),n=0))}return n==1&&(t+=Tt(i<<2)),t}var Zt,fd={decode:function(e){var t;if(Zt===void 0){var r="0123456789ABCDEF",n=` \f
|
|
19
|
+
}`;var g=bl(function(){return Function(s,h+"return "+f).apply(void 0,o)});if(g.source=f,$s(g))throw g;return g}var Qp="Expected a function";function td(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Qp);return lt(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),io(e,t,{leading:n,maxWait:t,trailing:i})}var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var co={exports:{}};function ed(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 pi={exports:{}},di;function Nt(){return di||(di=1,(function(e,t){(function(r,n){e.exports=n()})(st,function(){var r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof st<"u"&&st.crypto&&(s=st.crypto),!s&&typeof ed=="function")try{s=require("crypto")}catch(y){}var o=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.")},u=Object.create||(function(){function y(){}return function(v){var b;return y.prototype=v,b=new y,y.prototype=null,b}})(),l={},a=l.lib={},c=a.Base=(function(){return{extend:function(y){var v=u(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),f=a.WordArray=c.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var v=this.words,b=y.words,E=this.sigBytes,m=y.sigBytes;if(this.clamp(),E%4)for(var x=0;x<m;x++){var A=b[x>>>2]>>>24-x%4*8&255;v[E+x>>>2]|=A<<24-(E+x)%4*8}else for(var U=0;U<m;U+=4)v[E+U>>>2]=b[U>>>2];return this.sigBytes+=m,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=c.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],b=0;b<y;b+=4)v.push(o());return new f.init(v,y)}}),p=l.enc={},h=p.Hex={stringify:function(y){for(var v=y.words,b=y.sigBytes,E=[],m=0;m<b;m++){var x=v[m>>>2]>>>24-m%4*8&255;E.push((x>>>4).toString(16)),E.push((x&15).toString(16))}return E.join("")},parse:function(y){for(var v=y.length,b=[],E=0;E<v;E+=2)b[E>>>3]|=parseInt(y.substr(E,2),16)<<24-E%8*4;return new f.init(b,v/2)}},d=p.Latin1={stringify:function(y){for(var v=y.words,b=y.sigBytes,E=[],m=0;m<b;m++){var x=v[m>>>2]>>>24-m%4*8&255;E.push(String.fromCharCode(x))}return E.join("")},parse:function(y){for(var v=y.length,b=[],E=0;E<v;E++)b[E>>>2]|=(y.charCodeAt(E)&255)<<24-E%4*8;return new f.init(b,v)}},g=p.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},w=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.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 v,b=this._data,E=b.words,m=b.sigBytes,x=this.blockSize,A=x*4,U=m/A;y?U=n.ceil(U):U=n.max((U|0)-this._minBufferSize,0);var S=U*x,T=n.min(S*4,m);if(S){for(var F=0;F<S;F+=x)this._doProcessBlock(E,F);v=E.splice(0,S),b.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=c.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});a.Hasher=w.extend({cfg:c.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){w.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,b){return new y.init(b).finalize(v)}},_createHmacHelper:function(y){return function(v,b){return new _.HMAC.init(y,b).finalize(v)}}});var _=l.algo={};return l})(Math);return r})})(pi)),pi.exports}(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return(function(n){var i=r,s=i.lib,o=s.WordArray,u=s.Hasher,l=i.algo,a=[];(function(){for(var g=0;g<64;g++)a[g]=n.abs(n.sin(g+1))*4294967296|0})();var c=l.MD5=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,w){for(var _=0;_<16;_++){var y=w+_,v=g[y];g[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var b=this._hash.words,E=g[w+0],m=g[w+1],x=g[w+2],A=g[w+3],U=g[w+4],S=g[w+5],T=g[w+6],F=g[w+7],B=g[w+8],I=g[w+9],j=g[w+10],N=g[w+11],L=g[w+12],M=g[w+13],H=g[w+14],q=g[w+15],$=b[0],D=b[1],C=b[2],P=b[3];$=f($,D,C,P,E,7,a[0]),P=f(P,$,D,C,m,12,a[1]),C=f(C,P,$,D,x,17,a[2]),D=f(D,C,P,$,A,22,a[3]),$=f($,D,C,P,U,7,a[4]),P=f(P,$,D,C,S,12,a[5]),C=f(C,P,$,D,T,17,a[6]),D=f(D,C,P,$,F,22,a[7]),$=f($,D,C,P,B,7,a[8]),P=f(P,$,D,C,I,12,a[9]),C=f(C,P,$,D,j,17,a[10]),D=f(D,C,P,$,N,22,a[11]),$=f($,D,C,P,L,7,a[12]),P=f(P,$,D,C,M,12,a[13]),C=f(C,P,$,D,H,17,a[14]),D=f(D,C,P,$,q,22,a[15]),$=p($,D,C,P,m,5,a[16]),P=p(P,$,D,C,T,9,a[17]),C=p(C,P,$,D,N,14,a[18]),D=p(D,C,P,$,E,20,a[19]),$=p($,D,C,P,S,5,a[20]),P=p(P,$,D,C,j,9,a[21]),C=p(C,P,$,D,q,14,a[22]),D=p(D,C,P,$,U,20,a[23]),$=p($,D,C,P,I,5,a[24]),P=p(P,$,D,C,H,9,a[25]),C=p(C,P,$,D,A,14,a[26]),D=p(D,C,P,$,B,20,a[27]),$=p($,D,C,P,M,5,a[28]),P=p(P,$,D,C,x,9,a[29]),C=p(C,P,$,D,F,14,a[30]),D=p(D,C,P,$,L,20,a[31]),$=h($,D,C,P,S,4,a[32]),P=h(P,$,D,C,B,11,a[33]),C=h(C,P,$,D,N,16,a[34]),D=h(D,C,P,$,H,23,a[35]),$=h($,D,C,P,m,4,a[36]),P=h(P,$,D,C,U,11,a[37]),C=h(C,P,$,D,F,16,a[38]),D=h(D,C,P,$,j,23,a[39]),$=h($,D,C,P,M,4,a[40]),P=h(P,$,D,C,E,11,a[41]),C=h(C,P,$,D,A,16,a[42]),D=h(D,C,P,$,T,23,a[43]),$=h($,D,C,P,I,4,a[44]),P=h(P,$,D,C,L,11,a[45]),C=h(C,P,$,D,q,16,a[46]),D=h(D,C,P,$,x,23,a[47]),$=d($,D,C,P,E,6,a[48]),P=d(P,$,D,C,F,10,a[49]),C=d(C,P,$,D,H,15,a[50]),D=d(D,C,P,$,S,21,a[51]),$=d($,D,C,P,L,6,a[52]),P=d(P,$,D,C,A,10,a[53]),C=d(C,P,$,D,j,15,a[54]),D=d(D,C,P,$,m,21,a[55]),$=d($,D,C,P,B,6,a[56]),P=d(P,$,D,C,q,10,a[57]),C=d(C,P,$,D,T,15,a[58]),D=d(D,C,P,$,M,21,a[59]),$=d($,D,C,P,U,6,a[60]),P=d(P,$,D,C,N,10,a[61]),C=d(C,P,$,D,x,15,a[62]),D=d(D,C,P,$,I,21,a[63]),b[0]=b[0]+$|0,b[1]=b[1]+D|0,b[2]=b[2]+C|0,b[3]=b[3]+P|0},_doFinalize:function(){var g=this._data,w=g.words,_=this._nDataBytes*8,y=g.sigBytes*8;w[y>>>5]|=128<<24-y%32;var v=n.floor(_/4294967296),b=_;w[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w[(y+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g.sigBytes=(w.length+1)*4,this._process();for(var E=this._hash,m=E.words,x=0;x<4;x++){var A=m[x];m[x]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return E},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,w,_,y,v,b,E){var m=g+(w&_|~w&y)+v+E;return(m<<b|m>>>32-b)+w}function p(g,w,_,y,v,b,E){var m=g+(w&y|_&~y)+v+E;return(m<<b|m>>>32-b)+w}function h(g,w,_,y,v,b,E){var m=g+(w^_^y)+v+E;return(m<<b|m>>>32-b)+w}function d(g,w,_,y,v,b,E){var m=g+(_^(w|~y))+v+E;return(m<<b|m>>>32-b)+w}i.MD5=u._createHelper(c),i.HmacMD5=u._createHmacHelper(c)})(Math),r.MD5})})(co);var lo=co.exports;ue(lo);var fo={exports:{}};(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var a=l.words,c=l.sigBytes,f=this._map;l.clamp();for(var p=[],h=0;h<c;h+=3)for(var d=a[h>>>2]>>>24-h%4*8&255,g=a[h+1>>>2]>>>24-(h+1)%4*8&255,w=a[h+2>>>2]>>>24-(h+2)%4*8&255,_=d<<16|g<<8|w,y=0;y<4&&h+y*.75<c;y++)p.push(f.charAt(_>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;p.length%4;)p.push(v);return p.join("")},parse:function(l){var a=l.length,c=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<c.length;p++)f[c.charCodeAt(p)]=p}var h=c.charAt(64);if(h){var d=l.indexOf(h);d!==-1&&(a=d)}return u(l,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(l,a,c){for(var f=[],p=0,h=0;h<a;h++)if(h%4){var d=c[l.charCodeAt(h-1)]<<h%4*2,g=c[l.charCodeAt(h)]>>>6-h%4*2,w=d|g;f[p>>>2]|=w<<24-p%4*8,p++}return s.create(f,p)}})(),r.enc.Base64})})(fo);var ho=fo.exports;ue(ho);var po={exports:{}};(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return r.enc.Utf8})})(po);var rd=po.exports;ue(rd);var go={exports:{}},gi={exports:{}},mi={exports:{}},yi;function nd(){return yi||(yi=1,(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var p=this._hash.words,h=p[0],d=p[1],g=p[2],w=p[3],_=p[4],y=0;y<80;y++){if(y<16)l[y]=c[f+y]|0;else{var v=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=v<<1|v>>>31}var b=(h<<5|h>>>27)+_+l[y];y<20?b+=(d&g|~d&w)+1518500249:y<40?b+=(d^g^w)+1859775393:y<60?b+=(d&g|d&w|g&w)-1894007588:b+=(d^g^w)-899497514,_=w,w=g,g=d<<30|d>>>2,d=h,h=b}p[0]=p[0]+h|0,p[1]=p[1]+d|0,p[2]=p[2]+g|0,p[3]=p[3]+w|0,p[4]=p[4]+_|0},_doFinalize:function(){var c=this._data,f=c.words,p=this._nDataBytes*8,h=c.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,c.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a)})(),r.SHA1})})(mi)),mi.exports}var vi={exports:{}},bi;function id(){return bi||(bi=1,(function(e,t){(function(r,n){e.exports=n(Nt())})(st,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,u=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(a,c){a=this._hasher=new a.init,typeof c=="string"&&(c=u.parse(c));var f=a.blockSize,p=f*4;c.sigBytes>p&&(c=a.finalize(c)),c.clamp();for(var h=this._oKey=c.clone(),d=this._iKey=c.clone(),g=h.words,w=d.words,_=0;_<f;_++)g[_]^=1549556828,w[_]^=909522486;h.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var c=this._hasher,f=c.finalize(a);c.reset();var p=c.finalize(this._oKey.clone().concat(f));return p}})})()})})(vi)),vi.exports}var wi;function mo(){return wi||(wi=1,(function(e,t){(function(r,n,i){e.exports=n(Nt(),nd(),id())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,u=n.algo,l=u.MD5,a=u.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,f){for(var p,h=this.cfg,d=h.hasher.create(),g=o.create(),w=g.words,_=h.keySize,y=h.iterations;w.length<_;){p&&d.update(p),p=d.update(c).finalize(f),d.reset();for(var v=1;v<y;v++)p=d.finalize(p),d.reset();g.concat(p)}return g.sigBytes=_*4,g}});n.EvpKDF=function(c,f,p){return a.create(p).compute(c,f)}})(),r.EvpKDF})})(gi)),gi.exports}var _i={exports:{}},Ei;function sd(){return Ei||(Ei=1,(function(e,t){(function(r,n,i){e.exports=n(Nt(),mo())})(st,function(r){r.lib.Cipher||(function(n){var i=r,s=i.lib,o=s.Base,u=s.WordArray,l=s.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var c=a.Base64,f=i.algo,p=f.EvpKDF,h=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(S,T){return this.create(this._ENC_XFORM_MODE,S,T)},createDecryptor:function(S,T){return this.create(this._DEC_XFORM_MODE,S,T)},init:function(S,T,F){this.cfg=this.cfg.extend(F),this._xformMode=S,this._key=T,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function S(T){return typeof T=="string"?U:m}return function(T){return{encrypt:function(F,B,I){return S(B).encrypt(T,F,B,I)},decrypt:function(F,B,I){return S(B).decrypt(T,F,B,I)}}}})()});s.StreamCipher=h.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var d=i.mode={},g=s.BlockCipherMode=o.extend({createEncryptor:function(S,T){return this.Encryptor.create(S,T)},createDecryptor:function(S,T){return this.Decryptor.create(S,T)},init:function(S,T){this._cipher=S,this._iv=T}}),w=d.CBC=(function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(F,B){var I=this._cipher,j=I.blockSize;T.call(this,F,B,j),I.encryptBlock(F,B),this._prevBlock=F.slice(B,B+j)}}),S.Decryptor=S.extend({processBlock:function(F,B){var I=this._cipher,j=I.blockSize,N=F.slice(B,B+j);I.decryptBlock(F,B),T.call(this,F,B,j),this._prevBlock=N}});function T(F,B,I){var j,N=this._iv;N?(j=N,this._iv=n):j=this._prevBlock;for(var L=0;L<I;L++)F[B+L]^=j[L]}return S})(),_=i.pad={},y=_.Pkcs7={pad:function(S,T){for(var F=T*4,B=F-S.sigBytes%F,I=B<<24|B<<16|B<<8|B,j=[],N=0;N<B;N+=4)j.push(I);var L=u.create(j,B);S.concat(L)},unpad:function(S){var T=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=T}};s.BlockCipher=h.extend({cfg:h.cfg.extend({mode:w,padding:y}),reset:function(){var S;h.reset.call(this);var T=this.cfg,F=T.iv,B=T.mode;this._xformMode==this._ENC_XFORM_MODE?S=B.createEncryptor:(S=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,F&&F.words):(this._mode=S.call(B,this,F&&F.words),this._mode.__creator=S)},_doProcessBlock:function(S,T){this._mode.processBlock(S,T)},_doFinalize:function(){var S,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),T.unpad(S)),S},blockSize:128/32});var v=s.CipherParams=o.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),b=i.format={},E=b.OpenSSL={stringify:function(S){var T,F=S.ciphertext,B=S.salt;return B?T=u.create([1398893684,1701076831]).concat(B).concat(F):T=F,T.toString(c)},parse:function(S){var T,F=c.parse(S),B=F.words;return B[0]==1398893684&&B[1]==1701076831&&(T=u.create(B.slice(2,4)),B.splice(0,4),F.sigBytes-=16),v.create({ciphertext:F,salt:T})}},m=s.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(S,T,F,B){B=this.cfg.extend(B);var I=S.createEncryptor(F,B),j=I.finalize(T),N=I.cfg;return v.create({ciphertext:j,key:F,iv:N.iv,algorithm:S,mode:N.mode,padding:N.padding,blockSize:S.blockSize,formatter:B.format})},decrypt:function(S,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var I=S.createDecryptor(F,B).finalize(T.ciphertext);return I},_parse:function(S,T){return typeof S=="string"?T.parse(S,this):S}}),x=i.kdf={},A=x.OpenSSL={execute:function(S,T,F,B,I){if(B||(B=u.random(64/8)),I)var j=p.create({keySize:T+F,hasher:I}).compute(S,B);else var j=p.create({keySize:T+F}).compute(S,B);var N=u.create(j.words.slice(T),F*4);return j.sigBytes=T*4,v.create({key:j,iv:N,salt:B})}},U=s.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:A}),encrypt:function(S,T,F,B){B=this.cfg.extend(B);var I=B.kdf.execute(F,S.keySize,S.ivSize,B.salt,B.hasher);B.iv=I.iv;var j=m.encrypt.call(this,S,T,I.key,B);return j.mixIn(I),j},decrypt:function(S,T,F,B){B=this.cfg.extend(B),T=this._parse(T,B.format);var I=B.kdf.execute(F,S.keySize,S.ivSize,T.salt,B.hasher);B.iv=I.iv;var j=m.decrypt.call(this,S,T,I.key,B);return j}})})()})})(_i)),_i.exports}(function(e,t){(function(r,n,i){e.exports=n(Nt(),ho,lo,mo(),sd())})(st,function(r){return(function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,u=[],l=[],a=[],c=[],f=[],p=[],h=[],d=[],g=[],w=[];(function(){for(var v=[],b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(var E=0,m=0,b=0;b<256;b++){var x=m^m<<1^m<<2^m<<3^m<<4;x=x>>>8^x&255^99,u[E]=x,l[x]=E;var A=v[E],U=v[A],S=v[U],T=v[x]*257^x*16843008;a[E]=T<<24|T>>>8,c[E]=T<<16|T>>>16,f[E]=T<<8|T>>>24,p[E]=T;var T=S*16843009^U*65537^A*257^E*16843008;h[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,g[x]=T<<8|T>>>24,w[x]=T,E?(E=A^v[v[v[S^A]]],m^=v[v[m]]):E=m=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,E=b.words,m=b.sigBytes/4,x=this._nRounds=m+6,A=(x+1)*4,U=this._keySchedule=[],S=0;S<A;S++)S<m?U[S]=E[S]:(v=U[S-1],S%m?m>6&&S%m==4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]):(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=_[S/m|0]<<24),U[S]=U[S-m]^v);for(var T=this._invKeySchedule=[],F=0;F<A;F++){var S=A-F;if(F%4)var v=U[S];else var v=U[S-4];F<4||S<=4?T[F]=v:T[F]=h[u[v>>>24]]^d[u[v>>>16&255]]^g[u[v>>>8&255]]^w[u[v&255]]}}},encryptBlock:function(v,b){this._doCryptBlock(v,b,this._keySchedule,a,c,f,p,u)},decryptBlock:function(v,b){var E=v[b+1];v[b+1]=v[b+3],v[b+3]=E,this._doCryptBlock(v,b,this._invKeySchedule,h,d,g,w,l);var E=v[b+1];v[b+1]=v[b+3],v[b+3]=E},_doCryptBlock:function(v,b,E,m,x,A,U,S){for(var T=this._nRounds,F=v[b]^E[0],B=v[b+1]^E[1],I=v[b+2]^E[2],j=v[b+3]^E[3],N=4,L=1;L<T;L++){var M=m[F>>>24]^x[B>>>16&255]^A[I>>>8&255]^U[j&255]^E[N++],H=m[B>>>24]^x[I>>>16&255]^A[j>>>8&255]^U[F&255]^E[N++],q=m[I>>>24]^x[j>>>16&255]^A[F>>>8&255]^U[B&255]^E[N++],$=m[j>>>24]^x[F>>>16&255]^A[B>>>8&255]^U[I&255]^E[N++];F=M,B=H,I=q,j=$}var M=(S[F>>>24]<<24|S[B>>>16&255]<<16|S[I>>>8&255]<<8|S[j&255])^E[N++],H=(S[B>>>24]<<24|S[I>>>16&255]<<16|S[j>>>8&255]<<8|S[F&255])^E[N++],q=(S[I>>>24]<<24|S[j>>>16&255]<<16|S[F>>>8&255]<<8|S[B&255])^E[N++],$=(S[j>>>24]<<24|S[F>>>16&255]<<16|S[B>>>8&255]<<8|S[I&255])^E[N++];v[b]=M,v[b+1]=H,v[b+2]=q,v[b+3]=$},keySize:256/32});n.AES=s._createHelper(y)})(),r.AES})})(go);var od=go.exports;ue(od);var ad="0123456789abcdefghijklmnopqrstuvwxyz";function Tt(e){return ad.charAt(e)}function ud(e,t){return e&t}function Be(e,t){return e|t}function Si(e,t){return e^t}function xi(e,t){return e&~t}function cd(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function ld(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yo="=";function be(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=ee.charAt(r>>6)+ee.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=ee.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=ee.charAt(r>>2)+ee.charAt((r&3)<<4));(n.length&3)>0;)n+=yo;return n}function Ti(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=yo;++r){var s=ee.indexOf(e.charAt(r));s<0||(n==0?(t+=Tt(s>>2),i=s&3,n=1):n==1?(t+=Tt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=Tt(i),t+=Tt(s>>2),i=s&3,n=3):(t+=Tt(i<<2|s>>4),t+=Tt(s&15),n=0))}return n==1&&(t+=Tt(i<<2)),t}var Zt,fd={decode:function(e){var t;if(Zt===void 0){var r="0123456789ABCDEF",n=` \f
|
|
20
20
|
\r \u2028\u2029`;for(Zt={},t=0;t<16;++t)Zt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Zt[r.charAt(t)]=t;for(t=0;t<n.length;++t)Zt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Zt[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);s|=u,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Ft,Kr={decode:function(e){var t;if(Ft===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
21
21
|
\r \u2028\u2029`;for(Ft=Object.create(null),t=0;t<64;++t)Ft[r.charAt(t)]=t;for(Ft["-"]=62,Ft._=63,t=0;t<n.length;++t)Ft[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Ft[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);s|=u,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Kr.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 Kr.decode(e)}},Xt=1e13,ye=(function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<Xt?r=0:(r=0|o/Xt,o-=r*Xt),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=Xt,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+=(Xt+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*Xt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e})(),vo="…",hd=/^(\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)?)?$/,pd=/^(\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 ne(e,t){return e.length>t&&(e=e.substring(0,t)+vo),e}var wr=(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
22
|
`;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?hd:pd).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,u="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(u=n,o<<=3;!((+u^s)&128);)u=+u<<1,--o;u="("+o+` bit)
|
|
23
23
|
`}i&&(n=n-256);for(var l=new ye(n),a=t+1;a<r;++a)l.mulAdd(256,this.get(a));return u+l.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
|
|
24
24
|
`,u="",l=t+1;l<r;++l){for(var a=this.get(l),c=l==r-1?i:0,f=7;f>=c;--f)u+=a>>f&1?"1":"0";if(u.length>n)return o+ne(u,n)}return o+u},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return ne(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
|
|
25
25
|
`;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=vo),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new ye,o=0,u=t;u<r;++u){var l=this.get(u);if(s.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(s=s.simplify(),s instanceof ye)s.sub(80),i="2."+s.toString();else{var a=s<80?s<40?0:1:2;i=a+"."+(s-a*40)}else i+="."+s.toString();if(i.length>n)return ne(i,n);s=new ye,o=0}}return o>0&&(i+=".incomplete"),i},e})(),dd=(function(){function e(t,r,n,i,s){if(!(i instanceof Ri))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 ne(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ne(this.stream.parseStringISO(r,r+n),t);case 30:return ne(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 wr?r=t:r=new wr(t,0);var n=new wr(r),i=new Ri(r),s=e.decodeLength(r),o=r.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var p=o+s;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=a();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,u,s,i,l)},e})(),Ri=(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 ye;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})(),Ot,gd=0xdeadbeefcafe,Ai=(gd&16777215)==15715070,it=[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],md=(1<<26)/it[it.length-1],K=(function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%r;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=Tt(i));u>=0;)l<r?(i=(this[u]&(1<<l)-1)<<r-l,i|=this[--u]>>(l+=this.DB-r)):(i=this[u]>>(l-=r)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=Tt(i));return s?o:"0"},e.prototype.negate=function(){var t=J();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)+Ce(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=J();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 $i(r):n=new Oi(r),this.exp(t,n)},e.prototype.clone=function(){var t=J();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=J();return this.bitwiseTo(t,ud,r),r},e.prototype.or=function(t){var r=J();return this.bitwiseTo(t,Be,r),r},e.prototype.xor=function(t){var r=J();return this.bitwiseTo(t,Si,r),r},e.prototype.andNot=function(t){var r=J();return this.bitwiseTo(t,xi,r),r},e.prototype.not=function(){for(var t=J(),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=J();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=J();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+cd(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+=ld(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,Be)},e.prototype.clearBit=function(t){return this.changeBit(t,xi)},e.prototype.flipBit=function(t){return this.changeBit(t,Si)},e.prototype.add=function(t){var r=J();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=J();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=J();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=J();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=J();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=J(),n=J();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=jt(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new $i(r):r.isEven()?o=new vd(r):o=new Oi(r);var u=[],l=3,a=i-1,c=(1<<i)-1;if(u[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(u[1],f);l<=c;)u[l]=J(),o.mulTo(f,u[l-2],u[l]),l+=2}var p=t.t-1,h,d=!0,g=J(),b;for(n=Ce(t[p])-1;p>=0;){for(n>=a?h=t[p]>>n-a&c:(h=(t[p]&(1<<n+1)-1)<<a-n,p>0&&(h|=t[p-1]>>this.DB+n-a)),l=i;!(h&1);)h>>=1,--l;if((n-=l)<0&&(n+=this.DB,--p),d)u[h].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(b=s,s=g,g=b),o.mulTo(g,u[h],s)}for(;p>=0&&!(t[p]&1<<n);)o.sqrTo(s,g),b=s,s=g,g=b,--n<0&&(n=this.DB-1,--p)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=jt(1),o=jt(0),u=jt(0),l=jt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(t,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),r&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new yd)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=it[it.length-1]){for(r=0;r<it.length;++r)if(n[0]==it[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<it.length;){for(var i=it[r],s=r+1;s<it.length&&i<md;)i*=it[s++];for(i=n.modInt(i);r<s;)if(i%it[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var u=n==8?+t[i]&255:Di(t,i);if(u<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=u,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&o)<<s,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=t.s,a=this.DB-Ce(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var p=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,g=1<<this.F2,b=n.t,_=b-c,y=r!=null?r:J();for(o.dlShiftTo(_,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--_>=0;){var v=n[--b]==f?this.DM:Math.floor(n[b]*h+(n[b-1]+g)*d);if((n[b]+=o.am(0,v,n,_,0,c))<v)for(o.dlShiftTo(_,y),n.subTo(y,n);n[b]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(c,r),u!=l&&e.ZERO.subTo(r,r)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=J(),i=J(),s=r.convert(this),o=Ce(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var u=n;n=i,i=u}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=jt(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(t).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(t)+u},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,u=0,l=0;l<t.length;++l){var a=Di(t,l);if(a<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=r*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(u,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),Be,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>it.length&&(t=it.length);for(var s=J(),o=0;o<t;++o){s.fromInt(it[Math.floor(Math.random()*it.length)]);var u=s.modPow(i,this);if(u.compareTo(e.ONE)!=0&&u.compareTo(r)!=0){for(var l=1;l++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(e.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=J();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){r(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Be,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=t&7;u.length=(t>>3)+1,r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},e})(),yd=(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})(),$i=(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})(),Oi=(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=J();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(K.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=J();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})(),vd=(function(){function e(t){this.m=t,this.r2=J(),this.q3=J(),K.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=J();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 J(){return new K(null)}function Z(e,t){return new K(e,t)}var ji=typeof navigator<"u";ji&&Ai&&navigator.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,u=t>>15;--s>=0;){var l=this[e]&32767,a=this[e++]>>15,c=u*l+a*o;l=o*l+((c&32767)<<15)+r[n]+(i&1073741823),i=(l>>>30)+(c>>>15)+u*a+(i>>>30),r[n++]=l&1073741823}return i},Ot=30):ji&&Ai&&navigator.appName!="Netscape"?(K.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Ot=26):(K.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,u=t>>14;--s>=0;){var l=this[e]&16383,a=this[e++]>>14,c=u*l+a*o;l=o*l+((c&16383)<<14)+r[n]+i,i=(l>>28)+(c>>14)+u*a,r[n++]=l&268435455}return i},Ot=28),K.prototype.DB=Ot,K.prototype.DM=(1<<Ot)-1,K.prototype.DV=1<<Ot;var _r=52;K.prototype.FV=Math.pow(2,_r),K.prototype.F1=_r-Ot,K.prototype.F2=2*Ot-_r;var ir=[],se,ht;for(se=48,ht=0;ht<=9;++ht)ir[se++]=ht;for(se=97,ht=10;ht<36;++ht)ir[se++]=ht;for(se=65,ht=10;ht<36;++ht)ir[se++]=ht;function Di(e,t){var r=ir[e.charCodeAt(t)];return r!=null?r:-1}function jt(e){var t=J();return t.fromInt(e),t}function Ce(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}K.ZERO=jt(0),K.ONE=jt(1);var bd=(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 wd(){return new bd}var bo=256,Ne,Bt=null,gt;if(Bt==null){Bt=[],gt=0;var Pe=void 0;if(typeof window<"u"&&self.crypto&&self.crypto.getRandomValues){var Er=new Uint32Array(256);for(self.crypto.getRandomValues(Er),Pe=0;Pe<Er.length;++Pe)Bt[gt++]=Er[Pe]&255}var Ie=0,ke=function(e){if(Ie=Ie||0,Ie>=256||gt>=bo){self.removeEventListener?self.removeEventListener("mousemove",ke,!1):self.detachEvent&&self.detachEvent("onmousemove",ke);return}try{var t=e.x+e.y;Bt[gt++]=t&255,Ie+=1}catch(r){}};typeof window<"u"&&(self.addEventListener?self.addEventListener("mousemove",ke,!1):self.attachEvent&&self.attachEvent("onmousemove",ke))}function _d(){if(Ne==null){for(Ne=wd();gt<bo;){var e=Math.floor(65536*Math.random());Bt[gt++]=e&255}for(Ne.init(Bt),gt=0;gt<Bt.length;++gt)Bt[gt]=0;gt=0}return Ne.next()}var Ye=(function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=_d()},e})();function Wr(e){return Sd(Dd(Ed(e),e.length*8))}function Bi(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 Ed(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 Sd(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 wt(e,t){return e>>>t|e<<32-t}function wo(e,t){return e>>>t}function xd(e,t,r){return e&t^~e&r}function Td(e,t,r){return e&t^e&r^t&r}function Rd(e){return wt(e,2)^wt(e,13)^wt(e,22)}function Ad(e){return wt(e,6)^wt(e,11)^wt(e,25)}function $d(e){return wt(e,7)^wt(e,18)^wo(e,3)}function Od(e){return wt(e,17)^wt(e,19)^wo(e,10)}var jd=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 Dd(e,t){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,p,h,d,g;for(e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t,p=0;p<e.length;p+=16){for(i=r[0],s=r[1],o=r[2],u=r[3],l=r[4],a=r[5],c=r[6],f=r[7],h=0;h<64;h++)h<16?n[h]=e[h+p]:n[h]=rt(rt(rt(Od(n[h-2]),n[h-7]),$d(n[h-15])),n[h-16]),d=rt(rt(rt(rt(f,Ad(l)),xd(l,a,c)),jd[h]),n[h]),g=rt(Rd(i),Td(i,s,o)),f=c,c=a,a=l,l=rt(u,d),u=o,o=s,s=i,i=rt(d,g);r[0]=rt(i,r[0]),r[1]=rt(s,r[1]),r[2]=rt(o,r[2]),r[3]=rt(u,r[3]),r[4]=rt(l,r[4]),r[5]=rt(a,r[5]),r[6]=rt(c,r[6]),r[7]=rt(f,r[7])}return r}function rt(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function Bd(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 Z(s,16)}function Cd(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 Ye,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new K(r)}function Ci(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 Nd=32;function Pd(e,t){var r=Nd,n=Wr;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 o=n("")+i+""+e,u=new Array(r);new Ye().nextBytes(u);var l=Ci(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=Ci(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new K(f.concat(a))}var Id=(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=Z(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t,r){typeof r>"u"&&(r=Cd);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 o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,u,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Ye,i=t>>1;this.e=parseInt(r,16);for(var s=new K(r,16);;){for(;this.p=new K(t-i,1,n),!(this.p.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new K(i,1,n),!(this.q.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(K.ONE),l=this.q.subtract(K.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(K.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=Z(t,16),n=this.doPrivate(r);return n==null?null:kd(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Ye,s=t>>1;this.e=parseInt(r,16);var o=new K(r,16),u=this,l=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var p=u.p;u.p=u.q,u.q=p}var h=u.p.subtract(K.ONE),d=u.q.subtract(K.ONE),g=h.multiply(d);g.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(h),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(K.ONE).gcda(o,function(p){p.compareTo(K.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(t-s,1,i,function(){u.p.subtract(K.ONE).gcda(o,function(p){p.compareTo(K.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var i=Fd(n),s=i+r(t).toString(),o=this.n.bitLength()/4,u=Bd(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},e.prototype.verify=function(t,r,n){var i=Z(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Md(o);return u==n(t).toString()},e})();function kd(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 Le={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Fd(e){return Le[e]||""}function Md(e){for(var t in Le)if(Le.hasOwnProperty(t)){var r=Le[t],n=r.length;if(e.substring(0,n)==r)return e.substring(n)}return e}function Q(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)}/**
|
|
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 wr?r=t:r=new wr(t,0);var n=new wr(r),i=new Ri(r),s=e.decodeLength(r),o=r.pos,u=o-n.pos,l=null,a=function(){var f=[];if(s!==null){for(var p=o+s;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)l=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=a();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,u,s,i,l)},e})(),Ri=(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 ye;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})(),Ot,gd=0xdeadbeefcafe,Ai=(gd&16777215)==15715070,it=[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],md=(1<<26)/it[it.length-1],K=(function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",u=this.t,l=this.DB-u*this.DB%r;if(u-- >0)for(l<this.DB&&(i=this[u]>>l)>0&&(s=!0,o=Tt(i));u>=0;)l<r?(i=(this[u]&(1<<l)-1)<<r-l,i|=this[--u]>>(l+=this.DB-r)):(i=this[u]>>(l-=r)&n,l<=0&&(l+=this.DB,--u)),i>0&&(s=!0),s&&(o+=Tt(i));return s?o:"0"},e.prototype.negate=function(){var t=J();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)+Ce(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=J();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 $i(r):n=new Oi(r),this.exp(t,n)},e.prototype.clone=function(){var t=J();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=J();return this.bitwiseTo(t,ud,r),r},e.prototype.or=function(t){var r=J();return this.bitwiseTo(t,Be,r),r},e.prototype.xor=function(t){var r=J();return this.bitwiseTo(t,Si,r),r},e.prototype.andNot=function(t){var r=J();return this.bitwiseTo(t,xi,r),r},e.prototype.not=function(){for(var t=J(),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=J();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=J();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+cd(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+=ld(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,Be)},e.prototype.clearBit=function(t){return this.changeBit(t,xi)},e.prototype.flipBit=function(t){return this.changeBit(t,Si)},e.prototype.add=function(t){var r=J();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=J();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=J();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=J();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=J();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=J(),n=J();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=jt(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new $i(r):r.isEven()?o=new vd(r):o=new Oi(r);var u=[],l=3,a=i-1,c=(1<<i)-1;if(u[1]=o.convert(this),i>1){var f=J();for(o.sqrTo(u[1],f);l<=c;)u[l]=J(),o.mulTo(f,u[l-2],u[l]),l+=2}var p=t.t-1,h,d=!0,g=J(),w;for(n=Ce(t[p])-1;p>=0;){for(n>=a?h=t[p]>>n-a&c:(h=(t[p]&(1<<n+1)-1)<<a-n,p>0&&(h|=t[p-1]>>this.DB+n-a)),l=i;!(h&1);)h>>=1,--l;if((n-=l)<0&&(n+=this.DB,--p),d)u[h].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,g),o.sqrTo(g,s),l-=2;l>0?o.sqrTo(s,g):(w=s,s=g,g=w),o.mulTo(g,u[h],s)}for(;p>=0&&!(t[p]&1<<n);)o.sqrTo(s,g),w=s,s=g,g=w,--n<0&&(n=this.DB-1,--p)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=jt(1),o=jt(0),u=jt(0),l=jt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!l.isEven())&&(u.addTo(this,u),l.subTo(t,l)),u.rShiftTo(1,u)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(u,s),o.subTo(l,o)):(i.subTo(n,i),r&&u.subTo(s,u),l.subTo(o,l))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new yd)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=it[it.length-1]){for(r=0;r<it.length;++r)if(n[0]==it[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<it.length;){for(var i=it[r],s=r+1;s<it.length&&i<md;)i*=it[s++];for(i=n.modInt(i);r<s;)if(i%it[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var u=n==8?+t[i]&255:Di(t,i);if(u<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=u:o+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),u=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|u,u=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=u,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&o)<<s,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=J());var o=J(),u=this.s,l=t.s,a=this.DB-Ce(i[i.t-1]);a>0?(i.lShiftTo(a,o),s.lShiftTo(a,n)):(i.copyTo(o),s.copyTo(n));var c=o.t,f=o[c-1];if(f!=0){var p=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,g=1<<this.F2,w=n.t,_=w-c,y=r!=null?r:J();for(o.dlShiftTo(_,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--_>=0;){var v=n[--w]==f?this.DM:Math.floor(n[w]*h+(n[w-1]+g)*d);if((n[w]+=o.am(0,v,n,_,0,c))<v)for(o.dlShiftTo(_,y),n.subTo(y,n);n[w]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(c,r),u!=l&&e.ZERO.subTo(r,r)),n.t=c,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=J(),i=J(),s=r.convert(this),o=Ce(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var u=n;n=i,i=u}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=jt(n),s=J(),o=J(),u="";for(this.divRemTo(i,s,o);s.signum()>0;)u=(n+o.intValue()).toString(t).substring(1)+u,s.divRemTo(i,s,o);return o.intValue().toString(t)+u},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,u=0,l=0;l<t.length;++l){var a=Di(t,l);if(a<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}u=r*u+a,++o>=n&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(u,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),Be,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>it.length&&(t=it.length);for(var s=J(),o=0;o<t;++o){s.fromInt(it[Math.floor(Math.random()*it.length)]);var u=s.modPow(i,this);if(u.compareTo(e.ONE)!=0&&u.compareTo(r)!=0){for(var l=1;l++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(e.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=J();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){r(n);return}o<u&&(u=o),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Be,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var u=[],l=t&7;u.length=(t>>3)+1,r.nextBytes(u),l>0?u[0]&=(1<<l)-1:u[0]=0,this.fromString(u,256)}},e})(),yd=(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})(),$i=(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})(),Oi=(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=J();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(K.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=J();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})(),vd=(function(){function e(t){this.m=t,this.r2=J(),this.q3=J(),K.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=J();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 J(){return new K(null)}function Z(e,t){return new K(e,t)}var ji=typeof navigator<"u";ji&&Ai&&navigator.appName=="Microsoft Internet Explorer"?(K.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,u=t>>15;--s>=0;){var l=this[e]&32767,a=this[e++]>>15,c=u*l+a*o;l=o*l+((c&32767)<<15)+r[n]+(i&1073741823),i=(l>>>30)+(c>>>15)+u*a+(i>>>30),r[n++]=l&1073741823}return i},Ot=30):ji&&Ai&&navigator.appName!="Netscape"?(K.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Ot=26):(K.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,u=t>>14;--s>=0;){var l=this[e]&16383,a=this[e++]>>14,c=u*l+a*o;l=o*l+((c&16383)<<14)+r[n]+i,i=(l>>28)+(c>>14)+u*a,r[n++]=l&268435455}return i},Ot=28),K.prototype.DB=Ot,K.prototype.DM=(1<<Ot)-1,K.prototype.DV=1<<Ot;var _r=52;K.prototype.FV=Math.pow(2,_r),K.prototype.F1=_r-Ot,K.prototype.F2=2*Ot-_r;var ir=[],se,ht;for(se=48,ht=0;ht<=9;++ht)ir[se++]=ht;for(se=97,ht=10;ht<36;++ht)ir[se++]=ht;for(se=65,ht=10;ht<36;++ht)ir[se++]=ht;function Di(e,t){var r=ir[e.charCodeAt(t)];return r!=null?r:-1}function jt(e){var t=J();return t.fromInt(e),t}function Ce(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}K.ZERO=jt(0),K.ONE=jt(1);var bd=(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 wd(){return new bd}var bo=256,Ne,Bt=null,gt;if(Bt==null){Bt=[],gt=0;var Pe=void 0;if(typeof window<"u"&&self.crypto&&self.crypto.getRandomValues){var Er=new Uint32Array(256);for(self.crypto.getRandomValues(Er),Pe=0;Pe<Er.length;++Pe)Bt[gt++]=Er[Pe]&255}var Ie=0,ke=function(e){if(Ie=Ie||0,Ie>=256||gt>=bo){self.removeEventListener?self.removeEventListener("mousemove",ke,!1):self.detachEvent&&self.detachEvent("onmousemove",ke);return}try{var t=e.x+e.y;Bt[gt++]=t&255,Ie+=1}catch(r){}};typeof window<"u"&&(self.addEventListener?self.addEventListener("mousemove",ke,!1):self.attachEvent&&self.attachEvent("onmousemove",ke))}function _d(){if(Ne==null){for(Ne=wd();gt<bo;){var e=Math.floor(65536*Math.random());Bt[gt++]=e&255}for(Ne.init(Bt),gt=0;gt<Bt.length;++gt)Bt[gt]=0;gt=0}return Ne.next()}var Ye=(function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=_d()},e})();function Wr(e){return Sd(Dd(Ed(e),e.length*8))}function Bi(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 Ed(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 Sd(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 wt(e,t){return e>>>t|e<<32-t}function wo(e,t){return e>>>t}function xd(e,t,r){return e&t^~e&r}function Td(e,t,r){return e&t^e&r^t&r}function Rd(e){return wt(e,2)^wt(e,13)^wt(e,22)}function Ad(e){return wt(e,6)^wt(e,11)^wt(e,25)}function $d(e){return wt(e,7)^wt(e,18)^wo(e,3)}function Od(e){return wt(e,17)^wt(e,19)^wo(e,10)}var jd=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 Dd(e,t){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,s,o,u,l,a,c,f,p,h,d,g;for(e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t,p=0;p<e.length;p+=16){for(i=r[0],s=r[1],o=r[2],u=r[3],l=r[4],a=r[5],c=r[6],f=r[7],h=0;h<64;h++)h<16?n[h]=e[h+p]:n[h]=rt(rt(rt(Od(n[h-2]),n[h-7]),$d(n[h-15])),n[h-16]),d=rt(rt(rt(rt(f,Ad(l)),xd(l,a,c)),jd[h]),n[h]),g=rt(Rd(i),Td(i,s,o)),f=c,c=a,a=l,l=rt(u,d),u=o,o=s,s=i,i=rt(d,g);r[0]=rt(i,r[0]),r[1]=rt(s,r[1]),r[2]=rt(o,r[2]),r[3]=rt(u,r[3]),r[4]=rt(l,r[4]),r[5]=rt(a,r[5]),r[6]=rt(c,r[6]),r[7]=rt(f,r[7])}return r}function rt(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function Bd(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 Z(s,16)}function Cd(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 Ye,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new K(r)}function Ci(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 Nd=32;function Pd(e,t){var r=Nd,n=Wr;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 o=n("")+i+""+e,u=new Array(r);new Ye().nextBytes(u);var l=Ci(u,o.length,n),a=[];for(s=0;s<o.length;s+=1)a[s]=o.charCodeAt(s)^l.charCodeAt(s);var c=Ci(a,u.length,n),f=[0];for(s=0;s<u.length;s+=1)f[s+1]=u[s]^c.charCodeAt(s);return new K(f.concat(a))}var Id=(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=Z(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t,r){typeof r>"u"&&(r=Cd);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 o=s.toString(16),u=o.length,l=0;l<n*2-u;l++)o="0"+o;return o},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,u,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(s,16),this.dmp1=Z(o,16),this.dmq1=Z(u,16),this.coeff=Z(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Ye,i=t>>1;this.e=parseInt(r,16);for(var s=new K(r,16);;){for(;this.p=new K(t-i,1,n),!(this.p.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new K(i,1,n),!(this.q.subtract(K.ONE).gcd(s).compareTo(K.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.p.subtract(K.ONE),l=this.q.subtract(K.ONE),a=u.multiply(l);if(a.gcd(s).compareTo(K.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=Z(t,16),n=this.doPrivate(r);return n==null?null:kd(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Ye,s=t>>1;this.e=parseInt(r,16);var o=new K(r,16),u=this,l=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var p=u.p;u.p=u.q,u.q=p}var h=u.p.subtract(K.ONE),d=u.q.subtract(K.ONE),g=h.multiply(d);g.gcd(o).compareTo(K.ONE)==0?(u.n=u.p.multiply(u.q),u.d=o.modInverse(g),u.dmp1=u.d.mod(h),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){u.q=J(),u.q.fromNumberAsync(s,1,i,function(){u.q.subtract(K.ONE).gcda(o,function(p){p.compareTo(K.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(c,0)})})},f=function(){u.p=J(),u.p.fromNumberAsync(t-s,1,i,function(){u.p.subtract(K.ONE).gcda(o,function(p){p.compareTo(K.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var i=Fd(n),s=i+r(t).toString(),o=this.n.bitLength()/4,u=Bd(s,o);if(u==null)return null;var l=this.doPrivate(u);if(l==null)return null;for(var a=l.toString(16),c=a.length,f=0;f<o-c;f++)a="0"+a;return a},e.prototype.verify=function(t,r,n){var i=Z(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),u=Md(o);return u==n(t).toString()},e})();function kd(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 Le={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Fd(e){return Le[e]||""}function Md(e){for(var t in Le)if(Le.hasOwnProperty(t)){var r=Le[t],n=r.length;if(e.substring(0,n)==r)return e.substring(n)}return e}function Q(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
27
|
* @fileOverview
|
|
28
28
|
* @name asn1-1.0.js
|
|
29
29
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
30
30
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
31
31
|
* @since jsrsasign 2.1
|
|
32
32
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
33
|
-
*/var O={};(typeof O.asn1>"u"||!O.asn1)&&(O.asn1={}),O.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 o=new K(i,16),u=o.xor(e).add(K.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=O,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,u=r.DERNull,l=r.DERObjectIdentifier,a=r.DEREnumerated,c=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,d=r.DERIA5String,g=r.DERUTCTime,b=r.DERGeneralizedTime,_=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,w=r.ASN1Util.newObject,E=Object.keys(e);if(E.length!=1)throw"key of param shall be only one.";var m=E[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+m+":")==-1)throw"undefined key: "+m;if(m=="bool")return new n(e[m]);if(m=="int")return new i(e[m]);if(m=="bitstr")return new s(e[m]);if(m=="octstr")return new o(e[m]);if(m=="null")return new u(e[m]);if(m=="oid")return new l(e[m]);if(m=="enum")return new a(e[m]);if(m=="utf8str")return new c(e[m]);if(m=="numstr")return new f(e[m]);if(m=="prnstr")return new p(e[m]);if(m=="telstr")return new h(e[m]);if(m=="ia5str")return new d(e[m]);if(m=="utctime")return new g(e[m]);if(m=="gentime")return new b(e[m]);if(m=="seq"){for(var x=e[m],A=[],U=0;U<x.length;U++){var S=w(x[U]);A.push(S)}return new _({array:A})}if(m=="set"){for(var x=e[m],A=[],U=0;U<x.length;U++){var S=w(x[U]);A.push(S)}return new y({array:A})}if(m=="tag"){var T=e[m];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=w(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=w(T.obj),new v(B)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},O.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="",o=2;o<e.length;o+=2){var u=parseInt(e.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new K(s,2);i=i+"."+a.toString(10),s=""}}return i},O.asn1.ASN1Util.oidIntToHex=function(e){var t=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},r=function(u){var l="",a=new K(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";c=p+c;for(var h=0;h<c.length-1;h+=7){var d=c.substring(h,h+7);h!=c.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n},O.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},O.asn1.DERAbstractString=function(e){O.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Q(O.asn1.DERAbstractString,O.asn1.ASN1Object),O.asn1.DERAbstractTime=function(e){O.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),p=o+u+l+a+c+f;if(n===!0){var h=s.getMilliseconds();if(h!=0){var d=i(String(h),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,o){var u=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}},Q(O.asn1.DERAbstractTime,O.asn1.ASN1Object),O.asn1.DERAbstractStructured=function(e){O.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Q(O.asn1.DERAbstractStructured,O.asn1.ASN1Object),O.asn1.DERBoolean=function(){O.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Q(O.asn1.DERBoolean,O.asn1.ASN1Object),O.asn1.DERInteger=function(e){O.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new K(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Q(O.asn1.DERInteger,O.asn1.ASN1Object),O.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}O.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Q(O.asn1.DERBitString,O.asn1.ASN1Object),O.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}O.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Q(O.asn1.DEROctetString,O.asn1.DERAbstractString),O.asn1.DERNull=function(){O.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Q(O.asn1.DERNull,O.asn1.ASN1Object),O.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 K(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=t(parseInt(c,2))}return i};O.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=r(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=O.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))},Q(O.asn1.DERObjectIdentifier,O.asn1.ASN1Object),O.asn1.DEREnumerated=function(e){O.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new K(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Q(O.asn1.DEREnumerated,O.asn1.ASN1Object),O.asn1.DERUTF8String=function(e){O.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Q(O.asn1.DERUTF8String,O.asn1.DERAbstractString),O.asn1.DERNumericString=function(e){O.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Q(O.asn1.DERNumericString,O.asn1.DERAbstractString),O.asn1.DERPrintableString=function(e){O.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Q(O.asn1.DERPrintableString,O.asn1.DERAbstractString),O.asn1.DERTeletexString=function(e){O.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Q(O.asn1.DERTeletexString,O.asn1.DERAbstractString),O.asn1.DERIA5String=function(e){O.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Q(O.asn1.DERIA5String,O.asn1.DERAbstractString),O.asn1.DERUTCTime=function(e){O.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Q(O.asn1.DERUTCTime,O.asn1.DERAbstractTime),O.asn1.DERGeneralizedTime=function(e){O.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))},Q(O.asn1.DERGeneralizedTime,O.asn1.DERAbstractTime),O.asn1.DERSequence=function(e){O.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}},Q(O.asn1.DERSequence,O.asn1.DERAbstractStructured),O.asn1.DERSet=function(e){O.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Q(O.asn1.DERSet,O.asn1.DERAbstractStructured),O.asn1.DERTaggedObject=function(e){O.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Q(O.asn1.DERTaggedObject,O.asn1.ASN1Object);var Ud=(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)}})(),Ni=(function(e){Ud(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?fd.decode(r):Kr.unarmor(r),u=dd.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var p=u.sub[7].getHexStringValue();this.dmq1=Z(p,16);var h=u.sub[8].getHexStringValue();this.coeff=Z(h,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new O.asn1.DERInteger({int:0}),new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e}),new O.asn1.DERInteger({bigint:this.d}),new O.asn1.DERInteger({bigint:this.p}),new O.asn1.DERInteger({bigint:this.q}),new O.asn1.DERInteger({bigint:this.dmp1}),new O.asn1.DERInteger({bigint:this.dmq1}),new O.asn1.DERInteger({bigint:this.coeff})]},n=new O.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return be(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new O.asn1.DERSequence({array:[new O.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new O.asn1.DERNull]}),n=new O.asn1.DERSequence({array:[new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e})]}),i=new O.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new O.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return be(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
33
|
+
*/var O={};(typeof O.asn1>"u"||!O.asn1)&&(O.asn1={}),O.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 o=new K(i,16),u=o.xor(e).add(K.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=O,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,u=r.DERNull,l=r.DERObjectIdentifier,a=r.DEREnumerated,c=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,d=r.DERIA5String,g=r.DERUTCTime,w=r.DERGeneralizedTime,_=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,b=r.ASN1Util.newObject,E=Object.keys(e);if(E.length!=1)throw"key of param shall be only one.";var m=E[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+m+":")==-1)throw"undefined key: "+m;if(m=="bool")return new n(e[m]);if(m=="int")return new i(e[m]);if(m=="bitstr")return new s(e[m]);if(m=="octstr")return new o(e[m]);if(m=="null")return new u(e[m]);if(m=="oid")return new l(e[m]);if(m=="enum")return new a(e[m]);if(m=="utf8str")return new c(e[m]);if(m=="numstr")return new f(e[m]);if(m=="prnstr")return new p(e[m]);if(m=="telstr")return new h(e[m]);if(m=="ia5str")return new d(e[m]);if(m=="utctime")return new g(e[m]);if(m=="gentime")return new w(e[m]);if(m=="seq"){for(var x=e[m],A=[],U=0;U<x.length;U++){var S=b(x[U]);A.push(S)}return new _({array:A})}if(m=="set"){for(var x=e[m],A=[],U=0;U<x.length;U++){var S=b(x[U]);A.push(S)}return new y({array:A})}if(m=="tag"){var T=e[m];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=b(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var B={};if(T.explicit!==void 0&&(B.explicit=T.explicit),T.tag!==void 0&&(B.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return B.obj=b(T.obj),new v(B)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},O.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="",o=2;o<e.length;o+=2){var u=parseInt(e.substring(o,o+2),16),l=("00000000"+u.toString(2)).slice(-8);if(s=s+l.substring(1,8),l.substring(0,1)=="0"){var a=new K(s,2);i=i+"."+a.toString(10),s=""}}return i},O.asn1.ASN1Util.oidIntToHex=function(e){var t=function(u){var l=u.toString(16);return l.length==1&&(l="0"+l),l},r=function(u){var l="",a=new K(u,10),c=a.toString(2),f=7-c.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";c=p+c;for(var h=0;h<c.length-1;h+=7){var d=c.substring(h,h+7);h!=c.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n},O.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},O.asn1.DERAbstractString=function(e){O.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Q(O.asn1.DERAbstractString,O.asn1.ASN1Object),O.asn1.DERAbstractTime=function(e){O.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substring(2,4));var u=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),a=i(String(s.getHours()),2),c=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),p=o+u+l+a+c+f;if(n===!0){var h=s.getMilliseconds();if(h!=0){var d=i(String(h),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,o){var u=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}},Q(O.asn1.DERAbstractTime,O.asn1.ASN1Object),O.asn1.DERAbstractStructured=function(e){O.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Q(O.asn1.DERAbstractStructured,O.asn1.ASN1Object),O.asn1.DERBoolean=function(){O.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Q(O.asn1.DERBoolean,O.asn1.ASN1Object),O.asn1.DERInteger=function(e){O.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new K(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Q(O.asn1.DERInteger,O.asn1.ASN1Object),O.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}O.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substring(i,i+8),u=parseInt(o,2).toString(16);u.length==1&&(u="0"+u),s+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Q(O.asn1.DERBitString,O.asn1.ASN1Object),O.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=O.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}O.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Q(O.asn1.DEROctetString,O.asn1.DERAbstractString),O.asn1.DERNull=function(){O.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Q(O.asn1.DERNull,O.asn1.ASN1Object),O.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 K(n,10),o=s.toString(2),u=7-o.length%7;u==7&&(u=0);for(var l="",a=0;a<u;a++)l+="0";o=l+o;for(var a=0;a<o.length-1;a+=7){var c=o.substring(a,a+7);a!=o.length-7&&(c="1"+c),i+=t(parseInt(c,2))}return i};O.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var u=0;u<s.length;u++)i+=r(s[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=O.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))},Q(O.asn1.DERObjectIdentifier,O.asn1.ASN1Object),O.asn1.DEREnumerated=function(e){O.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=O.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new K(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Q(O.asn1.DEREnumerated,O.asn1.ASN1Object),O.asn1.DERUTF8String=function(e){O.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Q(O.asn1.DERUTF8String,O.asn1.DERAbstractString),O.asn1.DERNumericString=function(e){O.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Q(O.asn1.DERNumericString,O.asn1.DERAbstractString),O.asn1.DERPrintableString=function(e){O.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Q(O.asn1.DERPrintableString,O.asn1.DERAbstractString),O.asn1.DERTeletexString=function(e){O.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Q(O.asn1.DERTeletexString,O.asn1.DERAbstractString),O.asn1.DERIA5String=function(e){O.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Q(O.asn1.DERIA5String,O.asn1.DERAbstractString),O.asn1.DERUTCTime=function(e){O.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Q(O.asn1.DERUTCTime,O.asn1.DERAbstractTime),O.asn1.DERGeneralizedTime=function(e){O.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))},Q(O.asn1.DERGeneralizedTime,O.asn1.DERAbstractTime),O.asn1.DERSequence=function(e){O.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}},Q(O.asn1.DERSequence,O.asn1.DERAbstractStructured),O.asn1.DERSet=function(e){O.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Q(O.asn1.DERSet,O.asn1.DERAbstractStructured),O.asn1.DERTaggedObject=function(e){O.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Q(O.asn1.DERTaggedObject,O.asn1.ASN1Object);var Ud=(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)}})(),Ni=(function(e){Ud(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?fd.decode(r):Kr.unarmor(r),u=dd.decode(o);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=Z(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=u.sub[3].getHexStringValue();this.d=Z(l,16);var a=u.sub[4].getHexStringValue();this.p=Z(a,16);var c=u.sub[5].getHexStringValue();this.q=Z(c,16);var f=u.sub[6].getHexStringValue();this.dmp1=Z(f,16);var p=u.sub[7].getHexStringValue();this.dmq1=Z(p,16);var h=u.sub[8].getHexStringValue();this.coeff=Z(h,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=Z(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=Z(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(w){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new O.asn1.DERInteger({int:0}),new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e}),new O.asn1.DERInteger({bigint:this.d}),new O.asn1.DERInteger({bigint:this.p}),new O.asn1.DERInteger({bigint:this.q}),new O.asn1.DERInteger({bigint:this.dmp1}),new O.asn1.DERInteger({bigint:this.dmq1}),new O.asn1.DERInteger({bigint:this.coeff})]},n=new O.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return be(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new O.asn1.DERSequence({array:[new O.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new O.asn1.DERNull]}),n=new O.asn1.DERSequence({array:[new O.asn1.DERInteger({bigint:this.n}),new O.asn1.DERInteger({int:this.e})]}),i=new O.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new O.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return be(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
34
34
|
?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
|
|
35
35
|
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
36
36
|
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
@@ -42,33 +42,33 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
42
42
|
* author : Adam Draper
|
|
43
43
|
* license : MIT
|
|
44
44
|
* http://adamwdraper.github.com/Numeral-js/
|
|
45
|
-
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(st,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return t=function(a){var c,f,p,h;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a>"u")c=0;else if(a===null||r.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&a.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,c=p(a)}else c=Number(a)||null;return new l(a,c)},t.version=n,t.isNumeral=function(a){return a instanceof l},t._=r={numberToFormat:function(a,c,f){var p=s[t.options.currentLocale],h=!1,d=!1,g=0,b="",_=1e12,y=1e9,v=1e6,w=1e3,E="",m=!1,x,A,U,S,T,F,B;if(a=a||0,A=Math.abs(a),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(T=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(x=c.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(c," a")&&(b=" "),c=c.replace(new RegExp(b+"a[kmbt]?"),""),A>=_&&!x||x==="t"?(b+=p.abbreviations.trillion,a=a/_):A<_&&A>=y&&!x||x==="b"?(b+=p.abbreviations.billion,a=a/y):A<y&&A>=v&&!x||x==="m"?(b+=p.abbreviations.million,a=a/v):(A<v&&A>=w&&!x||x==="k")&&(b+=p.abbreviations.thousand,a=a/w)),t._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),U=a.toString().split(".")[0],S=c.split(".")[1],F=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(t._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),E=t._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):E=t._.toFixed(a,S.length,f),U=E.split(".")[0],t._.includes(E,".")?E=p.delimiters.decimal+E.split(".")[1]:E="",d&&Number(E.slice(1))===0&&(E="")):U=t._.toFixed(a,0,f),b&&!x&&Number(U)>=1e3&&b!==p.abbreviations.trillion)switch(U=String(Number(U)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(U,"-")&&(U=U.slice(1),m=!0),U.length<g)for(var I=g-U.length;I>0;I--)U="0"+U;return F>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),c.indexOf(".")===0&&(U=""),B=U+E+(b||""),h?B=(h&&m?"(":"")+B+(h&&m?")":""):T>=0?B=T===0?(m?"-":"+")+B:B+(m?"-":"+"):m&&(B="-"+B),B},stringToNumber:function(a){var c=s[u.currentLocale],f=a,p={thousand:3,million:6,billion:9,trillion:12},h,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in p)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,p[h]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),p=f.length>>>0,h=0,d;if(arguments.length===3)d=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");d=f[h++]}for(;h<p;h++)h in f&&(d=c(d,f[h],h,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var p=r.multiplier(f);return c>p?c:p},1)},toFixed:function(a,c,f,p){var h=a.toString().split("."),d=c-(p||0),g,b,_,y;return h.length===2?g=Math.min(Math.max(h[1].length,d),c):g=d,_=Math.pow(10,g),y=(f(a+"e+"+g)/_).toFixed(g),p>c-g&&(b=new RegExp("\\.?0{1,"+(p-(c-g))+"}$"),y=y.replace(b,"")),y}},t.options=u,t.formats=i,t.locales=s,t.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},t.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},t.reset=function(){for(var a in o)u[a]=o[a]},t.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},t.validate=function(a,c){var f,p,h,d,g,b,_,y;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{_=t.localeData(c)}catch(v){_=t.localeData(t.locale())}return h=_.currency.symbol,g=_.abbreviations,f=_.delimiters.decimal,_.delimiters.thousands==="."?p="\\.":p=_.delimiters.thousands,y=a.match(/^[^\d]+/),y!==null&&(a=a.substr(1),y[0]!==h)||(y=a.match(/[^\d]+$/),y!==null&&(a=a.slice(0,-1),y[0]!==g.thousand&&y[0]!==g.million&&y[0]!==g.billion&&y[0]!==g.trillion))?!1:(b=new RegExp(p+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=l.prototype={clone:function(){return t(this)},format:function(a,c){var f=this._value,p=a||u.defaultFormat,h,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){g=i[h].format;break}g=g||t._.numberToFormat,d=g(f,p,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(p,h,d,g){return p+Math.round(c*h)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(p,h,d,g){return p-Math.round(c*h)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,p,h,d){var g=r.correctionFactor(f,p);return Math.round(f*g)*Math.round(p*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,p,h,d){var g=r.correctionFactor(f,p);return Math.round(f*g)/Math.round(p*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var p=t._.includes(c," BPS")?" ":"",h;return a=a*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(a,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(h){return a.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,d,g){var b,_=t._.includes(d,"ib")?c:a,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,w,E;for(d=d.replace(/\s?i?b/,""),v=0;v<=_.suffixes.length;v++)if(w=Math.pow(_.base,v),E=Math.pow(_.base,v+1),h===null||h===0||h>=w&&h<E){y+=_.suffixes[v],w>0&&(h=h/w);break}return b=t._.numberToFormat(h,d,g),b+y},unformat:function(h){var d=t._.stringToNumber(h),g,b;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(t._.includes(h,a.suffixes[g])){b=Math.pow(a.base,g);break}if(t._.includes(h,c.suffixes[g])){b=Math.pow(c.base,g);break}}d*=b||1}return d}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var p=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,b;for(c=c.replace(/\s?\$\s?/,""),d=t._.numberToFormat(a,c,f),a>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(g=h.before[b],g){case"$":d=t._.insert(d,p.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(g=h.after[b],g){case"$":d=b===h.after.length-1?d+p.currency.symbol:t._.insert(d,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":d=b===h.after.length-1?d+" ":t._.insert(d," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return d}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var p,h=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",d=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(d[0]),c,f),p+"e"+d[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),p=Number(c[1]);p=t._.includes(a,"e-")?p*=-1:p;function h(d,g,b,_){var y=t._.correctionFactor(d,g),v=d*y*(g*y)/(y*y);return v}return t._.reduce([f,Math.pow(10,p)],h,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var p=t.locales[t.options.currentLocale],h,d=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=p.ordinal(a),h=t._.numberToFormat(a,c,f),h+d}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var p=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(a,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var p=Math.floor(a/60/60),h=Math.floor((a-p*60*60)/60),d=Math.round(a-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),t})})(Eo);var qd=Eo.exports;ue(qd);var So={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(st,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",p="quarter",h="year",d="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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(I){var j=["th","st","nd","rd"],N=I%100;return"["+I+(j[(N-20)%10]||j[N]||j[0])+"]"}},v=function(I,j,N){var L=String(I);return!L||L.length>=j?I:""+Array(j+1-L.length).join(N)+I},w={s:v,z:function(I){var j=-I.utcOffset(),N=Math.abs(j),L=Math.floor(N/60),M=N%60;return(j<=0?"+":"-")+v(L,2,"0")+":"+v(M,2,"0")},m:function I(j,N){if(j.date()<N.date())return-I(N,j);var L=12*(N.year()-j.year())+(N.month()-j.month()),M=j.clone().add(L,f),H=N-M<0,q=j.clone().add(L+(H?-1:1),f);return+(-(L+(N-M)/(H?M-q:q-M))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",m={};m[E]=y;var x="$isDayjsObject",A=function(I){return I instanceof F||!(!I||!I[x])},U=function I(j,N,L){var M;if(!j)return E;if(typeof j=="string"){var H=j.toLowerCase();m[H]&&(M=H),N&&(m[H]=N,M=H);var q=j.split("-");if(!M&&q.length>1)return I(q[0])}else{var $=j.name;m[$]=j,M=$}return!L&&M&&(E=M),M||!L&&E},S=function(I,j){if(A(I))return I.clone();var N=typeof j=="object"?j:{};return N.date=I,N.args=arguments,new F(N)},T=w;T.l=U,T.i=A,T.w=function(I,j){return S(I,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var F=(function(){function I(N){this.$L=U(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var j=I.prototype;return j.parse=function(N){this.$d=(function(L){var M=L.date,H=L.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var q=M.match(b);if(q){var $=q[2]-1||0,D=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)}}return new Date(M)})(N),this.init()},j.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()},j.$utils=function(){return T},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(N,L){var M=S(N);return this.startOf(L)<=M&&M<=this.endOf(L)},j.isAfter=function(N,L){return S(N)<this.startOf(L)},j.isBefore=function(N,L){return this.endOf(L)<S(N)},j.$g=function(N,L,M){return T.u(N)?this[L]:this.set(M,N)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(N,L){var M=this,H=!!T.u(L)||L,q=T.p(N),$=function(It,ot){var $t=T.w(M.$u?Date.UTC(M.$y,ot,It):new Date(M.$y,ot,It),M);return H?$t:$t.endOf(a)},D=function(It,ot){return T.w(M.toDate()[It].apply(M.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(ot)),M)},C=this.$W,P=this.$M,ct=this.$D,Yt="set"+(this.$u?"UTC":"");switch(q){case h:return H?$(1,0):$(31,11);case f:return H?$(1,P):$(0,P+1);case c:var Pt=this.$locale().weekStart||0,fe=(C<Pt?C+7:C)-Pt;return $(H?ct-fe:ct+(6-fe),P);case a:case d:return D(Yt+"Hours",0);case l:return D(Yt+"Minutes",1);case u:return D(Yt+"Seconds",2);case o:return D(Yt+"Milliseconds",3);default:return this.clone()}},j.endOf=function(N){return this.startOf(N,!1)},j.$set=function(N,L){var M,H=T.p(N),q="set"+(this.$u?"UTC":""),$=(M={},M[a]=q+"Date",M[d]=q+"Date",M[f]=q+"Month",M[h]=q+"FullYear",M[l]=q+"Hours",M[u]=q+"Minutes",M[o]=q+"Seconds",M[s]=q+"Milliseconds",M)[H],D=H===a?this.$D+(L-this.$W):L;if(H===f||H===h){var C=this.clone().set(d,1);C.$d[$](D),C.init(),this.$d=C.set(d,Math.min(this.$D,C.daysInMonth())).$d}else $&&this.$d[$](D);return this.init(),this},j.set=function(N,L){return this.clone().$set(N,L)},j.get=function(N){return this[T.p(N)]()},j.add=function(N,L){var M,H=this;N=Number(N);var q=T.p(L),$=function(P){var ct=S(H);return T.w(ct.date(ct.date()+Math.round(P*N)),H)};if(q===f)return this.set(f,this.$M+N);if(q===h)return this.set(h,this.$y+N);if(q===a)return $(1);if(q===c)return $(7);var D=(M={},M[u]=n,M[l]=i,M[o]=r,M)[q]||1,C=this.$d.getTime()+N*D;return T.w(C,this)},j.subtract=function(N,L){return this.add(-1*N,L)},j.format=function(N){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var H=N||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,D=this.$m,C=this.$M,P=M.weekdays,ct=M.months,Yt=M.meridiem,Pt=function(ot,$t,he,je){return ot&&(ot[$t]||ot(L,H))||he[$t].slice(0,je)},fe=function(ot){return T.s($%12||12,ot,"0")},It=Yt||function(ot,$t,he){var je=ot<12?"AM":"PM";return he?je.toLowerCase():je};return H.replace(_,function(ot,$t){return $t||(function(he){switch(he){case"YY":return String(L.$y).slice(-2);case"YYYY":return T.s(L.$y,4,"0");case"M":return C+1;case"MM":return T.s(C+1,2,"0");case"MMM":return Pt(M.monthsShort,C,ct,3);case"MMMM":return Pt(ct,C);case"D":return L.$D;case"DD":return T.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Pt(M.weekdaysMin,L.$W,P,2);case"ddd":return Pt(M.weekdaysShort,L.$W,P,3);case"dddd":return P[L.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return It($,D,!0);case"A":return It($,D,!1);case"m":return String(D);case"mm":return T.s(D,2,"0");case"s":return String(L.$s);case"ss":return T.s(L.$s,2,"0");case"SSS":return T.s(L.$ms,3,"0");case"Z":return q}return null})(ot)||q.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(N,L,M){var H,q=this,$=T.p(L),D=S(N),C=(D.utcOffset()-this.utcOffset())*n,P=this-D,ct=function(){return T.m(q,D)};switch($){case h:H=ct()/12;break;case f:H=ct();break;case p:H=ct()/3;break;case c:H=(P-C)/6048e5;break;case a:H=(P-C)/864e5;break;case l:H=P/i;break;case u:H=P/n;break;case o:H=P/r;break;default:H=P}return M?H:T.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return m[this.$L]},j.locale=function(N,L){if(!N)return this.$L;var M=this.clone(),H=U(N,L,!0);return H&&(M.$L=H),M},j.clone=function(){return T.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},I})(),B=F.prototype;return S.prototype=B,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",h],["$D",d]].forEach(function(I){B[I[1]]=function(j){return this.$g(j,I[0],I[1])}}),S.extend=function(I,j){return I.$i||(I(j,F,S),I.$i=!0),S},S.locale=U,S.isDayjs=A,S.unix=function(I){return S(1e3*I)},S.en=m[E],S.Ls=m,S.p={},S})})(So);var xo=So.exports;const zd=ue(xo);var Kd={exports:{}};(function(e,t){(function(r,n){e.exports=n(xo)})(st,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(Kd),zd.locale("zh-cn");function Wd(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 Ze(e=0){return k(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Jd(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Yd(e,t){return Array.from(new Set(e))}function Ii(e){return e?[].concat(e):[]}function xr(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 Gd(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 To={exports:{}};(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,p=a.length;f<p;f++){var h=a.charCodeAt(f);c[f*2]=h>>>8,c[f*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var p=[];return a.forEach(function(h){p.push(r(h))}),u.decompress(p.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,p,h={},d={},g="",b="",_="",y=2,v=3,w=2,E=[],m=0,x=0,A;for(A=0;A<l.length;A+=1)if(g=l.charAt(A),Object.prototype.hasOwnProperty.call(h,g)||(h[g]=v++,d[g]=!0),b=_+g,Object.prototype.hasOwnProperty.call(h,b))_=b;else{if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)m=m<<1,x==a-1?(x=0,E.push(c(m)),m=0):x++;for(p=_.charCodeAt(0),f=0;f<8;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}else{for(p=1,f=0;f<w;f++)m=m<<1|p,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=0;for(p=_.charCodeAt(0),f=0;f<16;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[_]}else for(p=h[_],f=0;f<w;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,w),w++),h[b]=v++,_=String(g)}if(_!==""){if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<w;f++)m=m<<1,x==a-1?(x=0,E.push(c(m)),m=0):x++;for(p=_.charCodeAt(0),f=0;f<8;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}else{for(p=1,f=0;f<w;f++)m=m<<1|p,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=0;for(p=_.charCodeAt(0),f=0;f<16;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[_]}else for(p=h[_],f=0;f<w;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,w),w++)}for(p=2,f=0;f<w;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1;for(;;)if(m=m<<1,x==a-1){E.push(c(m));break}else x++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],p=4,h=4,d=3,g="",b=[],_,y,v,w,E,m,x,A={val:c(0),position:a,index:1};for(_=0;_<3;_+=1)f[_]=_;for(v=0,E=Math.pow(2,2),m=1;m!=E;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*m,m<<=1;switch(v){case 0:for(v=0,E=Math.pow(2,8),m=1;m!=E;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*m,m<<=1;x=r(v);break;case 1:for(v=0,E=Math.pow(2,16),m=1;m!=E;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*m,m<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(A.index>l)return"";for(v=0,E=Math.pow(2,d),m=1;m!=E;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*m,m<<=1;switch(x=v){case 0:for(v=0,E=Math.pow(2,8),m=1;m!=E;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*m,m<<=1;f[h++]=r(v),x=h-1,p--;break;case 1:for(v=0,E=Math.pow(2,16),m=1;m!=E;)w=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(w>0?1:0)*m,m<<=1;f[h++]=r(v),x=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,d),d++),f[x])g=f[x];else if(x===h)g=y+y.charAt(0);else return null;b.push(g),f[h++]=y+g.charAt(0),p--,y=g,p==0&&(p=Math.pow(2,d),d++)}}};return u})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(To);var Ro=To.exports;function Zd(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){l+=e[s++]+e[s++];continue}if(e[s]===")"){if(u--,u===0){s++;break}}else if(e[s]==="("&&(u++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=e[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Ao(e,t){t===void 0&&(t={});for(var r=Zd(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(re(t.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(m){if(l<r.length&&r[l].type===m)return r[l++].value},f=function(m){var x=c(m);if(x!==void 0)return x;var A=r[l],U=A.type,S=A.index;throw new TypeError("Unexpected ".concat(U," at ").concat(S,", expected ").concat(m))},p=function(){for(var m="",x;x=c("CHAR")||c("ESCAPED_CHAR");)m+=x;return m};l<r.length;){var h=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var b=h||"";i.indexOf(b)===-1&&(a+=b,b=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:b,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var _=h||c("ESCAPED_CHAR");if(_){a+=_;continue}a&&(o.push(a),a="");var y=c("OPEN");if(y){var b=p(),v=c("NAME")||"",w=c("PATTERN")||"",E=p();f("CLOSE"),o.push({name:v||(w?u++:""),pattern:v&&!w?s:w,prefix:b,suffix:E,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Xd(e,t){return Qd(Ao(e,t),t)}function Qd(e,t){t===void 0&&(t={});var r=bn(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,u=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){a+=f;continue}var p=l?l[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<p.length;g++){var b=i(p[g],f);if(o&&!u[c].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var b=i(String(p),f);if(o&&!u[c].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix;continue}if(!h){var _=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return a}}function tg(e,t){var r=[],n=wn(e,r,t);return eg(n,r,t)}function eg(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(p){if(o[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?a[h.name]=o[p].split(h.prefix+h.suffix).map(function(d){return i(d,h)}):a[h.name]=i(o[p],h)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function re(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bn(e){return e&&e.sensitive?"":"i"}function rg(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 ng(e,t,r){var n=e.map(function(i){return wn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),bn(r))}function ig(e,t,r){return sg(Ao(e,r),t,r)}function sg(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(S){return S}:a,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,d=h===void 0?"":h,g="[".concat(re(d),"]|$"),b="[".concat(re(p),"]"),_=o?"^":"",y=0,v=e;y<v.length;y++){var w=v[y];if(typeof w=="string")_+=re(c(w));else{var E=re(c(w.prefix)),m=re(c(w.suffix));if(w.pattern)if(t&&t.push(w),E||m)if(w.modifier==="+"||w.modifier==="*"){var x=w.modifier==="*"?"?":"";_+="(?:".concat(E,"((?:").concat(w.pattern,")(?:").concat(m).concat(E,"(?:").concat(w.pattern,"))*)").concat(m,")").concat(x)}else _+="(?:".concat(E,"(").concat(w.pattern,")").concat(m,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?_+="((?:".concat(w.pattern,")").concat(w.modifier,")"):_+="(".concat(w.pattern,")").concat(w.modifier);else _+="(?:".concat(E).concat(m,")").concat(w.modifier)}}if(l)i||(_+="".concat(b,"?")),_+=r.endsWith?"(?=".concat(g,")"):"$";else{var A=e[e.length-1],U=typeof A=="string"?b.indexOf(A[A.length-1])>-1:A===void 0;i||(_+="(?:".concat(b,"(?=").concat(g,"))?")),U||(_+="(?=".concat(b,"|").concat(g,")"))}return new RegExp(_,bn(r))}function wn(e,t,r){return e instanceof RegExp?rg(e,t):Array.isArray(e)?ng(e,t,r):ig(e,t,r)}var og=Object.defineProperty,ag=(e,t,r)=>t in e?og(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>(ag(e,typeof t!="symbol"?t+"":t,r),r);class ug{constructor(){de(this,"queue",[]),de(this,"isProcessing",!1),de(this,"results",[]),de(this,"cache",new Map),de(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((o,u)=>{this.queue.push({key:t,task:r,resolve:o,reject:u}),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 k(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 o=yield r(),u={key:t,status:"fulfilled",value:o};this.results.push(u),this.cache.set(t,u),n(o),this.pendingTasks.delete(t)}catch(s){const o={key:t,status:"rejected",reason:s};this.results.push(o),this.cache.set(t,o),i(s),this.pendingTasks.delete(t)}finally{this.processQueue()}})}}Ro.compress;Ro.decompress;/**!
|
|
45
|
+
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(st,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(a,c){this._input=a,this._value=c}return t=function(a){var c,f,p,h;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a>"u")c=0;else if(a===null||r.isNaN(a))c=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)c=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&a.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,c=p(a)}else c=Number(a)||null;return new l(a,c)},t.version=n,t.isNumeral=function(a){return a instanceof l},t._=r={numberToFormat:function(a,c,f){var p=s[t.options.currentLocale],h=!1,d=!1,g=0,w="",_=1e12,y=1e9,v=1e6,b=1e3,E="",m=!1,x,A,U,S,T,F,B;if(a=a||0,A=Math.abs(a),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(T=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(x=c.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(c," a")&&(w=" "),c=c.replace(new RegExp(w+"a[kmbt]?"),""),A>=_&&!x||x==="t"?(w+=p.abbreviations.trillion,a=a/_):A<_&&A>=y&&!x||x==="b"?(w+=p.abbreviations.billion,a=a/y):A<y&&A>=v&&!x||x==="m"?(w+=p.abbreviations.million,a=a/v):(A<v&&A>=b&&!x||x==="k")&&(w+=p.abbreviations.thousand,a=a/b)),t._.includes(c,"[.]")&&(d=!0,c=c.replace("[.]",".")),U=a.toString().split(".")[0],S=c.split(".")[1],F=c.indexOf(","),g=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(t._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),E=t._.toFixed(a,S[0].length+S[1].length,f,S[1].length)):E=t._.toFixed(a,S.length,f),U=E.split(".")[0],t._.includes(E,".")?E=p.delimiters.decimal+E.split(".")[1]:E="",d&&Number(E.slice(1))===0&&(E="")):U=t._.toFixed(a,0,f),w&&!x&&Number(U)>=1e3&&w!==p.abbreviations.trillion)switch(U=String(Number(U)/1e3),w){case p.abbreviations.thousand:w=p.abbreviations.million;break;case p.abbreviations.million:w=p.abbreviations.billion;break;case p.abbreviations.billion:w=p.abbreviations.trillion;break}if(t._.includes(U,"-")&&(U=U.slice(1),m=!0),U.length<g)for(var I=g-U.length;I>0;I--)U="0"+U;return F>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),c.indexOf(".")===0&&(U=""),B=U+E+(w||""),h?B=(h&&m?"(":"")+B+(h&&m?")":""):T>=0?B=T===0?(m?"-":"+")+B:B+(m?"-":"+"):m&&(B="-"+B),B},stringToNumber:function(a){var c=s[u.currentLocale],f=a,p={thousand:3,million:6,billion:9,trillion:12},h,d,g;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in p)if(g=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(g)){d*=Math.pow(10,p[h]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,f){return a.slice(0,f)+c+a.slice(f)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(a),p=f.length>>>0,h=0,d;if(arguments.length===3)d=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");d=f[h++]}for(;h<p;h++)h in f&&(d=c(d,f[h],h,f));return d},multiplier:function(a){var c=a.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(c,f){var p=r.multiplier(f);return c>p?c:p},1)},toFixed:function(a,c,f,p){var h=a.toString().split("."),d=c-(p||0),g,w,_,y;return h.length===2?g=Math.min(Math.max(h[1].length,d),c):g=d,_=Math.pow(10,g),y=(f(a+"e+"+g)/_).toFixed(g),p>c-g&&(w=new RegExp("\\.?0{1,"+(p-(c-g))+"}$"),y=y.replace(w,"")),y}},t.options=u,t.formats=i,t.locales=s,t.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},t.localeData=function(a){if(!a)return s[u.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},t.reset=function(){for(var a in o)u[a]=o[a]},t.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,f){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=f,f},t.validate=function(a,c){var f,p,h,d,g,w,_,y;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{_=t.localeData(c)}catch(v){_=t.localeData(t.locale())}return h=_.currency.symbol,g=_.abbreviations,f=_.delimiters.decimal,_.delimiters.thousands==="."?p="\\.":p=_.delimiters.thousands,y=a.match(/^[^\d]+/),y!==null&&(a=a.substr(1),y[0]!==h)||(y=a.match(/[^\d]+$/),y!==null&&(a=a.slice(0,-1),y[0]!==g.thousand&&y[0]!==g.million&&y[0]!==g.billion&&y[0]!==g.trillion))?!1:(w=new RegExp(p+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(w):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(w)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(w)&&!!d[1].match(/^\d+$/)))},t.fn=l.prototype={clone:function(){return t(this)},format:function(a,c){var f=this._value,p=a||u.defaultFormat,h,d,g;if(c=c||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){g=i[h].format;break}g=g||t._.numberToFormat,d=g(f,p,c)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(p,h,d,g){return p+Math.round(c*h)}return this._value=r.reduce([this._value,a],f,0)/c,this},subtract:function(a){var c=r.correctionFactor.call(null,this._value,a);function f(p,h,d,g){return p-Math.round(c*h)}return this._value=r.reduce([a],f,Math.round(this._value*c))/c,this},multiply:function(a){function c(f,p,h,d){var g=r.correctionFactor(f,p);return Math.round(f*g)*Math.round(p*g)/Math.round(g*g)}return this._value=r.reduce([this._value,a],c,1),this},divide:function(a){function c(f,p,h,d){var g=r.correctionFactor(f,p);return Math.round(f*g)/Math.round(p*g)}return this._value=r.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,f){var p=t._.includes(c," BPS")?" ":"",h;return a=a*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(a,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})})(),(function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(c.suffixes.filter(function(h){return a.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,d,g){var w,_=t._.includes(d,"ib")?c:a,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,b,E;for(d=d.replace(/\s?i?b/,""),v=0;v<=_.suffixes.length;v++)if(b=Math.pow(_.base,v),E=Math.pow(_.base,v+1),h===null||h===0||h>=b&&h<E){y+=_.suffixes[v],b>0&&(h=h/b);break}return w=t._.numberToFormat(h,d,g),w+y},unformat:function(h){var d=t._.stringToNumber(h),g,w;if(d){for(g=a.suffixes.length-1;g>=0;g--){if(t._.includes(h,a.suffixes[g])){w=Math.pow(a.base,g);break}if(t._.includes(h,c.suffixes[g])){w=Math.pow(c.base,g);break}}d*=w||1}return d}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,f){var p=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,w;for(c=c.replace(/\s?\$\s?/,""),d=t._.numberToFormat(a,c,f),a>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),w=0;w<h.before.length;w++)switch(g=h.before[w],g){case"$":d=t._.insert(d,p.currency.symbol,w);break;case" ":d=t._.insert(d," ",w+p.currency.symbol.length-1);break}for(w=h.after.length-1;w>=0;w--)switch(g=h.after[w],g){case"$":d=w===h.after.length-1?d+p.currency.symbol:t._.insert(d,p.currency.symbol,-(h.after.length-(1+w)));break;case" ":d=w===h.after.length-1?d+" ":t._.insert(d," ",-(h.after.length-(1+w)+p.currency.symbol.length-1));break}return d}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,f){var p,h=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",d=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(d[0]),c,f),p+"e"+d[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(c[0]),p=Number(c[1]);p=t._.includes(a,"e-")?p*=-1:p;function h(d,g,w,_){var y=t._.correctionFactor(d,g),v=d*y*(g*y)/(y*y);return v}return t._.reduce([f,Math.pow(10,p)],h,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,f){var p=t.locales[t.options.currentLocale],h,d=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),d+=p.ordinal(a),h=t._.numberToFormat(a,c,f),h+d}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,f){var p=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(a,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,f){var p=Math.floor(a/60/60),h=Math.floor((a-p*60*60)/60),d=Math.round(a-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(d<10?"0"+d:d)},unformat:function(a){var c=a.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})})(),t})})(Eo);var qd=Eo.exports;ue(qd);var So={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(st,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",a="day",c="week",f="month",p="quarter",h="year",d="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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(I){var j=["th","st","nd","rd"],N=I%100;return"["+I+(j[(N-20)%10]||j[N]||j[0])+"]"}},v=function(I,j,N){var L=String(I);return!L||L.length>=j?I:""+Array(j+1-L.length).join(N)+I},b={s:v,z:function(I){var j=-I.utcOffset(),N=Math.abs(j),L=Math.floor(N/60),M=N%60;return(j<=0?"+":"-")+v(L,2,"0")+":"+v(M,2,"0")},m:function I(j,N){if(j.date()<N.date())return-I(N,j);var L=12*(N.year()-j.year())+(N.month()-j.month()),M=j.clone().add(L,f),H=N-M<0,q=j.clone().add(L+(H?-1:1),f);return+(-(L+(N-M)/(H?M-q:q-M))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:c,d:a,D:d,h:l,m:u,s:o,ms:s,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",m={};m[E]=y;var x="$isDayjsObject",A=function(I){return I instanceof F||!(!I||!I[x])},U=function I(j,N,L){var M;if(!j)return E;if(typeof j=="string"){var H=j.toLowerCase();m[H]&&(M=H),N&&(m[H]=N,M=H);var q=j.split("-");if(!M&&q.length>1)return I(q[0])}else{var $=j.name;m[$]=j,M=$}return!L&&M&&(E=M),M||!L&&E},S=function(I,j){if(A(I))return I.clone();var N=typeof j=="object"?j:{};return N.date=I,N.args=arguments,new F(N)},T=b;T.l=U,T.i=A,T.w=function(I,j){return S(I,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var F=(function(){function I(N){this.$L=U(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var j=I.prototype;return j.parse=function(N){this.$d=(function(L){var M=L.date,H=L.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var q=M.match(w);if(q){var $=q[2]-1||0,D=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,D)}}return new Date(M)})(N),this.init()},j.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()},j.$utils=function(){return T},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(N,L){var M=S(N);return this.startOf(L)<=M&&M<=this.endOf(L)},j.isAfter=function(N,L){return S(N)<this.startOf(L)},j.isBefore=function(N,L){return this.endOf(L)<S(N)},j.$g=function(N,L,M){return T.u(N)?this[L]:this.set(M,N)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(N,L){var M=this,H=!!T.u(L)||L,q=T.p(N),$=function(It,ot){var $t=T.w(M.$u?Date.UTC(M.$y,ot,It):new Date(M.$y,ot,It),M);return H?$t:$t.endOf(a)},D=function(It,ot){return T.w(M.toDate()[It].apply(M.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(ot)),M)},C=this.$W,P=this.$M,ct=this.$D,Yt="set"+(this.$u?"UTC":"");switch(q){case h:return H?$(1,0):$(31,11);case f:return H?$(1,P):$(0,P+1);case c:var Pt=this.$locale().weekStart||0,fe=(C<Pt?C+7:C)-Pt;return $(H?ct-fe:ct+(6-fe),P);case a:case d:return D(Yt+"Hours",0);case l:return D(Yt+"Minutes",1);case u:return D(Yt+"Seconds",2);case o:return D(Yt+"Milliseconds",3);default:return this.clone()}},j.endOf=function(N){return this.startOf(N,!1)},j.$set=function(N,L){var M,H=T.p(N),q="set"+(this.$u?"UTC":""),$=(M={},M[a]=q+"Date",M[d]=q+"Date",M[f]=q+"Month",M[h]=q+"FullYear",M[l]=q+"Hours",M[u]=q+"Minutes",M[o]=q+"Seconds",M[s]=q+"Milliseconds",M)[H],D=H===a?this.$D+(L-this.$W):L;if(H===f||H===h){var C=this.clone().set(d,1);C.$d[$](D),C.init(),this.$d=C.set(d,Math.min(this.$D,C.daysInMonth())).$d}else $&&this.$d[$](D);return this.init(),this},j.set=function(N,L){return this.clone().$set(N,L)},j.get=function(N){return this[T.p(N)]()},j.add=function(N,L){var M,H=this;N=Number(N);var q=T.p(L),$=function(P){var ct=S(H);return T.w(ct.date(ct.date()+Math.round(P*N)),H)};if(q===f)return this.set(f,this.$M+N);if(q===h)return this.set(h,this.$y+N);if(q===a)return $(1);if(q===c)return $(7);var D=(M={},M[u]=n,M[l]=i,M[o]=r,M)[q]||1,C=this.$d.getTime()+N*D;return T.w(C,this)},j.subtract=function(N,L){return this.add(-1*N,L)},j.format=function(N){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var H=N||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,D=this.$m,C=this.$M,P=M.weekdays,ct=M.months,Yt=M.meridiem,Pt=function(ot,$t,he,je){return ot&&(ot[$t]||ot(L,H))||he[$t].slice(0,je)},fe=function(ot){return T.s($%12||12,ot,"0")},It=Yt||function(ot,$t,he){var je=ot<12?"AM":"PM";return he?je.toLowerCase():je};return H.replace(_,function(ot,$t){return $t||(function(he){switch(he){case"YY":return String(L.$y).slice(-2);case"YYYY":return T.s(L.$y,4,"0");case"M":return C+1;case"MM":return T.s(C+1,2,"0");case"MMM":return Pt(M.monthsShort,C,ct,3);case"MMMM":return Pt(ct,C);case"D":return L.$D;case"DD":return T.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Pt(M.weekdaysMin,L.$W,P,2);case"ddd":return Pt(M.weekdaysShort,L.$W,P,3);case"dddd":return P[L.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return It($,D,!0);case"A":return It($,D,!1);case"m":return String(D);case"mm":return T.s(D,2,"0");case"s":return String(L.$s);case"ss":return T.s(L.$s,2,"0");case"SSS":return T.s(L.$ms,3,"0");case"Z":return q}return null})(ot)||q.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(N,L,M){var H,q=this,$=T.p(L),D=S(N),C=(D.utcOffset()-this.utcOffset())*n,P=this-D,ct=function(){return T.m(q,D)};switch($){case h:H=ct()/12;break;case f:H=ct();break;case p:H=ct()/3;break;case c:H=(P-C)/6048e5;break;case a:H=(P-C)/864e5;break;case l:H=P/i;break;case u:H=P/n;break;case o:H=P/r;break;default:H=P}return M?H:T.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return m[this.$L]},j.locale=function(N,L){if(!N)return this.$L;var M=this.clone(),H=U(N,L,!0);return H&&(M.$L=H),M},j.clone=function(){return T.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},I})(),B=F.prototype;return S.prototype=B,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",a],["$M",f],["$y",h],["$D",d]].forEach(function(I){B[I[1]]=function(j){return this.$g(j,I[0],I[1])}}),S.extend=function(I,j){return I.$i||(I(j,F,S),I.$i=!0),S},S.locale=U,S.isDayjs=A,S.unix=function(I){return S(1e3*I)},S.en=m[E],S.Ls=m,S.p={},S})})(So);var xo=So.exports;const zd=ue(xo);var Kd={exports:{}};(function(e,t){(function(r,n){e.exports=n(xo)})(st,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,u){return u==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,u){var l=100*o+u;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(Kd),zd.locale("zh-cn");function Wd(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 Ze(e=0){return k(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Jd(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Yd(e,t){return Array.from(new Set(e))}function Ii(e){return e?[].concat(e):[]}function xr(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 Gd(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 To={exports:{}};(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,a){if(!s[l]){s[l]={};for(var c=0;c<l.length;c++)s[l][l.charAt(c)]=c}return s[l][a]}var u={compressToBase64:function(l){if(l==null)return"";var a=u._compress(l,6,function(c){return n.charAt(c)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:u._decompress(l.length,32,function(a){return o(n,l.charAt(a))})},compressToUTF16:function(l){return l==null?"":u._compress(l,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:u._decompress(l.length,16384,function(a){return l.charCodeAt(a)-32})},compressToUint8Array:function(l){for(var a=u.compress(l),c=new Uint8Array(a.length*2),f=0,p=a.length;f<p;f++){var h=a.charCodeAt(f);c[f*2]=h>>>8,c[f*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return u.decompress(l);for(var a=new Array(l.length/2),c=0,f=a.length;c<f;c++)a[c]=l[c*2]*256+l[c*2+1];var p=[];return a.forEach(function(h){p.push(r(h))}),u.decompress(p.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":u._compress(l,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),u._decompress(l.length,32,function(a){return o(i,l.charAt(a))}))},compress:function(l){return u._compress(l,16,function(a){return r(a)})},_compress:function(l,a,c){if(l==null)return"";var f,p,h={},d={},g="",w="",_="",y=2,v=3,b=2,E=[],m=0,x=0,A;for(A=0;A<l.length;A+=1)if(g=l.charAt(A),Object.prototype.hasOwnProperty.call(h,g)||(h[g]=v++,d[g]=!0),w=_+g,Object.prototype.hasOwnProperty.call(h,w))_=w;else{if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<b;f++)m=m<<1,x==a-1?(x=0,E.push(c(m)),m=0):x++;for(p=_.charCodeAt(0),f=0;f<8;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}else{for(p=1,f=0;f<b;f++)m=m<<1|p,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=0;for(p=_.charCodeAt(0),f=0;f<16;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,b),b++),delete d[_]}else for(p=h[_],f=0;f<b;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,b),b++),h[w]=v++,_=String(g)}if(_!==""){if(Object.prototype.hasOwnProperty.call(d,_)){if(_.charCodeAt(0)<256){for(f=0;f<b;f++)m=m<<1,x==a-1?(x=0,E.push(c(m)),m=0):x++;for(p=_.charCodeAt(0),f=0;f<8;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}else{for(p=1,f=0;f<b;f++)m=m<<1|p,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=0;for(p=_.charCodeAt(0),f=0;f<16;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,b),b++),delete d[_]}else for(p=h[_],f=0;f<b;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,b),b++)}for(p=2,f=0;f<b;f++)m=m<<1|p&1,x==a-1?(x=0,E.push(c(m)),m=0):x++,p=p>>1;for(;;)if(m=m<<1,x==a-1){E.push(c(m));break}else x++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:u._decompress(l.length,32768,function(a){return l.charCodeAt(a)})},_decompress:function(l,a,c){var f=[],p=4,h=4,d=3,g="",w=[],_,y,v,b,E,m,x,A={val:c(0),position:a,index:1};for(_=0;_<3;_+=1)f[_]=_;for(v=0,E=Math.pow(2,2),m=1;m!=E;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(b>0?1:0)*m,m<<=1;switch(v){case 0:for(v=0,E=Math.pow(2,8),m=1;m!=E;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(b>0?1:0)*m,m<<=1;x=r(v);break;case 1:for(v=0,E=Math.pow(2,16),m=1;m!=E;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(b>0?1:0)*m,m<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,w.push(x);;){if(A.index>l)return"";for(v=0,E=Math.pow(2,d),m=1;m!=E;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(b>0?1:0)*m,m<<=1;switch(x=v){case 0:for(v=0,E=Math.pow(2,8),m=1;m!=E;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(b>0?1:0)*m,m<<=1;f[h++]=r(v),x=h-1,p--;break;case 1:for(v=0,E=Math.pow(2,16),m=1;m!=E;)b=A.val&A.position,A.position>>=1,A.position==0&&(A.position=a,A.val=c(A.index++)),v|=(b>0?1:0)*m,m<<=1;f[h++]=r(v),x=h-1,p--;break;case 2:return w.join("")}if(p==0&&(p=Math.pow(2,d),d++),f[x])g=f[x];else if(x===h)g=y+y.charAt(0);else return null;w.push(g),f[h++]=y+g.charAt(0),p--,y=g,p==0&&(p=Math.pow(2,d),d++)}}};return u})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(To);var Ro=To.exports;function Zd(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var u=1,l="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){l+=e[s++]+e[s++];continue}if(e[s]===")"){if(u--,u===0){s++;break}}else if(e[s]==="("&&(u++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));l+=e[s++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Ao(e,t){t===void 0&&(t={});for(var r=Zd(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(re(t.delimiter||"/#?"),"]+?"),o=[],u=0,l=0,a="",c=function(m){if(l<r.length&&r[l].type===m)return r[l++].value},f=function(m){var x=c(m);if(x!==void 0)return x;var A=r[l],U=A.type,S=A.index;throw new TypeError("Unexpected ".concat(U," at ").concat(S,", expected ").concat(m))},p=function(){for(var m="",x;x=c("CHAR")||c("ESCAPED_CHAR");)m+=x;return m};l<r.length;){var h=c("CHAR"),d=c("NAME"),g=c("PATTERN");if(d||g){var w=h||"";i.indexOf(w)===-1&&(a+=w,w=""),a&&(o.push(a),a=""),o.push({name:d||u++,prefix:w,suffix:"",pattern:g||s,modifier:c("MODIFIER")||""});continue}var _=h||c("ESCAPED_CHAR");if(_){a+=_;continue}a&&(o.push(a),a="");var y=c("OPEN");if(y){var w=p(),v=c("NAME")||"",b=c("PATTERN")||"",E=p();f("CLOSE"),o.push({name:v||(b?u++:""),pattern:v&&!b?s:b,prefix:w,suffix:E,modifier:c("MODIFIER")||""});continue}f("END")}return o}function Xd(e,t){return Qd(Ao(e,t),t)}function Qd(e,t){t===void 0&&(t={});var r=bn(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,u=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var a="",c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){a+=f;continue}var p=l?l[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var g=0;g<p.length;g++){var w=i(p[g],f);if(o&&!u[c].test(w))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(w,'"'));a+=f.prefix+w+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var w=i(String(p),f);if(o&&!u[c].test(w))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(w,'"'));a+=f.prefix+w+f.suffix;continue}if(!h){var _=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return a}}function tg(e,t){var r=[],n=wn(e,r,t);return eg(n,r,t)}function eg(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var u=o[0],l=o.index,a=Object.create(null),c=function(p){if(o[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?a[h.name]=o[p].split(h.prefix+h.suffix).map(function(d){return i(d,h)}):a[h.name]=i(o[p],h)},f=1;f<o.length;f++)c(f);return{path:u,index:l,params:a}}}function re(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bn(e){return e&&e.sensitive?"":"i"}function rg(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 ng(e,t,r){var n=e.map(function(i){return wn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),bn(r))}function ig(e,t,r){return sg(Ao(e,r),t,r)}function sg(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,u=r.end,l=u===void 0?!0:u,a=r.encode,c=a===void 0?function(S){return S}:a,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,d=h===void 0?"":h,g="[".concat(re(d),"]|$"),w="[".concat(re(p),"]"),_=o?"^":"",y=0,v=e;y<v.length;y++){var b=v[y];if(typeof b=="string")_+=re(c(b));else{var E=re(c(b.prefix)),m=re(c(b.suffix));if(b.pattern)if(t&&t.push(b),E||m)if(b.modifier==="+"||b.modifier==="*"){var x=b.modifier==="*"?"?":"";_+="(?:".concat(E,"((?:").concat(b.pattern,")(?:").concat(m).concat(E,"(?:").concat(b.pattern,"))*)").concat(m,")").concat(x)}else _+="(?:".concat(E,"(").concat(b.pattern,")").concat(m,")").concat(b.modifier);else b.modifier==="+"||b.modifier==="*"?_+="((?:".concat(b.pattern,")").concat(b.modifier,")"):_+="(".concat(b.pattern,")").concat(b.modifier);else _+="(?:".concat(E).concat(m,")").concat(b.modifier)}}if(l)i||(_+="".concat(w,"?")),_+=r.endsWith?"(?=".concat(g,")"):"$";else{var A=e[e.length-1],U=typeof A=="string"?w.indexOf(A[A.length-1])>-1:A===void 0;i||(_+="(?:".concat(w,"(?=").concat(g,"))?")),U||(_+="(?=".concat(w,"|").concat(g,")"))}return new RegExp(_,bn(r))}function wn(e,t,r){return e instanceof RegExp?rg(e,t):Array.isArray(e)?ng(e,t,r):ig(e,t,r)}var og=Object.defineProperty,ag=(e,t,r)=>t in e?og(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>(ag(e,typeof t!="symbol"?t+"":t,r),r);class ug{constructor(){de(this,"queue",[]),de(this,"isProcessing",!1),de(this,"results",[]),de(this,"cache",new Map),de(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((o,u)=>{this.queue.push({key:t,task:r,resolve:o,reject:u}),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 k(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 o=yield r(),u={key:t,status:"fulfilled",value:o};this.results.push(u),this.cache.set(t,u),n(o),this.pendingTasks.delete(t)}catch(s){const o={key:t,status:"rejected",reason:s};this.results.push(o),this.cache.set(t,o),i(s),this.pendingTasks.delete(t)}finally{this.processQueue()}})}}Ro.compress;Ro.decompress;/**!
|
|
46
46
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.13.
|
|
49
|
+
* @version 0.13.26
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
|
-
*/const cg="VueMaterial",lg="VueRouterMaterial",fg={[cg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lg]:["RouterView","RouterLink"]};let hg=class{constructor(){z(this,"listeners",[]);z(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 pg=Object.defineProperty,dg=(e,t,r)=>t in e?pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>dg(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)}})();const gg=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gg));function $o(e,t){return function(){return e.apply(t,arguments)}}const{toString:mg}=Object.prototype,{getPrototypeOf:_n}=Object,{iterator:sr,toStringTag:Oo}=Symbol,or=(e=>t=>{const r=mg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>or(t)===e),ar=e=>t=>typeof t===e,{isArray:ce}=Array,Ee=ar("undefined");function Re(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jo=vt("ArrayBuffer");function yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jo(e.buffer),t}const vg=ar("string"),at=ar("function"),Do=ar("number"),Ae=e=>e!==null&&typeof e=="object",bg=e=>e===!0||e===!1,Ve=e=>{if(or(e)!=="object")return!1;const t=_n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Oo in e)&&!(sr in e)},wg=e=>{if(!Ae(e)||Re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},_g=vt("Date"),Eg=vt("File"),Sg=vt("Blob"),xg=vt("FileList"),Tg=e=>Ae(e)&&at(e.pipe),Rg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=or(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ag=vt("URLSearchParams"),[$g,Og,jg,Dg]=["ReadableStream","Request","Response","Headers"].map(vt),Bg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ce(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Re(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function Bo(e,t){if(Re(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 Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Co=e=>!Ee(e)&&e!==Vt;function Jr(){const{caseless:e}=Co(this)&&this||{},t={},r=(n,i)=>{const s=e&&Bo(t,i)||i;Ve(t[s])&&Ve(n)?t[s]=Jr(t[s],n):Ve(n)?t[s]=Jr({},n):ce(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&$e(arguments[n],r);return t}const Cg=(e,t,r,{allOwnKeys:n}={})=>($e(t,(i,s)=>{r&&at(i)?e[s]=$o(i,r):e[s]=i},{allOwnKeys:n}),e),Ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pg=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ig=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&_n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kg=(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},Fg=e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!Do(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_n(Uint8Array)),Ug=(e,t)=>{const r=(e&&e[sr]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Lg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vg=vt("HTMLFormElement"),Hg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ki=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qg=vt("RegExp"),No=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},zg=e=>{No(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(at(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+"'")})}})},Kg=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ce(e)?n(e):n(String(e).split(t)),r},Wg=()=>{},Jg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yg(e){return!!(e&&at(e.append)&&e[Oo]==="FormData"&&e[sr])}const Gg=e=>{const t=new Array(10),r=(n,i)=>{if(Ae(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return $e(n,(o,u)=>{const l=r(o,i+1);!Ee(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Zg=vt("AsyncFunction"),Xg=e=>e&&(Ae(e)||at(e))&&at(e.then)&&at(e.catch),Po=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:i,data:s})=>{i===Vt&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(Vt.postMessage)),Qg=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Po,tm=e=>e!=null&&at(e[sr]),R={isArray:ce,isArrayBuffer:jo,isBuffer:Re,isFormData:Rg,isArrayBufferView:yg,isString:vg,isNumber:Do,isBoolean:bg,isObject:Ae,isPlainObject:Ve,isEmptyObject:wg,isReadableStream:$g,isRequest:Og,isResponse:jg,isHeaders:Dg,isUndefined:Ee,isDate:_g,isFile:Eg,isBlob:Sg,isRegExp:qg,isFunction:at,isStream:Tg,isURLSearchParams:Ag,isTypedArray:Mg,isFileList:xg,forEach:$e,merge:Jr,extend:Cg,trim:Bg,stripBOM:Ng,inherits:Pg,toFlatObject:Ig,kindOf:or,kindOfTest:vt,endsWith:kg,toArray:Fg,forEachEntry:Ug,matchAll:Lg,isHTMLForm:Vg,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:No,freezeMethods:zg,toObjectSet:Kg,toCamelCase:Hg,noop:Wg,toFiniteNumber:Jg,findKey:Bo,global:Vt,isContextDefined:Co,isSpecCompliantForm:Yg,toJSONObject:Gg,isAsyncFn:Zg,isThenable:Xg,setImmediate:Po,asap:Qg,isIterable:tm};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Io=W.prototype,ko={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ko[e]={value:e}});Object.defineProperties(W,ko);Object.defineProperty(Io,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(Io);return R.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const em=null;function Yr(e){return R.isPlainObject(e)||R.isArray(e)}function Fo(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Fi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Fo(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rm(e){return R.isArray(e)&&!e.some(Yr)}const nm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ur(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(R.isBoolean(h))return h.toString();if(!u&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,g){let b=h;if(h&&!g&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&rm(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=Fo(d),b.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(o===!0?Fi([d],y,s):o===null?d:d+"[]",l(_))}),!1}return Yr(h)?!0:(t.append(Fi(g,d,s),l(h)),!1)}const c=[],f=Object.assign(nm,{defaultVisitor:a,convertValue:l,isVisitable:Yr});function p(h,d){if(!R.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),R.forEach(h,function(g,b){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(b)?b.trim():b,d,f))===!0&&p(g,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function En(e,t){this._pairs=[],e&&ur(e,this,t)}const Mo=En.prototype;Mo.append=function(e,t){this._pairs.push([e,t])};Mo.toString=function(e){const t=e?function(r){return e.call(this,r,Mi)}:Mi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uo(e,t,r){if(!t)return e;const n=r&&r.encode||im;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=R.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Ui=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){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const Lo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sm=typeof URLSearchParams<"u"?URLSearchParams:En,om=typeof FormData<"u"?FormData:null,am=typeof Blob<"u"?Blob:null,um={isBrowser:!0,classes:{URLSearchParams:sm,FormData:om,Blob:am},protocols:["http","https","file","blob","url","data"]},Sn=typeof window<"u"&&typeof document<"u",Gr=typeof navigator=="object"&&navigator||void 0,cm=Sn&&(!Gr||["ReactNative","NativeScript","NS"].indexOf(Gr.product)<0),lm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Sn&&window.location.href||"http://localhost",hm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserEnv:cm,hasStandardBrowserWebWorkerEnv:lm,navigator:Gr,origin:fm},Symbol.toStringTag,{value:"Module"})),nt=V(V({},hm),um);function pm(e,t){return ur(e,new nt.classes.URLSearchParams,V({visitor:function(r,n,i,s){return nt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dm(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gm(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 Vo(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=gm(i[o])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(dm(n),i,r,0)}),r}return null}function mm(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Oe={transitional:Lo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(Vo(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pm(e,this.formSerializer).toString();if((s=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ur(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),mm(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Oe.headers[e]={}});const ym=R.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"]),vm=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
51
|
+
*/const cg="VueMaterial",lg="VueRouterMaterial",fg={[cg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lg]:["RouterView","RouterLink"]};let hg=class{constructor(){z(this,"listeners",[]);z(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 pg=Object.defineProperty,dg=(e,t,r)=>t in e?pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>dg(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)}})();const gg=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gg));function $o(e,t){return function(){return e.apply(t,arguments)}}const{toString:mg}=Object.prototype,{getPrototypeOf:_n}=Object,{iterator:sr,toStringTag:Oo}=Symbol,or=(e=>t=>{const r=mg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>or(t)===e),ar=e=>t=>typeof t===e,{isArray:ce}=Array,Ee=ar("undefined");function Re(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jo=vt("ArrayBuffer");function yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jo(e.buffer),t}const vg=ar("string"),at=ar("function"),Do=ar("number"),Ae=e=>e!==null&&typeof e=="object",bg=e=>e===!0||e===!1,Ve=e=>{if(or(e)!=="object")return!1;const t=_n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Oo in e)&&!(sr in e)},wg=e=>{if(!Ae(e)||Re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},_g=vt("Date"),Eg=vt("File"),Sg=vt("Blob"),xg=vt("FileList"),Tg=e=>Ae(e)&&at(e.pipe),Rg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=or(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ag=vt("URLSearchParams"),[$g,Og,jg,Dg]=["ReadableStream","Request","Response","Headers"].map(vt),Bg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ce(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Re(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function Bo(e,t){if(Re(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 Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Co=e=>!Ee(e)&&e!==Vt;function Jr(){const{caseless:e}=Co(this)&&this||{},t={},r=(n,i)=>{const s=e&&Bo(t,i)||i;Ve(t[s])&&Ve(n)?t[s]=Jr(t[s],n):Ve(n)?t[s]=Jr({},n):ce(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&$e(arguments[n],r);return t}const Cg=(e,t,r,{allOwnKeys:n}={})=>($e(t,(i,s)=>{r&&at(i)?e[s]=$o(i,r):e[s]=i},{allOwnKeys:n}),e),Ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pg=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ig=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&_n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kg=(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},Fg=e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!Do(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_n(Uint8Array)),Ug=(e,t)=>{const r=(e&&e[sr]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Lg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vg=vt("HTMLFormElement"),Hg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ki=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qg=vt("RegExp"),No=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},zg=e=>{No(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(at(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+"'")})}})},Kg=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ce(e)?n(e):n(String(e).split(t)),r},Wg=()=>{},Jg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yg(e){return!!(e&&at(e.append)&&e[Oo]==="FormData"&&e[sr])}const Gg=e=>{const t=new Array(10),r=(n,i)=>{if(Ae(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return $e(n,(o,u)=>{const l=r(o,i+1);!Ee(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Zg=vt("AsyncFunction"),Xg=e=>e&&(Ae(e)||at(e))&&at(e.then)&&at(e.catch),Po=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:i,data:s})=>{i===Vt&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(Vt.postMessage)),Qg=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Po,tm=e=>e!=null&&at(e[sr]),R={isArray:ce,isArrayBuffer:jo,isBuffer:Re,isFormData:Rg,isArrayBufferView:yg,isString:vg,isNumber:Do,isBoolean:bg,isObject:Ae,isPlainObject:Ve,isEmptyObject:wg,isReadableStream:$g,isRequest:Og,isResponse:jg,isHeaders:Dg,isUndefined:Ee,isDate:_g,isFile:Eg,isBlob:Sg,isRegExp:qg,isFunction:at,isStream:Tg,isURLSearchParams:Ag,isTypedArray:Mg,isFileList:xg,forEach:$e,merge:Jr,extend:Cg,trim:Bg,stripBOM:Ng,inherits:Pg,toFlatObject:Ig,kindOf:or,kindOfTest:vt,endsWith:kg,toArray:Fg,forEachEntry:Ug,matchAll:Lg,isHTMLForm:Vg,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:No,freezeMethods:zg,toObjectSet:Kg,toCamelCase:Hg,noop:Wg,toFiniteNumber:Jg,findKey:Bo,global:Vt,isContextDefined:Co,isSpecCompliantForm:Yg,toJSONObject:Gg,isAsyncFn:Zg,isThenable:Xg,setImmediate:Po,asap:Qg,isIterable:tm};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Io=W.prototype,ko={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ko[e]={value:e}});Object.defineProperties(W,ko);Object.defineProperty(Io,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(Io);return R.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const em=null;function Yr(e){return R.isPlainObject(e)||R.isArray(e)}function Fo(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Fi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Fo(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rm(e){return R.isArray(e)&&!e.some(Yr)}const nm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ur(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(R.isBoolean(h))return h.toString();if(!u&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,g){let w=h;if(h&&!g&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&rm(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(w=R.toArray(h)))return d=Fo(d),w.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(o===!0?Fi([d],y,s):o===null?d:d+"[]",l(_))}),!1}return Yr(h)?!0:(t.append(Fi(g,d,s),l(h)),!1)}const c=[],f=Object.assign(nm,{defaultVisitor:a,convertValue:l,isVisitable:Yr});function p(h,d){if(!R.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),R.forEach(h,function(g,w){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(w)?w.trim():w,d,f))===!0&&p(g,d?d.concat(w):[w])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function En(e,t){this._pairs=[],e&&ur(e,this,t)}const Mo=En.prototype;Mo.append=function(e,t){this._pairs.push([e,t])};Mo.toString=function(e){const t=e?function(r){return e.call(this,r,Mi)}:Mi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uo(e,t,r){if(!t)return e;const n=r&&r.encode||im;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=R.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Ui=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){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const Lo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sm=typeof URLSearchParams<"u"?URLSearchParams:En,om=typeof FormData<"u"?FormData:null,am=typeof Blob<"u"?Blob:null,um={isBrowser:!0,classes:{URLSearchParams:sm,FormData:om,Blob:am},protocols:["http","https","file","blob","url","data"]},Sn=typeof window<"u"&&typeof document<"u",Gr=typeof navigator=="object"&&navigator||void 0,cm=Sn&&(!Gr||["ReactNative","NativeScript","NS"].indexOf(Gr.product)<0),lm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Sn&&window.location.href||"http://localhost",hm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserEnv:cm,hasStandardBrowserWebWorkerEnv:lm,navigator:Gr,origin:fm},Symbol.toStringTag,{value:"Module"})),nt=V(V({},hm),um);function pm(e,t){return ur(e,new nt.classes.URLSearchParams,V({visitor:function(r,n,i,s){return nt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dm(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gm(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 Vo(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=gm(i[o])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(dm(n),i,r,0)}),r}return null}function mm(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Oe={transitional:Lo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(Vo(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pm(e,this.formSerializer).toString();if((s=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ur(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),mm(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Oe.headers[e]={}});const ym=R.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"]),vm=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
52
52
|
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&ym[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Li=Symbol("internals");function ge(e){return e&&String(e).trim().toLowerCase()}function He(e){return e===!1||e==null?e:R.isArray(e)?e.map(He):String(e)}function bm(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 wm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function _m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Em(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let ut=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(u,l,a){const c=ge(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=He(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(R.isString(t)&&(t=t.trim())&&!wm(t))o(vm(t),r);else if(R.isObject(t)&&R.isIterable(t)){let u={},l,a;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=ge(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bm(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ge(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Tr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ge(o),o){const u=R.findKey(n,o);u&&(!r||Tr(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.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||Tr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=He(i),delete r[s];return}const u=t?_m(s):String(s).trim();u!==s&&delete r[s],r[u]=He(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.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[Li]=this[Li]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ge(s);r[o]||(Em(n,s),r[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ut.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(ut);function Rr(e,t){const r=this||Oe,n=t||r,i=ut.from(n.headers);let s=n.data;return R.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Ho(e){return!!(e&&e.__CANCEL__)}function le(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(le,W,{__CANCEL__:!0});function qo(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Sm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=a&&l-a;return p?Math.round(f*1e3/p):void 0}}function Tm(e,t){let r=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const Xe=(e,t,r=3)=>{let n=0;const i=xm(50,250);return Tm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Vi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Hi=e=>(...t)=>R.asap(()=>e(...t)),Rm=nt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,nt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,Am=nt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),R.isString(n)&&o.push("path="+n),R.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $m(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Om(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zo(e,t,r){let n=!$m(t);return e&&(n||r==!1)?Om(e,t):t}const qi=e=>e instanceof ut?V({},e):e;function Kt(e,t){t=t||{};const r={};function n(a,c,f,p){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:p},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,p){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,p)}else return n(a,c,f,p)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in e)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(qi(a),qi(c),f,!0)};return R.forEach(Object.keys(V(V({},e),t)),function(a){const c=l[a]||i,f=c(e[a],t[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Ko=e=>{const t=Kt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;t.headers=o=ut.from(o),t.url=Uo(zo(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(R.isFormData(r)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(nt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Rm(t.url))){const a=i&&s&&Am.read(s);a&&o.set(i,a)}return t},jm=typeof XMLHttpRequest<"u",Dm=jm&&function(e){return new Promise(function(t,r){const n=Ko(e);let i=n.data;const s=ut.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function b(){if(!g)return;const y=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};qo(function(w){t(w),d()},function(w){r(w),d()},v),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Lo;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(y,v){g.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,h]=Xe(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,p]=Xe(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(a=y=>{g&&(r(!y||y.type?new le(null,e,g):y),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const _=Sm(n.url);if(_&&nt.protocols.indexOf(_)===-1){r(new W("Unsupported protocol "+_+":",W.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Bm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new le(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),e=null)};e.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Cm=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},Nm=function(e,t){return gr(this,null,function*(){try{for(var r=An(Pm(e)),n,i,s;n=!(i=yield new kt(r.next())).done;n=!1){const o=i.value;yield*mr(Cm(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new kt(i.call(r)))}finally{if(s)throw s[0]}}})},Pm=function(e){return gr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*mr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new kt(t.read());if(r)break;yield n}}finally{yield new kt(t.cancel())}})},zi=(e,t,r,n)=>{const i=Nm(e,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},cr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wo=cr&&typeof ReadableStream=="function",Im=cr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Jo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},km=Wo&&Jo(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ki=64*1024,Zr=Wo&&Jo(()=>R.isReadableStream(new Response("").body)),Qe={stream:Zr&&(e=>e.body)};cr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qe[t]&&(Qe[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const Fm=e=>k(null,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield Im(e)).byteLength}),Mm=(e,t)=>k(null,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:Fm(t)}),Um=cr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Ko(e);a=a?(a+"").toLowerCase():"text";let h=Bm([i,s&&s.toAbortSignal()],o),d;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(l&&km&&r!=="get"&&r!=="head"&&(b=yield Mm(c,n))!==0){let E=new Request(t,{method:"POST",body:n,duplex:"half"}),m;if(R.isFormData(n)&&(m=E.headers.get("content-type"))&&c.setContentType(m),E.body){const[x,A]=Vi(b,Xe(Hi(l)));n=zi(E.body,Ki,x,A)}}R.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;d=new Request(t,et(V({},p),{signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:_?f:void 0}));let y=yield fetch(d,p);const v=Zr&&(a==="stream"||a==="response");if(Zr&&(u||v&&g)){const E={};["status","statusText","headers"].forEach(U=>{E[U]=y[U]});const m=R.toFiniteNumber(y.headers.get("content-length")),[x,A]=u&&Vi(m,Xe(Hi(u),!0))||[];y=new Response(zi(y.body,Ki,x,()=>{A&&A(),g&&g()}),E)}a=a||"text";let w=yield Qe[R.findKey(Qe,a)||"text"](y,e);return!v&&g&&g(),yield new Promise((E,m)=>{qo(E,m,{data:w,headers:ut.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(_){throw g&&g(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:_.cause||_}):W.from(_,_&&_.code,e,d)}})),Xr={http:em,xhr:Dm,fetch:Um};R.forEach(Xr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Wi=e=>`- ${e}`,Lm=e=>R.isFunction(e)||e===null||e===!1,Yo={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Lm(r)&&(n=Xr[(o=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
|
|
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[Li]=this[Li]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ge(s);r[o]||(Em(n,s),r[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ut.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(ut);function Rr(e,t){const r=this||Oe,n=t||r,i=ut.from(n.headers);let s=n.data;return R.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Ho(e){return!!(e&&e.__CANCEL__)}function le(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(le,W,{__CANCEL__:!0});function qo(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Sm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=a&&l-a;return p?Math.round(f*1e3/p):void 0}}function Tm(e,t){let r=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const Xe=(e,t,r=3)=>{let n=0;const i=xm(50,250);return Tm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Vi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Hi=e=>(...t)=>R.asap(()=>e(...t)),Rm=nt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,nt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,Am=nt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),R.isString(n)&&o.push("path="+n),R.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $m(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Om(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zo(e,t,r){let n=!$m(t);return e&&(n||r==!1)?Om(e,t):t}const qi=e=>e instanceof ut?V({},e):e;function Kt(e,t){t=t||{};const r={};function n(a,c,f,p){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:p},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,p){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,p)}else return n(a,c,f,p)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in e)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(qi(a),qi(c),f,!0)};return R.forEach(Object.keys(V(V({},e),t)),function(a){const c=l[a]||i,f=c(e[a],t[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Ko=e=>{const t=Kt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;t.headers=o=ut.from(o),t.url=Uo(zo(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(R.isFormData(r)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(nt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Rm(t.url))){const a=i&&s&&Am.read(s);a&&o.set(i,a)}return t},jm=typeof XMLHttpRequest<"u",Dm=jm&&function(e){return new Promise(function(t,r){const n=Ko(e);let i=n.data;const s=ut.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function w(){if(!g)return;const y=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};qo(function(b){t(b),d()},function(b){r(b),d()},v),g=null}"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(w)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Lo;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(y,v){g.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,h]=Xe(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,p]=Xe(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(a=y=>{g&&(r(!y||y.type?new le(null,e,g):y),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const _=Sm(n.url);if(_&&nt.protocols.indexOf(_)===-1){r(new W("Unsupported protocol "+_+":",W.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Bm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new le(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),e=null)};e.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Cm=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},Nm=function(e,t){return gr(this,null,function*(){try{for(var r=An(Pm(e)),n,i,s;n=!(i=yield new kt(r.next())).done;n=!1){const o=i.value;yield*mr(Cm(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new kt(i.call(r)))}finally{if(s)throw s[0]}}})},Pm=function(e){return gr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*mr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new kt(t.read());if(r)break;yield n}}finally{yield new kt(t.cancel())}})},zi=(e,t,r,n)=>{const i=Nm(e,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},cr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wo=cr&&typeof ReadableStream=="function",Im=cr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Jo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},km=Wo&&Jo(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ki=64*1024,Zr=Wo&&Jo(()=>R.isReadableStream(new Response("").body)),Qe={stream:Zr&&(e=>e.body)};cr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qe[t]&&(Qe[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const Fm=e=>k(null,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield Im(e)).byteLength}),Mm=(e,t)=>k(null,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:Fm(t)}),Um=cr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Ko(e);a=a?(a+"").toLowerCase():"text";let h=Bm([i,s&&s.toAbortSignal()],o),d;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let w;try{if(l&&km&&r!=="get"&&r!=="head"&&(w=yield Mm(c,n))!==0){let E=new Request(t,{method:"POST",body:n,duplex:"half"}),m;if(R.isFormData(n)&&(m=E.headers.get("content-type"))&&c.setContentType(m),E.body){const[x,A]=Vi(w,Xe(Hi(l)));n=zi(E.body,Ki,x,A)}}R.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;d=new Request(t,et(V({},p),{signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:_?f:void 0}));let y=yield fetch(d,p);const v=Zr&&(a==="stream"||a==="response");if(Zr&&(u||v&&g)){const E={};["status","statusText","headers"].forEach(U=>{E[U]=y[U]});const m=R.toFiniteNumber(y.headers.get("content-length")),[x,A]=u&&Vi(m,Xe(Hi(u),!0))||[];y=new Response(zi(y.body,Ki,x,()=>{A&&A(),g&&g()}),E)}a=a||"text";let b=yield Qe[R.findKey(Qe,a)||"text"](y,e);return!v&&g&&g(),yield new Promise((E,m)=>{qo(E,m,{data:b,headers:ut.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(_){throw g&&g(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:_.cause||_}):W.from(_,_&&_.code,e,d)}})),Xr={http:em,xhr:Dm,fetch:Um};R.forEach(Xr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Wi=e=>`- ${e}`,Lm=e=>R.isFunction(e)||e===null||e===!1,Yo={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Lm(r)&&(n=Xr[(o=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
|
|
54
54
|
`+s.map(Wi).join(`
|
|
55
55
|
`):" "+Wi(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Xr};function Ar(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new le(null,e)}function Ji(e){return Ar(e),e.headers=ut.from(e.headers),e.data=Rr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yo.getAdapter(e.adapter||Oe.adapter)(e).then(function(t){return Ar(e),t.data=Rr.call(e,e.transformResponse,t),t.headers=ut.from(t.headers),t},function(t){return Ho(t)||(Ar(e),t&&t.response&&(t.response.data=Rr.call(e,e.transformResponse,t.response),t.response.headers=ut.from(t.response.headers))),Promise.reject(t)})}const Go="1.11.0",lr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yi={};lr.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Go+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new W(n(s," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!Yi[s]&&(Yi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};lr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Vm(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const u=e[s],l=u===void 0||o(u,s,e);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const qe={assertOptions:Vm,validators:lr},bt=qe.validators;let Ht=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ui,response:new Ui}}request(t,r){return k(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
56
|
-
`+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&qe.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:qe.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qe.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ut.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[Ji.bind(this),void 0];for(d.unshift(...u),d.push(...a),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=u.length;let h=r;for(f=0;f<p;){const d=u[f++],g=u[f++];try{h=d(h)}catch(b){g.call(this,b);break}}try{c=Ji.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=a.length;f<p;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=Kt(this.defaults,t);const r=zo(t.baseURL,t.url,t.allowAbsoluteUrls);return Uo(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(t,r){return this.request(Kt(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Kt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ht.prototype[e]=t(),Ht.prototype[e+"Form"]=t(!0)});let Hm=class Zo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new le(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}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 Zo(function(r){t=r}),cancel:t}}};function qm(e){return function(t){return e.apply(null,t)}}function zm(e){return R.isObject(e)&&e.isAxiosError===!0}const Qr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qr).forEach(([e,t])=>{Qr[t]=e});function Xo(e){const t=new Ht(e),r=$o(Ht.prototype.request,t);return R.extend(r,Ht.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Xo(Kt(e,n))},r}const X=Xo(Oe);X.Axios=Ht;X.CanceledError=le;X.CancelToken=Hm;X.isCancel=Ho;X.VERSION=Go;X.toFormData=ur;X.AxiosError=W;X.Cancel=X.CanceledError;X.all=function(e){return Promise.all(e)};X.spread=qm;X.isAxiosError=zm;X.mergeConfig=Kt;X.AxiosHeaders=ut;X.formToJSON=e=>Vo(R.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Yo.getAdapter;X.HttpStatusCode=Qr;X.default=X;const{Axios:Ry,AxiosError:Ay,CanceledError:$y,isCancel:Oy,CancelToken:jy,VERSION:Dy,all:By,Cancel:Cy,isAxiosError:Ny,spread:Py,toFormData:Iy,AxiosHeaders:ky,HttpStatusCode:Fy,formToJSON:My,getAdapter:Uy,mergeConfig:Ly}=X,Km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Wm=["put","post","patch"],Gi="Local-Request-Id",Jm=100,Ym=300;let Gm=class{constructor(e={}){ft(this,"axios"),ft(this,"settings"),ft(this,"records",{}),ft(this,"isLoading",!1),ft(this,"stopSkipWarn"),ft(this,"showLoading"),ft(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=xr(e,["settings","query"]);this.axios=X.create(me({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=io(this.openLoading.bind(this),Jm),this.showError=td(this._showError.bind(this),Ym,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=me(this.settings,e.settings||{});const t=xr(e,["settings","query"]);this.axios.defaults=me(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":Km[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Gi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:l,params:a={},method:c="get"}=t;const f=n?{[u]:!0}:{};return Wm.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=s!=="json"||!this.isJsonType(r)?this.toFormData(l,s):l,a=V({},i)):s==="form"?a=V(V(V({},l||{}),i),f):(l&&(s!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,s)),a=V(V({},i),f)),{data:l,params:a}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ge(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=Xd(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=me({},this.settings,e.settings||{}),n=e.query||{},i=xr(e,["settings","query"]),s=Wd(!1),o=X.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const u=this.createUrl(i),l=this.createHeaders(s,r,i),{data:a,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(V({cancelToken:o.token},i),{url:u,headers:l,data:a,params:c})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[Gi],u=this.records[o];if(!u)return s;const{data:l}=s;if(!l||typeof l!="object")return s;if((l==null?void 0:l.code)===t){n&&n(s);const a=new Promise(r).then(()=>this.send(et(V({},u.config),{settings:u.settings}),!0));a.catch(c=>c).finally(()=>{i&&i()}),s.promise=a}return s})}};function xn(e={}){const t=new Gm(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const tn=xn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),en=typeof window<"u";function Zm(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Qo{constructor(t={}){ft(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ft(this,"caches",{}),ft(this,"types"),this.types={local:en?window.localStorage:this.caches,session:en?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const $r=new Qo;function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},Xm=ze.exports,Zi;function Qm(){return Zi||(Zi=1,(function(e,t){(function(r,n){n(t,e)})(Xm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,b){var _=c.jsonpCallbackFunction||s(),y=h+"_"+_;window[_]=function(w){g({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),o(_)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+_),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(_),u(y),window[_]=function(){o(_)}},p),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(_),u(y),d&&clearTimeout(d)}})}n.exports=l})})(ze,ze.exports)),ze.exports}var t1=Qm();const e1=ta(t1);function r1(e){if(en){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function n1(e=""){const t=e.match(_o);return t?t[0]:""}function ea(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 rn(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 ra(e,t){t=typeof t=="string"?rn(t):t;const r=e.split("?")[0],n=rn(e),i=Object.assign({},n,t),s=ea(i);return s?[r,s].join("?"):e}const Ke=Object.freeze(Object.defineProperty({__proto__:null,append:ra,getCurrentHost:r1,getHost:n1,parse:rn,stringify:ea},Symbol.toStringTag,{value:"Module"}));function na(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Xp(e)(n||{}));const i=ra(e,n);return yield(yield e1(i,t)).json()})}var Or,Xi;function i1(){if(Xi)return Or;Xi=1,Or=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};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 Or}var s1=i1();const o1=ta(s1);function Qi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;o1(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ts={debug:-1,log:0,info:0,warn:1,error:2},a1=function(e,t,r,n){return function(...i){if(t&&ts[t]<=ts[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,u1(i,r))}};function u1(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function c1(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 l1={level:"warn",bizName:"*"};class f1{constructor(t){ft(this,"config"),ft(this,"options"),this.options=V(V({},l1),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=c1(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return a1(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 h1(e){return new f1(e)}const ie=h1({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var p1={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 nn(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Fe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Fe({},s,{expires:-1}))},withAttributes:function(i){return nn(this.converter,Fe({},this.attributes,i))},withConverter:function(i){return nn(Fe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Tn=nn(p1,{path:"/"});function d1(e,t,r){Tn.set(e,t,r)}function g1(e){return Tn.get(e)}function m1(e,t){Tn.remove(e,t)}const jr=Object.freeze(Object.defineProperty({__proto__:null,get:g1,remove:m1,set:d1},Symbol.toStringTag,{value:"Module"}));/**!
|
|
56
|
+
`+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&qe.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:qe.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qe.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ut.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[Ji.bind(this),void 0];for(d.unshift(...u),d.push(...a),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=u.length;let h=r;for(f=0;f<p;){const d=u[f++],g=u[f++];try{h=d(h)}catch(w){g.call(this,w);break}}try{c=Ji.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=a.length;f<p;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=Kt(this.defaults,t);const r=zo(t.baseURL,t.url,t.allowAbsoluteUrls);return Uo(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(t,r){return this.request(Kt(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Kt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ht.prototype[e]=t(),Ht.prototype[e+"Form"]=t(!0)});let Hm=class Zo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new le(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}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 Zo(function(r){t=r}),cancel:t}}};function qm(e){return function(t){return e.apply(null,t)}}function zm(e){return R.isObject(e)&&e.isAxiosError===!0}const Qr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qr).forEach(([e,t])=>{Qr[t]=e});function Xo(e){const t=new Ht(e),r=$o(Ht.prototype.request,t);return R.extend(r,Ht.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Xo(Kt(e,n))},r}const X=Xo(Oe);X.Axios=Ht;X.CanceledError=le;X.CancelToken=Hm;X.isCancel=Ho;X.VERSION=Go;X.toFormData=ur;X.AxiosError=W;X.Cancel=X.CanceledError;X.all=function(e){return Promise.all(e)};X.spread=qm;X.isAxiosError=zm;X.mergeConfig=Kt;X.AxiosHeaders=ut;X.formToJSON=e=>Vo(R.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Yo.getAdapter;X.HttpStatusCode=Qr;X.default=X;const{Axios:Ry,AxiosError:Ay,CanceledError:$y,isCancel:Oy,CancelToken:jy,VERSION:Dy,all:By,Cancel:Cy,isAxiosError:Ny,spread:Py,toFormData:Iy,AxiosHeaders:ky,HttpStatusCode:Fy,formToJSON:My,getAdapter:Uy,mergeConfig:Ly}=X,Km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Wm=["put","post","patch"],Gi="Local-Request-Id",Jm=100,Ym=300;let Gm=class{constructor(e={}){ft(this,"axios"),ft(this,"settings"),ft(this,"records",{}),ft(this,"isLoading",!1),ft(this,"stopSkipWarn"),ft(this,"showLoading"),ft(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=xr(e,["settings","query"]);this.axios=X.create(me({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=io(this.openLoading.bind(this),Jm),this.showError=td(this._showError.bind(this),Ym,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=me(this.settings,e.settings||{});const t=xr(e,["settings","query"]);this.axios.defaults=me(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":Km[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Gi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:l,params:a={},method:c="get"}=t;const f=n?{[u]:!0}:{};return Wm.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=s!=="json"||!this.isJsonType(r)?this.toFormData(l,s):l,a=V({},i)):s==="form"?a=V(V(V({},l||{}),i),f):(l&&(s!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,s)),a=V(V({},i),f)),{data:l,params:a}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ge(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=Xd(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=me({},this.settings,e.settings||{}),n=e.query||{},i=xr(e,["settings","query"]),s=Wd(!1),o=X.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const u=this.createUrl(i),l=this.createHeaders(s,r,i),{data:a,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(V({cancelToken:o.token},i),{url:u,headers:l,data:a,params:c})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[Gi],u=this.records[o];if(!u)return s;const{data:l}=s;if(!l||typeof l!="object")return s;if((l==null?void 0:l.code)===t){n&&n(s);const a=new Promise(r).then(()=>this.send(et(V({},u.config),{settings:u.settings}),!0));a.catch(c=>c).finally(()=>{i&&i()}),s.promise=a}return s})}};function xn(e={}){const t=new Gm(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const tn=xn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),en=typeof window<"u";function Zm(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Qo{constructor(t={}){ft(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ft(this,"caches",{}),ft(this,"types"),this.types={local:en?window.localStorage:this.caches,session:en?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const $r=new Qo;function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},Xm=ze.exports,Zi;function Qm(){return Zi||(Zi=1,(function(e,t){(function(r,n){n(t,e)})(Xm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,w){var _=c.jsonpCallbackFunction||s(),y=h+"_"+_;window[_]=function(b){g({ok:!0,json:function(){return Promise.resolve(b)}}),d&&clearTimeout(d),u(y),o(_)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+_),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){w(new Error("JSONP request to "+a+" timed out")),o(_),u(y),window[_]=function(){o(_)}},p),v.onerror=function(){w(new Error("JSONP request to "+a+" failed")),o(_),u(y),d&&clearTimeout(d)}})}n.exports=l})})(ze,ze.exports)),ze.exports}var t1=Qm();const e1=ta(t1);function r1(e){if(en){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function n1(e=""){const t=e.match(_o);return t?t[0]:""}function ea(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 rn(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 ra(e,t){t=typeof t=="string"?rn(t):t;const r=e.split("?")[0],n=rn(e),i=Object.assign({},n,t),s=ea(i);return s?[r,s].join("?"):e}const Ke=Object.freeze(Object.defineProperty({__proto__:null,append:ra,getCurrentHost:r1,getHost:n1,parse:rn,stringify:ea},Symbol.toStringTag,{value:"Module"}));function na(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Xp(e)(n||{}));const i=ra(e,n);return yield(yield e1(i,t)).json()})}var Or,Xi;function i1(){if(Xi)return Or;Xi=1,Or=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};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 Or}var s1=i1();const o1=ta(s1);function Qi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;o1(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ts={debug:-1,log:0,info:0,warn:1,error:2},a1=function(e,t,r,n){return function(...i){if(t&&ts[t]<=ts[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,u1(i,r))}};function u1(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function c1(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 l1={level:"warn",bizName:"*"};class f1{constructor(t){ft(this,"config"),ft(this,"options"),this.options=V(V({},l1),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=c1(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return a1(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 h1(e){return new f1(e)}const ie=h1({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var p1={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 nn(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Fe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Fe({},s,{expires:-1}))},withAttributes:function(i){return nn(this.converter,Fe({},this.attributes,i))},withConverter:function(i){return nn(Fe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Tn=nn(p1,{path:"/"});function d1(e,t,r){Tn.set(e,t,r)}function g1(e){return Tn.get(e)}function m1(e,t){Tn.remove(e,t)}const jr=Object.freeze(Object.defineProperty({__proto__:null,get:g1,remove:m1,set:d1},Symbol.toStringTag,{value:"Module"}));/**!
|
|
57
57
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/renderer
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.13.
|
|
60
|
+
* @version 0.13.26
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const Dr="0.13.
|
|
62
|
+
*/const Dr="0.13.26";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const es=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],y1=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],v1={String,Number,Boolean,Array,Object,Function,Date},We="VtjPage",Br="VtjHomepage",b1="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(","),w1="component,slot".split(",");function Me(e,t){return e.map(r=>Ge(r)||r.startsWith("/")?r:`${t}${r}`)}function fr(e){return/\.css$/.test(e)}function hr(e){return/\.js$/.test(e)}function _1(e){return/\.json$/.test(e)}function E1(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function S1(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:g,localeLibrary:w})=>{p==null||p.forEach(_=>{hr(_)&&i.push(E1(_,r)),fr(_)&&s.push(_)}),d&&(u.push(d),l[d]=Me(p||[],t),w&&(a[d]=w)),h&&o.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Me(i,t),css:Me(s,t),materials:Me(o,t),libraryExports:u,materialExports:Yd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function x1(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 T1(e=[]){const t=e.filter(n=>fr(n)),r=e.filter(n=>hr(n));return{css:t,js:r}}function R1(e,t){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const _=a.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(a[f]==="@"){const _=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const y=a.substring(_,f).trim(),v=y.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(_,f+1)}),f++;else if(a[f]==="{"){const b=f+1;let E=1;for(f++;f<a.length&&E>0;)a[f]==="{"?E++:a[f]==="}"&&E--,f++;const m=a.substring(_,f),x=a.substring(b,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const w=a.substring(d,f-1);c.push({type:"rule",selector:h,content:w.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.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 a=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
63
63
|
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function ia(e){return Ct(e)?e:JSON.stringify(e)}function pr(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?R1(r,s):r;if(i.prototype.replaceSync){const u=new i;u.id=t,u.replaceSync(o);const l=e.document,a=l.adoptedStyleSheets,c=Array.from(a).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,u]}else{const u=e.document;let l=u.getElementById(t);l?l.innerHTML=o:(l=u.createElement("style"),l.id=t,l.innerHTML=o,u.head.appendChild(l))}}function A1(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pr(window,e,r)})}function sa(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 oa(n,i){return k(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let u=r[t];return u?u.default||u:new Promise((l,a)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[t],u?l(u.default||u):a(null)},f.onerror=p=>{a(p)},o.appendChild(f)}})})}function $1(e){return zt(e)&&Object.getOwnPropertyNames(e.prototype||{}).length===0||zt(e==null?void 0:e.install)}function O1(e){return w1.includes(e)}function j1(e){return b1.includes(e)}function Se(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 xe(e,t,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(e.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
|
|
64
64
|
`)+u;const l=i?`
|
|
65
65
|
${u}
|
|
66
|
-
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(ie.error("parseExpression.error",o,e,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function pt(e,t,r=!1,n=!1,i=!1){var o;const s=xe(e,t,r,n,i);if(typeof s!="function"&&(ie.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return s}function mt(e){return e&&e.type==="JSExpression"}function dt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const D1={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},B1=Symbol("access");class aa{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},D1,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!==tt.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&&($r.save(r,t,{type:"local",prefix:n}),i&&jr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,$r.remove(t,{type:"local",prefix:r}),n&&jr.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):Ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(B1,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=>Pi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Pi(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=$r.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!jr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===We){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(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),zt(i)?(i(),r(!1)):Ct(i)?r(i):r(!1)}}r(!1),yield Ze(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 k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ze(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function C1(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:xn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:na,notify:t,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new aa(V({alert:u},s)):void 0}}function N1(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(V({},e.jsonpOptions),{query:i}));{const i=e.headers?xe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(V({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(me(s,u||{},{data:o})))}}function P1(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function I1(e=[],t=[],r){const n={};for(const i of e)n[i.id]=N1(i,r);for(const i of t)n[i.id]=P1(i,r);return n}function k1(){return k(this,arguments,function*(e=[],t=window){const r=Se(t);r&&(ua(t),e.forEach(n=>M1(r,n)))})}function F1(e,t=window){const r=dt(e.mockTemplate)&&e.mockTemplate.value?pt(e.mockTemplate,{},!0):void 0,n=Se(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){ie.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function M1(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=Ge(r)?new URL(r).pathname:r,s=wn(`(.*)${i}(.*)`),o=tg(i,{decode:decodeURIComponent}),u=xe(n,{},!0);e.mock(s,l=>{var h;const a=Ke.parse(l.url)||{},c=l.body instanceof FormData?Zm(l.body):l.body,f=Ge(l.url)?new URL(l.url).pathname:l.url.split("?")[0],p=(h=o(f))==null?void 0:h.params;Object.assign(l,{data:c,params:p,query:a});try{return e.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ua(e=window){const t=Se(e);t&&(t._mocked={})}class U1{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(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=tr){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&es.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){es.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return pt({type:i,value:s},this)}else return pt(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return xe({type:i,value:s},this)}else return xe(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield Ze(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,tt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,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=V(V({},this.context),t),n=et(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function sn(e){var f,p;const{Vue:t=tr,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new U1({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},V1((f=u.value.props)!=null?f:[],a)),setup(h){var v,w,E,m;a.$props=h,a.props=h,u.value.id&&pr(e.window||window,u.value.id,u.value.css||"",!0),a.state=H1(t,(v=u.value.state)!=null?v:{},a);const d=q1(t,(w=u.value.computed)!=null?w:{},a),g=z1((E=u.value.methods)!=null?E:{},a),b=K1(t,u.value.inject,a);for(const[x,A]of Object.entries(b||{}))b[x]=t.inject(x,A);const _=W1(u.value.dataSources||{},a),y=V(V(V(V({},b),d),g),_);return a.setup(y,t),J1(t,(m=u.value.watch)!=null?m:[],a),{vtj:a}},emits:L1(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?oe(h[0],a,t,o,h):h.map(d=>oe(d,a,t,o,h))}},Y1((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(c),context:a}}function L1(e=[]){return e.map(t=>Ct(t)?t:t.name)}function V1(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>v1[i]):void 0;return e.map(n=>Ct(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(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 H1(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return mt(s)?s=r.__parseExpression(s):dt(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function q1(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function z1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function K1(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=mt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=mt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function W1(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=F1(i);else if(i.ref){const s=t.$apis[i.ref],o=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>k(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function J1(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Y1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ze(0),zt(s)&&s()}),r},{})}const G1=new ug;let Cr=[],Qt={};const Z1=e=>e;function ca(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>hr(u));if(s.length===0||!i)return null;const o=n.filter(u=>fr(u));return o.length&&sa(o,t),yield oa(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function on(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cr.forEach(i=>{delete n.window[i]}),Cr=[]),(i,s,o=tr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.id]||(yield G1.add(s.id,()=>t(s.id)));return u&&(u.name=i,Qt[s.id]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.url]||(yield r(s.url));return u&&(u.name=i,Qt[s.url]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Qt[s.library]:null;return u||(s.library&&Cr.push(s.library),u=Qt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield ca(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function oe(e,t,r=tr,n=Z1,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:g,vHtml:b,others:_}=la(l);if(!s&&(c||f))return null;if(a&&!Q1(a,t))return n0(e,t,r,n,i);const y=(w,E=0)=>{var j,N,L,M;const m=w.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return t0(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Ct(H))return O1(H)||j1(H)?H:(C=(D=m[H])!=null?D:($=o==null?void 0:o.app)==null?void 0:$.component(H))!=null?C:H;if(lt(H)&&e.id){const P=`Loader${e.id}_${E}`;return m[P]||(m[P]=H)}return H})(),A=e0(u,(j=e.props)!=null?j:{},w),U=r0(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return i0(r,e,A,w,n);g&&Object.assign(A,w.__parseExpression(g.value)),h&&(A.style=Object.assign((L=A.style)!=null?L:{},o0(h,w))),b&&Object.assign(A,a0(b,w)),d.forEach(H=>{Object.assign(A,u0(r,H,w))});const S=c0(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${u}_${E}`},F),A),U),S);const I=o?X1(o,_,w):[];return I.length&&(B=r.withDirectives(B,I)),B};return p?h0(p,y,t):y(t)}function X1(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function la(e=[]){const t=e.find(c=>xt(c.name)==="vIf"),r=e.find(c=>xt(c.name)==="vElseIf"),n=e.find(c=>xt(c.name)==="vElse"),i=e.find(c=>xt(c.name)==="vFor"),s=e.find(c=>xt(c.name)==="vShow"),o=e.find(c=>xt(c.name)==="vBind"),u=e.find(c=>xt(c.name)==="vHtml"),l=e.filter(c=>xt(c.name)==="vModel"),a=e.filter(c=>!y1.includes(xt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Q1(e,t){return!!t.__parseExpression(e.value)}function t0(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function e0(e,t,r){const n=an(t,r);return n.ref=r.__ref(e,n.ref),n}function an(e,t){return mt(e)?t.__parseExpression(e):dt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>an(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=an(i,t),r},{}):e}function r0(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=fa(u.modifiers),a=l.find(p=>n.includes(p)),c="on"+Is(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function n0(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=la(u);if(l){if(t.__parseExpression(l.value))return oe(i[o],t,r,n,i,!0);continue}if(a)return oe(i[o],t,r,n,i,!0)}return null}function fa(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function i0(e,t,r,n,i){var l;const{children:s}=t,o=s0(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Ct(s)?e.createTextVNode(s):mt(s)?e.createTextVNode(ia(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>oe(a,n,e,i,s)):null:null}function s0(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:mt(n)?t.__parseExpression(n):n,params:[]}}function o0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function a0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function u0(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
|
|
66
|
+
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(ie.error("parseExpression.error",o,e,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function pt(e,t,r=!1,n=!1,i=!1){var o;const s=xe(e,t,r,n,i);if(typeof s!="function"&&(ie.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return s}function mt(e){return e&&e.type==="JSExpression"}function dt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const D1={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},B1=Symbol("access");class aa{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},D1,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!==tt.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&&($r.save(r,t,{type:"local",prefix:n}),i&&jr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,$r.remove(t,{type:"local",prefix:r}),n&&jr.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):Ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(B1,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=>Pi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Pi(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=$r.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!jr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===We){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(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),zt(i)?(i(),r(!1)):Ct(i)?r(i):r(!1)}}r(!1),yield Ze(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 k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ze(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function C1(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:xn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:na,notify:t,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new aa(V({alert:u},s)):void 0}}function N1(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(V({},e.jsonpOptions),{query:i}));{const i=e.headers?xe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(V({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(me(s,u||{},{data:o})))}}function P1(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function I1(e=[],t=[],r){const n={};for(const i of e)n[i.id]=N1(i,r);for(const i of t)n[i.id]=P1(i,r);return n}function k1(){return k(this,arguments,function*(e=[],t=window){const r=Se(t);r&&(ua(t),e.forEach(n=>M1(r,n)))})}function F1(e,t=window){const r=dt(e.mockTemplate)&&e.mockTemplate.value?pt(e.mockTemplate,{},!0):void 0,n=Se(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){ie.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function M1(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=Ge(r)?new URL(r).pathname:r,s=wn(`(.*)${i}(.*)`),o=tg(i,{decode:decodeURIComponent}),u=xe(n,{},!0);e.mock(s,l=>{var h;const a=Ke.parse(l.url)||{},c=l.body instanceof FormData?Zm(l.body):l.body,f=Ge(l.url)?new URL(l.url).pathname:l.url.split("?")[0],p=(h=o(f))==null?void 0:h.params;Object.assign(l,{data:c,params:p,query:a});try{return e.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ua(e=window){const t=Se(e);t&&(t._mocked={})}class U1{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(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=tr){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&es.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){es.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return pt({type:i,value:s},this)}else return pt(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return xe({type:i,value:s},this)}else return xe(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield Ze(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,tt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,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=V(V({},this.context),t),n=et(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function sn(e){var f,p;const{Vue:t=tr,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new U1({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},V1((f=u.value.props)!=null?f:[],a)),setup(h){var v,b,E,m;a.$props=h,a.props=h,u.value.id&&pr(e.window||window,u.value.id,u.value.css||"",!0),a.state=H1(t,(v=u.value.state)!=null?v:{},a);const d=q1(t,(b=u.value.computed)!=null?b:{},a),g=z1((E=u.value.methods)!=null?E:{},a),w=K1(t,u.value.inject,a);for(const[x,A]of Object.entries(w||{}))w[x]=t.inject(x,A);const _=W1(u.value.dataSources||{},a),y=V(V(V(V({},w),d),g),_);return a.setup(y,t),J1(t,(m=u.value.watch)!=null?m:[],a),{vtj:a}},emits:L1(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?oe(h[0],a,t,o,h):h.map(d=>oe(d,a,t,o,h))}},Y1((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(c),context:a}}function L1(e=[]){return e.map(t=>Ct(t)?t:t.name)}function V1(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>v1[i]):void 0;return e.map(n=>Ct(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(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 H1(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return mt(s)?s=r.__parseExpression(s):dt(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function q1(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function z1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function K1(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=mt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=mt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function W1(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=F1(i);else if(i.ref){const s=t.$apis[i.ref],o=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>k(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function J1(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Y1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ze(0),zt(s)&&s()}),r},{})}const G1=new ug;let Cr=[],Qt={};const Z1=e=>e;function ca(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>hr(u));if(s.length===0||!i)return null;const o=n.filter(u=>fr(u));return o.length&&sa(o,t),yield oa(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function on(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cr.forEach(i=>{delete n.window[i]}),Cr=[]),(i,s,o=tr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.id]||(yield G1.add(s.id,()=>t(s.id)));return u&&(u.name=i,Qt[s.id]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.url]||(yield r(s.url));return u&&(u.name=i,Qt[s.url]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Qt[s.library]:null;return u||(s.library&&Cr.push(s.library),u=Qt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield ca(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function oe(e,t,r=tr,n=Z1,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:g,vHtml:w,others:_}=la(l);if(!s&&(c||f))return null;if(a&&!Q1(a,t))return n0(e,t,r,n,i);const y=(b,E=0)=>{var j,N,L,M;const m=b.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return t0(b,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Ct(H))return O1(H)||j1(H)?H:(C=(D=m[H])!=null?D:($=o==null?void 0:o.app)==null?void 0:$.component(H))!=null?C:H;if(lt(H)&&e.id){const P=`Loader${e.id}_${E}`;return m[P]||(m[P]=H)}return H})(),A=e0(u,(j=e.props)!=null?j:{},b),U=r0(r,(N=e.events)!=null?N:{},b);if(e.name==="slot")return i0(r,e,A,b,n);g&&Object.assign(A,b.__parseExpression(g.value)),h&&(A.style=Object.assign((L=A.style)!=null?L:{},o0(h,b))),w&&Object.assign(A,a0(w,b)),d.forEach(H=>{Object.assign(A,u0(r,H,b))});const S=c0(r,(M=e.children)!=null?M:[],b,n,e),T=b!=null&&b.__id?`data-v-${b.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${u}_${E}`},F),A),U),S);const I=o?X1(o,_,b):[];return I.length&&(B=r.withDirectives(B,I)),B};return p?h0(p,y,t):y(t)}function X1(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function la(e=[]){const t=e.find(c=>xt(c.name)==="vIf"),r=e.find(c=>xt(c.name)==="vElseIf"),n=e.find(c=>xt(c.name)==="vElse"),i=e.find(c=>xt(c.name)==="vFor"),s=e.find(c=>xt(c.name)==="vShow"),o=e.find(c=>xt(c.name)==="vBind"),u=e.find(c=>xt(c.name)==="vHtml"),l=e.filter(c=>xt(c.name)==="vModel"),a=e.filter(c=>!y1.includes(xt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Q1(e,t){return!!t.__parseExpression(e.value)}function t0(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function e0(e,t,r){const n=an(t,r);return n.ref=r.__ref(e,n.ref),n}function an(e,t){return mt(e)?t.__parseExpression(e):dt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>an(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=an(i,t),r},{}):e}function r0(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=fa(u.modifiers),a=l.find(p=>n.includes(p)),c="on"+Is(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function n0(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=la(u);if(l){if(t.__parseExpression(l.value))return oe(i[o],t,r,n,i,!0);continue}if(a)return oe(i[o],t,r,n,i,!0)}return null}function fa(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function i0(e,t,r,n,i){var l;const{children:s}=t,o=s0(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Ct(s)?e.createTextVNode(s):mt(s)?e.createTextVNode(ia(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>oe(a,n,e,i,s)):null:null}function s0(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:mt(n)?t.__parseExpression(n):n,params:[]}}function o0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function a0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function u0(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
|
|
67
67
|
${t.value.value} = v;
|
|
68
|
-
}`:"(v) => {}"},i=r.__parseFunction(n),s=fa(mt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=mt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function c0(e,t,r,n,i){if(!t)return null;if(Ct(t))return{default:()=>t};if(mt(t))return{default:()=>ia(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=l0(t),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=p=>{const h=c.length?Gd(p!=null?p:{},c):o(p,f);return a.map(d=>oe(d,r.__clone(h),e,n,a))},u),{})}return null}function l0(e){const t={};for(const r of e){const n=f0(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 f0(e="default"){return Ct(e)?{name:e,params:[],scope:""}:V({params:[],scope:""},e)}function h0(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>t(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Nr=is({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=S0(),t=Ta(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Sa(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}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?Ir(e,et(V({},t),{key:r})):Ir("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),p0=is({name:"VtjStartupContainer",render(){return Ir("div","page not found!")}});function un(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=un(e,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${e}/${t}/${s}`,children:l&&l.length?un(e,t,l):void 0};n.push(f)}}return n}function Pr(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:r,path:`${o}${s}/${r}`,component:u,meta:et(V(V({title:n},l),i),{__vtj__:r})}}function cn(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=e,l=[];for(const a of n){const{id:c,title:f,dir:p,layout:h,children:d,meta:g}=a;if(p){const b=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...b)}else if(h){const b=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:et(V(V({title:f},o),g),{__vtj__:c}),children:b};l.push(_),l.push(Pr(a,e))}else if(l.push(Pr(a,e)),u===c){const b=Pr(a,e);b.path="",b.name=`home_${c}`,l.push(b)}}return l}function d0(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;o.config.globalProperties.$libs=u,pr(s,"global-css",r||""),c&&n&&g0(n,o,c),y0(o,l,e),!l.access&&e.access&&m0(e.access,o,a,l),v0(o,e),i&&b0(i,o,u)}function g0(e,t,r){const n=r.createPinia();if(t.use(n),dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function m0(e,t,r,n){if(dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),{alert:s,request:o}=n,u=new aa(V({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),t.use(u)}}function y0(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&dt(n)&&n.value){const o=pt(n,{},!1,!1,!0);t.request.setConfig(o(e))}if(i&&dt(i)&&i.value){const o=pt(i,{},!1,!1,!0),u=t.request;u.__unReq&&u.__unReq(),u.__unReq=t.request.useRequest(l=>o(l,e))}if(s&&dt(s)&&s.value){const o=pt(s,{},!1,!1,!0),u=t.request;u.__unRes&&u.__unRes(),u.__unRes=t.request.useResponse(l=>o(l,e))}}function v0(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&dt(r)&&r.value){const s=pt(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,e))}if(n&&dt(n)&&n.value){const s=pt(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,e))}}function b0(e,t,r={}){dt(e)&&e.value&&pt(e,{},!1,!1,!0)(t,r)}function w0(e,t,r){if(!e||!t||!r)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});e.use(l)}}const ha=Symbol("Provider");class _0 extends hg{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:tn,jsonp:na});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"libraryLocales",{});z(this,"libraryLocaleMap",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=tt.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==tt.Design?this.load(u):this.project=u}createMock(r){return(...n)=>k(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){ie.warn("模拟数据模版异常",o)}return(s=Se())==null?void 0:s.mock(i)})}load(r){return k(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:o=[]}=this.project,u=window;u&&(u.CKEDITOR_VERSION=void 0),this.mode===tt.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=I1(s,o,this.adapter),ua(u),k1(s,u),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Se(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:p,materialExports:h,materialMapLibrary:d,libraryLocaleMap:g}=S1(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const b of c){const _=i[b],y=r[b];if(y)s[b]=y;else if(_)r[b]=s[b]=yield _();else{const w=f[b]||[];for(const E of w)fr(E)&&(yield A1(E,Ke.append(E,{v:Dr}))),hr(E)&&(yield Qi(Ke.append(E,{v:Dr})));s[b]=r[b]}const v=g[b];v&&(a[v]=r[v])}if(l==="development"){for(const _ of p)yield Qi(Ke.append(_,{v:Dr}));const b=this.materials||{};for(const _ of h){const y=r[d[_]],v=fg[_];if(v)y&&v.forEach(w=>{o[w]=y[w]});else{const w=b[_]?(yield b[_]()).default:r[_];w&&y&&(w.components||[]).forEach(E=>{o[E.name]=x1(E,y)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:We,component:Nr},p={path:c,name:Br,component:n!=null&&n.homepage?Nr:s.startupComponent||p0,meta:a};if(r.hasRoute(We)&&r.removeRoute(We),r.hasRoute(Br)&&r.removeRoute(Br),i.enableStaticRoute){const h=(n==null?void 0:n.pages)||[];cn({name:l,prefix:c,pages:h,component:Nr,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?r.addRoute(u,d):r.addRoute(d)}),n!=null&&n.homepage||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}install(r){var o,u,l;const{libraryLocaleMap:n,libraryLocales:i}=this,s=r.config.globalProperties.installed||{};for(const[a,c]of Object.entries(this.library))if(!s[a]&&$1(c)){const f=i[n[a]];r.use(c,{locale:f}),s[a]=!0}this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((o=this.project)==null?void 0:o.platform)!=="uniapp"&&this.mode!==tt.Design&&this.initGlobals(((u=this.project)==null?void 0:u.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==tt.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),r.provide(ha,this),r.config.globalProperties.$provider=this,this.options.enhance&&r.use(this.options.enhance,this),this.mode===tt.Design&&(r.config.errorHandler=(a,c,f)=>{const p=c==null?void 0:c.$options.name,h=typeof a=="string"?a:(a==null?void 0:a.message)||(a==null?void 0:a.msg)||"未知错误",d=`[ ${p} ] ${h} ${f}`;console.error("[VTJ Error]:",{err:a,instance:c,info:f},a==null?void 0:a.stack),this.adapter.notify&&this.adapter.notify(d,"组件渲染错误","error")}),r.config.globalProperties.installed=s}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getMenus(r="page",n=""){var i;return un(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(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 k(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:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=on({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return sn(et(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return k(this,null,function*(){var o;const i=this.getFile(r);if(!i)return ie.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===tt.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ie.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return $n(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return $n(()=>k(null,null,function*(){return yield ca(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);d0(r,i)}initI18n(r,n,i){w0(r,n,i)}}function E0(e){const t=new _0(e);return{provider:t,onReady:r=>t.ready(r)}}function S0(e={}){const t=xa(ha,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(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 x0(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(u=>t+u),{css:s,js:o}=T1(i);if(s.length&&sa(s),o.length)return yield oa(o,r).catch(()=>{})})}const pa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},T0=(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:pa}),R0=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:et(V({},pa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function A0(e){return xn({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 $0{constructor(t=tn){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=T0(t),this.uploader=R0(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>_1(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=tn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Qo({type:"local",expired:0,prefix:"__VTJ_"});class O0 extends $0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Jd(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
68
|
+
}`:"(v) => {}"},i=r.__parseFunction(n),s=fa(mt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=mt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function c0(e,t,r,n,i){if(!t)return null;if(Ct(t))return{default:()=>t};if(mt(t))return{default:()=>ia(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=l0(t),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=p=>{const h=c.length?Gd(p!=null?p:{},c):o(p,f);return a.map(d=>oe(d,r.__clone(h),e,n,a))},u),{})}return null}function l0(e){const t={};for(const r of e){const n=f0(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 f0(e="default"){return Ct(e)?{name:e,params:[],scope:""}:V({params:[],scope:""},e)}function h0(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>t(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Nr=is({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=S0(),t=Ta(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Sa(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}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?Ir(e,et(V({},t),{key:r})):Ir("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),p0=is({name:"VtjStartupContainer",render(){return Ir("div","page not found!")}});function un(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=un(e,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${e}/${t}/${s}`,children:l&&l.length?un(e,t,l):void 0};n.push(f)}}return n}function Pr(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:r,path:`${o}${s}/${r}`,component:u,meta:et(V(V({title:n},l),i),{__vtj__:r})}}function cn(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=e,l=[];for(const a of n){const{id:c,title:f,dir:p,layout:h,children:d,meta:g}=a;if(p){const w=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...w)}else if(h){const w=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:et(V(V({title:f},o),g),{__vtj__:c}),children:w};l.push(_),l.push(Pr(a,e))}else if(l.push(Pr(a,e)),u===c){const w=Pr(a,e);w.path="",w.name=`home_${c}`,l.push(w)}}return l}function d0(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;o.config.globalProperties.$libs=u,pr(s,"global-css",r||""),c&&n&&g0(n,o,c),y0(o,l,e),!l.access&&e.access&&m0(e.access,o,a,l),v0(o,e),i&&b0(i,o,u)}function g0(e,t,r){const n=r.createPinia();if(t.use(n),dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function m0(e,t,r,n){if(dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),{alert:s,request:o}=n,u=new aa(V({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),t.use(u)}}function y0(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&dt(n)&&n.value){const o=pt(n,{},!1,!1,!0);t.request.setConfig(o(e))}if(i&&dt(i)&&i.value){const o=pt(i,{},!1,!1,!0),u=t.request;u.__unReq&&u.__unReq(),u.__unReq=t.request.useRequest(l=>o(l,e))}if(s&&dt(s)&&s.value){const o=pt(s,{},!1,!1,!0),u=t.request;u.__unRes&&u.__unRes(),u.__unRes=t.request.useResponse(l=>o(l,e))}}function v0(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&dt(r)&&r.value){const s=pt(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,e))}if(n&&dt(n)&&n.value){const s=pt(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,e))}}function b0(e,t,r={}){dt(e)&&e.value&&pt(e,{},!1,!1,!0)(t,r)}function w0(e,t,r){if(!e||!t||!r)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});e.use(l)}}const ha=Symbol("Provider");class _0 extends hg{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:tn,jsonp:na});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"libraryLocales",{});z(this,"libraryLocaleMap",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=tt.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==tt.Design?this.load(u):this.project=u}createMock(r){return(...n)=>k(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){ie.warn("模拟数据模版异常",o)}return(s=Se())==null?void 0:s.mock(i)})}load(r){return k(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:o=[]}=this.project,u=window;u&&(u.CKEDITOR_VERSION=void 0),this.mode===tt.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=I1(s,o,this.adapter),ua(u),k1(s,u),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Se(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return k(this,null,function*(){var w;const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:p,materialExports:h,materialMapLibrary:d,libraryLocaleMap:g}=S1(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const _ of c){const y=i[_],v=r[_];if(v)s[_]=v;else if(y)r[_]=s[_]=yield y();else{const E=f[_]||[];for(const m of E)fr(m)&&(yield A1(m,Ke.append(m,{v:Dr}))),hr(m)&&(yield Qi(Ke.append(m,{v:Dr})));s[_]=((w=r[_])==null?void 0:w.default)||r[_]}const b=g[_];if(b){const E=i[b];a[b]=E?yield E():r[b]}}if(l==="development"){for(const y of p)yield Qi(Ke.append(y,{v:Dr}));const _=this.materials||{};for(const y of h){const v=r[d[y]],b=(v==null?void 0:v.default)||v,E=fg[y];if(E)b&&E.forEach(m=>{o[m]=b[m]});else{const m=_[y]?(yield _[y]()).default:r[y];m&&b&&(m.components||[]).forEach(x=>{o[x.name]=x1(x,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:We,component:Nr},p={path:c,name:Br,component:n!=null&&n.homepage?Nr:s.startupComponent||p0,meta:a};if(r.hasRoute(We)&&r.removeRoute(We),r.hasRoute(Br)&&r.removeRoute(Br),i.enableStaticRoute){const h=(n==null?void 0:n.pages)||[];cn({name:l,prefix:c,pages:h,component:Nr,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?r.addRoute(u,d):r.addRoute(d)}),n!=null&&n.homepage||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}install(r){var o,u,l;const{libraryLocaleMap:n,libraryLocales:i}=this,s=r.config.globalProperties.installed||{};for(const[a,c]of Object.entries(this.library))if(!s[a]&&$1(c)){const f=i[n[a]];r.use(c,{locale:f}),s[a]=!0}this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((o=this.project)==null?void 0:o.platform)!=="uniapp"&&this.mode!==tt.Design&&this.initGlobals(((u=this.project)==null?void 0:u.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==tt.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),r.provide(ha,this),r.config.globalProperties.$provider=this,this.options.enhance&&r.use(this.options.enhance,this),this.mode===tt.Design&&(r.config.errorHandler=(a,c,f)=>{const p=c==null?void 0:c.$options.name,h=typeof a=="string"?a:(a==null?void 0:a.message)||(a==null?void 0:a.msg)||"未知错误",d=`[ ${p} ] ${h} ${f}`;console.error("[VTJ Error]:",{err:a,instance:c,info:f},a==null?void 0:a.stack),this.adapter.notify&&this.adapter.notify(d,"组件渲染错误","error")}),r.config.globalProperties.installed=s}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getMenus(r="page",n=""){var i;return un(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(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 k(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:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=on({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return sn(et(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return k(this,null,function*(){var o;const i=this.getFile(r);if(!i)return ie.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===tt.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ie.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return $n(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return $n(()=>k(null,null,function*(){return yield ca(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);d0(r,i)}initI18n(r,n,i){w0(r,n,i)}}function E0(e){const t=new _0(e);return{provider:t,onReady:r=>t.ready(r)}}function S0(e={}){const t=xa(ha,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(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 x0(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(u=>t+u),{css:s,js:o}=T1(i);if(s.length&&sa(s),o.length)return yield oa(o,r).catch(()=>{})})}const pa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},T0=(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:pa}),R0=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:et(V({},pa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function A0(e){return xn({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 $0{constructor(t=tn){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=T0(t),this.uploader=R0(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>_1(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=tn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Qo({type:"local",expired:0,prefix:"__VTJ_"});class O0 extends $0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Jd(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
69
69
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
70
70
|
* @name @vtj/uni
|
|
71
71
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
72
|
-
* @version 0.13.
|
|
72
|
+
* @version 0.13.26
|
|
73
73
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
74
|
-
*/const j0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",D0="VTJ",B0="__UNI__1FC118B",C0="VTJ移动跨端项目",N0="1.0.0",P0="100",I0=!1,k0={},F0={enable:!1},M0="3",U0={name:D0,appid:B0,description:C0,versionName:N0,versionCode:P0,transformPx:I0,"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:k0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F0,vueVersion:M0},L0=[],V0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q0={pages:L0,globalStyle:V0,easycom:H0};function z0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},U0,t),pagesJson:Object.assign({},q0,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K0(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J0(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 Y0(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 G0(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 o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Z0(e){var u;const t=G0(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 o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function X0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=J0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Z0(e),f={__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__:W0(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.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__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Q0="4.76";function ty(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},K0(a)),{navigationBar:da(a),isNVue:!1}),compilerVersion:Q0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({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 ey(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=a())==null?void 0:g.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function ny(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,p=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:V({type:"default"},da(i)),isNVue:!1,route:c?c.pagePath:n},s)}function iy(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=ny(n,o,u),a=ry(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function sy(e,t,r=window){pr(r,String(e),t)}function oy(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 ay(e){const t=z0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;X0(t,l),ty(t,l),ey(i,l),iy(r,i,s,o,l),sy(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(oy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j0.includes(n)&&i&&(r[n]=t(i))}),r}function ns(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=rs){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ns(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===rs?"/":r;s.unshift(et(V({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ns(e,f.id),style:{navigationStyle:"custom"}})}return s})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){let t={};e===tt.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 hy=C1({loading:ly,notify:ga}),ma=new O0(A0(ga)),py=fy(),{provider:dy,onReady:gy}=E0({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x0(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=uy(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield cy(e,!0),h=ay({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});gy(()=>my(dy));
|
|
74
|
+
*/const j0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",D0="VTJ",B0="__UNI__1FC118B",C0="VTJ移动跨端项目",N0="1.0.0",P0="100",I0=!1,k0={},F0={enable:!1},M0="3",U0={name:D0,appid:B0,description:C0,versionName:N0,versionCode:P0,transformPx:I0,"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:k0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F0,vueVersion:M0},L0=[],V0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q0={pages:L0,globalStyle:V0,easycom:H0};function z0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},U0,t),pagesJson:Object.assign({},q0,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K0(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J0(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 Y0(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 G0(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 o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Z0(e){var u;const t=G0(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 o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function X0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=J0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Z0(e),f={__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__:W0(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.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__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([w,_])=>{t[w]=_})}const Q0="4.76";function ty(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},K0(a)),{navigationBar:da(a),isNVue:!1}),compilerVersion:Q0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({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 ey(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,w;const f=((w=(g=a())==null?void 0:g.$route)==null?void 0:w.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function ny(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,p=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:V({type:"default"},da(i)),isNVue:!1,route:c?c.pagePath:n},s)}function iy(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=ny(n,o,u),a=ry(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function sy(e,t,r=window){pr(r,String(e),t)}function oy(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 ay(e){const t=z0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;X0(t,l),ty(t,l),ey(i,l),iy(r,i,s,o,l),sy(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(oy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j0.includes(n)&&i&&(r[n]=t(i))}),r}function ns(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=rs){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ns(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===rs?"/":r;s.unshift(et(V({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ns(e,f.id),style:{navigationStyle:"custom"}})}return s})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){let t={};e===tt.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 hy=C1({loading:ly,notify:ga}),ma=new O0(A0(ga)),py=fy(),{provider:dy,onReady:gy}=E0({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x0(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=uy(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield cy(e,!0),h=ay({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});gy(()=>my(dy));
|