@vtj/utils 0.6.14 → 0.6.16
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/cdn/index.js +20 -20
- package/lib/index.js +1477 -0
- package/package.json +9 -14
- package/types/Request.d.ts +5 -1
- package/types/version.d.ts +1 -1
- package/lib/index.cjs +0 -53
- package/lib/index.mjs +0 -6873
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/utils",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.16",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
@@ -9,13 +9,12 @@
|
|
|
9
9
|
"build": "vue-tsc && vite build && pnpm run build:cdn",
|
|
10
10
|
"build:cdn": "vue-tsc && cross-env CDN=true vite build"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
12
|
+
"dependencies": {
|
|
13
13
|
"@types/crypto-js": "~4.1.2",
|
|
14
14
|
"@types/js-cookie": "~3.0.4",
|
|
15
15
|
"@types/lodash-es": "~4.17.8",
|
|
16
16
|
"@types/numeral": "~2.0.3",
|
|
17
|
-
"@
|
|
18
|
-
"@vueuse/core": "~10.4.1",
|
|
17
|
+
"@vueuse/core": "~10.5.0",
|
|
19
18
|
"axios": "~1.5.1",
|
|
20
19
|
"crypto-js": "~4.1.1",
|
|
21
20
|
"dayjs": "~1.11.10",
|
|
@@ -24,22 +23,18 @@
|
|
|
24
23
|
"lodash-es": "~4.17.21",
|
|
25
24
|
"numeral": "~2.0.6"
|
|
26
25
|
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@vtj/cli": "^0.6.16"
|
|
28
|
+
},
|
|
27
29
|
"files": [
|
|
28
30
|
"lib",
|
|
29
31
|
"types",
|
|
30
32
|
"cdn"
|
|
31
33
|
],
|
|
32
|
-
"main": "./lib/index.
|
|
33
|
-
"module": "./lib/index.
|
|
34
|
+
"main": "./lib/index.js",
|
|
35
|
+
"module": "./lib/index.js",
|
|
34
36
|
"types": "./types/index.d.ts",
|
|
35
|
-
"
|
|
36
|
-
".": {
|
|
37
|
-
"types": "./types/index.d.ts",
|
|
38
|
-
"import": "./lib/index.mjs",
|
|
39
|
-
"require": "./lib/index.cjs"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"gitHead": "0a97df9ef59bc6014b3fc6203e4796fb6abb6ad5",
|
|
37
|
+
"gitHead": "bde19bb5a19b865f2a81138e06f519bb2261923a",
|
|
43
38
|
"publishConfig": {
|
|
44
39
|
"access": "public"
|
|
45
40
|
}
|
package/types/Request.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface IRequestSettings {
|
|
|
25
25
|
/**
|
|
26
26
|
* 请求头
|
|
27
27
|
*/
|
|
28
|
-
headers?: RawAxiosRequestHeaders | ((config: AxiosRequestConfig) => RawAxiosRequestHeaders);
|
|
28
|
+
headers?: RawAxiosRequestHeaders | ((config: AxiosRequestConfig, settings: IRequestSettings) => RawAxiosRequestHeaders);
|
|
29
29
|
/**
|
|
30
30
|
* 是否显示 loading
|
|
31
31
|
*/
|
|
@@ -62,6 +62,10 @@ export interface IRequestSettings {
|
|
|
62
62
|
* 请求响应警告执行程序插件
|
|
63
63
|
*/
|
|
64
64
|
skipWarn?: IRequestSkipWarn;
|
|
65
|
+
/**
|
|
66
|
+
* 扩展参数
|
|
67
|
+
*/
|
|
68
|
+
[index: string]: any;
|
|
65
69
|
}
|
|
66
70
|
export interface IRequestOptions extends CreateAxiosDefaults {
|
|
67
71
|
settings?: IRequestSettings;
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.16";
|
package/lib/index.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ks="0.6.14";var Ks=typeof global=="object"&&global&&global.Object===Object&&global;const Gn=Ks;var Ws=typeof self=="object"&&self&&self.Object===Object&&self,Gs=Gn||Ws||Function("return this")();const st=Gs;var Ys=st.Symbol;const ut=Ys;var Yn=Object.prototype,Js=Yn.hasOwnProperty,Zs=Yn.toString,Kt=ut?ut.toStringTag:void 0;function Xs(e){var t=Js.call(e,Kt),r=e[Kt];try{e[Kt]=void 0;var n=!0}catch{}var i=Zs.call(e);return n&&(t?e[Kt]=r:delete e[Kt]),i}var Qs=Object.prototype,to=Qs.toString;function eo(e){return to.call(e)}var ro="[object Null]",no="[object Undefined]",Hr=ut?ut.toStringTag:void 0;function St(e){return e==null?e===void 0?no:ro:Hr&&Hr in Object(e)?Xs(e):eo(e)}function it(e){return e!=null&&typeof e=="object"}var io="[object Symbol]";function _e(e){return typeof e=="symbol"||it(e)&&St(e)==io}function Jn(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 so=Array.isArray;const ft=so;var oo=1/0,Vr=ut?ut.prototype:void 0,qr=Vr?Vr.toString:void 0;function Zn(e){if(typeof e=="string")return e;if(ft(e))return Jn(e,Zn)+"";if(_e(e))return qr?qr.call(e):"";var t=e+"";return t=="0"&&1/e==-oo?"-0":t}var ao=/\s/;function uo(e){for(var t=e.length;t--&&ao.test(e.charAt(t)););return t}var fo=/^\s+/;function co(e){return e&&e.slice(0,uo(e)+1).replace(fo,"")}function Q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zr=0/0,lo=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,po=/^0o[0-7]+$/i,go=parseInt;function kr(e){if(typeof e=="number")return e;if(_e(e))return zr;if(Q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=co(e);var r=ho.test(e);return r||po.test(e)?go(e.slice(2),r?2:8):lo.test(e)?zr:+e}function Xn(e){return e}var mo="[object AsyncFunction]",yo="[object Function]",vo="[object GeneratorFunction]",bo="[object Proxy]";function gr(e){if(!Q(e))return!1;var t=St(e);return t==yo||t==vo||t==mo||t==bo}var wo=st["__core-js_shared__"];const Ie=wo;var Kr=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function So(e){return!!Kr&&Kr in e}var To=Function.prototype,Eo=To.toString;function At(e){if(e!=null){try{return Eo.call(e)}catch{}try{return e+""}catch{}}return""}var xo=/[\\^$.*+?()[\]{}|]/g,_o=/^\[object .+?Constructor\]$/,Oo=Function.prototype,Ao=Object.prototype,Ro=Oo.toString,Do=Ao.hasOwnProperty,$o=RegExp("^"+Ro.call(Do).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bo(e){if(!Q(e)||So(e))return!1;var t=gr(e)?$o:_o;return t.test(At(e))}function Co(e,t){return e?.[t]}function Rt(e,t){var r=Co(e,t);return Bo(r)?r:void 0}var Po=Rt(st,"WeakMap");const Ge=Po;var Wr=Object.create,No=function(){function e(){}return function(t){if(!Q(t))return{};if(Wr)return Wr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Mo=No;function Qn(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 ti(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Io=800,Fo=16,jo=Date.now;function Lo(e){var t=0,r=0;return function(){var n=jo(),i=Fo-(n-r);if(r=n,i>0){if(++t>=Io)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Uo(e){return function(){return e}}var Ho=function(){try{var e=Rt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const we=Ho;var Vo=we?function(e,t){return we(e,"toString",{configurable:!0,enumerable:!1,value:Uo(t),writable:!0})}:Xn;const qo=Vo;var zo=Lo(qo);const ko=zo;function Ko(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Wo=9007199254740991,Go=/^(?:0|[1-9]\d*)$/;function mr(e,t){var r=typeof e;return t=t??Wo,!!t&&(r=="number"||r!="symbol"&&Go.test(e))&&e>-1&&e%1==0&&e<t}function yr(e,t,r){t=="__proto__"&&we?we(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Lt(e,t){return e===t||e!==e&&t!==t}var Yo=Object.prototype,Jo=Yo.hasOwnProperty;function vr(e,t,r){var n=e[t];(!(Jo.call(e,t)&&Lt(n,r))||r===void 0&&!(t in e))&&yr(e,t,r)}function Ut(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),i?yr(r,a,c):vr(r,a,c)}return r}var Gr=Math.max;function Zo(e,t,r){return t=Gr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Gr(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),Qn(e,this,a)}}function ei(e,t){return ko(Zo(e,t,Xn),e+"")}var Xo=9007199254740991;function ri(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xo}function Oe(e){return e!=null&&ri(e.length)&&!gr(e)}function ni(e,t,r){if(!Q(r))return!1;var n=typeof t;return(n=="number"?Oe(r)&&mr(t,r.length):n=="string"&&t in r)?Lt(r[t],e):!1}function ii(e){return ei(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&&ni(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var Qo=Object.prototype;function br(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Qo;return e===r}function ta(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ea="[object Arguments]";function Yr(e){return it(e)&&St(e)==ea}var si=Object.prototype,ra=si.hasOwnProperty,na=si.propertyIsEnumerable,ia=Yr(function(){return arguments}())?Yr:function(e){return it(e)&&ra.call(e,"callee")&&!na.call(e,"callee")};const Ye=ia;function sa(){return!1}var oi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jr=oi&&typeof module=="object"&&module&&!module.nodeType&&module,oa=Jr&&Jr.exports===oi,Zr=oa?st.Buffer:void 0,aa=Zr?Zr.isBuffer:void 0,ua=aa||sa;const Zt=ua;var fa="[object Arguments]",ca="[object Array]",la="[object Boolean]",ha="[object Date]",da="[object Error]",pa="[object Function]",ga="[object Map]",ma="[object Number]",ya="[object Object]",va="[object RegExp]",ba="[object Set]",wa="[object String]",Sa="[object WeakMap]",Ta="[object ArrayBuffer]",Ea="[object DataView]",xa="[object Float32Array]",_a="[object Float64Array]",Oa="[object Int8Array]",Aa="[object Int16Array]",Ra="[object Int32Array]",Da="[object Uint8Array]",$a="[object Uint8ClampedArray]",Ba="[object Uint16Array]",Ca="[object Uint32Array]",k={};k[xa]=k[_a]=k[Oa]=k[Aa]=k[Ra]=k[Da]=k[$a]=k[Ba]=k[Ca]=!0;k[fa]=k[ca]=k[Ta]=k[la]=k[Ea]=k[ha]=k[da]=k[pa]=k[ga]=k[ma]=k[ya]=k[va]=k[ba]=k[wa]=k[Sa]=!1;function Pa(e){return it(e)&&ri(e.length)&&!!k[St(e)]}function wr(e){return function(t){return e(t)}}var ai=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jt=ai&&typeof module=="object"&&module&&!module.nodeType&&module,Na=Jt&&Jt.exports===ai,Fe=Na&&Gn.process,Ma=function(){try{var e=Jt&&Jt.require&&Jt.require("util").types;return e||Fe&&Fe.binding&&Fe.binding("util")}catch{}}();const It=Ma;var Xr=It&&It.isTypedArray,Ia=Xr?wr(Xr):Pa;const Sr=Ia;var Fa=Object.prototype,ja=Fa.hasOwnProperty;function ui(e,t){var r=ft(e),n=!r&&Ye(e),i=!r&&!n&&Zt(e),s=!r&&!n&&!i&&Sr(e),o=r||n||i||s,a=o?ta(e.length,String):[],c=a.length;for(var u in e)(t||ja.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||mr(u,c)))&&a.push(u);return a}function fi(e,t){return function(r){return e(t(r))}}var La=fi(Object.keys,Object);const Ua=La;var Ha=Object.prototype,Va=Ha.hasOwnProperty;function qa(e){if(!br(e))return Ua(e);var t=[];for(var r in Object(e))Va.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ae(e){return Oe(e)?ui(e):qa(e)}function za(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ka=Object.prototype,Ka=ka.hasOwnProperty;function Wa(e){if(!Q(e))return za(e);var t=br(e),r=[];for(var n in e)n=="constructor"&&(t||!Ka.call(e,n))||r.push(n);return r}function Ht(e){return Oe(e)?ui(e,!0):Wa(e)}var Ga=ii(function(e,t,r,n){Ut(t,Ht(t),e,n)});const Qr=Ga;var Ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ja=/^\w*$/;function Za(e,t){if(ft(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_e(e)?!0:Ja.test(e)||!Ya.test(e)||t!=null&&e in Object(t)}var Xa=Rt(Object,"create");const Xt=Xa;function Qa(){this.__data__=Xt?Xt(null):{},this.size=0}function tu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var eu="__lodash_hash_undefined__",ru=Object.prototype,nu=ru.hasOwnProperty;function iu(e){var t=this.__data__;if(Xt){var r=t[e];return r===eu?void 0:r}return nu.call(t,e)?t[e]:void 0}var su=Object.prototype,ou=su.hasOwnProperty;function au(e){var t=this.__data__;return Xt?t[e]!==void 0:ou.call(t,e)}var uu="__lodash_hash_undefined__";function fu(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xt&&t===void 0?uu:t,this}function Ot(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])}}Ot.prototype.clear=Qa;Ot.prototype.delete=tu;Ot.prototype.get=iu;Ot.prototype.has=au;Ot.prototype.set=fu;function cu(){this.__data__=[],this.size=0}function Re(e,t){for(var r=e.length;r--;)if(Lt(e[r][0],t))return r;return-1}var lu=Array.prototype,hu=lu.splice;function du(e){var t=this.__data__,r=Re(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hu.call(t,r,1),--this.size,!0}function pu(e){var t=this.__data__,r=Re(t,e);return r<0?void 0:t[r][1]}function gu(e){return Re(this.__data__,e)>-1}function mu(e,t){var r=this.__data__,n=Re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,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=cu;dt.prototype.delete=du;dt.prototype.get=pu;dt.prototype.has=gu;dt.prototype.set=mu;var yu=Rt(st,"Map");const Qt=yu;function vu(){this.size=0,this.__data__={hash:new Ot,map:new(Qt||dt),string:new Ot}}function bu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function De(e,t){var r=e.__data__;return bu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function wu(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t}function Su(e){return De(this,e).get(e)}function Tu(e){return De(this,e).has(e)}function Eu(e,t){var r=De(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function pt(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])}}pt.prototype.clear=vu;pt.prototype.delete=wu;pt.prototype.get=Su;pt.prototype.has=Tu;pt.prototype.set=Eu;var xu="Expected a function";function Tr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xu);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(Tr.Cache||pt),r}Tr.Cache=pt;var _u=500;function Ou(e){var t=Tr(e,function(n){return r.size===_u&&r.clear(),n}),r=t.cache;return t}var Au=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ru=/\\(\\)?/g,Du=Ou(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Au,function(r,n,i,s){t.push(i?s.replace(Ru,"$1"):n||r)}),t});const $u=Du;function Dt(e){return e==null?"":Zn(e)}function ci(e,t){return ft(e)?e:Za(e,t)?[e]:$u(Dt(e))}var Bu=1/0;function li(e){if(typeof e=="string"||_e(e))return e;var t=e+"";return t=="0"&&1/e==-Bu?"-0":t}function Cu(e,t){t=ci(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[li(t[r++])];return r&&r==n?e:void 0}function Pu(e,t,r){var n=e==null?void 0:Cu(e,t);return n===void 0?r:n}function hi(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Nu=fi(Object.getPrototypeOf,Object);const Er=Nu;var Mu="[object Object]",Iu=Function.prototype,Fu=Object.prototype,di=Iu.toString,ju=Fu.hasOwnProperty,Lu=di.call(Object);function xr(e){if(!it(e)||St(e)!=Mu)return!1;var t=Er(e);if(t===null)return!0;var r=ju.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&di.call(r)==Lu}var Uu="[object DOMException]",Hu="[object Error]";function pi(e){if(!it(e))return!1;var t=St(e);return t==Hu||t==Uu||typeof e.message=="string"&&typeof e.name=="string"&&!xr(e)}var Vu=ei(function(e,t){try{return Qn(e,void 0,t)}catch(r){return pi(r)?r:new Error(r)}});const qu=Vu;function zu(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 ku(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:zu(e,t,r)}var Ku="\\ud800-\\udfff",Wu="\\u0300-\\u036f",Gu="\\ufe20-\\ufe2f",Yu="\\u20d0-\\u20ff",Ju=Wu+Gu+Yu,Zu="\\ufe0e\\ufe0f",Xu="\\u200d",Qu=RegExp("["+Xu+Ku+Ju+Zu+"]");function gi(e){return Qu.test(e)}function tf(e){return e.split("")}var mi="\\ud800-\\udfff",ef="\\u0300-\\u036f",rf="\\ufe20-\\ufe2f",nf="\\u20d0-\\u20ff",sf=ef+rf+nf,of="\\ufe0e\\ufe0f",af="["+mi+"]",Je="["+sf+"]",Ze="\\ud83c[\\udffb-\\udfff]",uf="(?:"+Je+"|"+Ze+")",yi="[^"+mi+"]",vi="(?:\\ud83c[\\udde6-\\uddff]){2}",bi="[\\ud800-\\udbff][\\udc00-\\udfff]",ff="\\u200d",wi=uf+"?",Si="["+of+"]?",cf="(?:"+ff+"(?:"+[yi,vi,bi].join("|")+")"+Si+wi+")*",lf=Si+wi+cf,hf="(?:"+[yi+Je+"?",Je,vi,bi,af].join("|")+")",df=RegExp(Ze+"(?="+Ze+")|"+hf+lf,"g");function pf(e){return e.match(df)||[]}function gf(e){return gi(e)?pf(e):tf(e)}function Ti(e){return function(t){t=Dt(t);var r=gi(t)?gf(t):void 0,n=r?r[0]:t.charAt(0),i=r?ku(r,1).join(""):t.slice(1);return n[e]()+i}}var mf=Ti("toUpperCase");const _r=mf;function yf(e){return _r(Dt(e).toLowerCase())}function vf(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function Ei(e){return function(t){return e?.[t]}}var bf={À:"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"},wf=Ei(bf);const Sf=wf;var Tf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ef="\\u0300-\\u036f",xf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",Of=Ef+xf+_f,Af="["+Of+"]",Rf=RegExp(Af,"g");function Df(e){return e=Dt(e),e&&e.replace(Tf,Sf).replace(Rf,"")}var $f=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bf(e){return e.match($f)||[]}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 Pf(e){return Cf.test(e)}var xi="\\ud800-\\udfff",Nf="\\u0300-\\u036f",Mf="\\ufe20-\\ufe2f",If="\\u20d0-\\u20ff",Ff=Nf+Mf+If,_i="\\u2700-\\u27bf",Oi="a-z\\xdf-\\xf6\\xf8-\\xff",jf="\\xac\\xb1\\xd7\\xf7",Lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Uf="\\u2000-\\u206f",Hf=" \\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",Ai="A-Z\\xc0-\\xd6\\xd8-\\xde",Vf="\\ufe0e\\ufe0f",Ri=jf+Lf+Uf+Hf,Di="['’]",tn="["+Ri+"]",qf="["+Ff+"]",$i="\\d+",zf="["+_i+"]",Bi="["+Oi+"]",Ci="[^"+xi+Ri+$i+_i+Oi+Ai+"]",kf="\\ud83c[\\udffb-\\udfff]",Kf="(?:"+qf+"|"+kf+")",Wf="[^"+xi+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ni="[\\ud800-\\udbff][\\udc00-\\udfff]",Pt="["+Ai+"]",Gf="\\u200d",en="(?:"+Bi+"|"+Ci+")",Yf="(?:"+Pt+"|"+Ci+")",rn="(?:"+Di+"(?:d|ll|m|re|s|t|ve))?",nn="(?:"+Di+"(?:D|LL|M|RE|S|T|VE))?",Mi=Kf+"?",Ii="["+Vf+"]?",Jf="(?:"+Gf+"(?:"+[Wf,Pi,Ni].join("|")+")"+Ii+Mi+")*",Zf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qf=Ii+Mi+Jf,tc="(?:"+[zf,Pi,Ni].join("|")+")"+Qf,ec=RegExp([Pt+"?"+Bi+"+"+rn+"(?="+[tn,Pt,"$"].join("|")+")",Yf+"+"+nn+"(?="+[tn,Pt+en,"$"].join("|")+")",Pt+"?"+en+"+"+rn,Pt+"+"+nn,Xf,Zf,$i,tc].join("|"),"g");function rc(e){return e.match(ec)||[]}function nc(e,t,r){return e=Dt(e),t=r?void 0:t,t===void 0?Pf(e)?rc(e):Bf(e):e.match(t)||[]}var ic="['’]",sc=RegExp(ic,"g");function Fi(e){return function(t){return vf(nc(Df(t).replace(sc,"")),e,"")}}var oc=Fi(function(e,t,r){return t=t.toLowerCase(),e+(r?yf(t):t)});const ji=oc;function ac(){this.__data__=new dt,this.size=0}function uc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function fc(e){return this.__data__.get(e)}function cc(e){return this.__data__.has(e)}var lc=200;function hc(e,t){var r=this.__data__;if(r instanceof dt){var n=r.__data__;if(!Qt||n.length<lc-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new pt(n)}return r.set(e,t),this.size=r.size,this}function at(e){var t=this.__data__=new dt(e);this.size=t.size}at.prototype.clear=ac;at.prototype.delete=uc;at.prototype.get=fc;at.prototype.has=cc;at.prototype.set=hc;function dc(e,t){return e&&Ut(t,Ae(t),e)}function pc(e,t){return e&&Ut(t,Ht(t),e)}var Li=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sn=Li&&typeof module=="object"&&module&&!module.nodeType&&module,gc=sn&&sn.exports===Li,on=gc?st.Buffer:void 0,an=on?on.allocUnsafe:void 0;function Ui(e,t){if(t)return e.slice();var r=e.length,n=an?an(r):new e.constructor(r);return e.copy(n),n}function mc(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 Hi(){return[]}var yc=Object.prototype,vc=yc.propertyIsEnumerable,un=Object.getOwnPropertySymbols,bc=un?function(e){return e==null?[]:(e=Object(e),mc(un(e),function(t){return vc.call(e,t)}))}:Hi;const Or=bc;function wc(e,t){return Ut(e,Or(e),t)}var Sc=Object.getOwnPropertySymbols,Tc=Sc?function(e){for(var t=[];e;)hi(t,Or(e)),e=Er(e);return t}:Hi;const Vi=Tc;function Ec(e,t){return Ut(e,Vi(e),t)}function qi(e,t,r){var n=t(e);return ft(e)?n:hi(n,r(e))}function Xe(e){return qi(e,Ae,Or)}function xc(e){return qi(e,Ht,Vi)}var _c=Rt(st,"DataView");const Qe=_c;var Oc=Rt(st,"Promise");const tr=Oc;var Ac=Rt(st,"Set");const er=Ac;var fn="[object Map]",Rc="[object Object]",cn="[object Promise]",ln="[object Set]",hn="[object WeakMap]",dn="[object DataView]",Dc=At(Qe),$c=At(Qt),Bc=At(tr),Cc=At(er),Pc=At(Ge),_t=St;(Qe&&_t(new Qe(new ArrayBuffer(1)))!=dn||Qt&&_t(new Qt)!=fn||tr&&_t(tr.resolve())!=cn||er&&_t(new er)!=ln||Ge&&_t(new Ge)!=hn)&&(_t=function(e){var t=St(e),r=t==Rc?e.constructor:void 0,n=r?At(r):"";if(n)switch(n){case Dc:return dn;case $c:return fn;case Bc:return cn;case Cc:return ln;case Pc:return hn}return t});const te=_t;var Nc=Object.prototype,Mc=Nc.hasOwnProperty;function Ic(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Mc.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Fc=st.Uint8Array;const Se=Fc;function Ar(e){var t=new e.constructor(e.byteLength);return new Se(t).set(new Se(e)),t}function jc(e,t){var r=t?Ar(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Lc=/\w*$/;function Uc(e){var t=new e.constructor(e.source,Lc.exec(e));return t.lastIndex=e.lastIndex,t}var pn=ut?ut.prototype:void 0,gn=pn?pn.valueOf:void 0;function Hc(e){return gn?Object(gn.call(e)):{}}function zi(e,t){var r=t?Ar(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Vc="[object Boolean]",qc="[object Date]",zc="[object Map]",kc="[object Number]",Kc="[object RegExp]",Wc="[object Set]",Gc="[object String]",Yc="[object Symbol]",Jc="[object ArrayBuffer]",Zc="[object DataView]",Xc="[object Float32Array]",Qc="[object Float64Array]",tl="[object Int8Array]",el="[object Int16Array]",rl="[object Int32Array]",nl="[object Uint8Array]",il="[object Uint8ClampedArray]",sl="[object Uint16Array]",ol="[object Uint32Array]";function al(e,t,r){var n=e.constructor;switch(t){case Jc:return Ar(e);case Vc:case qc:return new n(+e);case Zc:return jc(e,r);case Xc:case Qc:case tl:case el:case rl:case nl:case il:case sl:case ol:return zi(e,r);case zc:return new n;case kc:case Gc:return new n(e);case Kc:return Uc(e);case Wc:return new n;case Yc:return Hc(e)}}function ki(e){return typeof e.constructor=="function"&&!br(e)?Mo(Er(e)):{}}var ul="[object Map]";function fl(e){return it(e)&&te(e)==ul}var mn=It&&It.isMap,cl=mn?wr(mn):fl;const ll=cl;var hl="[object Set]";function dl(e){return it(e)&&te(e)==hl}var yn=It&&It.isSet,pl=yn?wr(yn):dl;const gl=pl;var ml=1,yl=2,vl=4,Ki="[object Arguments]",bl="[object Array]",wl="[object Boolean]",Sl="[object Date]",Tl="[object Error]",Wi="[object Function]",El="[object GeneratorFunction]",xl="[object Map]",_l="[object Number]",Gi="[object Object]",Ol="[object RegExp]",Al="[object Set]",Rl="[object String]",Dl="[object Symbol]",$l="[object WeakMap]",Bl="[object ArrayBuffer]",Cl="[object DataView]",Pl="[object Float32Array]",Nl="[object Float64Array]",Ml="[object Int8Array]",Il="[object Int16Array]",Fl="[object Int32Array]",jl="[object Uint8Array]",Ll="[object Uint8ClampedArray]",Ul="[object Uint16Array]",Hl="[object Uint32Array]",z={};z[Ki]=z[bl]=z[Bl]=z[Cl]=z[wl]=z[Sl]=z[Pl]=z[Nl]=z[Ml]=z[Il]=z[Fl]=z[xl]=z[_l]=z[Gi]=z[Ol]=z[Al]=z[Rl]=z[Dl]=z[jl]=z[Ll]=z[Ul]=z[Hl]=!0;z[Tl]=z[Wi]=z[$l]=!1;function pe(e,t,r,n,i,s){var o,a=t&ml,c=t&yl,u=t&vl;if(r&&(o=i?r(e,n,i,s):r(e)),o!==void 0)return o;if(!Q(e))return e;var f=ft(e);if(f){if(o=Ic(e),!a)return ti(e,o)}else{var l=te(e),p=l==Wi||l==El;if(Zt(e))return Ui(e,a);if(l==Gi||l==Ki||p&&!i){if(o=c||p?{}:ki(e),!a)return c?Ec(e,pc(o,e)):wc(e,dc(o,e))}else{if(!z[l])return i?e:{};o=al(e,l,a)}}s||(s=new at);var h=s.get(e);if(h)return h;s.set(e,o),gl(e)?e.forEach(function(y){o.add(pe(y,t,r,y,e,s))}):ll(e)&&e.forEach(function(y,A){o.set(A,pe(y,t,r,A,e,s))});var d=u?c?xc:Xe:c?Ht:Ae,g=f?void 0:d(e);return Ko(g||e,function(y,A){g&&(A=y,y=e[A]),vr(o,A,pe(y,t,r,A,e,s))}),o}var Vl=1,ql=4;function zl(e){return pe(e,Vl|ql)}var kl="__lodash_hash_undefined__";function Kl(e){return this.__data__.set(e,kl),this}function Wl(e){return this.__data__.has(e)}function Te(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new pt;++t<r;)this.add(e[t])}Te.prototype.add=Te.prototype.push=Kl;Te.prototype.has=Wl;function Gl(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Yl(e,t){return e.has(t)}var Jl=1,Zl=2;function Yi(e,t,r,n,i,s){var o=r&Jl,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var l=-1,p=!0,h=r&Zl?new Te:void 0;for(s.set(e,t),s.set(t,e);++l<a;){var d=e[l],g=t[l];if(n)var y=o?n(g,d,l,t,e,s):n(d,g,l,e,t,s);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!Gl(t,function(A,m){if(!Yl(h,m)&&(d===A||i(d,A,r,n,s)))return h.push(m)})){p=!1;break}}else if(!(d===g||i(d,g,r,n,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Xl(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Ql(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var th=1,eh=2,rh="[object Boolean]",nh="[object Date]",ih="[object Error]",sh="[object Map]",oh="[object Number]",ah="[object RegExp]",uh="[object Set]",fh="[object String]",ch="[object Symbol]",lh="[object ArrayBuffer]",hh="[object DataView]",vn=ut?ut.prototype:void 0,je=vn?vn.valueOf:void 0;function dh(e,t,r,n,i,s,o){switch(r){case hh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lh:return!(e.byteLength!=t.byteLength||!s(new Se(e),new Se(t)));case rh:case nh:case oh:return Lt(+e,+t);case ih:return e.name==t.name&&e.message==t.message;case ah:case fh:return e==t+"";case sh:var a=Xl;case uh:var c=n&th;if(a||(a=Ql),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=eh,o.set(e,t);var f=Yi(a(e),a(t),n,i,s,o);return o.delete(e),f;case ch:if(je)return je.call(e)==je.call(t)}return!1}var ph=1,gh=Object.prototype,mh=gh.hasOwnProperty;function yh(e,t,r,n,i,s){var o=r&ph,a=Xe(e),c=a.length,u=Xe(t),f=u.length;if(c!=f&&!o)return!1;for(var l=c;l--;){var p=a[l];if(!(o?p in t:mh.call(t,p)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);for(var y=o;++l<c;){p=a[l];var A=e[p],m=t[p];if(n)var T=o?n(m,A,p,t,e,s):n(A,m,p,e,t,s);if(!(T===void 0?A===m||i(A,m,r,n,s):T)){g=!1;break}y||(y=p=="constructor")}if(g&&!y){var O=e.constructor,R=t.constructor;O!=R&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof R=="function"&&R instanceof R)&&(g=!1)}return s.delete(e),s.delete(t),g}var vh=1,bn="[object Arguments]",wn="[object Array]",se="[object Object]",bh=Object.prototype,Sn=bh.hasOwnProperty;function wh(e,t,r,n,i,s){var o=ft(e),a=ft(t),c=o?wn:te(e),u=a?wn:te(t);c=c==bn?se:c,u=u==bn?se:u;var f=c==se,l=u==se,p=c==u;if(p&&Zt(e)){if(!Zt(t))return!1;o=!0,f=!1}if(p&&!f)return s||(s=new at),o||Sr(e)?Yi(e,t,r,n,i,s):dh(e,t,c,r,n,i,s);if(!(r&vh)){var h=f&&Sn.call(e,"__wrapped__"),d=l&&Sn.call(t,"__wrapped__");if(h||d){var g=h?e.value():e,y=d?t.value():t;return s||(s=new at),i(g,y,r,n,s)}}return p?(s||(s=new at),yh(e,t,r,n,i,s)):!1}function Ji(e,t,r,n,i){return e===t?!0:e==null||t==null||!it(e)&&!it(t)?e!==e&&t!==t:wh(e,t,r,n,Ji,i)}function Sh(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var c=o[e?a:++i];if(r(s[c],c,s)===!1)break}return t}}var Th=Sh();const Eh=Th;var xh=function(){return st.Date.now()};const Le=xh;var _h="Expected a function",Oh=Math.max,Ah=Math.min;function Rr(e,t,r){var n,i,s,o,a,c,u=0,f=!1,l=!1,p=!0;if(typeof e!="function")throw new TypeError(_h);t=kr(t)||0,Q(r)&&(f=!!r.leading,l="maxWait"in r,s=l?Oh(kr(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function h(w){var P=n,H=i;return n=i=void 0,u=w,o=e.apply(H,P),o}function d(w){return u=w,a=setTimeout(A,t),f?h(w):o}function g(w){var P=w-c,H=w-u,I=t-P;return l?Ah(I,s-H):I}function y(w){var P=w-c,H=w-u;return c===void 0||P>=t||P<0||l&&H>=s}function A(){var w=Le();if(y(w))return m(w);a=setTimeout(A,g(w))}function m(w){return a=void 0,p&&n?h(w):(n=i=void 0,o)}function T(){a!==void 0&&clearTimeout(a),u=0,n=c=i=a=void 0}function O(){return a===void 0?o:m(Le())}function R(){var w=Le(),P=y(w);if(n=arguments,i=this,c=w,P){if(a===void 0)return d(c);if(l)return clearTimeout(a),a=setTimeout(A,t),h(c)}return a===void 0&&(a=setTimeout(A,t)),o}return R.cancel=T,R.flush=O,R}function rr(e,t,r){(r!==void 0&&!Lt(e[t],r)||r===void 0&&!(t in e))&&yr(e,t,r)}function Rh(e){return it(e)&&Oe(e)}function nr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Dh(e){return Ut(e,Ht(e))}function $h(e,t,r,n,i,s,o){var a=nr(e,r),c=nr(t,r),u=o.get(c);if(u){rr(e,r,u);return}var f=s?s(a,c,r+"",e,t,o):void 0,l=f===void 0;if(l){var p=ft(c),h=!p&&Zt(c),d=!p&&!h&&Sr(c);f=c,p||h||d?ft(a)?f=a:Rh(a)?f=ti(a):h?(l=!1,f=Ui(c,!0)):d?(l=!1,f=zi(c,!0)):f=[]:xr(c)||Ye(c)?(f=a,Ye(a)?f=Dh(a):(!Q(a)||gr(a))&&(f=ki(c))):l=!1}l&&(o.set(c,f),i(f,c,n,s,o),o.delete(c)),rr(e,r,f)}function Zi(e,t,r,n,i){e!==t&&Eh(t,function(s,o){if(i||(i=new at),Q(s))$h(e,t,o,r,Zi,n,i);else{var a=n?n(nr(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),rr(e,o,a)}},Ht)}var Bh={"&":"&","<":"<",">":">",'"':""","'":"'"},Ch=Ei(Bh);const Ph=Ch;var Xi=/[&<>"']/g,Nh=RegExp(Xi.source);function Mh(e){return e=Dt(e),e&&Nh.test(e)?e.replace(Xi,Ph):e}function Ih(e,t){return Jn(t,function(r){return e[r]})}function Fh(e,t){return Ji(e,t)}var jh=Fi(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const Lh=jh;var Uh=Ti("toLowerCase");const Hh=Uh;var Vh=ii(function(e,t,r){Zi(e,t,r)});const Gt=Vh;function qh(e,t,r,n){if(!Q(e))return e;t=ci(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var c=li(t[i]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var f=a[c];u=n?n(f,c,a):void 0,u===void 0&&(u=Q(f)?f:mr(t[i+1])?[]:{})}vr(a,c,u),a=a[c]}return e}function zh(e,t,r){return e==null?e:qh(e,t,r)}var Qi=Object.prototype,kh=Qi.hasOwnProperty;function Tn(e,t,r,n){return e===void 0||Lt(e,Qi[r])&&!kh.call(n,r)?t:e}var Kh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Wh(e){return"\\"+Kh[e]}var Gh=/<%=([\s\S]+?)%>/g;const ts=Gh;var Yh=/<%-([\s\S]+?)%>/g;const Jh=Yh;var Zh=/<%([\s\S]+?)%>/g;const Xh=Zh;var Qh={escape:Jh,evaluate:Xh,interpolate:ts,variable:"",imports:{_:{escape:Mh}}};const En=Qh;var td="Invalid `variable` option passed into `_.template`",ed=/\b__p \+= '';/g,rd=/\b(__p \+=) '' \+/g,nd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,id=/[()=,{}\[\]\/\s]/,sd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oe=/($^)/,od=/['\n\r\u2028\u2029\\]/g,ad=Object.prototype,xn=ad.hasOwnProperty;function Dr(e,t,r){var n=En.imports._.templateSettings||En;r&&ni(e,t,r)&&(t=void 0),e=Dt(e),t=Qr({},t,n,Tn);var i=Qr({},t.imports,n.imports,Tn),s=Ae(i),o=Ih(i,s),a,c,u=0,f=t.interpolate||oe,l="__p += '",p=RegExp((t.escape||oe).source+"|"+f.source+"|"+(f===ts?sd:oe).source+"|"+(t.evaluate||oe).source+"|$","g"),h=xn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
2
|
-
`:"";e.replace(p,function(y,A,m,T,O,R){return m||(m=T),l+=e.slice(u,R).replace(od,Wh),A&&(a=!0,l+=`' +
|
|
3
|
-
__e(`+A+`) +
|
|
4
|
-
'`),O&&(c=!0,l+=`';
|
|
5
|
-
`+O+`;
|
|
6
|
-
__p += '`),m&&(l+=`' +
|
|
7
|
-
((__t = (`+m+`)) == null ? '' : __t) +
|
|
8
|
-
'`),u=R+y.length,y}),l+=`';
|
|
9
|
-
`;var d=xn.call(t,"variable")&&t.variable;if(!d)l=`with (obj) {
|
|
10
|
-
`+l+`
|
|
11
|
-
}
|
|
12
|
-
`;else if(id.test(d))throw new Error(td);l=(c?l.replace(ed,""):l).replace(rd,"$1").replace(nd,"$1;"),l="function("+(d||"obj")+`) {
|
|
13
|
-
`+(d?"":`obj || (obj = {});
|
|
14
|
-
`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
|
|
15
|
-
function print() { __p += __j.call(arguments, '') }
|
|
16
|
-
`:`;
|
|
17
|
-
`)+l+`return __p
|
|
18
|
-
}`;var g=qu(function(){return Function(s,h+"return "+l).apply(void 0,o)});if(g.source=l,pi(g))throw g;return g}var ud="Expected a function";function es(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(ud);return Q(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Rr(e,t,{leading:n,maxWait:t,trailing:i})}const Ft=typeof window<"u",fd=e=>typeof e<"u",cd=()=>Date.now(),ld=()=>+Date.now(),hd=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function rs(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function dd(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 pd(e){return typeof e=="function"}function gd(e){return e!==null&&typeof e=="object"}function md(e){return typeof e=="string"}function yd(e){return typeof e>"u"||e===null}function vd(e){return _r(ji(e))}function ge(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 bd(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 ir(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>ir(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=ir(n)}),e)}function wd(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}async function Sd(e=0){return new Promise(t=>{setTimeout(t,e)})}function ns(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function Td(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Ed(e,t){if(t){const r=ns(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function xd(e){return e?[].concat(e):[]}function _d(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function is(e,t){return function(){return e.apply(t,arguments)}}const{toString:Od}=Object.prototype,{getPrototypeOf:$r}=Object,$e=(e=>t=>{const r=Od.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>$e(t)===e),Be=e=>t=>typeof t===e,{isArray:Vt}=Array,ee=Be("undefined");function Ad(e){return e!==null&&!ee(e)&&e.constructor!==null&&!ee(e.constructor)&&rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ss=ct("ArrayBuffer");function Rd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ss(e.buffer),t}const Dd=Be("string"),rt=Be("function"),os=Be("number"),Ce=e=>e!==null&&typeof e=="object",$d=e=>e===!0||e===!1,me=e=>{if($e(e)!=="object")return!1;const t=$r(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Bd=ct("Date"),Cd=ct("File"),Pd=ct("Blob"),Nd=ct("FileList"),Md=e=>Ce(e)&&rt(e.pipe),Id=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rt(e.append)&&((t=$e(e))==="formdata"||t==="object"&&rt(e.toString)&&e.toString()==="[object FormData]"))},Fd=ct("URLSearchParams"),jd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function re(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Vt(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function as(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const us=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fs=e=>!ee(e)&&e!==us;function sr(){const{caseless:e}=fs(this)&&this||{},t={},r=(n,i)=>{const s=e&&as(t,i)||i;me(t[s])&&me(n)?t[s]=sr(t[s],n):me(n)?t[s]=sr({},n):Vt(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&re(arguments[n],r);return t}const Ld=(e,t,r,{allOwnKeys:n}={})=>(re(t,(i,s)=>{r&&rt(i)?e[s]=is(i,r):e[s]=i},{allOwnKeys:n}),e),Ud=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hd=(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)},Vd=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&$r(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qd=(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},zd=e=>{if(!e)return null;if(Vt(e))return e;let t=e.length;if(!os(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},kd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$r(Uint8Array)),Kd=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Wd=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Gd=ct("HTMLFormElement"),Yd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),_n=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Jd=ct("RegExp"),cs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Zd=e=>{cs(e,(t,r)=>{if(rt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(rt(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+"'")})}})},Xd=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Vt(e)?n(e):n(String(e).split(t)),r},Qd=()=>{},tp=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ue="abcdefghijklmnopqrstuvwxyz",On="0123456789",ls={DIGIT:On,ALPHA:Ue,ALPHA_DIGIT:Ue+Ue.toUpperCase()+On},ep=(e=16,t=ls.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function rp(e){return!!(e&&rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const np=e=>{const t=new Array(10),r=(n,i)=>{if(Ce(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Vt(n)?[]:{};return re(n,(o,a)=>{const c=r(o,i+1);!ee(c)&&(s[a]=c)}),t[i]=void 0,s}}return n};return r(e,0)},ip=ct("AsyncFunction"),sp=e=>e&&(Ce(e)||rt(e))&&rt(e.then)&&rt(e.catch),v={isArray:Vt,isArrayBuffer:ss,isBuffer:Ad,isFormData:Id,isArrayBufferView:Rd,isString:Dd,isNumber:os,isBoolean:$d,isObject:Ce,isPlainObject:me,isUndefined:ee,isDate:Bd,isFile:Cd,isBlob:Pd,isRegExp:Jd,isFunction:rt,isStream:Md,isURLSearchParams:Fd,isTypedArray:kd,isFileList:Nd,forEach:re,merge:sr,extend:Ld,trim:jd,stripBOM:Ud,inherits:Hd,toFlatObject:Vd,kindOf:$e,kindOfTest:ct,endsWith:qd,toArray:zd,forEachEntry:Kd,matchAll:Wd,isHTMLForm:Gd,hasOwnProperty:_n,hasOwnProp:_n,reduceDescriptors:cs,freezeMethods:Zd,toObjectSet:Xd,toCamelCase:Yd,noop:Qd,toFiniteNumber:tp,findKey:as,global:us,isContextDefined:fs,ALPHABET:ls,generateString:ep,isSpecCompliantForm:rp,toJSONObject:np,isAsyncFn:ip,isThenable:sp};function q(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)}v.inherits(q,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:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hs=q.prototype,ds={};["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=>{ds[e]={value:e}});Object.defineProperties(q,ds);Object.defineProperty(hs,"isAxiosError",{value:!0});q.from=(e,t,r,n,i,s)=>{const o=Object.create(hs);return v.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),q.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const op=null;function or(e){return v.isPlainObject(e)||v.isArray(e)}function ps(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function An(e,t,r){return e?e.concat(t).map(function(i,s){return i=ps(i),!r&&s?"["+i+"]":i}).join(r?".":""):t}function ap(e){return v.isArray(e)&&!e.some(or)}const up=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Pe(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!v.isUndefined(y[g])});const n=r.metaTokens,i=r.visitor||f,s=r.dots,o=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(v.isDate(d))return d.toISOString();if(!c&&v.isBlob(d))throw new q("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(d)||v.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,g,y){let A=d;if(d&&!y&&typeof d=="object"){if(v.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(v.isArray(d)&&ap(d)||(v.isFileList(d)||v.endsWith(g,"[]"))&&(A=v.toArray(d)))return g=ps(g),A.forEach(function(T,O){!(v.isUndefined(T)||T===null)&&t.append(o===!0?An([g],O,s):o===null?g:g+"[]",u(T))}),!1}return or(d)?!0:(t.append(An(y,g,s),u(d)),!1)}const l=[],p=Object.assign(up,{defaultVisitor:f,convertValue:u,isVisitable:or});function h(d,g){if(!v.isUndefined(d)){if(l.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(d),v.forEach(d,function(A,m){(!(v.isUndefined(A)||A===null)&&i.call(t,A,v.isString(m)?m.trim():m,g,p))===!0&&h(A,g?g.concat(m):[m])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Rn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Br(e,t){this._pairs=[],e&&Pe(e,this,t)}const gs=Br.prototype;gs.append=function(t,r){this._pairs.push([t,r])};gs.toString=function(t){const r=t?function(n){return t.call(this,n,Rn)}:Rn;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function fp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ms(e,t,r){if(!t)return e;const n=r&&r.encode||fp,i=r&&r.serialize;let s;if(i?s=i(t,r):s=v.isURLSearchParams(t)?t.toString():new Br(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class cp{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){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Dn=cp,ys={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lp=typeof URLSearchParams<"u"?URLSearchParams:Br,hp=typeof FormData<"u"?FormData:null,dp=typeof Blob<"u"?Blob:null,pp=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ot={isBrowser:!0,classes:{URLSearchParams:lp,FormData:hp,Blob:dp},isStandardBrowserEnv:pp,isStandardBrowserWebWorkerEnv:gp,protocols:["http","https","file","blob","url","data"]};function mp(e,t){return Pe(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return ot.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function yp(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vp(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 vs(e){function t(r,n,i,s){let o=r[s++];const a=Number.isFinite(+o),c=s>=r.length;return o=!o&&v.isArray(i)?i.length:o,c?(v.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!v.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&v.isArray(i[o])&&(i[o]=vp(i[o])),!a)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,i)=>{t(yp(n),i,r,0)}),r}return null}function bp(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Cr={transitional:ys,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,s=v.isObject(t);if(s&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return i&&i?JSON.stringify(vs(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return mp(t,this.formSerializer).toString();if((a=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pe(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||i?(r.setContentType("application/json",!1),bp(t)):t}],transformResponse:[function(t){const r=this.transitional||Cr.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(t&&v.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?q.from(a,q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Cr.headers[e]={}});const Pr=Cr,wp=v.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"]),Sp=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
19
|
-
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&wp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$n=Symbol("internals");function Wt(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:v.isArray(e)?e.map(ye):String(e)}function Tp(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 Ep=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function He(e,t,r,n,i){if(v.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!v.isString(t)){if(v.isString(n))return t.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(t)}}function xp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function _p(e,t){const r=v.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}class Ne{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,c,u){const f=Wt(c);if(!f)throw new Error("header name must be a non-empty string");const l=v.findKey(i,f);(!l||i[l]===void 0||u===!0||u===void 0&&i[l]!==!1)&&(i[l||c]=ye(a))}const o=(a,c)=>v.forEach(a,(u,f)=>s(u,f,c));return v.isPlainObject(t)||t instanceof this.constructor?o(t,r):v.isString(t)&&(t=t.trim())&&!Ep(t)?o(Sp(t),r):t!=null&&s(r,t,n),this}get(t,r){if(t=Wt(t),t){const n=v.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Tp(i);if(v.isFunction(r))return r.call(this,i,n);if(v.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wt(t),t){const n=v.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||He(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=Wt(o),o){const a=v.findKey(n,o);a&&(!r||He(n,n[a],a,r))&&(delete n[a],i=!0)}}return v.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||He(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return v.forEach(this,(i,s)=>{const o=v.findKey(n,s);if(o){r[o]=ye(i),delete r[s];return}const a=t?xp(s):String(s).trim();a!==s&&delete r[s],r[a]=ye(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&v.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(`
|
|
20
|
-
`)}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 n=(this[$n]=this[$n]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Wt(o);n[a]||(_p(i,o),n[a]=!0)}return v.isArray(t)?t.forEach(s):s(t),this}}Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Ne.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Ne);const ht=Ne;function Ve(e,t){const r=this||Pr,n=t||r,i=ht.from(n.headers);let s=n.data;return v.forEach(e,function(a){s=a.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function bs(e){return!!(e&&e.__CANCEL__)}function ne(e,t,r){q.call(this,e??"canceled",q.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(ne,q,{__CANCEL__:!0});function Op(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Ap=ot.isStandardBrowserEnv?function(){return{write:function(r,n,i,s,o,a){const c=[];c.push(r+"="+encodeURIComponent(n)),v.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),v.isString(s)&&c.push("path="+s),v.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Rp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dp(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ws(e,t){return e&&!Rp(t)?Dp(e,t):t}const $p=ot.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(s){let o=s;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){const a=v.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function Bp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cp(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(c){const u=Date.now(),f=n[s];o||(o=u),r[i]=c,n[i]=u;let l=s,p=0;for(;l!==i;)p+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const h=f&&u-f;return h?Math.round(p*1e3/h):void 0}}function Bn(e,t){let r=0;const n=Cp(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-r,c=n(a),u=s<=o;r=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&u?(o-s)/c:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const Pp=typeof XMLHttpRequest<"u",Np=Pp&&function(e){return new Promise(function(r,n){let i=e.data;const s=ht.from(e.headers).normalize(),o=e.responseType;let a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let u;v.isFormData(i)&&(ot.isStandardBrowserEnv||ot.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?v.isString(u=s.getContentType())&&s.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let f=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(d+":"+g))}const l=ws(e.baseURL,e.url);f.open(e.method.toUpperCase(),ms(l,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function p(){if(!f)return;const d=ht.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:d,config:e,request:f};Op(function(m){r(m),c()},function(m){n(m),c()},y),f=null}if("onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(p)},f.onabort=function(){f&&(n(new q("Request aborted",q.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new q("Network Error",q.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||ys;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),n(new q(g,y.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,f)),f=null},ot.isStandardBrowserEnv){const d=(e.withCredentials||$p(l))&&e.xsrfCookieName&&Ap.read(e.xsrfCookieName);d&&s.set(e.xsrfHeaderName,d)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&v.forEach(s.toJSON(),function(g,y){f.setRequestHeader(y,g)}),v.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Bn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Bn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=d=>{f&&(n(!d||d.type?new ne(null,e,f):d),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=Bp(l);if(h&&ot.protocols.indexOf(h)===-1){n(new q("Unsupported protocol "+h+":",q.ERR_BAD_REQUEST,e));return}f.send(i||null)})},ar={http:op,xhr:Np};v.forEach(ar,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cn=e=>`- ${e}`,Mp=e=>v.isFunction(e)||e===null||e===!1,Ss={getAdapter:e=>{e=v.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,!Mp(r)&&(n=ar[(o=String(r)).toLowerCase()],n===void 0))throw new q(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
|
|
21
|
-
`+s.map(Cn).join(`
|
|
22
|
-
`):" "+Cn(s[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:ar};function qe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ne(null,e)}function Pn(e){return qe(e),e.headers=ht.from(e.headers),e.data=Ve.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ss.getAdapter(e.adapter||Pr.adapter)(e).then(function(n){return qe(e),n.data=Ve.call(e,e.transformResponse,n),n.headers=ht.from(n.headers),n},function(n){return bs(n)||(qe(e),n&&n.response&&(n.response.data=Ve.call(e,e.transformResponse,n.response),n.response.headers=ht.from(n.response.headers))),Promise.reject(n)})}const Nn=e=>e instanceof ht?e.toJSON():e;function jt(e,t){t=t||{};const r={};function n(u,f,l){return v.isPlainObject(u)&&v.isPlainObject(f)?v.merge.call({caseless:l},u,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function i(u,f,l){if(v.isUndefined(f)){if(!v.isUndefined(u))return n(void 0,u,l)}else return n(u,f,l)}function s(u,f){if(!v.isUndefined(f))return n(void 0,f)}function o(u,f){if(v.isUndefined(f)){if(!v.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function a(u,f,l){if(l in t)return n(u,f);if(l in e)return n(void 0,u)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,f)=>i(Nn(u),Nn(f),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(f){const l=c[f]||i,p=l(e[f],t[f],f);v.isUndefined(p)&&l!==a||(r[f]=p)}),r}const Ts="1.5.1",Nr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Mn={};Nr.transitional=function(t,r,n){function i(s,o){return"[Axios v"+Ts+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,a)=>{if(t===!1)throw new q(i(o," has been removed"+(r?" in "+r:"")),q.ERR_DEPRECATED);return r&&!Mn[o]&&(Mn[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,o,a):!0}};function Ip(e,t,r){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new q("option "+s+" must be "+c,q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new q("Unknown option "+s,q.ERR_BAD_OPTION)}}const ur={assertOptions:Ip,validators:Nr},mt=ur.validators;class Ee{constructor(t){this.defaults=t,this.interceptors={request:new Dn,response:new Dn}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=jt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ur.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(v.isFunction(i)?r.paramsSerializer={serialize:i}:ur.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&v.merge(s.common,s[r.method]);s&&v.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ht.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,l=0,p;if(!c){const d=[Pn.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,f=Promise.resolve(r);l<p;)f=f.then(d[l++],d[l++]);return f}p=a.length;let h=r;for(l=0;l<p;){const d=a[l++],g=a[l++];try{h=d(h)}catch(y){g.call(this,y);break}}try{f=Pn.call(this,h)}catch(d){return Promise.reject(d)}for(l=0,p=u.length;l<p;)f=f.then(u[l++],u[l++]);return f}getUri(t){t=jt(this.defaults,t);const r=ws(t.baseURL,t.url);return ms(r,t.params,t.paramsSerializer)}}v.forEach(["delete","get","head","options"],function(t){Ee.prototype[t]=function(r,n){return this.request(jt(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(s,o,a){return this.request(jt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Ee.prototype[t]=r(),Ee.prototype[t+"Form"]=r(!0)});const ve=Ee;class Mr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(s,o,a){n.reason||(n.reason=new ne(s,o,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Mr(function(i){t=i}),cancel:t}}}const Fp=Mr;function jp(e){return function(r){return e.apply(null,r)}}function Lp(e){return v.isObject(e)&&e.isAxiosError===!0}const fr={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(fr).forEach(([e,t])=>{fr[t]=e});const Up=fr;function Es(e){const t=new ve(e),r=is(ve.prototype.request,t);return v.extend(r,ve.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Es(jt(e,i))},r}const Y=Es(Pr);Y.Axios=ve;Y.CanceledError=ne;Y.CancelToken=Fp;Y.isCancel=bs;Y.VERSION=Ts;Y.toFormData=Pe;Y.AxiosError=q;Y.Cancel=Y.CanceledError;Y.all=function(t){return Promise.all(t)};Y.spread=jp;Y.isAxiosError=Lp;Y.mergeConfig=jt;Y.AxiosHeaders=ht;Y.formToJSON=e=>vs(v.isHTMLForm(e)?new FormData(e):e);Y.getAdapter=Ss.getAdapter;Y.HttpStatusCode=Up;Y.default=Y;const In=Y,Hp={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Vp=["put","post","patch"],cr="Local-Request-Id",qp=200,zp=500;class xs{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(t={}){this.settings=t.settings||{};const r=ge(t,["settings"]);this.axios=In.create(Gt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Rr(this.openLoading.bind(this),qp),this.showError=es(this._showError.bind(this),zp,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=Gt(this.settings,t.settings||{});const r=ge(t,["settings"]);this.axios.defaults=Gt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=typeof r.headers=="function"?r.headers(n):r.headers||{},s={"Content-Type":Hp[r.type||"form"],...n.headers,...i};return r.skipWarn&&(s[cr]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i){const{type:s,skipWarn:o}=t,{name:a="skipWarn"}=o||{};let{data:c,params:u,method:f="get"}=r;const l=i?{[a]:!0}:{};return Vp.includes(f.toLowerCase())?(c=Object.assign(c||{},l),c=s!=="json"||!this.isJsonType(n)?this.toFormData(c,s):c):u={...c,...u,...l},{data:c,params:u}}createUrl(t){const{url:r,query:n}=t;return n?Dr(r)(n):r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){const{failMessage:n,showError:i}=t;if(n&&i){const s=r?.message||r?.msg||"未知错误";i(s,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=Gt({},this.settings,t.settings||{}),i=ge(t,["settings"]),s=rs(),o=In.CancelToken.source();this.records[s]={settings:n,config:i,source:o};const a=this.createUrl(i),c=this.createHeaders(s,n,i),{data:u,params:f}=this.createSendData(n,i,c,r);return this.showLoading(n),new Promise((l,p)=>{this.axios({cancelToken:o.token,...i,url:a,headers:c,data:u,params:f}).then(h=>this.isSkipWarnResponse(h)?l(h.promise):this.validResponse(n,h)?l(n.originResponse?h:h.data?.data):(this.showError(n,h.data),p(h.data))).catch(h=>(this.showError(n,h),p(h))).finally(()=>{delete this.records[s],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&this.stopSkipWarn(),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const c=(o.config.headers||{})[cr],u=this.records[c];if(!u)return o;const{data:f}=o;if(!f||typeof f!="object")return o;if(f?.code===r){i&&i(o);const l=new Promise(n).then(()=>this.send({...u.config,settings:u.settings},!0));l.catch(p=>p).finally(()=>{s&&s()}),o.promise=l}return o})}}function _s(e={}){const t=new xs(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,{...t,instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o})}const Os=_s({settings:{loading:!0,originResponse:!0}});function As(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>Os.send({...t,...n,data:r})}function kp(e){const t={};for(const[r,n]of Object.entries(e))t[r]=As(n);return t}const Kp=e=>Ft?window.requestAnimationFrame(e):setTimeout(e,16),Wp=e=>Ft?window.cancelAnimationFrame(e):clearTimeout(e);var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Rs={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(vt,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",c="hour",u="day",f="week",l="month",p="quarter",h="year",d="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,m={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(M){var B=["th","st","nd","rd"],D=M%100;return"["+M+(B[(D-20)%10]||B[D]||B[0])+"]"}},T=function(M,B,D){var C=String(M);return!C||C.length>=B?M:""+Array(B+1-C.length).join(D)+M},O={s:T,z:function(M){var B=-M.utcOffset(),D=Math.abs(B),C=Math.floor(D/60),$=D%60;return(B<=0?"+":"-")+T(C,2,"0")+":"+T($,2,"0")},m:function M(B,D){if(B.date()<D.date())return-M(D,B);var C=12*(D.year()-B.year())+(D.month()-B.month()),$=B.clone().add(C,l),F=D-$<0,j=B.clone().add(C+(F?-1:1),l);return+(-(C+(D-$)/(F?$-j:j-$))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:l,y:h,w:f,d:u,D:d,h:c,m:a,s:o,ms:s,Q:p}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},R="en",w={};w[R]=m;var P="$isDayjsObject",H=function(M){return M instanceof J||!(!M||!M[P])},I=function M(B,D,C){var $;if(!B)return R;if(typeof B=="string"){var F=B.toLowerCase();w[F]&&($=F),D&&(w[F]=D,$=F);var j=B.split("-");if(!$&&j.length>1)return M(j[0])}else{var S=B.name;w[S]=B,$=S}return!C&&$&&(R=$),$||!C&&R},L=function(M,B){if(H(M))return M.clone();var D=typeof B=="object"?B:{};return D.date=M,D.args=arguments,new J(D)},N=O;N.l=I,N.i=H,N.w=function(M,B){return L(M,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var J=function(){function M(D){this.$L=I(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[P]=!0}var B=M.prototype;return B.parse=function(D){this.$d=function(C){var $=C.date,F=C.utc;if($===null)return new Date(NaN);if(N.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var j=$.match(y);if(j){var S=j[2]-1||0,E=(j[7]||"0").substring(0,3);return F?new Date(Date.UTC(j[1],S,j[3]||1,j[4]||0,j[5]||0,j[6]||0,E)):new Date(j[1],S,j[3]||1,j[4]||0,j[5]||0,j[6]||0,E)}}return new Date($)}(D),this.init()},B.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},B.$utils=function(){return N},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(D,C){var $=L(D);return this.startOf(C)<=$&&$<=this.endOf(C)},B.isAfter=function(D,C){return L(D)<this.startOf(C)},B.isBefore=function(D,C){return this.endOf(C)<L(D)},B.$g=function(D,C,$){return N.u(D)?this[C]:this.set($,D)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(D,C){var $=this,F=!!N.u(C)||C,j=N.p(D),S=function(Et,X){var gt=N.w($.$u?Date.UTC($.$y,X,Et):new Date($.$y,X,Et),$);return F?gt:gt.endOf(u)},E=function(Et,X){return N.w($.toDate()[Et].apply($.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(X)),$)},x=this.$W,_=this.$M,tt=this.$D,$t="set"+(this.$u?"UTC":"");switch(j){case h:return F?S(1,0):S(31,11);case l:return F?S(1,_):S(0,_+1);case f:var Tt=this.$locale().weekStart||0,zt=(x<Tt?x+7:x)-Tt;return S(F?tt-zt:tt+(6-zt),_);case u:case d:return E($t+"Hours",0);case c:return E($t+"Minutes",1);case a:return E($t+"Seconds",2);case o:return E($t+"Milliseconds",3);default:return this.clone()}},B.endOf=function(D){return this.startOf(D,!1)},B.$set=function(D,C){var $,F=N.p(D),j="set"+(this.$u?"UTC":""),S=($={},$[u]=j+"Date",$[d]=j+"Date",$[l]=j+"Month",$[h]=j+"FullYear",$[c]=j+"Hours",$[a]=j+"Minutes",$[o]=j+"Seconds",$[s]=j+"Milliseconds",$)[F],E=F===u?this.$D+(C-this.$W):C;if(F===l||F===h){var x=this.clone().set(d,1);x.$d[S](E),x.init(),this.$d=x.set(d,Math.min(this.$D,x.daysInMonth())).$d}else S&&this.$d[S](E);return this.init(),this},B.set=function(D,C){return this.clone().$set(D,C)},B.get=function(D){return this[N.p(D)]()},B.add=function(D,C){var $,F=this;D=Number(D);var j=N.p(C),S=function(_){var tt=L(F);return N.w(tt.date(tt.date()+Math.round(_*D)),F)};if(j===l)return this.set(l,this.$M+D);if(j===h)return this.set(h,this.$y+D);if(j===u)return S(1);if(j===f)return S(7);var E=($={},$[a]=n,$[c]=i,$[o]=r,$)[j]||1,x=this.$d.getTime()+D*E;return N.w(x,this)},B.subtract=function(D,C){return this.add(-1*D,C)},B.format=function(D){var C=this,$=this.$locale();if(!this.isValid())return $.invalidDate||g;var F=D||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),S=this.$H,E=this.$m,x=this.$M,_=$.weekdays,tt=$.months,$t=$.meridiem,Tt=function(X,gt,kt,ie){return X&&(X[gt]||X(C,F))||kt[gt].slice(0,ie)},zt=function(X){return N.s(S%12||12,X,"0")},Et=$t||function(X,gt,kt){var ie=X<12?"AM":"PM";return kt?ie.toLowerCase():ie};return F.replace(A,function(X,gt){return gt||function(kt){switch(kt){case"YY":return String(C.$y).slice(-2);case"YYYY":return N.s(C.$y,4,"0");case"M":return x+1;case"MM":return N.s(x+1,2,"0");case"MMM":return Tt($.monthsShort,x,tt,3);case"MMMM":return Tt(tt,x);case"D":return C.$D;case"DD":return N.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return Tt($.weekdaysMin,C.$W,_,2);case"ddd":return Tt($.weekdaysShort,C.$W,_,3);case"dddd":return _[C.$W];case"H":return String(S);case"HH":return N.s(S,2,"0");case"h":return zt(1);case"hh":return zt(2);case"a":return Et(S,E,!0);case"A":return Et(S,E,!1);case"m":return String(E);case"mm":return N.s(E,2,"0");case"s":return String(C.$s);case"ss":return N.s(C.$s,2,"0");case"SSS":return N.s(C.$ms,3,"0");case"Z":return j}return null}(X)||j.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(D,C,$){var F,j=this,S=N.p(C),E=L(D),x=(E.utcOffset()-this.utcOffset())*n,_=this-E,tt=function(){return N.m(j,E)};switch(S){case h:F=tt()/12;break;case l:F=tt();break;case p:F=tt()/3;break;case f:F=(_-x)/6048e5;break;case u:F=(_-x)/864e5;break;case c:F=_/i;break;case a:F=_/n;break;case o:F=_/r;break;default:F=_}return $?F:N.a(F)},B.daysInMonth=function(){return this.endOf(l).$D},B.$locale=function(){return w[this.$L]},B.locale=function(D,C){if(!D)return this.$L;var $=this.clone(),F=I(D,C,!0);return F&&($.$L=F),$},B.clone=function(){return N.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},M}(),K=J.prototype;return L.prototype=K,[["$ms",s],["$s",o],["$m",a],["$H",c],["$W",u],["$M",l],["$y",h],["$D",d]].forEach(function(M){K[M[1]]=function(B){return this.$g(B,M[0],M[1])}}),L.extend=function(M,B){return M.$i||(M(B,J,L),M.$i=!0),L},L.locale=I,L.isDayjs=H,L.unix=function(M){return L(1e3*M)},L.en=w[R],L.Ls=w,L.p={},L})})(Rs);var Ds=Rs.exports;const Fr=Ir(Ds);var Yp={exports:{}};(function(e,t){(function(r,n){e.exports=n(Ds)})(vt,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,a){return a==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,a){var c=100*o+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(Yp);Fr.locale("zh-cn");function Jp(e,t="YYYY-MM-DD HH:mm:ss"){return Fr(e).format(t)}var $s={exports:{}};/*! @preserve
|
|
23
|
-
* numeral.js
|
|
24
|
-
* version : 2.0.6
|
|
25
|
-
* author : Adam Draper
|
|
26
|
-
* license : MIT
|
|
27
|
-
* http://adamwdraper.github.com/Numeral-js/
|
|
28
|
-
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(vt,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function c(u,f){this._input=u,this._value=f}return t=function(u){var f,l,p,h;if(t.isNumeral(u))f=u.value();else if(u===0||typeof u>"u")f=0;else if(u===null||r.isNaN(u))f=null;else if(typeof u=="string")if(a.zeroFormat&&u===a.zeroFormat)f=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)f=null;else{for(l in i)if(h=typeof i[l].regexps.unformat=="function"?i[l].regexps.unformat():i[l].regexps.unformat,h&&u.match(h)){p=i[l].unformat;break}p=p||t._.stringToNumber,f=p(u)}else f=Number(u)||null;return new c(u,f)},t.version=n,t.isNumeral=function(u){return u instanceof c},t._=r={numberToFormat:function(u,f,l){var p=s[t.options.currentLocale],h=!1,d=!1,g=0,y="",A=1e12,m=1e9,T=1e6,O=1e3,R="",w=!1,P,H,I,L,N,J,K;if(u=u||0,H=Math.abs(u),t._.includes(f,"(")?(h=!0,f=f.replace(/[\(|\)]/g,"")):(t._.includes(f,"+")||t._.includes(f,"-"))&&(N=t._.includes(f,"+")?f.indexOf("+"):u<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),t._.includes(f,"a")&&(P=f.match(/a(k|m|b|t)?/),P=P?P[1]:!1,t._.includes(f," a")&&(y=" "),f=f.replace(new RegExp(y+"a[kmbt]?"),""),H>=A&&!P||P==="t"?(y+=p.abbreviations.trillion,u=u/A):H<A&&H>=m&&!P||P==="b"?(y+=p.abbreviations.billion,u=u/m):H<m&&H>=T&&!P||P==="m"?(y+=p.abbreviations.million,u=u/T):(H<T&&H>=O&&!P||P==="k")&&(y+=p.abbreviations.thousand,u=u/O)),t._.includes(f,"[.]")&&(d=!0,f=f.replace("[.]",".")),I=u.toString().split(".")[0],L=f.split(".")[1],J=f.indexOf(","),g=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,L?(t._.includes(L,"[")?(L=L.replace("]",""),L=L.split("["),R=t._.toFixed(u,L[0].length+L[1].length,l,L[1].length)):R=t._.toFixed(u,L.length,l),I=R.split(".")[0],t._.includes(R,".")?R=p.delimiters.decimal+R.split(".")[1]:R="",d&&Number(R.slice(1))===0&&(R="")):I=t._.toFixed(u,0,l),y&&!P&&Number(I)>=1e3&&y!==p.abbreviations.trillion)switch(I=String(Number(I)/1e3),y){case p.abbreviations.thousand:y=p.abbreviations.million;break;case p.abbreviations.million:y=p.abbreviations.billion;break;case p.abbreviations.billion:y=p.abbreviations.trillion;break}if(t._.includes(I,"-")&&(I=I.slice(1),w=!0),I.length<g)for(var M=g-I.length;M>0;M--)I="0"+I;return J>-1&&(I=I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),f.indexOf(".")===0&&(I=""),K=I+R+(y||""),h?K=(h&&w?"(":"")+K+(h&&w?")":""):N>=0?K=N===0?(w?"-":"+")+K:K+(w?"-":"+"):w&&(K="-"+K),K},stringToNumber:function(u){var f=s[a.currentLocale],l=u,p={thousand:3,million:6,billion:9,trillion:12},h,d,g;if(a.zeroFormat&&u===a.zeroFormat)d=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)d=null;else{d=1,f.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(f.delimiters.decimal,"."));for(h in p)if(g=new RegExp("[^a-zA-Z]"+f.abbreviations[h]+"(?:\\)|(\\"+f.currency.symbol+")?(?:\\))?)?$"),l.match(g)){d*=Math.pow(10,p[h]);break}d*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),d*=Number(u)}return d},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,f){return u.indexOf(f)!==-1},insert:function(u,f,l){return u.slice(0,l)+f+u.slice(l)},reduce:function(u,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var l=Object(u),p=l.length>>>0,h=0,d;if(arguments.length===3)d=arguments[2];else{for(;h<p&&!(h in l);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");d=l[h++]}for(;h<p;h++)h in l&&(d=f(d,l[h],h,l));return d},multiplier:function(u){var f=u.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(f,l){var p=r.multiplier(l);return f>p?f:p},1)},toFixed:function(u,f,l,p){var h=u.toString().split("."),d=f-(p||0),g,y,A,m;return h.length===2?g=Math.min(Math.max(h[1].length,d),f):g=d,A=Math.pow(10,g),m=(l(u+"e+"+g)/A).toFixed(g),p>f-g&&(y=new RegExp("\\.?0{1,"+(p-(f-g))+"}$"),m=m.replace(y,"")),m}},t.options=a,t.formats=i,t.locales=s,t.locale=function(u){return u&&(a.currentLocale=u.toLowerCase()),a.currentLocale},t.localeData=function(u){if(!u)return s[a.currentLocale];if(u=u.toLowerCase(),!s[u])throw new Error("Unknown locale : "+u);return s[u]},t.reset=function(){for(var u in o)a[u]=o[u]},t.zeroFormat=function(u){a.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){a.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){a.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,f,l){if(f=f.toLowerCase(),this[u+"s"][f])throw new TypeError(f+" "+u+" already registered.");return this[u+"s"][f]=l,l},t.validate=function(u,f){var l,p,h,d,g,y,A,m;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{A=t.localeData(f)}catch{A=t.localeData(t.locale())}return h=A.currency.symbol,g=A.abbreviations,l=A.delimiters.decimal,A.delimiters.thousands==="."?p="\\.":p=A.delimiters.thousands,m=u.match(/^[^\d]+/),m!==null&&(u=u.substr(1),m[0]!==h)||(m=u.match(/[^\d]+$/),m!==null&&(u=u.slice(0,-1),m[0]!==g.thousand&&m[0]!==g.million&&m[0]!==g.billion&&m[0]!==g.trillion))?!1:(y=new RegExp(p+"{2}"),u.match(/[^\d.,]/g)?!1:(d=u.split(l),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(y):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(y)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(y)&&!!d[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(u,f){var l=this._value,p=u||a.defaultFormat,h,d,g;if(f=f||Math.round,l===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(l===null&&a.nullFormat!==null)d=a.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){g=i[h].format;break}g=g||t._.numberToFormat,d=g(l,p,f)}return d},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var f=r.correctionFactor.call(null,this._value,u);function l(p,h,d,g){return p+Math.round(f*h)}return this._value=r.reduce([this._value,u],l,0)/f,this},subtract:function(u){var f=r.correctionFactor.call(null,this._value,u);function l(p,h,d,g){return p-Math.round(f*h)}return this._value=r.reduce([u],l,Math.round(this._value*f))/f,this},multiply:function(u){function f(l,p,h,d){var g=r.correctionFactor(l,p);return Math.round(l*g)*Math.round(p*g)/Math.round(g*g)}return this._value=r.reduce([this._value,u],f,1),this},divide:function(u){function f(l,p,h,d){var g=r.correctionFactor(l,p);return Math.round(l*g)/Math.round(p*g)}return this._value=r.reduce([this._value,u],f),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var f=u%10;return~~(u%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,f,l){var p=t._.includes(f," BPS")?" ":"",h;return u=u*1e4,f=f.replace(/\s?BPS/,""),h=t._.numberToFormat(u,f,l),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},f={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=u.suffixes.concat(f.suffixes.filter(function(h){return u.suffixes.indexOf(h)<0})),p=l.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 y,A=t._.includes(d,"ib")?f:u,m=t._.includes(d," b")||t._.includes(d," ib")?" ":"",T,O,R;for(d=d.replace(/\s?i?b/,""),T=0;T<=A.suffixes.length;T++)if(O=Math.pow(A.base,T),R=Math.pow(A.base,T+1),h===null||h===0||h>=O&&h<R){m+=A.suffixes[T],O>0&&(h=h/O);break}return y=t._.numberToFormat(h,d,g),y+m},unformat:function(h){var d=t._.stringToNumber(h),g,y;if(d){for(g=u.suffixes.length-1;g>=0;g--){if(t._.includes(h,u.suffixes[g])){y=Math.pow(u.base,g);break}if(t._.includes(h,f.suffixes[g])){y=Math.pow(f.base,g);break}}d*=y||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,f,l){var p=t.locales[t.options.currentLocale],h={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,g,y;for(f=f.replace(/\s?\$\s?/,""),d=t._.numberToFormat(u,f,l),u>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),y=0;y<h.before.length;y++)switch(g=h.before[y],g){case"$":d=t._.insert(d,p.currency.symbol,y);break;case" ":d=t._.insert(d," ",y+p.currency.symbol.length-1);break}for(y=h.after.length-1;y>=0;y--)switch(g=h.after[y],g){case"$":d=y===h.after.length-1?d+p.currency.symbol:t._.insert(d,p.currency.symbol,-(h.after.length-(1+y)));break;case" ":d=y===h.after.length-1?d+" ":t._.insert(d," ",-(h.after.length-(1+y)+p.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,f,l){var p,h=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",d=h.split("e");return f=f.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(d[0]),f,l),p+"e"+d[1]},unformat:function(u){var f=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),l=Number(f[0]),p=Number(f[1]);p=t._.includes(u,"e-")?p*=-1:p;function h(d,g,y,A){var m=t._.correctionFactor(d,g),T=d*m*(g*m)/(m*m);return T}return t._.reduce([l,Math.pow(10,p)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,f,l){var p=t.locales[t.options.currentLocale],h,d=t._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),d+=p.ordinal(u),h=t._.numberToFormat(u,f,l),h+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,f,l){var p=t._.includes(f," %")?" ":"",h;return t.options.scalePercentBy100&&(u=u*100),f=f.replace(/\s?\%/,""),h=t._.numberToFormat(u,f,l),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(u){var f=t._.stringToNumber(u);return t.options.scalePercentBy100?f*.01:f}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,f,l){var p=Math.floor(u/60/60),h=Math.floor((u-p*60*60)/60),d=Math.round(u-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(d<10?"0"+d:d)},unformat:function(u){var f=u.split(":"),l=0;return f.length===3?(l=l+Number(f[0])*60*60,l=l+Number(f[1])*60,l=l+Number(f[2])):f.length===2&&(l=l+Number(f[0])*60,l=l+Number(f[1])),Number(l)}})}(),t})})($s);var Zp=$s.exports;const Bs=Ir(Zp);function Xp(e,t){return Bs(e).format(t)}class Cs{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(t={}){this.types={local:Ft?window.localStorage:this.caches,session:Ft?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}={...this.options,...n},a=Date.now(),c=o+t,u=this.types[i]||this.caches,f={value:r,timestamp:a,expired:s};u===this.caches?u[c]=f:u.setItem(c,JSON.stringify(f))}get(t,r={}){const{type:n,prefix:i}={...this.options,...r},s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const p=o.getItem(s);p&&(a=JSON.parse(p))}if(!a)return null;const{value:c,timestamp:u,expired:f}=a;return f>0&&u+f<Date.now()?(this.remove(t,r),null):c}remove(t,r={}){const{type:n,prefix:i}={...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}={...this.options,...t},n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Qp=new Cs,Ps=/^(http|https):\/\/[\w.:\-@]*/,Ns=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,Ms=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,Is=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,Fs=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,js=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;function t0(e){return Ps.test(e)}function e0(e){return Ns.test(e)}function r0(e){return Ms.test(e)}function n0(e){return Is.test(e)}function i0(e){return js.test(e)||Fs.test(e)}/*! js-cookie v3.0.5 | MIT */function ae(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 s0={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 lr(e,t){function r(i,s,o){if(!(typeof document>"u")){o=ae({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in o)o[c]&&(a+="; "+c,o[c]!==!0&&(a+="="+o[c].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var c=s[a].split("="),u=c.slice(1).join("=");try{var f=decodeURIComponent(c[0]);if(o[f]=e.read(u,f),i===f)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",ae({},s,{expires:-1}))},withAttributes:function(i){return lr(this.converter,ae({},this.attributes,i))},withConverter:function(i){return lr(ae({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var jr=lr(s0,{path:"/"});function o0(e,t,r){jr.set(e,t,r)}function a0(e){return jr.get(e)}function u0(e,t){jr.remove(e,t)}const f0=Object.freeze(Object.defineProperty({__proto__:null,get:a0,remove:u0,set:o0},Symbol.toStringTag,{value:"Module"}));var Ls={exports:{}};function c0(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 ze={exports:{}};const l0={},h0=Object.freeze(Object.defineProperty({__proto__:null,default:l0},Symbol.toStringTag,{value:"Module"})),d0=Gp(h0);var Fn;function p0(){return Fn||(Fn=1,function(e,t){(function(r,n){e.exports=n()})(vt,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 vt<"u"&&vt.crypto&&(s=vt.crypto),!s&&typeof c0=="function")try{s=d0}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function m(){}return function(T){var O;return m.prototype=T,O=new m,m.prototype=null,O}}(),c={},u=c.lib={},f=u.Base=function(){return{extend:function(m){var T=a(this);return m&&T.mixIn(m),(!T.hasOwnProperty("init")||this.init===T.init)&&(T.init=function(){T.$super.init.apply(this,arguments)}),T.init.prototype=T,T.$super=this,T},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var T in m)m.hasOwnProperty(T)&&(this[T]=m[T]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=u.WordArray=f.extend({init:function(m,T){m=this.words=m||[],T!=i?this.sigBytes=T:this.sigBytes=m.length*4},toString:function(m){return(m||h).stringify(this)},concat:function(m){var T=this.words,O=m.words,R=this.sigBytes,w=m.sigBytes;if(this.clamp(),R%4)for(var P=0;P<w;P++){var H=O[P>>>2]>>>24-P%4*8&255;T[R+P>>>2]|=H<<24-(R+P)%4*8}else for(var I=0;I<w;I+=4)T[R+I>>>2]=O[I>>>2];return this.sigBytes+=w,this},clamp:function(){var m=this.words,T=this.sigBytes;m[T>>>2]&=4294967295<<32-T%4*8,m.length=n.ceil(T/4)},clone:function(){var m=f.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var T=[],O=0;O<m;O+=4)T.push(o());return new l.init(T,m)}}),p=c.enc={},h=p.Hex={stringify:function(m){for(var T=m.words,O=m.sigBytes,R=[],w=0;w<O;w++){var P=T[w>>>2]>>>24-w%4*8&255;R.push((P>>>4).toString(16)),R.push((P&15).toString(16))}return R.join("")},parse:function(m){for(var T=m.length,O=[],R=0;R<T;R+=2)O[R>>>3]|=parseInt(m.substr(R,2),16)<<24-R%8*4;return new l.init(O,T/2)}},d=p.Latin1={stringify:function(m){for(var T=m.words,O=m.sigBytes,R=[],w=0;w<O;w++){var P=T[w>>>2]>>>24-w%4*8&255;R.push(String.fromCharCode(P))}return R.join("")},parse:function(m){for(var T=m.length,O=[],R=0;R<T;R++)O[R>>>2]|=(m.charCodeAt(R)&255)<<24-R%4*8;return new l.init(O,T)}},g=p.Utf8={stringify:function(m){try{return decodeURIComponent(escape(d.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return d.parse(unescape(encodeURIComponent(m)))}},y=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=g.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var T,O=this._data,R=O.words,w=O.sigBytes,P=this.blockSize,H=P*4,I=w/H;m?I=n.ceil(I):I=n.max((I|0)-this._minBufferSize,0);var L=I*P,N=n.min(L*4,w);if(L){for(var J=0;J<L;J+=P)this._doProcessBlock(R,J);T=R.splice(0,L),O.sigBytes-=N}return new l.init(T,N)},clone:function(){var m=f.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});u.Hasher=y.extend({cfg:f.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var T=this._doFinalize();return T},blockSize:16,_createHelper:function(m){return function(T,O){return new m.init(O).finalize(T)}},_createHmacHelper:function(m){return function(T,O){return new A.HMAC.init(m,O).finalize(T)}}});var A=c.algo={};return c}(Math);return r})}(ze)),ze.exports}(function(e,t){(function(r,n){e.exports=n(p0())})(vt,function(r){return function(n){var i=r,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.algo,u=[];(function(){for(var g=0;g<64;g++)u[g]=n.abs(n.sin(g+1))*4294967296|0})();var f=c.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,y){for(var A=0;A<16;A++){var m=y+A,T=g[m];g[m]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var O=this._hash.words,R=g[y+0],w=g[y+1],P=g[y+2],H=g[y+3],I=g[y+4],L=g[y+5],N=g[y+6],J=g[y+7],K=g[y+8],M=g[y+9],B=g[y+10],D=g[y+11],C=g[y+12],$=g[y+13],F=g[y+14],j=g[y+15],S=O[0],E=O[1],x=O[2],_=O[3];S=l(S,E,x,_,R,7,u[0]),_=l(_,S,E,x,w,12,u[1]),x=l(x,_,S,E,P,17,u[2]),E=l(E,x,_,S,H,22,u[3]),S=l(S,E,x,_,I,7,u[4]),_=l(_,S,E,x,L,12,u[5]),x=l(x,_,S,E,N,17,u[6]),E=l(E,x,_,S,J,22,u[7]),S=l(S,E,x,_,K,7,u[8]),_=l(_,S,E,x,M,12,u[9]),x=l(x,_,S,E,B,17,u[10]),E=l(E,x,_,S,D,22,u[11]),S=l(S,E,x,_,C,7,u[12]),_=l(_,S,E,x,$,12,u[13]),x=l(x,_,S,E,F,17,u[14]),E=l(E,x,_,S,j,22,u[15]),S=p(S,E,x,_,w,5,u[16]),_=p(_,S,E,x,N,9,u[17]),x=p(x,_,S,E,D,14,u[18]),E=p(E,x,_,S,R,20,u[19]),S=p(S,E,x,_,L,5,u[20]),_=p(_,S,E,x,B,9,u[21]),x=p(x,_,S,E,j,14,u[22]),E=p(E,x,_,S,I,20,u[23]),S=p(S,E,x,_,M,5,u[24]),_=p(_,S,E,x,F,9,u[25]),x=p(x,_,S,E,H,14,u[26]),E=p(E,x,_,S,K,20,u[27]),S=p(S,E,x,_,$,5,u[28]),_=p(_,S,E,x,P,9,u[29]),x=p(x,_,S,E,J,14,u[30]),E=p(E,x,_,S,C,20,u[31]),S=h(S,E,x,_,L,4,u[32]),_=h(_,S,E,x,K,11,u[33]),x=h(x,_,S,E,D,16,u[34]),E=h(E,x,_,S,F,23,u[35]),S=h(S,E,x,_,w,4,u[36]),_=h(_,S,E,x,I,11,u[37]),x=h(x,_,S,E,J,16,u[38]),E=h(E,x,_,S,B,23,u[39]),S=h(S,E,x,_,$,4,u[40]),_=h(_,S,E,x,R,11,u[41]),x=h(x,_,S,E,H,16,u[42]),E=h(E,x,_,S,N,23,u[43]),S=h(S,E,x,_,M,4,u[44]),_=h(_,S,E,x,C,11,u[45]),x=h(x,_,S,E,j,16,u[46]),E=h(E,x,_,S,P,23,u[47]),S=d(S,E,x,_,R,6,u[48]),_=d(_,S,E,x,J,10,u[49]),x=d(x,_,S,E,F,15,u[50]),E=d(E,x,_,S,L,21,u[51]),S=d(S,E,x,_,C,6,u[52]),_=d(_,S,E,x,H,10,u[53]),x=d(x,_,S,E,B,15,u[54]),E=d(E,x,_,S,w,21,u[55]),S=d(S,E,x,_,K,6,u[56]),_=d(_,S,E,x,j,10,u[57]),x=d(x,_,S,E,N,15,u[58]),E=d(E,x,_,S,$,21,u[59]),S=d(S,E,x,_,I,6,u[60]),_=d(_,S,E,x,D,10,u[61]),x=d(x,_,S,E,P,15,u[62]),E=d(E,x,_,S,M,21,u[63]),O[0]=O[0]+S|0,O[1]=O[1]+E|0,O[2]=O[2]+x|0,O[3]=O[3]+_|0},_doFinalize:function(){var g=this._data,y=g.words,A=this._nDataBytes*8,m=g.sigBytes*8;y[m>>>5]|=128<<24-m%32;var T=n.floor(A/4294967296),O=A;y[(m+64>>>9<<4)+15]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,y[(m+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,g.sigBytes=(y.length+1)*4,this._process();for(var R=this._hash,w=R.words,P=0;P<4;P++){var H=w[P];w[P]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return R},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});function l(g,y,A,m,T,O,R){var w=g+(y&A|~y&m)+T+R;return(w<<O|w>>>32-O)+y}function p(g,y,A,m,T,O,R){var w=g+(y&m|A&~m)+T+R;return(w<<O|w>>>32-O)+y}function h(g,y,A,m,T,O,R){var w=g+(y^A^m)+T+R;return(w<<O|w>>>32-O)+y}function d(g,y,A,m,T,O,R){var w=g+(A^(y|~m))+T+R;return(w<<O|w>>>32-O)+y}i.MD5=a._createHelper(f),i.HmacMD5=a._createHmacHelper(f)}(Math),r.MD5})})(Ls);var g0=Ls.exports;const m0=Ir(g0);var y0="0123456789abcdefghijklmnopqrstuvwxyz";function lt(e){return y0.charAt(e)}function v0(e,t){return e&t}function ue(e,t){return e|t}function jn(e,t){return e^t}function Ln(e,t){return e&~t}function b0(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 w0(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Us="=";function xe(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=Nt.charAt(r>>6)+Nt.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Nt.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Nt.charAt(r>>2)+Nt.charAt((r&3)<<4));(n.length&3)>0;)n+=Us;return n}function Un(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=Us;++r){var s=Nt.indexOf(e.charAt(r));s<0||(n==0?(t+=lt(s>>2),i=s&3,n=1):n==1?(t+=lt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=lt(i),t+=lt(s>>2),i=s&3,n=3):(t+=lt(i<<2|s>>4),t+=lt(s&15),n=0))}return n==1&&(t+=lt(i<<2)),t}var Bt,S0={decode:function(e){var t;if(Bt===void 0){var r="0123456789ABCDEF",n=` \f
|
|
29
|
-
\r \u2028\u2029`;for(Bt={},t=0;t<16;++t)Bt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Bt[r.charAt(t)]=t;for(t=0;t<n.length;++t)Bt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Bt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},xt,hr={decode:function(e){var t;if(xt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
30
|
-
\r \u2028\u2029`;for(xt=Object.create(null),t=0;t<64;++t)xt[r.charAt(t)]=t;for(xt["-"]=62,xt._=63,t=0;t<n.length;++t)xt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=xt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=hr.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 hr.decode(e)}},Ct=1e13,Yt=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<Ct?r=0:(r=0|o/Ct,o-=r*Ct),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+=Ct,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+=(Ct+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*Ct+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Hs="…",T0=/^(\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)?)?$/,E0=/^(\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 Mt(e,t){return e.length>t&&(e=e.substring(0,t)+Hs),e}var ke=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+=`
|
|
31
|
-
`;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?T0:E0).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,a="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(a=n,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
|
|
32
|
-
`}i&&(n=n-256);for(var c=new Yt(n),u=t+1;u<r;++u)c.mulAdd(256,this.get(u));return a+c.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
|
|
33
|
-
`,a="",c=t+1;c<r;++c){for(var u=this.get(c),f=c==r-1?i:0,l=7;l>=f;--l)a+=u>>l&1?"1":"0";if(a.length>n)return o+Mt(a,n)}return o+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Mt(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
|
|
34
|
-
`;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=Hs),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new Yt,o=0,a=t;a<r;++a){var c=this.get(a);if(s.mulAdd(128,c&127),o+=7,!(c&128)){if(i==="")if(s=s.simplify(),s instanceof Yt)s.sub(80),i="2."+s.toString();else{var u=s<80?s<40?0:1:2;i=u+"."+(s-u*40)}else i+="."+s.toString();if(i.length>n)return Mt(i,n);s=new Yt,o=0}}return o>0&&(i+=".incomplete"),i},e}(),x0=function(){function e(t,r,n,i,s){if(!(i instanceof Hn))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 Mt(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Mt(this.stream.parseStringISO(r,r+n),t);case 30:return Mt(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+=`
|
|
35
|
-
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof ke?r=t:r=new ke(t,0);var n=new ke(r),i=new Hn(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,c=null,u=function(){var l=[];if(s!==null){for(var p=o+s;r.pos<p;)l[l.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;l[l.length]=h}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return l};if(i.tagConstructed)c=u();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.");c=u();for(var f=0;f<c.length;++f)if(c[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,a,s,i,c)},e}(),Hn=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 Yt;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}(),wt,_0=0xdeadbeefcafe,Vn=(_0&16777215)==15715070,Z=[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],O0=(1<<26)/Z[Z.length-1],U=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,c=this.DB-a*this.DB%r;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(s=!0,o=lt(i));a>=0;)c<r?(i=(this[a]&(1<<c)-1)<<r-c,i|=this[--a]>>(c+=this.DB-r)):(i=this[a]>>(c-=r)&n,c<=0&&(c+=this.DB,--a)),i>0&&(s=!0),s&&(o+=lt(i));return s?o:"0"},e.prototype.negate=function(){var t=V();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)+fe(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=V();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 qn(r):n=new zn(r),this.exp(t,n)},e.prototype.clone=function(){var t=V();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=V();return this.bitwiseTo(t,v0,r),r},e.prototype.or=function(t){var r=V();return this.bitwiseTo(t,ue,r),r},e.prototype.xor=function(t){var r=V();return this.bitwiseTo(t,jn,r),r},e.prototype.andNot=function(t){var r=V();return this.bitwiseTo(t,Ln,r),r},e.prototype.not=function(){for(var t=V(),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=V();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=V();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+b0(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+=w0(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,ue)},e.prototype.clearBit=function(t){return this.changeBit(t,Ln)},e.prototype.flipBit=function(t){return this.changeBit(t,jn)},e.prototype.add=function(t){var r=V();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=V();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=V();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=V();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=V();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=V(),n=V();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=yt(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 qn(r):r.isEven()?o=new R0(r):o=new zn(r);var a=[],c=3,u=i-1,f=(1<<i)-1;if(a[1]=o.convert(this),i>1){var l=V();for(o.sqrTo(a[1],l);c<=f;)a[c]=V(),o.mulTo(l,a[c-2],a[c]),c+=2}var p=t.t-1,h,d=!0,g=V(),y;for(n=fe(t[p])-1;p>=0;){for(n>=u?h=t[p]>>n-u&f:(h=(t[p]&(1<<n+1)-1)<<u-n,p>0&&(h|=t[p-1]>>this.DB+n-u)),c=i;!(h&1);)h>>=1,--c;if((n-=c)<0&&(n+=this.DB,--p),d)a[h].copyTo(s),d=!1;else{for(;c>1;)o.sqrTo(s,g),o.sqrTo(g,s),c-=2;c>0?o.sqrTo(s,g):(y=s,s=g,g=y),o.mulTo(g,a[h],s)}for(;p>=0&&!(t[p]&1<<n);)o.sqrTo(s,g),y=s,s=g,g=y,--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=yt(1),o=yt(0),a=yt(0),c=yt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(c,o)):(i.subTo(n,i),r&&a.subTo(s,a),c.subTo(o,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new A0)},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]<=Z[Z.length-1]){for(r=0;r<Z.length;++r)if(n[0]==Z[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<Z.length;){for(var i=Z[r],s=r+1;s<Z.length&&i<O0;)i*=Z[s++];for(i=n.modInt(i);r<s;)if(i%Z[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:Kn(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,c=this.t-1;c>=0;--c)r[c+o+1]=this[c]>>i|a,a=(this[c]&s)<<n;for(var c=o-1;c>=0;--c)r[c]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r?.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=V());var o=V(),a=this.s,c=t.s,u=this.DB-fe(i[i.t-1]);u>0?(i.lShiftTo(u,o),s.lShiftTo(u,n)):(i.copyTo(o),s.copyTo(n));var f=o.t,l=o[f-1];if(l!=0){var p=l*(1<<this.F1)+(f>1?o[f-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,g=1<<this.F2,y=n.t,A=y-f,m=r??V();for(o.dlShiftTo(A,m),n.compareTo(m)>=0&&(n[n.t++]=1,n.subTo(m,n)),e.ONE.dlShiftTo(f,m),m.subTo(o,o);o.t<f;)o[o.t++]=0;for(;--A>=0;){var T=n[--y]==l?this.DM:Math.floor(n[y]*h+(n[y-1]+g)*d);if((n[y]+=o.am(0,T,n,A,0,f))<T)for(o.dlShiftTo(A,m),n.subTo(m,n);n[y]<--T;)n.subTo(m,n)}r!=null&&(n.drShiftTo(f,r),a!=c&&e.ZERO.subTo(r,r)),n.t=f,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=V(),i=V(),s=r.convert(this),o=fe(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=yt(n),s=V(),o=V(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,c=0;c<t.length;++c){var u=Kn(t,c);if(u<0){t.charAt(c)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+u,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ue,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>Z.length&&(t=Z.length);for(var s=V(),o=0;o<t;++o){s.fromInt(Z[Math.floor(Math.random()*Z.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var c=1;c++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=V();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var c=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(c,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(c,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),ue,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,r.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),A0=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}(),qn=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}(),zn=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=V();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(U.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=V();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}(),R0=function(){function e(t){this.m=t,this.r2=V(),this.q3=V(),U.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=V();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 V(){return new U(null)}function W(e,t){return new U(e,t)}var kn=typeof navigator<"u";kn&&Vn&&navigator.appName=="Microsoft Internet Explorer"?(U.prototype.am=function(t,r,n,i,s,o){for(var a=r&32767,c=r>>15;--o>=0;){var u=this[t]&32767,f=this[t++]>>15,l=c*u+f*a;u=a*u+((l&32767)<<15)+n[i]+(s&1073741823),s=(u>>>30)+(l>>>15)+c*f+(s>>>30),n[i++]=u&1073741823}return s},wt=30):kn&&Vn&&navigator.appName!="Netscape"?(U.prototype.am=function(t,r,n,i,s,o){for(;--o>=0;){var a=r*this[t++]+n[i]+s;s=Math.floor(a/67108864),n[i++]=a&67108863}return s},wt=26):(U.prototype.am=function(t,r,n,i,s,o){for(var a=r&16383,c=r>>14;--o>=0;){var u=this[t]&16383,f=this[t++]>>14,l=c*u+f*a;u=a*u+((l&16383)<<14)+n[i]+s,s=(u>>28)+(l>>14)+c*f,n[i++]=u&268435455}return s},wt=28);U.prototype.DB=wt;U.prototype.DM=(1<<wt)-1;U.prototype.DV=1<<wt;var Lr=52;U.prototype.FV=Math.pow(2,Lr);U.prototype.F1=Lr-wt;U.prototype.F2=2*wt-Lr;var Me=[],qt,et;qt="0".charCodeAt(0);for(et=0;et<=9;++et)Me[qt++]=et;qt="a".charCodeAt(0);for(et=10;et<36;++et)Me[qt++]=et;qt="A".charCodeAt(0);for(et=10;et<36;++et)Me[qt++]=et;function Kn(e,t){var r=Me[e.charCodeAt(t)];return r??-1}function yt(e){var t=V();return t.fromInt(e),t}function fe(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}U.ZERO=yt(0);U.ONE=yt(1);var D0=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 $0(){return new D0}var Vs=256,ce,bt=null,nt;if(bt==null){bt=[],nt=0;var le=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Ke=new Uint32Array(256);for(window.crypto.getRandomValues(Ke),le=0;le<Ke.length;++le)bt[nt++]=Ke[le]&255}var he=0,de=function(e){if(he=he||0,he>=256||nt>=Vs){window.removeEventListener?window.removeEventListener("mousemove",de,!1):window.detachEvent&&window.detachEvent("onmousemove",de);return}try{var t=e.x+e.y;bt[nt++]=t&255,he+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",de,!1):window.attachEvent&&window.attachEvent("onmousemove",de))}function B0(){if(ce==null){for(ce=$0();nt<Vs;){var e=Math.floor(65536*Math.random());bt[nt++]=e&255}for(ce.init(bt),nt=0;nt<bt.length;++nt)bt[nt]=0;nt=0}return ce.next()}var dr=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=B0()},e}();function C0(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 W(s,16)}function P0(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 dr,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 U(r)}var N0=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=W(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=P0(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=W(t,16),this.e=parseInt(r,16),this.d=W(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,c){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=W(t,16),this.e=parseInt(r,16),this.d=W(n,16),this.p=W(i,16),this.q=W(s,16),this.dmp1=W(o,16),this.dmq1=W(a,16),this.coeff=W(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new dr,i=t>>1;this.e=parseInt(r,16);for(var s=new U(r,16);;){for(;this.p=new U(t-i,1,n),!(this.p.subtract(U.ONE).gcd(s).compareTo(U.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new U(i,1,n),!(this.q.subtract(U.ONE).gcd(s).compareTo(U.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(U.ONE),c=this.q.subtract(U.ONE),u=a.multiply(c);if(u.gcd(s).compareTo(U.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=W(t,16),n=this.doPrivate(r);return n==null?null:M0(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new dr,s=t>>1;this.e=parseInt(r,16);var o=new U(r,16),a=this,c=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var p=a.p;a.p=a.q,a.q=p}var h=a.p.subtract(U.ONE),d=a.q.subtract(U.ONE),g=h.multiply(d);g.gcd(o).compareTo(U.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(g),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(d),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(c,0)},f=function(){a.q=V(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(U.ONE).gcda(o,function(p){p.compareTo(U.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(f,0)})})},l=function(){a.p=V(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(U.ONE).gcda(o,function(p){p.compareTo(U.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(l,0)})})};setTimeout(l,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,n){var i=I0(n),s=i+r(t).toString(),o=C0(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var c=a.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,r,n){var i=W(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=F0(o);return a==n(t).toString()},e}();function M0(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 be={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function I0(e){return be[e]||""}function F0(e){for(var t in be)if(be.hasOwnProperty(t)){var r=be[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
|
|
36
|
-
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
37
|
-
Code licensed under the BSD License:
|
|
38
|
-
http://developer.yahoo.com/yui/license.html
|
|
39
|
-
version: 2.9.0
|
|
40
|
-
*/var G={};G.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,c){for(i=0;i<o.length;i=i+1){var u=o[i],f=c[u];typeof f=="function"&&f!=Object.prototype[u]&&(a[u]=f)}})}catch{}s(e.prototype,r)}}};/**
|
|
41
|
-
* @fileOverview
|
|
42
|
-
* @name asn1-1.0.js
|
|
43
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
44
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
45
|
-
* @since jsrsasign 2.1
|
|
46
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
47
|
-
*/var b={};(typeof b.asn1>"u"||!b.asn1)&&(b.asn1={});b.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new U(i,16),a=o.xor(e).add(U.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=b,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,a=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,f=r.DERUTF8String,l=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,d=r.DERIA5String,g=r.DERUTCTime,y=r.DERGeneralizedTime,A=r.DERSequence,m=r.DERSet,T=r.DERTaggedObject,O=r.ASN1Util.newObject,R=Object.keys(e);if(R.length!=1)throw"key of param shall be only one.";var w=R[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new n(e[w]);if(w=="int")return new i(e[w]);if(w=="bitstr")return new s(e[w]);if(w=="octstr")return new o(e[w]);if(w=="null")return new a(e[w]);if(w=="oid")return new c(e[w]);if(w=="enum")return new u(e[w]);if(w=="utf8str")return new f(e[w]);if(w=="numstr")return new l(e[w]);if(w=="prnstr")return new p(e[w]);if(w=="telstr")return new h(e[w]);if(w=="ia5str")return new d(e[w]);if(w=="utctime")return new g(e[w]);if(w=="gentime")return new y(e[w]);if(w=="seq"){for(var P=e[w],H=[],I=0;I<P.length;I++){var L=O(P[I]);H.push(L)}return new A({array:H})}if(w=="set"){for(var P=e[w],H=[],I=0;I<P.length;I++){var L=O(P[I]);H.push(L)}return new m({array:H})}if(w=="tag"){var N=e[w];if(Object.prototype.toString.call(N)==="[object Array]"&&N.length==3){var J=O(N[2]);return new T({tag:N[0],explicit:N[1],obj:J})}else{var K={};if(N.explicit!==void 0&&(K.explicit=N.explicit),N.tag!==void 0&&(K.tag=N.tag),N.obj===void 0)throw"obj shall be specified for 'tag'.";return K.obj=O(N.obj),new T(K)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};b.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),c=("00000000"+a.toString(2)).slice(-8);if(s=s+c.substr(1,7),c.substr(0,1)=="0"){var u=new U(s,2);i=i+"."+u.toString(10),s=""}}return i};b.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},r=function(a){var c="",u=new U(a,10),f=u.toString(2),l=7-f.length%7;l==7&&(l=0);for(var p="",h=0;h<l;h++)p+="0";f=p+f;for(var h=0;h<f.length-1;h+=7){var d=f.substr(h,7);h!=f.length-7&&(d="1"+d),c+=t(parseInt(d,2))}return c};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};b.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""}};b.asn1.DERAbstractString=function(e){b.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))};G.lang.extend(b.asn1.DERAbstractString,b.asn1.ASN1Object);b.asn1.DERAbstractTime=function(e){b.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),c=i(String(s.getDate()),2),u=i(String(s.getHours()),2),f=i(String(s.getMinutes()),2),l=i(String(s.getSeconds()),2),p=o+a+c+u+f+l;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 a=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};G.lang.extend(b.asn1.DERAbstractTime,b.asn1.ASN1Object);b.asn1.DERAbstractStructured=function(e){b.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)};G.lang.extend(b.asn1.DERAbstractStructured,b.asn1.ASN1Object);b.asn1.DERBoolean=function(){b.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};G.lang.extend(b.asn1.DERBoolean,b.asn1.ASN1Object);b.asn1.DERInteger=function(e){b.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=b.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new U(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))};G.lang.extend(b.asn1.DERInteger,b.asn1.ASN1Object);b.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=b.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}b.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))};G.lang.extend(b.asn1.DERBitString,b.asn1.ASN1Object);b.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=b.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}b.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};G.lang.extend(b.asn1.DEROctetString,b.asn1.DERAbstractString);b.asn1.DERNull=function(){b.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};G.lang.extend(b.asn1.DERNull,b.asn1.ASN1Object);b.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 U(n,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var c="",u=0;u<a;u++)c+="0";o=c+o;for(var u=0;u<o.length-1;u+=7){var f=o.substr(u,7);u!=o.length-7&&(f="1"+f),i+=t(parseInt(f,2))}return i};b.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=b.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))};G.lang.extend(b.asn1.DERObjectIdentifier,b.asn1.ASN1Object);b.asn1.DEREnumerated=function(e){b.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=b.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new U(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))};G.lang.extend(b.asn1.DEREnumerated,b.asn1.ASN1Object);b.asn1.DERUTF8String=function(e){b.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};G.lang.extend(b.asn1.DERUTF8String,b.asn1.DERAbstractString);b.asn1.DERNumericString=function(e){b.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};G.lang.extend(b.asn1.DERNumericString,b.asn1.DERAbstractString);b.asn1.DERPrintableString=function(e){b.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};G.lang.extend(b.asn1.DERPrintableString,b.asn1.DERAbstractString);b.asn1.DERTeletexString=function(e){b.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};G.lang.extend(b.asn1.DERTeletexString,b.asn1.DERAbstractString);b.asn1.DERIA5String=function(e){b.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};G.lang.extend(b.asn1.DERIA5String,b.asn1.DERAbstractString);b.asn1.DERUTCTime=function(e){b.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))};G.lang.extend(b.asn1.DERUTCTime,b.asn1.DERAbstractTime);b.asn1.DERGeneralizedTime=function(e){b.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))};G.lang.extend(b.asn1.DERGeneralizedTime,b.asn1.DERAbstractTime);b.asn1.DERSequence=function(e){b.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}};G.lang.extend(b.asn1.DERSequence,b.asn1.DERAbstractStructured);b.asn1.DERSet=function(e){b.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)};G.lang.extend(b.asn1.DERSet,b.asn1.DERAbstractStructured);b.asn1.DERTaggedObject=function(e){b.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)))};G.lang.extend(b.asn1.DERTaggedObject,b.asn1.ASN1Object);var j0=globalThis&&globalThis.__extends||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)}}(),Wn=function(e){j0(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)?S0.decode(r):hr.unarmor(r),a=x0.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=W(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=W(c,16);var u=a.sub[4].getHexStringValue();this.p=W(u,16);var f=a.sub[5].getHexStringValue();this.q=W(f,16);var l=a.sub[6].getHexStringValue();this.dmp1=W(l,16);var p=a.sub[7].getHexStringValue();this.dmq1=W(p,16);var h=a.sub[8].getHexStringValue();this.coeff=W(h,16)}else if(a.sub.length===2)if(a.sub[0].sub){var d=a.sub[1],g=d.sub[0];n=g.sub[0].getHexStringValue(),this.n=W(n,16),i=g.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=W(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new b.asn1.DERInteger({int:0}),new b.asn1.DERInteger({bigint:this.n}),new b.asn1.DERInteger({int:this.e}),new b.asn1.DERInteger({bigint:this.d}),new b.asn1.DERInteger({bigint:this.p}),new b.asn1.DERInteger({bigint:this.q}),new b.asn1.DERInteger({bigint:this.dmp1}),new b.asn1.DERInteger({bigint:this.dmq1}),new b.asn1.DERInteger({bigint:this.coeff})]},n=new b.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return xe(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new b.asn1.DERSequence({array:[new b.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new b.asn1.DERNull]}),n=new b.asn1.DERSequence({array:[new b.asn1.DERInteger({bigint:this.n}),new b.asn1.DERInteger({int:this.e})]}),i=new b.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new b.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return xe(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
48
|
-
?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
|
|
49
|
-
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
50
|
-
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
51
|
-
`,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
52
|
-
`;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
53
|
-
`,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t}(N0),We,L0=typeof process<"u"?(We=process.env)===null||We===void 0?void 0:We.npm_package_version:void 0,U0=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Wn(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(Un(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return xe(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,r,n){try{return xe(this.getKey().sign(t,r,n))}catch{return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,Un(r),n)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Wn,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=L0,e}();function H0(e){return String(m0(e))}function V0(e,t){const r=new U0;return r.setKey(e),r.encrypt(t)}const q0=Object.freeze(Object.defineProperty({__proto__:null,RSA:V0,md5:H0},Symbol.toStringTag,{value:"Module"})),Ur=/^(http|https):\/\/[\w.:\-@]*/;function z0(e){return Ur.test(e)}function k0(e){if(Ft){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function K0(e=""){const t=e.match(Ur);return t?t[0]:""}function qs(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 pr(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 zs(e,t){t=typeof t=="string"?pr(t):t;const r=e.split("?")[0],n=pr(e),i=Object.assign({},n,t),s=qs(i);return s?[r,s].join("?"):e}const W0=Object.freeze(Object.defineProperty({__proto__:null,UrlRegex:Ur,append:zs,getCurrentHost:k0,getHost:K0,isUrl:z0,parse:pr,stringify:qs},Symbol.toStringTag,{value:"Module"}));let G0=0;function Y0(){}const J0={cache:!1,timeout:60*1e3,param:"callback",prefix:"__jp",name:"",script:!1};function Z0(e,t={},r){const n=Object.assign({},J0,r||{}),i=n.name||`${n.prefix}${++G0}`,s=document.getElementsByTagName("script")[0]||document.head;let o,a;return new Promise((c,u)=>{const f=()=>{o?.parentNode&&(o.onload=null,o.onerror=null,o.parentNode.removeChild(o),n.script||(window[i]=Y0),a&&clearTimeout(a))};n.script||(window[i]=h=>{f(),c(h)});const l={...t,[n.param]:i};n.cache||(l.__t__=typeof n.cache=="string"?n.cache:Date.now()),e.includes("${")&&(e=Dr(e)(l||{}));const p=zs(e,l);o=document.createElement("script"),o.src=p,n.script&&(o.onload=()=>{if(n.name){const h=window;f(),c(h[n.name])}},o.onerror=h=>{f(),u(h)}),s.parentNode?.insertBefore(o,s),a=setTimeout(()=>{f(),u(new Error("Timeout"))},n.timeout)})}exports.CAR_NUMBER_NEW_REGEX=Fs;exports.CAR_NUMBER_REGEX=js;exports.EMAIL_REGEX=Ns;exports.ID_NUMBER_REGEX=Ms;exports.LOCAL_REQUEST_ID=cr;exports.MOBILE_PHONE_REGEX=Is;exports.Request=xs;exports.Storage=Cs;exports.URL_REGEX=Ps;exports.arrayToMap=ns;exports.cAF=Wp;exports.camelCase=ji;exports.cleanObject=_d;exports.cloneDeep=zl;exports.cookie=f0;exports.createApi=As;exports.createApis=kp;exports.createRequest=_s;exports.crypto=q0;exports.dateFormat=Jp;exports.dayjs=Fr;exports.debounce=Rr;exports.dedupArray=Ed;exports.delay=Sd;exports.get=Pu;exports.isCarNo=i0;exports.isClient=Ft;exports.isDef=fd;exports.isEmail=e0;exports.isEqual=Fh;exports.isFunction=pd;exports.isIdNumber=r0;exports.isMobilePhone=n0;exports.isObject=gd;exports.isPlainObject=xr;exports.isString=md;exports.isUndefined=yd;exports.isUrl=t0;exports.jsonp=Z0;exports.kebabCase=Lh;exports.lowerFirst=Hh;exports.mapToObject=Td;exports.merge=Gt;exports.now=cd;exports.numberFormat=Xp;exports.numeral=Bs;exports.omit=ge;exports.pick=bd;exports.rAF=Kp;exports.rand=hd;exports.request=Os;exports.set=zh;exports.storage=Qp;exports.template=Dr;exports.throttle=es;exports.timestamp=ld;exports.toArray=xd;exports.toFixed=wd;exports.trim=ir;exports.uid=rs;exports.upperFirst=_r;exports.upperFirstCamelCase=vd;exports.url=W0;exports.uuid=dd;exports.version=ks;
|