bjx-auth 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bjx-auth-api.esm.js +1 -1
- package/dist/bjx-auth-api.umd.js +1 -1
- package/dist/bjx-auth.esm.js +2 -2
- package/dist/bjx-auth.umd.js +2 -2
- package/dist/index-C_9Z-HWR.js +1 -1
- package/dist/index-D6CcfY4D.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/request.cjs +1 -1
- package/dist/strategy.cjs +1 -1
- package/dist/web.mjs +2 -2
- package/package.json +1 -1
package/dist/bjx-auth-api.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! version: 1.
|
|
1
|
+
/*! version: 1.17.0 */
|
|
2
2
|
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){var r=!1;try{r=this instanceof t}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}var n,i={exports:{}},o={exports:{}};function s(){return n||(n=1,function(t){const e={eqp:"",os:"",ba:"",bp:"",ver:"",clientId:"",clientSecret:"",apiVersion:"",signVersion:"",signKey:"",timeout:2e4,passportapi:"",login:"",auth:"",enterpriseapi:"",debug:!1,debugApiUrl:"",app:null};function r(t,r){void 0!==e[t]&&(e[t]=r)}const n={getConfig:function(t){return t?e[t]:e},setConfig:async function(t,e){if("object"==typeof t)for(const e in t)r(e,t[e]);else t&&r(t,e)}};Object.keys(e).forEach(t=>{Object.defineProperty(n,t,{get:()=>e[t],enumerable:!0})}),t.exports=n}(o)),o.exports}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var h={exports:{}},l={exports:{}},f={exports:{}},p={exports:{}};var d,g={exports:{}},y=r(Object.freeze({__proto__:null,default:{}}));function m(){return d||(d=1,g.exports=(e=e||function(e,r){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==t&&t.crypto&&(n=t.crypto),!n)try{n=y}catch(t){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),s={},a=s.lib={},u=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(i());return new c.init(e,t)}}),h=s.enc={},l=h.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,h=e.min(4*u,o);if(u){for(var l=0;l<u;l+=s)this._doProcessBlock(i,l);r=i.splice(0,u),n.sigBytes-=h}return new c.init(r,h)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=d.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=s.algo={};return s}(Math),e)),g.exports;var e}var v,b={exports:{}};function w(){return v?b.exports:(v=1,b.exports=(t=m(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(a[i]=r(e.pow(n,.5))),u[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],h=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],h=r[5],l=r[6],f=r[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var d=c[p-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=c[p-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[p]=g+c[p-7]+m+c[p-16]}var v=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&l)+u[p]+c[p];f=l,l=h,h=a,a=s+w|0,s=o,o=i,i=n,n=w+(b+v)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+h|0,r[6]=r[6]+l|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(h),r.HmacSHA256=o._createHmacHelper(h)}(Math),t.SHA256));var t}var S,E={exports:{}};function T(){return S?E.exports:(S=1,E.exports=(t=m(),r=(e=t).lib.Base,n=e.enc.Utf8,void(e.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var r=t.blockSize,i=4*r;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),s=this._iKey=e.clone(),a=o.words,u=s.words,c=0;c<r;c++)a[c]^=1549556828,u[c]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}}))));var t,e,r,n}var x;var O,R={exports:{}};function A(){return O?R.exports:(O=1,R.exports=(t=m(),function(){var e=t,r=e.lib.WordArray;function n(t,e,n){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)i.push(n.charAt(s>>>6*(3-a)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64));var t}var D,B={exports:{}};function _(){return D||(D=1,B.exports=(t=m(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=t[e+0],u=t[e+1],p=t[e+2],d=t[e+3],g=t[e+4],y=t[e+5],m=t[e+6],v=t[e+7],b=t[e+8],w=t[e+9],S=t[e+10],E=t[e+11],T=t[e+12],x=t[e+13],O=t[e+14],R=t[e+15],A=o[0],D=o[1],B=o[2],_=o[3];A=c(A,D,B,_,s,7,a[0]),_=c(_,A,D,B,u,12,a[1]),B=c(B,_,A,D,p,17,a[2]),D=c(D,B,_,A,d,22,a[3]),A=c(A,D,B,_,g,7,a[4]),_=c(_,A,D,B,y,12,a[5]),B=c(B,_,A,D,m,17,a[6]),D=c(D,B,_,A,v,22,a[7]),A=c(A,D,B,_,b,7,a[8]),_=c(_,A,D,B,w,12,a[9]),B=c(B,_,A,D,S,17,a[10]),D=c(D,B,_,A,E,22,a[11]),A=c(A,D,B,_,T,7,a[12]),_=c(_,A,D,B,x,12,a[13]),B=c(B,_,A,D,O,17,a[14]),A=h(A,D=c(D,B,_,A,R,22,a[15]),B,_,u,5,a[16]),_=h(_,A,D,B,m,9,a[17]),B=h(B,_,A,D,E,14,a[18]),D=h(D,B,_,A,s,20,a[19]),A=h(A,D,B,_,y,5,a[20]),_=h(_,A,D,B,S,9,a[21]),B=h(B,_,A,D,R,14,a[22]),D=h(D,B,_,A,g,20,a[23]),A=h(A,D,B,_,w,5,a[24]),_=h(_,A,D,B,O,9,a[25]),B=h(B,_,A,D,d,14,a[26]),D=h(D,B,_,A,b,20,a[27]),A=h(A,D,B,_,x,5,a[28]),_=h(_,A,D,B,p,9,a[29]),B=h(B,_,A,D,v,14,a[30]),A=l(A,D=h(D,B,_,A,T,20,a[31]),B,_,y,4,a[32]),_=l(_,A,D,B,b,11,a[33]),B=l(B,_,A,D,E,16,a[34]),D=l(D,B,_,A,O,23,a[35]),A=l(A,D,B,_,u,4,a[36]),_=l(_,A,D,B,g,11,a[37]),B=l(B,_,A,D,v,16,a[38]),D=l(D,B,_,A,S,23,a[39]),A=l(A,D,B,_,x,4,a[40]),_=l(_,A,D,B,s,11,a[41]),B=l(B,_,A,D,d,16,a[42]),D=l(D,B,_,A,m,23,a[43]),A=l(A,D,B,_,w,4,a[44]),_=l(_,A,D,B,T,11,a[45]),B=l(B,_,A,D,R,16,a[46]),A=f(A,D=l(D,B,_,A,p,23,a[47]),B,_,s,6,a[48]),_=f(_,A,D,B,v,10,a[49]),B=f(B,_,A,D,O,15,a[50]),D=f(D,B,_,A,y,21,a[51]),A=f(A,D,B,_,T,6,a[52]),_=f(_,A,D,B,d,10,a[53]),B=f(B,_,A,D,S,15,a[54]),D=f(D,B,_,A,u,21,a[55]),A=f(A,D,B,_,b,6,a[56]),_=f(_,A,D,B,R,10,a[57]),B=f(B,_,A,D,m,15,a[58]),D=f(D,B,_,A,x,21,a[59]),A=f(A,D,B,_,g,6,a[60]),_=f(_,A,D,B,E,10,a[61]),B=f(B,_,A,D,p,15,a[62]),D=f(D,B,_,A,w,21,a[63]),o[0]=o[0]+A|0,o[1]=o[1]+D|0,o[2]=o[2]+B|0,o[3]=o[3]+_|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),s=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,u=a.words,c=0;c<4;c++){var h=u[c];u[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,r,n,i,o,s){var a=t+(e&r|~e&n)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,r,n,i,o,s){var a=t+(e&n|r&~n)+i+s;return(a<<o|a>>>32-o)+e}function l(t,e,r,n,i,o,s){var a=t+(e^r^n)+i+s;return(a<<o|a>>>32-o)+e}function f(t,e,r,n,i,o,s){var a=t+(r^(e|~n))+i+s;return(a<<o|a>>>32-o)+e}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),t.MD5)),B.exports;var t}var P,C,N,j,I,k={exports:{}};function V(){return P?k.exports:(P=1,k.exports=m().enc.Hex)}function L(){return C||(C=1,function(t){const e=x?p.exports:(x=1,p.exports=(r=m(),w(),T(),r.HmacSHA256));var r;const n=A(),i=_(),o=V();t.exports={hashHS256:function(t,r){return e(t,r).toString(n)},hashMD5:function(t){return i(t).toString(o)}}}(f)),f.exports}function U(){if(j)return N;let t;return j=1,t=L(),N=t}function M(){return I||(I=1,function(t){const{hashHS256:e}=U(),r=s();function n(t){return"[object Object]"===Object.prototype.toString.call(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=n(t[r]),e),{}):"[object Array]"===Object.prototype.toString.call(t)?t.map(t=>n(t)):t}function i(t,r){const i=function(t){let e=[];return Object.entries(t).map(t=>{let[r,n]=t;void 0===n||""===n||null===n||("[object Array]"===Object.prototype.toString.call(n)||"[object Object]"===Object.prototype.toString.call(n)?e.push("".concat(r,"=").concat(encodeURIComponent(JSON.stringify(n)))):e.push("".concat(r,"=").concat(encodeURIComponent(n))))}),e.join("&")}(n(t)),o=e(i,r);return c(c({},t),{},{sign:o})}t.exports=function(t,e){const{eqp:n,os:o,ba:s,bp:a,ver:u,apiVersion:c,signVersion:h,clientId:l,clientSecret:f,data:p={}}=t||{};return i({eqp:n||r.eqp||"",os:1*o||1*r.os||1,ba:s||r.ba||"",bp:a||r.bp||"",ver:u||r.ver||"1.0.0",ts:Date.now(),apiVersion:c||r.apiVersion||"1.0.0",signVersion:h||r.signVersion||"V1",clientId:l||r.clientId||"",clientSecret:f||r.clientSecret||"",data:p},e=e||r.signKey)}}(l)),l.exports}var q,F,H={exports:{}},z={exports:{}},K={exports:{}};function W(){if(F)return q;function e(t,e){return function(){return t.apply(e,arguments)}}F=1;const{toString:r}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:i,toStringTag:o}=Symbol,s=(a=Object.create(null),t=>{const e=r.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const u=t=>(t=t.toLowerCase(),e=>s(e)===t),c=t=>e=>typeof e===t,{isArray:h}=Array,l=c("undefined");function f(t){return null!==t&&!l(t)&&null!==t.constructor&&!l(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const p=u("ArrayBuffer");const d=c("string"),g=c("function"),y=c("number"),m=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==s(t))return!1;const e=n(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||o in t||i in t)},b=u("Date"),w=u("File"),S=u("Blob"),E=u("FileList"),T=u("URLSearchParams"),[x,O,R,A]=["ReadableStream","Request","Response","Headers"].map(u);function D(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,i;if("object"!=typeof t&&(t=[t]),h(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(f(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function B(t,e){if(f(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n,i=r.length;for(;i-- >0;)if(n=r[i],e===n.toLowerCase())return n;return null}const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,P=t=>!l(t)&&t!==_;const C=(N="undefined"!=typeof Uint8Array&&n(Uint8Array),t=>N&&t instanceof N);var N;const j=u("HTMLFormElement"),I=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),k=u("RegExp"),V=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};D(r,(r,i)=>{let o;!1!==(o=e(r,i,t))&&(n[i]=o||r)}),Object.defineProperties(t,n)};const L=u("AsyncFunction"),U=(M="function"==typeof setImmediate,H=g(_.postMessage),M?setImmediate:H?(z=`axios@${Math.random()}`,K=[],_.addEventListener("message",({source:t,data:e})=>{t===_&&e===z&&K.length&&K.shift()()},!1),t=>{K.push(t),_.postMessage(z,"*")}):t=>setTimeout(t));var M,H,z,K;const W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_):"undefined"!=typeof process&&process.nextTick||U;var $={isArray:h,isArrayBuffer:p,isBuffer:f,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=s(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:d,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:m,isPlainObject:v,isEmptyObject:t=>{if(!m(t)||f(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:x,isRequest:O,isResponse:R,isHeaders:A,isUndefined:l,isDate:b,isFile:w,isBlob:S,isRegExp:k,isFunction:g,isStream:t=>m(t)&&g(t.pipe),isURLSearchParams:T,isTypedArray:C,isFileList:E,forEach:D,merge:function t(){const{caseless:e,skipUndefined:r}=P(this)&&this||{},n={},i=(i,o)=>{const s=e&&B(n,o)||o;v(n[s])&&v(i)?n[s]=t(n[s],i):v(i)?n[s]=t({},i):h(i)?n[s]=i.slice():r&&l(i)||(n[s]=i)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&D(arguments[t],i);return n},extend:(t,r,n,{allOwnKeys:i}={})=>(D(r,(r,i)=>{n&&g(r)?t[i]=e(r,n):t[i]=r},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,i)=>{let o,s,a;const u={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],i&&!i(a,t,e)||u[a]||(e[a]=t[a],u[a]=!0);t=!1!==r&&n(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:u,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[i]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:j,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:V,freezeMethods:t=>{V(t,(e,r)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach(t=>{r[t]=!0})};return h(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:B,global:_,isContextDefined:P,isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[o]&&t[i])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(m(t)){if(e.indexOf(t)>=0)return;if(f(t))return t;if(!("toJSON"in t)){e[n]=t;const i=h(t)?[]:{};return D(t,(t,e)=>{const o=r(t,n+1);!l(o)&&(i[e]=o)}),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:L,isThenable:t=>t&&(m(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:U,asap:W,isIterable:t=>null!=t&&g(t[i])};function J(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const G=J.prototype,Z={};["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(t=>{Z[t]={value:t}}),Object.defineProperties(J,Z),Object.defineProperty(G,"isAxiosError",{value:!0}),J.from=(t,e,r,n,i,o)=>{const s=Object.create(G);$.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);const a=t&&t.message?t.message:"Error",u=null==e&&t?t.code:e;return J.call(s,a,u,r,n,i),t&&null==s.cause&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",o&&Object.assign(s,o),s};function X(t){return $.isPlainObject(t)||$.isArray(t)}function Q(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function Y(t,e,r){return t?t.concat(e).map(function(t,e){return t=Q(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}const tt=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function et(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!$.isUndefined(e[t])})).metaTokens,i=r.visitor||c,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if($.isDate(t))return t.toISOString();if($.isBoolean(t))return t.toString();if(!a&&$.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(t)||$.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,r,i){let a=t;if(t&&!i&&"object"==typeof t)if($.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if($.isArray(t)&&function(t){return $.isArray(t)&&!t.some(X)}(t)||($.isFileList(t)||$.endsWith(r,"[]"))&&(a=$.toArray(t)))return r=Q(r),a.forEach(function(t,n){!$.isUndefined(t)&&null!==t&&e.append(!0===s?Y([r],n,o):null===s?r:r+"[]",u(t))}),!1;return!!X(t)||(e.append(Y(i,r,o),u(t)),!1)}const h=[],l=Object.assign(tt,{defaultVisitor:c,convertValue:u,isVisitable:X});if(!$.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!$.isUndefined(r)){if(-1!==h.indexOf(r))throw Error("Circular reference detected in "+n.join("."));h.push(r),$.forEach(r,function(r,o){!0===(!($.isUndefined(r)||null===r)&&i.call(e,r,$.isString(o)?o.trim():o,n,l))&&t(r,n?n.concat(o):[o])}),h.pop()}}(t),e}function rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function nt(t,e){this._pairs=[],t&&et(t,this,e)}const it=nt.prototype;function ot(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function st(t,e,r){if(!e)return t;const n=r&&r.encode||ot;$.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(o=i?i(e,r):$.isURLSearchParams(e)?e.toString():new nt(e,r).toString(n),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,rt)}:rt;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var at=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(e){null!==e&&t(e)})}},ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:nt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ht="undefined"!=typeof window&&"undefined"!=typeof document,lt="object"==typeof navigator&&navigator||void 0,ft=ht&&(!lt||["ReactNative","NativeScript","NS"].indexOf(lt.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dt=ht&&window.location.href||"http://localhost";var gt={...Object.freeze({__proto__:null,hasBrowserEnv:ht,hasStandardBrowserWebWorkerEnv:pt,hasStandardBrowserEnv:ft,navigator:lt,origin:dt}),...ct};function yt(t){function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=t.length;if(o=!o&&$.isArray(n)?n.length:o,a)return $.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s;n[o]&&$.isObject(n[o])||(n[o]=[]);return e(t,r,n[o],i)&&$.isArray(n[o])&&(n[o]=function(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}(n[o])),!s}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(t,n)=>{e(function(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),n,r,0)}),r}return null}const mt={transitional:ut,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=$.isObject(t);i&&$.isHTMLForm(t)&&(t=new FormData(t));if($.isFormData(t))return n?JSON.stringify(yt(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return et(t,new gt.classes.URLSearchParams,{visitor:function(t,e,r,n){return gt.isNode&&$.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((o=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return et(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),function(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||mt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(t){if(r){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{mt.headers[t]={}});var vt=mt;const bt=$.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"]);const wt=Symbol("internals");function St(t){return t&&String(t).trim().toLowerCase()}function Et(t){return!1===t||null==t?t:$.isArray(t)?t.map(Et):String(t)}function Tt(t,e,r,n,i){return $.isFunction(n)?n.call(this,e,r):(i&&(e=r),$.isString(e)?$.isString(n)?-1!==e.indexOf(n):$.isRegExp(n)?n.test(e):void 0:void 0)}class xt{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function i(t,e,r){const i=St(e);if(!i)throw new Error("header name must be a non-empty string");const o=$.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||e]=Et(t))}const o=(t,e)=>$.forEach(t,(t,r)=>i(t,r,e));if($.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if($.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const e={};let r,n,i;return t&&t.split("\n").forEach(function(t){i=t.indexOf(":"),r=t.substring(0,i).trim().toLowerCase(),n=t.substring(i+1).trim(),!r||e[r]&&bt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e})(t),e);else if($.isObject(t)&&$.isIterable(t)){let r,n,i={};for(const e of t){if(!$.isArray(e))throw TypeError("Object iterator must return a key-value pair");i[n=e[0]]=(r=i[n])?$.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}o(i,e)}else null!=t&&i(e,t,r);return this}get(t,e){if(t=St(t)){const r=$.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if($.isFunction(e))return e.call(this,t,r);if($.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=St(t)){const r=$.findKey(this,t);return!(!r||void 0===this[r]||e&&!Tt(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function i(t){if(t=St(t)){const i=$.findKey(r,t);!i||e&&!Tt(0,r[i],i,e)||(delete r[i],n=!0)}}return $.isArray(t)?t.forEach(i):i(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];t&&!Tt(0,this[i],i,t,!0)||(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return $.forEach(this,(n,i)=>{const o=$.findKey(r,i);if(o)return e[o]=Et(n),void delete e[i];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}(i):String(i).trim();s!==i&&delete e[i],e[s]=Et(n),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return $.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&$.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){const e=(this[wt]=this[wt]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=St(t);e[n]||(!function(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})})}(r,t),e[n]=!0)}return $.isArray(t)?t.forEach(n):n(t),this}}xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(xt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),$.freezeMethods(xt);var Ot=xt;function Rt(t,e){const r=this||vt,n=e||r,i=Ot.from(n.headers);let o=n.data;return $.forEach(t,function(t){o=t.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function At(t){return!(!t||!t.__CANCEL__)}function Dt(t,e,r){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,r),this.name="CanceledError"}function Bt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}$.inherits(Dt,J,{__CANCEL__:!0});const _t=(t,e,r=3)=>{let n=0;const i=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=n[s];i||(i=u),r[o]=a,n[o]=u;let h=s,l=0;for(;h!==o;)l+=r[h++],h%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const f=c&&u-c;return f?Math.round(1e3*l/f):void 0}}(50,250);return function(t,e){let r,n,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),t(...e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(r=t,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]}(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,u=i(a);n=o;t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&o<=s?(s-o)/u:void 0,event:r,lengthComputable:null!=s,[e?"download":"upload"]:!0})},r)},Pt=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Ct=t=>(...e)=>$.asap(()=>t(...e));var Nt=gt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,gt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,jt=gt.hasStandardBrowserEnv?{write(t,e,r,n,i,o,s){if("undefined"==typeof document)return;const a=[`${t}=${encodeURIComponent(e)}`];$.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),$.isString(n)&&a.push(`path=${n}`),$.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),$.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function It(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const kt=t=>t instanceof Ot?{...t}:t;function Vt(t,e){e=e||{};const r={};function n(t,e,r,n){return $.isPlainObject(t)&&$.isPlainObject(e)?$.merge.call({caseless:n},t,e):$.isPlainObject(e)?$.merge({},e):$.isArray(e)?e.slice():e}function i(t,e,r,i){return $.isUndefined(e)?$.isUndefined(t)?void 0:n(void 0,t,0,i):n(t,e,0,i)}function o(t,e){if(!$.isUndefined(e))return n(void 0,e)}function s(t,e){return $.isUndefined(e)?$.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,i,o){return o in e?n(r,i):o in t?n(void 0,r):void 0}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,r)=>i(kt(t),kt(e),0,!0)};return $.forEach(Object.keys({...t,...e}),function(n){const o=u[n]||i,s=o(t[n],e[n],n);$.isUndefined(s)&&o!==a||(r[n]=s)}),r}var Lt=t=>{const e=Vt({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=e;if(e.headers=s=Ot.from(s),e.url=st(It(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),$.isFormData(r))if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if($.isFunction(r.getHeaders)){const t=r.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,r])=>{e.includes(t.toLowerCase())&&s.set(t,r)})}if(gt.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(e)),n||!1!==n&&Nt(e.url))){const t=i&&o&&jt.read(o);t&&s.set(i,t)}return e};var Ut="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,r){const n=Lt(t);let i=n.data;const o=Ot.from(n.headers).normalize();let s,a,u,c,h,{responseType:l,onUploadProgress:f,onDownloadProgress:p}=n;function d(){c&&c(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=Ot.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Bt(function(t){e(t),d()},function(t){r(t),d()},{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:t,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new J("Request aborted",J.ECONNABORTED,t,g)),g=null)},g.onerror=function(e){const n=new J(e&&e.message?e.message:"Network Error",J.ERR_NETWORK,t,g);n.event=e||null,r(n),g=null},g.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ut;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new J(e,i.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,g)),g=null},void 0===i&&o.setContentType(null),"setRequestHeader"in g&&$.forEach(o.toJSON(),function(t,e){g.setRequestHeader(e,t)}),$.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),p&&([u,h]=_t(p,!0),g.addEventListener("progress",u)),f&&g.upload&&([a,c]=_t(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(s=e=>{g&&(r(!e||e.type?new Dt(null,t,g):e),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);m&&-1===gt.protocols.indexOf(m)?r(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,t)):g.send(i||null)})};var Mt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const i=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof J?e:new Dt(e instanceof Error?e.message:e))}};let o=e&&setTimeout(()=>{o=null,i(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)}),t=null)};t.forEach(t=>t.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>$.asap(s),a}};const qt=function*(t,e){let r=t.byteLength;if(r<e)return void(yield t);let n,i=0;for(;i<r;)n=i+e,yield t.slice(i,n),i=n},Ft=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Ht=(t,e,r,n)=>{const i=async function*(t,e){for await(const r of Ft(t))yield*qt(r,e)}(t,e);let o,s=0,a=t=>{o||(o=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await i.next();if(e)return a(),void t.close();let o=n.byteLength;if(r){let t=s+=o;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),i.return())},{highWaterMark:2})},{isFunction:zt}=$,Kt=(({Request:t,Response:e})=>({Request:t,Response:e}))($.global),{ReadableStream:Wt,TextEncoder:$t}=$.global,Jt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Gt=t=>{t=$.merge.call({skipUndefined:!0},Kt,t);const{fetch:e,Request:r,Response:n}=t,i=e?zt(e):"function"==typeof fetch,o=zt(r),s=zt(n);if(!i)return!1;const a=i&&zt(Wt),u=i&&("function"==typeof $t?(c=new $t,t=>c.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer()));var c;const h=o&&a&&Jt(()=>{let t=!1;const e=new r(gt.origin,{body:new Wt,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),l=s&&a&&Jt(()=>$.isReadableStream(new n("").body)),f={stream:l&&(t=>t.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!f[t]&&(f[t]=(e,r)=>{let n=e&&e[t];if(n)return n.call(e);throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,r)})});const p=async(t,e)=>{const n=$.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if($.isBlob(t))return t.size;if($.isSpecCompliantForm(t)){const e=new r(gt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return $.isArrayBufferView(t)||$.isArrayBuffer(t)?t.byteLength:($.isURLSearchParams(t)&&(t+=""),$.isString(t)?(await u(t)).byteLength:void 0)})(e):n};return async t=>{let{url:i,method:s,data:a,signal:u,cancelToken:c,timeout:d,onDownloadProgress:g,onUploadProgress:y,responseType:m,headers:v,withCredentials:b="same-origin",fetchOptions:w}=Lt(t),S=e||fetch;m=m?(m+"").toLowerCase():"text";let E=Mt([u,c&&c.toAbortSignal()],d),T=null;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let O;try{if(y&&h&&"get"!==s&&"head"!==s&&0!==(O=await p(v,a))){let t,e=new r(i,{method:"POST",body:a,duplex:"half"});if($.isFormData(a)&&(t=e.headers.get("content-type"))&&v.setContentType(t),e.body){const[t,r]=Pt(O,_t(Ct(y)));a=Ht(e.body,65536,t,r)}}$.isString(b)||(b=b?"include":"omit");const e=o&&"credentials"in r.prototype,u={...w,signal:E,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:a,duplex:"half",credentials:e?b:void 0};T=o&&new r(i,u);let c=await(o?S(T,w):S(i,u));const d=l&&("stream"===m||"response"===m);if(l&&(g||d&&x)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const e=$.toFiniteNumber(c.headers.get("content-length")),[r,i]=g&&Pt(e,_t(Ct(g),!0))||[];c=new n(Ht(c.body,65536,r,()=>{i&&i(),x&&x()}),t)}m=m||"text";let R=await f[$.findKey(f,m)||"text"](c,t);return!d&&x&&x(),await new Promise((e,r)=>{Bt(e,r,{data:R,headers:Ot.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:T})})}catch(e){if(x&&x(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,T),{cause:e.cause||e});throw J.from(e,e&&e.code,t,T)}}},Zt=new Map,Xt=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,o=[n,i,r];let s,a,u=o.length,c=Zt;for(;u--;)s=o[u],a=c.get(s),void 0===a&&c.set(s,a=u?new Map:Gt(e)),c=a;return a};Xt();const Qt={http:null,xhr:Ut,fetch:{get:Xt}};$.forEach(Qt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const Yt=t=>`- ${t}`,te=t=>$.isFunction(t)||null===t||!1===t;var ee={getAdapter:function(t,e){t=$.isArray(t)?t:[t];const{length:r}=t;let n,i;const o={};for(let s=0;s<r;s++){let r;if(n=t[s],i=n,!te(n)&&(i=Qt[(r=String(n)).toLowerCase()],void 0===i))throw new J(`Unknown adapter '${r}'`);if(i&&($.isFunction(i)||(i=i.get(e))))break;o[r||"#"+s]=i}if(!i){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(r?t.length>1?"since :\n"+t.map(Yt).join("\n"):" "+Yt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i},adapters:Qt};function re(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function ne(t){re(t),t.headers=Ot.from(t.headers),t.data=Rt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ee.getAdapter(t.adapter||vt.adapter,t)(t).then(function(e){return re(t),e.data=Rt.call(t,t.transformResponse,e),e.headers=Ot.from(e.headers),e},function(e){return At(e)||(re(t),e&&e.response&&(e.response.data=Rt.call(t,t.transformResponse,e.response),e.response.headers=Ot.from(e.response.headers))),Promise.reject(e)})}const ie="1.13.2",oe={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{oe[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const se={};oe.transitional=function(t,e,r){function n(t,e){return"[Axios v"+ie+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,i,o)=>{if(!1===t)throw new J(n(i," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!se[i]&&(se[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,i,o)}},oe.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var ae={assertOptions:function(t,e,r){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],s=e[o];if(s){const e=t[o],r=void 0===e||s(e,o,t);if(!0!==r)throw new J("option "+o+" must be "+r,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:oe};const ue=ae.validators;class ce{constructor(t){this.defaults=t||{},this.interceptors={request:new at,response:new at}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Vt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:i}=e;void 0!==r&&ae.assertOptions(r,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),null!=n&&($.isFunction(n)?e.paramsSerializer={serialize:n}:ae.assertOptions(n,{encode:ue.function,serialize:ue.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ae.assertOptions(e,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&$.merge(i.common,i[e.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],t=>{delete i[t]}),e.headers=Ot.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))});const u=[];let c;this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h,l=0;if(!a){const t=[ne.bind(this),void 0];for(t.unshift(...s),t.push(...u),h=t.length,c=Promise.resolve(e);l<h;)c=c.then(t[l++],t[l++]);return c}h=s.length;let f=e;for(;l<h;){const t=s[l++],e=s[l++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=ne.call(this,f)}catch(t){return Promise.reject(t)}for(l=0,h=u.length;l<h;)c=c.then(u[l++],u[l++]);return c}getUri(t){return st(It((t=Vt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){ce.prototype[t]=function(e,r){return this.request(Vt(r||{},{method:t,url:e,data:(r||{}).data}))}}),$.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,i){return this.request(Vt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ce.prototype[t]=e(),ce.prototype[t+"Form"]=e(!0)});var he=ce;class le{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;const n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,i){r.reason||(r.reason=new Dt(t,n,i),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new le(function(e){t=e}),cancel:t}}}var fe=le;const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(pe).forEach(([t,e])=>{pe[e]=t});var de=pe;const ge=function t(r){const n=new he(r),i=e(he.prototype.request,n);return $.extend(i,he.prototype,n,{allOwnKeys:!0}),$.extend(i,n,null,{allOwnKeys:!0}),i.create=function(e){return t(Vt(r,e))},i}(vt);return ge.Axios=he,ge.CanceledError=Dt,ge.CancelToken=fe,ge.isCancel=At,ge.VERSION=ie,ge.toFormData=et,ge.AxiosError=J,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=function(t){return function(e){return t.apply(null,e)}},ge.isAxiosError=function(t){return $.isObject(t)&&!0===t.isAxiosError},ge.mergeConfig=Vt,ge.AxiosHeaders=Ot,ge.formToJSON=t=>yt($.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=ee.getAdapter,ge.HttpStatusCode=de,ge.default=ge,q=ge}var $,J,G,Z={exports:{}};function X(){return $||($=1,function(t){const e=s();t.exports={errorLogger:function(){!e.debug&&e.app?e.app.emit("error",arguments.length<=0?void 0:arguments[0],(arguments.length<=1?void 0:arguments[1])||{},"bjx-auth"):console.error(...arguments)},debugLogger:function(){e.debug&&console.log(...arguments)}}}(Z)),Z.exports}function Q(){return J||(J=1,function(t){const e=W(),r=s(),{debugLogger:n}=X(),i=e.create({withCredentials:!0,proxy:!1});i.interceptors.request.use(t=>{var e;return t.baseURL||(t.baseURL=r.passportapi||""),t.timeout||(t.timeout=r.timeout),null!==(e=r.debugApiUrl)&&void 0!==e&&e.includes(t.url)&&n(t.url+" <<",t),t}),i.interceptors.response.use(t=>{var e;return null!==(e=r.debugApiUrl)&&void 0!==e&&e.includes(t.config.url)&&n(t.config.url+" >>",t.data),t});const o=e.create({proxy:!1});o.interceptors.request.use(t=>{var e;return t.baseURL||(t.baseURL=r.auth||""),t.timeout||(t.timeout=r.timeout),null!==(e=r.debugApiUrl)&&void 0!==e&&e.includes(t.url)&&n(t.url+" <<",t),t}),o.interceptors.response.use(t=>{var e;return null!==(e=r.debugApiUrl)&&void 0!==e&&e.includes(t.config.url)&&n(t.config.url+" >>",t.data),t});const a=e.create({proxy:!1});a.interceptors.request.use(t=>{var e;return t.baseURL||(t.baseURL=r.enterpriseapi||""),t.timeout||(t.timeout=r.timeout),null!==(e=r.debugApiUrl)&&void 0!==e&&e.includes(t.url)&&n(t.url+" <<",t),t}),a.interceptors.response.use(t=>{var e;return null!==(e=r.debugApiUrl)&&void 0!==e&&e.includes(t.config.url)&&n(t.config.url+" >>",t.data),t}),t.exports={axios:e,passportapi:i,auth:o,enterpriseapi:a}}(K)),K.exports}function Y(){return G||(G=1,function(t){const e=M(),{passportapi:r}=Q(),{errorLogger:n,debugLogger:i}=X();let o=null;t.exports={getPublicPem:async function(){if(o&&o.expiresAt>Date.now())return o.value;let t=e();try{const{data:e}=await r({url:"/api/v1/common/config/security",method:"POST",data:t});if(!1===e.isError)return i("公钥获取成功"),o={value:"-----BEGIN PUBLIC KEY-----\n".concat(e.data.rsaPubkey,"\n-----END PUBLIC KEY-----"),expiresAt:Date.now()+288e5},o.value;throw new Error("invalid data",{cause:e})}catch(t){return n(new Error("Get pem failed [".concat(t,"]"))),null}},clearPublicPemCache:function(){return i("公钥清除成功"),o=null,!0},hasPublicPemCache:function(){return!!o}}}(z)),z.exports}var tt,et={exports:{}},rt={exports:{}};function nt(){return tt||(tt=1,rt.exports=function(){var t={606:function(t){var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var a,u=[],c=!1,h=-1;function l(){c&&a&&(c=!1,a.length?u=a.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=s(l);c=!0;for(var e=u.length;e;){for(a=u,u=[];++h<e;)a&&a[h].run();h=-1,e=u.length}a=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var n={};return function(){function t(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function e(t,e){return t&e}function i(t,e){return t|e}function o(t,e){return t^e}function s(t,e){return t&~e}function a(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function u(t){for(var e=0;0!=t;)t&=t-1,++e;return e}r.d(n,{default:function(){return Et}});var c,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=h.charAt(r>>6)+h.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=h.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=h.charAt(r>>2)+h.charAt((3&r)<<4));(3&n.length)>0;)n+="=";return n}function f(e){var r,n="",i=0,o=0;for(r=0;r<e.length&&"="!=e.charAt(r);++r){var s=h.indexOf(e.charAt(r));s<0||(0==i?(n+=t(s>>2),o=3&s,i=1):1==i?(n+=t(o<<2|s>>4),o=15&s,i=2):2==i?(n+=t(o),n+=t(s>>2),o=3&s,i=3):(n+=t(o<<2|s>>4),n+=t(15&s),i=0))}return 1==i&&(n+=t(o<<2)),n}var p,d=function(t){var e;if(void 0===c){var r="0123456789ABCDEF",n=" \f\n\r\t \u2028\u2029";for(c={},e=0;e<16;++e)c[r.charAt(e)]=e;for(r=r.toLowerCase(),e=10;e<16;++e)c[r.charAt(e)]=e;for(e=0;e<8;++e)c[n.charAt(e)]=-1}var i=[],o=0,s=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=c[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},g={decode:function(t){var e;if(void 0===p){var r="= \f\n\r\t \u2028\u2029";for(p=Object.create(null),e=0;e<64;++e)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(p["-"]=62,p._=63,e=0;e<9;++e)p[r.charAt(e)]=-1}var n=[],i=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=p[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,++o>=4?(n[n.length]=i>>16,n[n.length]=i>>8&255,n[n.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=i>>10;break;case 3:n[n.length]=i>>16,n[n.length]=i>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=g.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return g.decode(t)}},y=1e13,m=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var r,n,i=this.buf,o=i.length;for(r=0;r<o;++r)(n=i[r]*t+e)<y?e=0:n-=(e=0|n/y)*y,i[r]=n;e>0&&(i[r]=e)},t.prototype.sub=function(t){var e,r,n=this.buf,i=n.length;for(e=0;e<i;++e)(r=n[e]-t)<0?(r+=y,t=1):t=0,n[e]=r;for(;0===n[n.length-1];)n.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),n=e.length-2;n>=0;--n)r+=(y+e[n]).toString().substring(1);return r},t.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*y+t[r];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),v=/^(\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)?)?$/,b=/^(\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 w(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var S,E=function(){function t(e,r){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=r)}return t.prototype.get=function(t){if(void 0===t&&(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"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,r){for(var n="",i=t;i<e;++i)if(n+=this.hexByte(this.get(i)),!0!==r)switch(15&i){case 7:n+=" ";break;case 15:n+="\n";break;default:n+=" "}return n},t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var n=this.get(r);if(n<32||n>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var r="",n=t;n<e;++n)r+=String.fromCharCode(this.get(n));return r},t.prototype.parseStringUTF=function(t,e){for(var r="",n=t;n<e;){var i=this.get(n++);r+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(n++)):String.fromCharCode((15&i)<<12|(63&this.get(n++))<<6|63&this.get(n++))}return r},t.prototype.parseStringBMP=function(t,e){for(var r,n,i="",o=t;o<e;)r=this.get(o++),n=this.get(o++),i+=String.fromCharCode(r<<8|n);return i},t.prototype.parseTime=function(t,e,r){var n=this.parseStringISO(t,e),i=(r?v:b).exec(n);return i?(r&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),n=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(n+=":"+i[5],i[6]&&(n+=":"+i[6],i[7]&&(n+="."+i[7]))),i[8]&&(n+=" UTC","Z"!=i[8]&&(n+=i[8],i[9]&&(n+=":"+i[9]))),n):"Unrecognized time: "+n},t.prototype.parseInteger=function(t,e){for(var r,n=this.get(t),i=n>127,o=i?255:0,s="";n==o&&++t<e;)n=this.get(t);if(0===(r=e-t))return i?-1:0;if(r>4){for(s=n,r<<=3;!(128&(+s^o));)s=+s<<1,--r;s="("+r+" bit)\n"}i&&(n-=256);for(var a=new m(n),u=t+1;u<e;++u)a.mulAdd(256,this.get(u));return s+a.toString()},t.prototype.parseBitString=function(t,e,r){for(var n=this.get(t),i="("+((e-t-1<<3)-n)+" bit)\n",o="",s=t+1;s<e;++s){for(var a=this.get(s),u=s==e-1?n:0,c=7;c>=u;--c)o+=a>>c&1?"1":"0";if(o.length>r)return i+w(o,r)}return i+o},t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return w(this.parseStringISO(t,e),r);var n=e-t,i="("+n+" byte)\n";n>(r/=2)&&(e=t+r);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return n>r&&(i+="…"),i},t.prototype.parseOID=function(t,e,r){for(var n="",i=new m,o=0,s=t;s<e;++s){var a=this.get(s);if(i.mulAdd(128,127&a),o+=7,!(128&a)){if(""===n)if((i=i.simplify())instanceof m)i.sub(80),n="2."+i.toString();else{var u=i<80?i<40?0:1:2;n=u+"."+(i-40*u)}else n+="."+i.toString();if(n.length>r)return w(n,r);i=new m,o=0}}return o>0&&(n+=".incomplete"),n},t}(),T=function(){function t(t,e,r,n,i){if(!(n instanceof x))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=n,this.sub=i}return t.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()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return w(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return w(this.stream.parseStringISO(e,e+r),t);case 30:return w(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var r=0,n=this.sub.length;r<n;++r)e+=this.sub[r].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var n=0;n<r;++n)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,r=2*this.length;return t.substring(e,e+r)},t.decode=function(e){var r;r=e instanceof E?e:new E(e,0);var n=new E(r),i=new x(r),o=t.decodeLength(r),s=r.pos,a=s-n.pos,u=null,c=function(){var e=[];if(null!==o){for(var n=s+o;r.pos<n;)e[e.length]=t.decode(r);if(r.pos!=n)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var i=t.decode(r);if(i.tag.isEOC())break;e[e.length]=i}o=s-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var h=0;h<u.length;++h)if(u[h].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new t(n,a,o,i,u)},t}(),x=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=!!(32&e),this.tagNumber=31&e,31==this.tagNumber){var r=new m;do{e=t.get(),r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),O=[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],R=(1<<26)/O[O.length-1],A=function(){function r(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(16==e)r=4;else if(8==e)r=3;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return this.toRadix(e);r=2}var n,i=(1<<r)-1,o=!1,s="",a=this.t,u=this.DB-a*this.DB%r;if(a-- >0)for(u<this.DB&&(n=this[a]>>u)>0&&(o=!0,s=t(n));a>=0;)u<r?(n=(this[a]&(1<<u)-1)<<r-u,n|=this[--a]>>(u+=this.DB-r)):(n=this[a]>>(u-=r)&i,u<=0&&(u+=this.DB,--a)),n>0&&(o=!0),o&&(s+=t(n));return o?s:"0"},r.prototype.negate=function(){var t=C();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+M(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=C();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new B(e):new _(e),this.exp(t,r)},r.prototype.clone=function(){var t=C();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),128&r&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},r.prototype.equals=function(t){return 0==this.compareTo(t)},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var r=C();return this.bitwiseTo(t,e,r),r},r.prototype.or=function(t){var e=C();return this.bitwiseTo(t,i,e),e},r.prototype.xor=function(t){var e=C();return this.bitwiseTo(t,o,e),e},r.prototype.andNot=function(t){var e=C();return this.bitwiseTo(t,s,e),e},r.prototype.not=function(){for(var t=C(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=C();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=C();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+a(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=u(this[r]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},r.prototype.setBit=function(t){return this.changeBit(t,i)},r.prototype.clearBit=function(t){return this.changeBit(t,s)},r.prototype.flipBit=function(t){return this.changeBit(t,o)},r.prototype.add=function(t){var e=C();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=C();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=C();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=C();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=C();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=C(),r=C();return this.divRemTo(t,e,r),[e,r]},r.prototype.modPow=function(t,e){var r,n,i=t.bitLength(),o=U(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new B(e):e.isEven()?new P(e):new _(e);var s=[],a=3,u=r-1,c=(1<<r)-1;if(s[1]=n.convert(this),r>1){var h=C();for(n.sqrTo(s[1],h);a<=c;)s[a]=C(),n.mulTo(h,s[a-2],s[a]),a+=2}var l,f,p=t.t-1,d=!0,g=C();for(i=M(t[p])-1;p>=0;){for(i>=u?l=t[p]>>i-u&c:(l=(t[p]&(1<<i+1)-1)<<u-i,p>0&&(l|=t[p-1]>>this.DB+i-u)),a=r;!(1&l);)l>>=1,--a;if((i-=a)<0&&(i+=this.DB,--p),d)s[l].copyTo(o),d=!1;else{for(;a>1;)n.sqrTo(o,g),n.sqrTo(g,o),a-=2;a>0?n.sqrTo(o,g):(f=o,o=g,g=f),n.mulTo(g,s[l],o)}for(;p>=0&&!(t[p]&1<<i);)n.sqrTo(o,g),f=o,o=g,g=f,--i<0&&(i=this.DB-1,--p)}return n.revert(o)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return r.ZERO;for(var n=t.clone(),i=this.clone(),o=U(1),s=U(0),a=U(0),u=U(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),e&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(n,i),e&&a.subTo(o,a),u.subTo(s,u))}return 0!=i.compareTo(r.ONE)?r.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},r.prototype.pow=function(t){return this.exp(t,new D)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<O.length;){for(var n=O[e],i=e+1;i<O.length&&n<R;)n*=O[i++];for(n=r.modInt(n);e<i;)if(n%O[e++]==0)return!1}return r.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.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},r.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=8==n?255&+t[i]:L(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&128&+t[0]&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,n=this.DB-r,i=(1<<n)-1,o=Math.floor(t/this.DB),s=this.s<<r&this.DM,a=this.t-1;a>=0;--a)e[a+o+1]=this[a]>>n|s,s=(this[a]&i)<<r;for(a=o-1;a>=0;--a)e[a]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},r.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+n.t]=n.am(0,i[o],e,o,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=e&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=C());var s=C(),a=this.s,u=t.s,c=this.DB-M(i[i.t-1]);c>0?(i.lShiftTo(c,s),o.lShiftTo(c,n)):(i.copyTo(s),o.copyTo(n));var h=s.t,l=s[h-1];if(0!=l){var f=l*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,g=1<<this.F2,y=n.t,m=y-h,v=null==e?C():e;for(s.dlShiftTo(m,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),r.ONE.dlShiftTo(h,v),v.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--m>=0;){var b=n[--y]==l?this.DM:Math.floor(n[y]*p+(n[y-1]+g)*d);if((n[y]+=s.am(0,b,n,m,0,h))<b)for(s.dlShiftTo(m,v),n.subTo(v,n);n[y]<--b;)n.subTo(v,n)}null!=e&&(n.drShiftTo(h,e),a!=u&&r.ZERO.subTo(e,e)),n.t=h,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var n=C(),i=C(),o=e.convert(this),s=M(t)-1;for(o.copyTo(n);--s>=0;)if(e.sqrTo(n,i),(t&1<<s)>0)e.mulTo(i,o,n);else{var a=n;n=i,i=a}return e.revert(n)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=U(r),i=C(),o=C(),s="";for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(t).substring(1)+s,i.divRemTo(n,i,o);return o.intValue().toString(t)+s},r.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),o=!1,s=0,a=0,u=0;u<t.length;++u){var c=L(t,u);c<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(a=e*a+c,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),i,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var o=[],s=7&t;o.length=1+(t>>3),e.nextBytes(o),s>0?o[0]&=(1<<s)-1:o[0]=0,this.fromString(o,256)}},r.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,r){var n=Math.min(this.t+t.t,e);for(r.s=0,r.t=n;n>0;)r[--n]=0;for(var i=r.t-this.t;n<i;++n)r[n+this.t]=this.am(0,t[n],r,n,0,this.t);for(i=Math.min(t.t,e);n<i;++n)this.am(0,t[n],r,n,0,e-n);r.clamp()},r.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);(t=t+1>>1)>O.length&&(t=O.length);for(var o=C(),s=0;s<t;++s){o.fromInt(O[Math.floor(Math.random()*O.length)]);var a=o.modPow(i,this);if(0!=a.compareTo(r.ONE)&&0!=a.compareTo(e)){for(var u=1;u++<n&&0!=a.compareTo(e);)if(0==(a=a.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=a.compareTo(e))return!1}}return!0},r.prototype.square=function(){var t=C();return this.squareTo(t),t},r.prototype.gcda=function(t,e){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 o=r.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)e(r);else{o<s&&(s=o),s>0&&(r.rShiftTo(s,r),n.rShiftTo(s,n));var a=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n)),r.signum()>0?setTimeout(a,0):(s>0&&n.lShiftTo(s,n),setTimeout(function(){e(n)},0))};setTimeout(a,10)}},r.prototype.fromNumberAsync=function(t,e,n,o){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),i,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(r.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){o()},0):setTimeout(a,0)};setTimeout(a,0)}else{var u=[],c=7&t;u.length=1+(t>>3),e.nextBytes(u),c>0?u[0]&=(1<<c)-1:u[0]=0,this.fromString(u,256)}},r}(),D=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),B=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),_=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=C();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(A.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=C();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),P=function(){function t(t){this.m=t,this.r2=C(),this.q3=C(),A.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.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 e=C();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.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)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function C(){return new A(null)}function N(t,e){return new A(t,e)}var j="undefined"!=typeof navigator;j&&"Microsoft Internet Explorer"==navigator.appName?(A.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,h=a*u+c*s;i=((u=s*u+((32767&h)<<15)+r[n]+(1073741823&i))>>>30)+(h>>>15)+a*c+(i>>>30),r[n++]=1073741823&u}return i},S=30):j&&"Netscape"!=navigator.appName?(A.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},S=26):(A.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,h=a*u+c*s;i=((u=s*u+((16383&h)<<14)+r[n]+i)>>28)+(h>>14)+a*c,r[n++]=268435455&u}return i},S=28),A.prototype.DB=S,A.prototype.DM=(1<<S)-1,A.prototype.DV=1<<S,A.prototype.FV=Math.pow(2,52),A.prototype.F1=52-S,A.prototype.F2=2*S-52;var I,k,V=[];for(I="0".charCodeAt(0),k=0;k<=9;++k)V[I++]=k;for(I="a".charCodeAt(0),k=10;k<36;++k)V[I++]=k;for(I="A".charCodeAt(0),k=10;k<36;++k)V[I++]=k;function L(t,e){var r=V[t.charCodeAt(e)];return null==r?-1:r}function U(t){var e=C();return e.fromInt(t),e}function M(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}A.ZERO=U(0),A.ONE=U(1);var q,F,H=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},t.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]},t}(),z=null;if(null==z){z=[],F=0;var K=void 0;if("undefined"!=typeof window&&self.crypto&&self.crypto.getRandomValues){var W=new Uint32Array(256);for(self.crypto.getRandomValues(W),K=0;K<W.length;++K)z[F++]=255&W[K]}var $=0,J=function(t){if(($=$||0)>=256||F>=256)self.removeEventListener?self.removeEventListener("mousemove",J,!1):self.detachEvent&&self.detachEvent("onmousemove",J);else try{var e=t.x+t.y;z[F++]=255&e,$+=1}catch(t){}};"undefined"!=typeof window&&(self.addEventListener?self.addEventListener("mousemove",J,!1):self.attachEvent&&self.attachEvent("onmousemove",J))}function G(){if(null==q){for(q=new H;F<256;){var t=Math.floor(65536*Math.random());z[F++]=255&t}for(q.init(z),F=0;F<z.length;++F)z[F]=0;F=0}return q.next()}var Z=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=G()},t}();function X(t){return function(t){for(var e="",r=0;r<32*t.length;r+=8)e+=String.fromCharCode(t[r>>5]>>>24-r%32&255);return e}(function(t,e){var r,n,i,o,s,a,u,c,h,l,f,p,d=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,h=0;h<t.length;h+=16){for(r=d[0],n=d[1],i=d[2],o=d[3],s=d[4],a=d[5],u=d[6],c=d[7],l=0;l<64;l++)g[l]=l<16?t[l+h]:ut(ut(ut(st(g[l-2]),g[l-7]),ot(g[l-15])),g[l-16]),f=ut(ut(ut(ut(c,it(s)),et(s,a,u)),at[l]),g[l]),p=ut(nt(r),rt(r,n,i)),c=u,u=a,a=s,s=ut(o,f),o=i,i=n,n=r,r=ut(f,p);d[0]=ut(r,d[0]),d[1]=ut(n,d[1]),d[2]=ut(i,d[2]),d[3]=ut(o,d[3]),d[4]=ut(s,d[4]),d[5]=ut(a,d[5]),d[6]=ut(u,d[6]),d[7]=ut(c,d[7])}return d}(function(t){for(var e=Array(t.length>>2),r=0;r<e.length;r++)e[r]=0;for(r=0;r<8*t.length;r+=8)e[r>>5]|=(255&t.charCodeAt(r/8))<<24-r%32;return e}(t),8*t.length))}function Q(t){for(var e="0123456789abcdef",r="",n=0;n<t.length;n++){var i=t.charCodeAt(n);r+=e.charAt(i>>>4&15)+e.charAt(15&i)}return r}function Y(t,e){return t>>>e|t<<32-e}function tt(t,e){return t>>>e}function et(t,e,r){return t&e^~t&r}function rt(t,e,r){return t&e^t&r^e&r}function nt(t){return Y(t,2)^Y(t,13)^Y(t,22)}function it(t){return Y(t,6)^Y(t,11)^Y(t,25)}function ot(t){return Y(t,7)^Y(t,18)^tt(t,3)}function st(t){return Y(t,17)^Y(t,19)^tt(t,10)}var at=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function ut(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function ct(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=63&i|128,r[--e]=i>>6|192):(r[--e]=63&i|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var o=new Z,s=[];e>2;){for(s[0]=0;0==s[0];)o.nextBytes(s);r[--e]=s[0]}return r[--e]=2,r[--e]=0,new A(r)}function ht(t,e,r){for(var n="",i=0;n.length<e;)n+=r(String.fromCharCode.apply(String,t.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return n}function lt(t,e){var r=X;if(t.length+64+2>e)throw"Message too long for RSA";var n,i="";for(n=0;n<e-t.length-64-2;n+=1)i+="\0";var o=r("")+i+""+t,s=new Array(32);(new Z).nextBytes(s);var a=ht(s,o.length,r),u=[];for(n=0;n<o.length;n+=1)u[n]=o.charCodeAt(n)^a.charCodeAt(n);var c=ht(u,s.length,r),h=[0];for(n=0;n<s.length;n+=1)h[n+1]=s[n]^c.charCodeAt(n);return new A(h.concat(u))}var ft=function(){function t(){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 t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=N(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t,e){void 0===e&&(e=ct);var r=this.n.bitLength()+7>>3,n=e(t,r);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var o=i.toString(16),s=o.length,a=0;a<2*r-s;a++)o="0"+o;return o},t.prototype.setPrivate=function(t,e,r){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=N(t,16),this.e=parseInt(e,16),this.d=N(r,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,r,n,i,o,s,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=N(t,16),this.e=parseInt(e,16),this.d=N(r,16),this.p=N(n,16),this.q=N(i,16),this.dmp1=N(o,16),this.dmq1=N(s,16),this.coeff=N(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var r=new Z,n=t>>1;this.e=parseInt(e,16);for(var i=new A(e,16);;){for(;this.p=new A(t-n,1,r),0!=this.p.subtract(A.ONE).gcd(i).compareTo(A.ONE)||!this.p.isProbablePrime(10););for(;this.q=new A(n,1,r),0!=this.q.subtract(A.ONE).gcd(i).compareTo(A.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(A.ONE),a=this.q.subtract(A.ONE),u=s.multiply(a);if(0==u.gcd(i).compareTo(A.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=N(t,16),r=this.doPrivate(e);return null==r?null:function(t,e){for(var r=t.toByteArray(),n=0;n<r.length&&0==r[n];)++n;if(r.length-n!=e-1||2!=r[n])return null;for(++n;0!=r[n];)if(++n>=r.length)return null;for(var i="";++n<r.length;){var o=255&r[n];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&r[n+1]),++n):(i+=String.fromCharCode((15&o)<<12|(63&r[n+1])<<6|63&r[n+2]),n+=2)}return i}(r,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,r){var n=new Z,i=t>>1;this.e=parseInt(e,16);var o=new A(e,16),s=this,a=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(A.ONE),n=s.q.subtract(A.ONE),i=e.multiply(n);0==i.gcd(o).compareTo(A.ONE)?(s.n=s.p.multiply(s.q),s.d=o.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(n),s.coeff=s.q.modInverse(s.p),setTimeout(function(){r()},0)):setTimeout(a,0)},u=function(){s.q=C(),s.q.fromNumberAsync(i,1,n,function(){s.q.subtract(A.ONE).gcda(o,function(t){0==t.compareTo(A.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)})})},c=function(){s.p=C(),s.p.fromNumberAsync(t-i,1,n,function(){s.p.subtract(A.ONE).gcda(o,function(t){0==t.compareTo(A.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)})})};setTimeout(c,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,r){var n=(pt[r]||"")+e(t).toString(),i=this.n.bitLength()/4,o=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var r=e-t.length-6,n="",i=0;i<r;i+=2)n+="ff";return N("0001"+n+"00"+t,16)}(n,i);if(null==o)return null;var s=this.doPrivate(o);if(null==s)return null;for(var a=s.toString(16),u=a.length,c=0;c<i-u;c++)a="0"+a;return a},t.prototype.verify=function(t,e,r){var n=N(e,16),i=this.doPublic(n);return null==i?null:function(t){for(var e in pt)if(pt.hasOwnProperty(e)){var r=pt[e],n=r.length;if(t.substring(0,n)==r)return t.substring(n)}return t}(i.toString(16).replace(/^1f+00/,""))==r(t).toString()},t}(),pt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function dt(t,e,r){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}var gt={};void 0!==gt.asn1&>.asn1||(gt.asn1={}),gt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substring(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substring(1).length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";e=new A(n,16).xor(t).add(A.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=gt.asn1,r=e.DERBoolean,n=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,a=e.DERObjectIdentifier,u=e.DEREnumerated,c=e.DERUTF8String,h=e.DERNumericString,l=e.DERPrintableString,f=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,y=e.DERSequence,m=e.DERSet,v=e.DERTaggedObject,b=e.ASN1Util.newObject,w=Object.keys(t);if(1!=w.length)throw"key of param shall be only one.";var S=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new r(t[S]);if("int"==S)return new n(t[S]);if("bitstr"==S)return new i(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new s(t[S]);if("oid"==S)return new a(t[S]);if("enum"==S)return new u(t[S]);if("utf8str"==S)return new c(t[S]);if("numstr"==S)return new h(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new f(t[S]);if("ia5str"==S)return new p(t[S]);if("utctime"==S)return new d(t[S]);if("gentime"==S)return new g(t[S]);if("seq"==S){for(var E=t[S],T=[],x=0;x<E.length;x++){var O=b(E[x]);T.push(O)}return new y({array:T})}if("set"==S){for(E=t[S],T=[],x=0;x<E.length;x++)O=b(E[x]),T.push(O);return new m({array:T})}if("tag"==S){var R=t[S];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){var A=b(R[2]);return new v({tag:R[0],explicit:R[1],obj:A})}var D={};if(void 0!==R.explicit&&(D.explicit=R.explicit),void 0!==R.tag&&(D.tag=R.tag),void 0===R.obj)throw"obj shall be specified for 'tag'.";return D.obj=b(R.obj),new v(D)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},gt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",r=parseInt(t.substring(0,2),16),n=(e=Math.floor(r/40)+"."+r%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substring(i,i+2),16).toString(2)).slice(-8);n+=o.substring(1,8),"0"==o.substring(0,1)&&(e=e+"."+new A(n,2).toString(10),n="")}return e},gt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new A(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";for(n=o+n,s=0;s<n.length-1;s+=7){var a=n.substring(s,s+7);s!=n.length-7&&(a="1"+a),r+=e(parseInt(a,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n},gt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+r).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||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""}},gt.asn1.DERAbstractString=function(t){gt.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},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},dt(gt.asn1.DERAbstractString,gt.asn1.ASN1Object),gt.asn1.DERAbstractTime=function(t){gt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,r){var n=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substring(2,4));var s=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var a=i.getMilliseconds();if(0!=a){var u=n(String(a),3);s=s+"."+(u=u.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-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,e,r,n,i,o){var s=new Date(Date.UTC(t,e-1,r,n,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},dt(gt.asn1.DERAbstractTime,gt.asn1.ASN1Object),gt.asn1.DERAbstractStructured=function(t){gt.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,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},dt(gt.asn1.DERAbstractStructured,gt.asn1.ASN1Object),gt.asn1.DERBoolean=function(){gt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},dt(gt.asn1.DERBoolean,gt.asn1.ASN1Object),gt.asn1.DERInteger=function(t){gt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=gt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new A(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},dt(gt.asn1.DERInteger,gt.asn1.ASN1Object),gt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=gt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}gt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var r=0;r<=e;r++)t+="0";var n="";for(r=0;r<t.length-1;r+=8){var i=t.substring(r,r+8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+n},this.setByBooleanArray=function(t){for(var e="",r=0;r<t.length;r++)1==t[r]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},dt(gt.asn1.DERBitString,gt.asn1.ASN1Object),gt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=gt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}gt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},dt(gt.asn1.DEROctetString,gt.asn1.DERAbstractString),gt.asn1.DERNull=function(){gt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},dt(gt.asn1.DERNull,gt.asn1.ASN1Object),gt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new A(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";for(n=o+n,s=0;s<n.length-1;s+=7){var a=n.substring(s,s+7);s!=n.length-7&&(a="1"+a),r+=e(parseInt(a,2))}return r};gt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(t){var e=gt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},dt(gt.asn1.DERObjectIdentifier,gt.asn1.ASN1Object),gt.asn1.DEREnumerated=function(t){gt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=gt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new A(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},dt(gt.asn1.DEREnumerated,gt.asn1.ASN1Object),gt.asn1.DERUTF8String=function(t){gt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},dt(gt.asn1.DERUTF8String,gt.asn1.DERAbstractString),gt.asn1.DERNumericString=function(t){gt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},dt(gt.asn1.DERNumericString,gt.asn1.DERAbstractString),gt.asn1.DERPrintableString=function(t){gt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},dt(gt.asn1.DERPrintableString,gt.asn1.DERAbstractString),gt.asn1.DERTeletexString=function(t){gt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},dt(gt.asn1.DERTeletexString,gt.asn1.DERAbstractString),gt.asn1.DERIA5String=function(t){gt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},dt(gt.asn1.DERIA5String,gt.asn1.DERAbstractString),gt.asn1.DERUTCTime=function(t){gt.asn1.DERUTCTime.superclass.constructor.call(this,t),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 void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},dt(gt.asn1.DERUTCTime,gt.asn1.DERAbstractTime),gt.asn1.DERGeneralizedTime=function(t){gt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),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 void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},dt(gt.asn1.DERGeneralizedTime,gt.asn1.DERAbstractTime),gt.asn1.DERSequence=function(t){gt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},dt(gt.asn1.DERSequence,gt.asn1.DERAbstractStructured),gt.asn1.DERSet=function(t){gt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},dt(gt.asn1.DERSet,gt.asn1.DERAbstractStructured),gt.asn1.DERTaggedObject=function(t){gt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},dt(gt.asn1.DERTaggedObject,gt.asn1.ASN1Object);var yt,mt,vt=(yt=function(t,e){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},yt(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}yt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),bt=function(t){function e(r){var n=t.call(this)||this;return r&&("string"==typeof r?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return vt(e,t),e.prototype.parseKey=function(t){try{var e=0,r=0,n=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?d(t):g.unarmor(t),i=T.decode(n);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=N(e,16),r=i.sub[2].getHexStringValue(),this.e=parseInt(r,16);var o=i.sub[3].getHexStringValue();this.d=N(o,16);var s=i.sub[4].getHexStringValue();this.p=N(s,16);var a=i.sub[5].getHexStringValue();this.q=N(a,16);var u=i.sub[6].getHexStringValue();this.dmp1=N(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=N(c,16);var h=i.sub[8].getHexStringValue();this.coeff=N(h,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=N(e,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else e=i.sub[0].getHexStringValue(),this.n=N(e,16),r=i.sub[1].getHexStringValue(),this.e=parseInt(r,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new gt.asn1.DERInteger({int:0}),new gt.asn1.DERInteger({bigint:this.n}),new gt.asn1.DERInteger({int:this.e}),new gt.asn1.DERInteger({bigint:this.d}),new gt.asn1.DERInteger({bigint:this.p}),new gt.asn1.DERInteger({bigint:this.q}),new gt.asn1.DERInteger({bigint:this.dmp1}),new gt.asn1.DERInteger({bigint:this.dmq1}),new gt.asn1.DERInteger({bigint:this.coeff})]};return new gt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return l(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new gt.asn1.DERSequence({array:[new gt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new gt.asn1.DERNull]}),e=new gt.asn1.DERSequence({array:[new gt.asn1.DERInteger({bigint:this.n}),new gt.asn1.DERInteger({int:this.e})]}),r=new gt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new gt.asn1.DERSequence({array:[t,r]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return l(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var r="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(ft),wt=r(606),St=void 0!==wt?null===(mt=wt.env)||void 0===mt?void 0:"3.5.4":void 0,Et=function(){function t(t){void 0===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=t.key||null}return t.prototype.setKey=function(t){t?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new bt(t)):!this.key&&this.log&&console.error("A key was not set.")},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(f(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return l(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.encryptOAEP=function(t){try{return l(this.getKey().encrypt(t,lt))}catch(t){return!1}},t.prototype.sign=function(t,e,r){void 0===e&&(e=function(t){return t}),void 0===r&&(r="");try{return l(this.getKey().sign(t,e,r))}catch(t){return!1}},t.prototype.signSha256=function(t){return this.sign(t,function(t){return Q(X(t))},"sha256")},t.prototype.verify=function(t,e,r){void 0===r&&(r=function(t){return t});try{return this.getKey().verify(t,f(e),r)}catch(t){return!1}},t.prototype.verifySha256=function(t,e){return this.verify(t,e,function(t){return Q(X(t))})},t.prototype.getKey=function(t){if(!this.key){if(this.key=new bt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=St,t}()}(),n.default}()),rt.exports}var it,ot={exports:{}},st={exports:{}},at={exports:{}};function ut(){return it?at.exports:(it=1,at.exports=(a=m(),e=(t=a).lib,r=e.WordArray,n=e.Hasher,i=t.algo,o=[],s=i.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],a=r[3],u=r[4],c=0;c<80;c++){if(c<16)o[c]=0|t[e+c];else{var h=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=h<<1|h>>>31}var l=(n<<5|n>>>27)+u+o[c];l+=c<20?1518500249+(i&s|~i&a):c<40?1859775393+(i^s^a):c<60?(i&s|i&a|s&a)-1894007588:(i^s^a)-899497514,u=a,a=s,s=i<<30|i>>>2,i=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=n._createHelper(s),t.HmacSHA1=n._createHmacHelper(s),a.SHA1));var t,e,r,n,i,o,s,a}var ct;function ht(){return ct?st.exports:(ct=1,st.exports=(a=m(),ut(),T(),e=(t=a).lib,r=e.Base,n=e.WordArray,i=t.algo,o=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,i=this.cfg,o=i.hasher.create(),s=n.create(),a=s.words,u=i.keySize,c=i.iterations;a.length<u;){r&&o.update(r),r=o.update(t).finalize(e),o.reset();for(var h=1;h<c;h++)r=o.finalize(r),o.reset();s.concat(r)}return s.sigBytes=4*u,s}}),t.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)},a.EvpKDF));var t,e,r,n,i,o,s,a}var lt,ft={exports:{}};function pt(){return lt?ft.exports:(lt=1,ft.exports=(t=m(),ht(),void(t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=r.enc;a.Utf8;var u=a.Base64,c=r.algo.EvpKDF,h=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:m}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()});n.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=r.mode={},f=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=l.CBC=function(){var t=f.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var s=0;s<n;s++)t[r+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);n.decryptBlock(t,e),r.call(this,t,e,i),this._prevBlock=o}}),t}(),d=(r.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(i);var u=o.create(s,n);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:d}),reset:function(){var t;h.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var g=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(r.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(e):e).toString(u)},parse:function(t){var e,r=u.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:e})}},m=n.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),s=i.cfg;return g.create({ciphertext:o,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),v=(r.kdf={}).OpenSSL={execute:function(t,e,r,n,i){if(n||(n=o.random(8)),i)s=c.create({keySize:e+r,hasher:i}).compute(t,n);else var s=c.create({keySize:e+r}).compute(t,n);var a=o.create(s.words.slice(e),4*r);return s.sigBytes=4*e,g.create({key:s,iv:a,salt:n})}},b=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:v}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=m.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt,n.hasher);return n.iv=i.iv,m.decrypt.call(this,t,e,i.key,n)}})}())));var t}var dt;var gt,yt={exports:{}};function mt(){return gt||(gt=1,yt.exports=(t=m(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init,n=e.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)),yt.exports;var t}var vt,bt,wt,St,Et,Tt={exports:{}};function xt(){return bt||(bt=1,function(t){const e=nt(),r=dt?ot.exports:(dt=1,ot.exports=(n=m(),A(),_(),ht(),pt(),function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],o=[],s=[],a=[],u=[],c=[],h=[],l=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var g=t[r],y=t[g],m=t[y],v=257*t[d]^16843008*d;s[r]=v<<24|v>>>8,a[r]=v<<16|v>>>16,u[r]=v<<8|v>>>24,c[r]=v,v=16843009*m^65537*y^257*g^16843008*r,h[d]=v<<24|v>>>8,l[d]=v<<16|v>>>16,f[d]=v<<8|v>>>24,p[d]=v,r?(r=g^t[t[t[m^g]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],s=0;s<n;s++)s<r?o[s]=e[s]:(c=o[s-1],s%r?r>6&&s%r==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=d[s/r|0]<<24),o[s]=o[s-r]^c);for(var a=this._invKeySchedule=[],u=0;u<n;u++){if(s=n-u,u%4)var c=o[s];else c=o[s-4];a[u]=u<4||s<=4?c:h[i[c>>>24]]^l[i[c>>>16&255]]^f[i[c>>>8&255]]^p[i[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,u,c,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,h,l,f,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var u=this._nRounds,c=t[e]^r[0],h=t[e+1]^r[1],l=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<u;d++){var g=n[c>>>24]^i[h>>>16&255]^o[l>>>8&255]^s[255&f]^r[p++],y=n[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^s[255&c]^r[p++],m=n[l>>>24]^i[f>>>16&255]^o[c>>>8&255]^s[255&h]^r[p++],v=n[f>>>24]^i[c>>>16&255]^o[h>>>8&255]^s[255&l]^r[p++];c=g,h=y,l=m,f=v}g=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^r[p++],y=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&c])^r[p++],m=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^r[p++],v=(a[f>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^r[p++],t[e]=g,t[e+1]=y,t[e+2]=m,t[e+3]=v},keySize:8});t.AES=e._createHelper(g)}(),n.AES));var n;const i=mt(),o=function(){return vt?Tt.exports:(vt=1,Tt.exports=(t=m(),pt(),t.pad.Pkcs7));var t}(),s=V();t.exports={encryptRSA:function(t,r){if(!r)throw new Error("publicPem is required");const n=new e;return n.setPublicKey(r),n.encrypt(t)},encryptAES:function(t){const e=i.random(16),n=e,a=r.encrypt(t,n,{iv:e,padding:o});return{iv:e.toString(s),encrypted:a.toString()}}}}(et)),et.exports}function Ot(){return Et||(Et=1,function(t){const{getPublicPem:e}=Y(),{encryptRSA:r,encryptAES:n}=function(){if(St)return wt;let t;return St=1,t=xt(),wt=t}();t.exports=async function(t){if(!t)throw new Error("data is required");const i=await e(),o=JSON.stringify(t),{encrypted:s,iv:a}=n(o);return{akaParams:s,secretKey:r(a,i)}}}(H)),H.exports}var Rt,At,Dt={exports:{}};function Bt(){return Rt||(Rt=1,function(t){const{hashMD5:e}=U(),r=s();t.exports={getReqSign:function(t){"string"==typeof t&&(t={eqp:t||"",os:(arguments.length<=1?void 0:arguments[1])||"",ba:(arguments.length<=2?void 0:arguments[2])||"",bp:(arguments.length<=3?void 0:arguments[3])||""});let{eqp:n,os:i,ba:o,bp:s,ver:a,ctx:u}=t||{};u&&(n||(n=u.uuid),o||(o=u.query.ba),s||(s=u.query.bp));const c={EQP:n||r.eqp||"",OS:i||1*r.os||1,BA:o||r.ba||"",BP:s||r.bp||"",Ver:a||r.ver||"1.0.0",TS:Date.now()},h="EQP=".concat(c.EQP,"&OS=").concat(c.OS,"&BA=").concat(c.BA,"&BP=").concat(c.BP,"&Ver=").concat(c.Ver,"&TS=").concat(c.TS,"+").concat("bjxstat2019"),l=e(h).toUpperCase();return Object.assign(c,{Sign:l})},getReqSign2:function(t){"string"==typeof t&&(t={eqp:t||"",os:(arguments.length<=1?void 0:arguments[1])||"",ba:(arguments.length<=2?void 0:arguments[2])||"",bp:(arguments.length<=3?void 0:arguments[3])||"",xappid:(arguments.length<=4?void 0:arguments[4])||""});let{eqp:n,os:i,ba:o,bp:s,ver:a,xappid:u,ctx:c}=t||{};c&&(n||(n=c.uuid),o||(o=c.query.ba),s||(s=c.query.bp));const h={EQP:n||r.eqp||"",OS:i||1*r.os||1,BA:o||r.ba||"",BP:s||r.bp||"",Ver:a||r.ver||"1.0.0",TS:Date.now(),XAppId:u||r.clientId||""},l="EQP=".concat(h.EQP,"&OS=").concat(h.OS,"&BA=").concat(h.BA,"&BP=").concat(h.BP,"&Ver=").concat(h.Ver,"&TS=").concat(h.TS,"&XAppId=").concat(h.XAppId,"+").concat("%SiGn2021!@#"),f=e(l).toUpperCase();return Object.assign(h,{Sign:f})}}}(Dt)),Dt.exports}function _t(){return At||(At=1,function(t){const e=M(),r=Ot(),n=Bt();t.exports=c({reqSign:e,reqEncrypt:r,getReqBody:async function(t,n,i){let{eqp:o="",os:s="",ba:a="",bp:u="",ver:c="",apiVersion:h="",signVersion:l="",clientId:f="",clientSecret:p="",ctx:d}=i||{};d&&(o||(o=d.uuid),a||(a=d.query.ba),u||(u=d.query.bp));const g={eqp:o,os:s,ba:a,bp:u,ver:c,apiVersion:h,signVersion:l,clientId:f,clientSecret:p};return n&&t&&Object.keys(t).length>0?g.data=await r(t):g.data=t||{},e(g)}},n)}(h)),h.exports}var Pt,Ct={exports:{}};function Nt(){return Pt||(Pt=1,function(t){const{passportapi:e}=Q(),{getReqBody:r}=_t();t.exports={getToken:async function(t,n){return t.__isRefresh__?async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(null,!1,n),e(c({url:"/api/v1/token/refresh/web",method:"POST"},t))}(t,n):async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(null,!1,n),e(c({url:"/api/v1/token/web",method:"POST"},t))}(t,n)},loginSms:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/login/sms/web",method:"POST"},t))},loginPwd:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/login/pwd/web",method:"POST"},t))},registerSms:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/register/sms/web",method:"POST"},t))},logout:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(null,!1,n),e(c({url:"/api/v1/logout/web",method:"POST"},t))},loginSmsQuick:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/login/sms/quick/web",method:"POST"},t))},userBusmold:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!1,n),e(c({url:"/api/v1/user/busmold/seekers/set",method:"POST"},t))},userExist:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!1,n),e(c({url:"/api/v1/user/exist/phone",method:"POST"},t))},pwdResetVerify:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/user/pwd/reset/verify",method:"POST"},t))},pwdReset:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/user/pwd/reset",method:"POST"},t))},wxpubCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!1,n),e(c({url:"/api/v1/wechat/wxpub/qrcode",method:"POST"},t))},wxpubScan:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!1,n),e(c({url:"/api/v1/wechat/wxpub/scan/login",method:"POST"},t))},wxpubBindLogin:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/wechat/wxpub/scan/bindlogin",method:"POST"},t))},wxpubH5Code:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!1,n),e(c({url:"/api/v1/wechat/wxpub/h5/getcode",method:"POST"},t))},wxpubH5BindLogin:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/wechat/wxpub/h5/bindlogin",method:"POST"},t))},webappCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!1,n),e(c({url:"/api/v1/wechat/webapp/code",method:"POST"},t))},webappBindLogin:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=await r(t.data,!0,n),e(c({url:"/api/v1/wechat/webapp/bindlogin",method:"POST"},t))}}}(Ct)),Ct.exports}var jt,It,kt={exports:{}};function Vt(){return jt||(jt=1,function(t){const{auth:e,enterpriseapi:r}=Q(),{getReqSign:n}=_t();t.exports={getUserInfo:async function(t,i){const o=["BaseInfo","BaseInfoV1","ExtendInfo","userInfo"];return o.includes(t.__type__)||(t.__type__=o[0]),"userInfo"===t.__type__?async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=c(c({},t.data),n(e)),r(c({url:"/enterprise/user/userInfo",method:"POST"},t)).then(t=>{const{data:e}=t;return t.data={HttpStatusCode:e.code,Error:e.errMsg,IsError:!e.success,Data:e.data&&Object.keys(e.data).length?{HasCompany:e.data.hasCompanyState>0,Id:e.data.id||"",UId:e.data.userId||0,UserName:e.data.userName||"",NickName:e.data.nickName||"",Email:e.data.userEmail||"",EmailIsCheck:e.data.emailCheckState>0,RegionCode:e.data.regionCode||"",Phone:e.data.userPhone||"",PhoneIsCheck:e.data.phoneCheckState>0,HeadUrl:e.data.headUrl||"",BackImage:e.data.backImage||"",BriefIntro:e.data.briefIntro||"",Industry:e.data.industryId||0,Source:e.data.registerSource||0,ShowName:e.data.showName||"",HeadIsDef:e.data.headDefState>0,Nick:e.data.nick||"",NickShowName:e.data.nickShowName||"",RegDate:e.data.registerDate||""}:{}},t})}(t,i):async function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.data=c(c({},t.data),n(r)),e(c({url:"/api/User/"+t.__type__,method:"POST"},t))}(t,i)}}}(kt)),kt.exports}var Lt=(It||(It=1,function(t){const{setConfig:e,getConfig:r}=s(),n=_t(),i=Nt(),o=Vt(),{clearPublicPemCache:a,hasPublicPemCache:u}=Y();t.exports=Object.assign({setConfig:e,getConfig:r,clearPublicPemCache:a,hasPublicPemCache:u},n,i,o)}(i)),i.exports),Ut=e(Lt);export{Ut as default};
|