@polyv/socket 2.1.0-rc-20251023.2 → 2.3.0-rc-20251204.1
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/index.cjs.js +12 -6
- package/index.es.d.ts +253 -75
- package/index.es.js +10083 -5375
- package/index.umd.js +12 -6
- package/package.json +3 -2
package/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var Lo=Object.defineProperty,$o=Object.defineProperties;var Ko=Object.getOwnPropertyDescriptors;var In=Object.getOwnPropertySymbols;var Wo=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable;var or=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a0=(e,t)=>{for(var r in t||(t={}))Wo.call(t,r)&&or(e,r,t[r]);if(In)for(var r of In(t))jo.call(t,r)&&or(e,r,t[r]);return e},W0=(e,t)=>$o(e,Ko(t));var V=(e,t,r)=>or(e,typeof t!="symbol"?t+"":t,r);var Q=(e,t,r)=>new Promise((n,a)=>{var i=p=>{try{f(r.next(p))}catch(o){a(o)}},c=p=>{try{f(r.throw(p))}catch(o){a(o)}},f=p=>p.done?n(p.value):Promise.resolve(p.value).then(i,c);f((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Xo=Object.prototype.hasOwnProperty;function dn(e,t){return Xo.call(e,t)}function Ae(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(let r=0;r<t.length;r++){const n=t[r];if(n!=null)for(const a in n)a!=="__proto__"&&dn(n,a)&&(e[a]=n[a])}return e}function Vo(e){if(e!=null){if(Array.isArray(e))return!e.length;for(const t in e)if(dn(e,t))return!1}return!0}const Go=Object.prototype.toString;function Zo(e){return Go.call(e)==="[object Object]"}function Qa(e,t,r,n){r==null&&(r=""),(r!==""||!n.ignoreEmpty)&&(typeof n.encode=="function"&&(t=n.encode(t),r=["boolean","string","number"].indexOf(typeof r)!==-1?n.encode(String(r)):""),e.push(t+"="+r))}function Yo(e,t,r,n){r.forEach(a=>{Qa(e,t,a,n)})}function Ja(e,t){const r=Ae({encode:encodeURIComponent},t),n=[];let a,i;for(a in e)dn(e,a)&&(i=e[a],Array.isArray(i)?Yo(n,a,i,r):Qa(n,a,i,r));return n.join("&")}function Qo(e){const t={leftContext:""};let r=e.indexOf("#");return r!==-1&&(t.hash=e.slice(r+1),e=e.slice(0,r)),r=e.indexOf("?"),r!==-1&&(t.search=e.slice(r+1),e=e.slice(0,r)),t.leftContext=e,t}function Jo(e){let t=e.leftContext;return e.search!=null&&(t+="?"+e.search),e.hash!=null&&(t+="#"+e.hash),t}function Yr(e,t,r){if(e=String(e),t==null||!(t=typeof t=="string"?t.replace(/^[?&]/,""):Ja(t,r)))return e;const n=Qo(e);let a=n.search||"";return a&&a.slice(-1)!=="&"&&(a+="&"),a+=t,n.search=a,Jo(n)}function es(e){if(typeof document=="undefined"||typeof document.createElement!="function")return!1;let t=document.createElement("div");t.innerHTML='<a href="'+e+'"></a>';let r=t.firstChild;const n=r.host!==location.host;return t=null,r=null,n}function ts(){return/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10}const rs=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;function ns(e){return e&&rs.test(e)?RegExp.$1.toLowerCase():""}function as(e){return!(e===void 0||e>=200&&e<300||e===1223||e===304)}function un(e,t){return e.requestWith=t,Object.freeze(e)}function is(e,t){const r=/^(?:(?:[a-z]+):)?\/{2,3}/;return r.test(t)?t:(/\/$/.test(e)||(e+="/"),/^\//.test(t)?r.test(e)?RegExp.lastMatch+e.replace(r,"").split("/")[0]+t:t:e+t)}function os(e,t,r){return e=Yr(e,t,{ignoreEmpty:!1}),r&&(e=Yr(e,{_:Date.now()})),e}function ei(e,t,r,n=!0){const a=t.toLowerCase();Object.keys(e).some(i=>{if(i.toLowerCase()===a)return n&&(e[i]=r),!0})||(e[t]=r)}var ae;(function(e){e.NETWORK_ERROR="network error",e.TIMEOUT="timeout",e.ABORTED="aborted",e.HTTP_ERROR="http error",e.PARSE_ERROR="parse error"})(ae||(ae={}));let Tt=class extends Error{constructor(t){super(t.message),this.name="RequestError",this.result=t.result,this.code=t.code,this.type=t.type,Object.freeze(this)}},ss=class{constructor(t,r){this._baseOptions=Object.create(null),this._adapter=t,this.mixBaseOptions(r)}mixBaseOptions(t){return Ae(this._baseOptions,t),Ae(Object.create(null),this._baseOptions)}send(t,r){var n;let a=Ae(Object.create(null),r,this._baseOptions);const i=a.beforeSend;return typeof i=="function"&&(a=(n=i(a))!==null&&n!==void 0?n:a),a.baseURL&&(t=is(a.baseURL,t)),t=os(t,a.params,a.preventCaching),this._adapter.send(Object.freeze({url:t,baseURL:a.baseURL,params:a.params,data:a.data,headers:a.headers||Object.create(null),method:(a.method||"GET").toUpperCase(),requestType:(a.requestType||"").toLowerCase(),responseType:(a.responseType||"json").toLowerCase(),withCredentials:a.withCredentials,timeout:a.timeout,preventCaching:a.preventCaching,username:a.username,password:a.password,beforeSend:a.beforeSend,beforeXhrSend:a.beforeXhrSend,receiveTaskId:a.receiveTaskId,onUploadProgress:a.onUploadProgress,onDownloadProgress:a.onDownloadProgress,extra:a.extra}))}get(t,r){const n=Ae(Object.create(null),r);return n.method="GET",this.send(t,n)}post(t,r){const n=Ae(Object.create(null),r);return n.method="POST",this.send(t,n)}abort(t){return this._adapter.abort(t)}};var Ge;(function(e){e.XHR="XMLHttpRequest",e.WX_REQUEST="wx.request"})(Ge||(Ge={}));class xs{constructor(){this.__autoId=0,this.__list=Object.create(null)}addTask(t){const r=++this.__autoId;return this.__list[r]=t,r}removeTask(t){const r=this.__list[t];return delete this.__list[t],r}}const cs="Network error",fs="Request aborted",ds="Request timeout",us="HTTP status error(${status})";function hs(e,t,r,n){return function(){let a,i,c;switch(t.responseType||ns(e.getResponseHeader("Content-Type"))){case"json":try{a=JSON.parse(e.responseText)}catch(x){c=ae.PARSE_ERROR,i="Invalid JSON structure"}break;case"xml":a=e.responseXML,a&&a.documentElement||(c=ae.PARSE_ERROR,i="Invalid XML format");break;case"blob":a=e.response;break;default:a=e.responseText}const f=un({options:t,data:a,xhr:e},Ge.XHR),p=e.status;let o;as(p)?o=new Tt({message:us.replace("${status}",p.toString()),type:ae.HTTP_ERROR,code:p,result:f}):i&&(o=new Tt({message:i,type:c,result:f})),o?n(o):r(f)}}function qn(e,t,r,n,a){return function(){r(new Tt({message:n,type:a,result:un({xhr:e,options:t},Ge.XHR)}))}}function ls(e,t,r,n){e.onload=hs(e,t,r,n),e.ontimeout=qn(e,t,n,ds,ae.TIMEOUT),e.onerror=qn(e,t,n,cs,ae.NETWORK_ERROR),t.onDownloadProgress&&e.addEventListener("progress",t.onDownloadProgress),t.onUploadProgress&&e.upload&&e.upload.addEventListener("progress",t.onUploadProgress)}const bt=new xs;function ps(e,t,r,n,a){return e&&ts()&&window.XDomainRequest&&(t==="get"||t==="post")&&!r&&!a&&Vo(n)?new window.XDomainRequest:new window.XMLHttpRequest}function bs(e,t,r,n){t.timeout!=null&&(e.timeout=t.timeout),r&&t.withCredentials!=null&&(e.withCredentials=!!t.withCredentials),r||ei(n,"X-Request-With","XMLHttpRequest",!1),Object.keys(n).forEach(function(a){n[a]!=null&&e.setRequestHeader(a,String(n[a]))})}function vs(e,t,r,n){if(r==null||e==="GET")return;let a,i;return n==="json"?(a=typeof r=="string"?r:JSON.stringify(r),i="application/json; charset=utf-8"):(a=Zo(r)?Ja(r,{ignoreEmpty:!1}):r,typeof a=="string"&&(i="application/x-www-form-urlencoded; charset=utf-8")),ei(t,"Content-Type",i,!1),a}const ys={send:e=>new Promise((t,r)=>{let n=0;const a=es(e.url),i=ps(a,e.method,e.requestType,e.headers,e.withCredentials);ls(i,e,function(o){bt.removeTask(n),t(o)},function(o){n&&bt.removeTask(n),r(o)}),n=bt.addTask({xhr:i,options:e,reject:r}),e.responseType!=="blob"&&e.responseType!=="arraybuffer"||(i.responseType=e.responseType),i.open(e.method,e.url,!0,e.username,e.password);const c=vs(e.method,e.headers,e.data,e.requestType);bs(i,e,a,e.headers);const f=e.beforeXhrSend;typeof f=="function"&&f(i),i.send(c||"");const p=e.receiveTaskId;typeof p=="function"&&p(n)}),abort(e){const t=bt.removeTask(e);return t?(t.xhr.abort(),(0,t.reject)(new Tt({message:fs,type:ae.ABORTED,result:un({xhr:t.xhr,options:t.options},Ge.XHR)})),!0):!1}},gs=/^(?:([a-z]+):)?\/{2,3}/i;function ms(e,t){return gs.test(e)}class Bs{constructor(t){V(this,"__requestPlugins",[]);t.forEach(r=>{this.installPlugin(r)})}installPlugin(t){this.__requestPlugins.push(t),t.installPlugin&&t.installPlugin(this)}__getUsePlugin(t,r){return Q(this,null,function*(){return r.usePlugin?!!(yield r.usePlugin(t)):!0})}__forEachRequestPlugin(t,r,n){return Q(this,null,function*(){for(let a=0;a<this.__requestPlugins.length;a++){const i=this.__requestPlugins[a];(yield this.__getUsePlugin(t,i))&&i[r]&&(yield n(i))}})}interceptPluginRequest(t){return Q(this,null,function*(){let r=t;return yield this.__forEachRequestPlugin(t,"interceptIncludeParams",n=>Q(this,null,function*(){const a=yield n.interceptIncludeParams(r);a&&(r.params=a0(a0({},r.params||{}),a))})),yield this.__forEachRequestPlugin(t,"interceptAuthorizeRequest",n=>Q(this,null,function*(){r=(yield n.interceptAuthorizeRequest(r))||r})),yield this.__forEachRequestPlugin(t,"interceptEncryptRequest",n=>Q(this,null,function*(){r=(yield n.interceptEncryptRequest(r))||r})),yield this.__forEachRequestPlugin(t,"interceptRequest",n=>Q(this,null,function*(){r=(yield n.interceptRequest(r))||r})),r})}interceptPluginResponse(t,r){return Q(this,null,function*(){let n=t;return yield this.__forEachRequestPlugin(r,"interceptDecryptResponse",a=>Q(this,null,function*(){n=(yield a.interceptDecryptResponse(n,r))||n})),yield this.__forEachRequestPlugin(r,"interceptResponse",a=>Q(this,null,function*(){n=(yield a.interceptResponse(n,r))||n})),n})}}function Cs(e){for(const t in e)if(e[t]instanceof File)return!0;return!1}function _s(e){const t=new FormData;for(const r in e){const n=e[r];t.append(r,n)}return t}const Es="json",Fs="json";let sr;class ti{constructor(t={}){V(this,"__isDestroyed",!1);V(this,"__baseUrl","");V(this,"__timeout");V(this,"__requestType");V(this,"__responseType");V(this,"__withCredentials");V(this,"__xhrRequest");V(this,"__pluginCtrl");var a;const{baseUrl:r}=t;r&&this.setBaseUrl(r),this.__timeout=t.timeout||1e4,this.__requestType=t.requestType||Es,this.__responseType=t.responseType||Fs,this.__withCredentials=(a=t.withCredentials)!=null?a:!1,sr||(sr=new ss(ys)),this.__xhrRequest=sr;const n=t.requestPlugins||[];this.__pluginCtrl=new Bs(n)}setBaseUrl(t){this.__baseUrl=t}generateUrl(t){if(t.requestUrl)return t.requestUrl;const r=t.url||"";let n="";return typeof this.__baseUrl=="string"&&(n=this.__baseUrl),!n||ms(r)?r:n+r}__handleOptions(t){return Q(this,null,function*(){let r=a0({},t);const n=this.generateUrl(r);r.requestUrl=n,r.timeout=r.timeout||this.__timeout,r.requestType=r.requestType||this.__requestType,r.responseType=r.responseType||this.__responseType,r.withCredentials=r.withCredentials||this.__withCredentials,r=yield this.__interceptRequest(r);const a=r.requestUrl||n;return{options:r,requestUrl:a}})}_request(t){return Q(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const r=yield this.__handleOptions(t),n=this.__beforeSend(r.options);let a;try{const i=yield this.__xhrRequest.send(r.requestUrl,a0({},n)),c=this.__parseResponseHeaders(i.xhr.getAllResponseHeaders());a={data:i.data,headers:c}}catch(i){a={data:i.result.data}}if(!a)throw Error("result is undefined");return a=yield this.__interceptResponse(a,n),a.data})}__beforeSend(t){var n;const r=t.data||{};return t.method==="POST"&&t.requestType==="form"&&typeof r=="object"&&((n=t.useFormData)!=null?n:Cs(r))&&(t.data=_s(r)),t}__interceptRequest(t){return Q(this,null,function*(){let r=t;return r=yield this.__pluginCtrl.interceptPluginRequest(r),r})}__interceptResponse(t,r){return Q(this,null,function*(){let n=t;return n=yield this.__pluginCtrl.interceptPluginResponse(n,r),n})}__filterParamsData(t){const r={};for(const n in t){const a=t[n];typeof a!="undefined"&&(r[n]=a)}return r}get(t,r,n){return this._request(Object.assign({url:t,method:"GET",params:this.__filterParamsData(r)},n))}post(t,r,n){return this._request(Object.assign({url:t,method:"POST",data:this.__filterParamsData(r)},n))}delete(t,r,n){return this._request(Object.assign({url:t,method:"DELETE",data:this.__filterParamsData(r)},n))}put(t,r,n){return this._request(Object.assign({url:t,method:"PUT",data:this.__filterParamsData(r)},n))}open(t,r,n){return Q(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const a=yield this.__handleOptions(Object.assign({url:t,method:"GET",params:this.__filterParamsData(r)},n)),i=a.options.params||{},c=Yr(a.requestUrl,i);window.open(c,"_blank")})}__parseResponseHeaders(t){const r={};return t&&t.trim().split(`\r
|
|
2
|
-
`).forEach(a=>{const i=a.indexOf(":");if(i>0){const c=a.substring(0,i).trim().toLowerCase(),f=a.substring(i+1).trim();r[c]=f}}),r}destroy(){this.__isDestroyed=!0}}class As extends Error{constructor(r){const{code:n,message:a}=r;super(a);V(this,"code");this.code=n}}function Ds(e){return new As(e)}var be;(function(e){e.Header="header",e.Params="params"})(be||(be={}));const ws="token",Ss=be.Params;class ri{constructor(t={}){V(this,"__useToken");V(this,"__config");V(this,"__recordToken");const{useToken:r=!0}=t;this.__config=t,this.__useToken=r}usePlugin(t){const{useToken:r=this.__useToken}=t;return r}interceptAuthorizeRequest(t){return Q(this,null,function*(){const r=yield this.__getTokenInfo(t);if(!r)return t;const n=r.token||this.__recordToken;if(!n)return t;const{tokenField:a=ws,tokenMode:i=Ss,includeParams:c={}}=r;let f=t.params||{};const p=t.headers||{};return c&&(f=Object.assign({},f,c)),i===be.Params&&(f[a]=n),i===be.Header&&(p[a]=n),W0(a0({},t),{params:f,headers:p})})}interceptResponse(t,r){return Q(this,null,function*(){if(!t.headers)return;const n=r.responseTokenField||this.__config.responseTokenField;if(!n)return;const i=t.headers[n];i&&(this.__recordToken=i,this.__config.responseTokenCallback&&this.__config.responseTokenCallback({token:i}))})}__getTokenInfo(t){return Q(this,null,function*(){let r=a0({},this.__config);if(typeof this.__config.getTokenInfo=="function"){const n=(yield this.__config.getTokenInfo(t))||{};r=a0(a0({},r),n)}return t.tokenInfo&&(r=a0(a0({},r),t.tokenInfo)),r})}}class Qr{constructor(t={}){V(this,"__config");V(this,"__useGlobalParams");this.__config=t;const{useGlobalParams:r=!0}=t;this.__useGlobalParams=r}usePlugin(t){const{useGlobalParams:r=this.__useGlobalParams}=t;return r}interceptIncludeParams(t){return Q(this,null,function*(){let r;return typeof this.__config.globalParams=="function"?r=yield this.__config.globalParams(t):r=this.__config.globalParams,r})}}class ni{constructor(t={}){V(this,"__fields");V(this,"__successCodes");V(this,"__errorCallback");var r;this.__successCodes=this.__formateSuccessCode((r=t.successCode)!=null?r:200),this.__errorCallback=t.errorCallback,this.__fields=a0({codeField:"code",statusField:"status",messageField:"message",dataField:"data",errorField:"error",errorCodeField:"code",errorDescField:"desc"},t.fields)}usePlugin(t){const{useStatusCode:r=!0}=t;return r}interceptResponse(t,r){var x,h;if(!t.data)throw new Error(`status-code-plugin error: result.data is undefined, url: ${r.requestUrl}`);const n=this.__formatRes(t.data),a=n.code,i=n.status;if(this.__getSuccessCodes(r).includes(a)||i==="success")return Promise.resolve(W0(a0({},t),{data:n.data}));const f=((x=n.error)==null?void 0:x.code)||a,p=((h=n.error)==null?void 0:h.desc)||n.message||"未知错误",o=Ds({code:f,message:p});return this.__errorCallback&&this.__errorCallback(f,p),Promise.reject(o)}__formatRes(t){const r=t[this.__fields.codeField],n=t[this.__fields.statusField],a=t[this.__fields.messageField],i=t[this.__fields.dataField],c={code:r,data:i,status:n,message:a},f=t[this.__fields.errorField];if(f){const p=f[this.__fields.errorCodeField],o=f[this.__fields.errorDescField];c.error={code:p,desc:o}}return c}__formateSuccessCode(t){return typeof t=="number"?[t]:Array.isArray(t)?t:[]}__getSuccessCodes(t){const r=this.__formateSuccessCode(t.successCode);return[...this.__successCodes,...r]}}var Se;(function(e){e.WholeResponse="wholeResponse",e.ResponseData="responseData"})(Se||(Se={}));var Ie;(function(e){e.Hex="hex",e.Base64="base64"})(Ie||(Ie={}));var G=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ts(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var ai={exports:{}};/*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */(function(e,t){(function(r){function n(_){return parseInt(_)===_}function a(_){if(!n(_.length))return!1;for(var w=0;w<_.length;w++)if(!n(_[w])||_[w]<0||_[w]>255)return!1;return!0}function i(_,w){if(_.buffer&&_.name==="Uint8Array")return w&&(_.slice?_=_.slice():_=Array.prototype.slice.call(_)),_;if(Array.isArray(_)){if(!a(_))throw new Error("Array contains invalid value: "+_);return new Uint8Array(_)}if(n(_.length)&&a(_))return new Uint8Array(_);throw new Error("unsupported array-like object")}function c(_){return new Uint8Array(_)}function f(_,w,I,k,O){(k!=null||O!=null)&&(_.slice?_=_.slice(k,O):_=Array.prototype.slice.call(_,k,O)),w.set(_,I)}var p=function(){function _(I){var k=[],O=0;for(I=encodeURI(I);O<I.length;){var W=I.charCodeAt(O++);W===37?(k.push(parseInt(I.substr(O,2),16)),O+=2):k.push(W)}return i(k)}function w(I){for(var k=[],O=0;O<I.length;){var W=I[O];W<128?(k.push(String.fromCharCode(W)),O++):W>191&&W<224?(k.push(String.fromCharCode((W&31)<<6|I[O+1]&63)),O+=2):(k.push(String.fromCharCode((W&15)<<12|(I[O+1]&63)<<6|I[O+2]&63)),O+=3)}return k.join("")}return{toBytes:_,fromBytes:w}}(),o=function(){function _(k){for(var O=[],W=0;W<k.length;W+=2)O.push(parseInt(k.substr(W,2),16));return O}var w="0123456789abcdef";function I(k){for(var O=[],W=0;W<k.length;W++){var t0=k[W];O.push(w[(t0&240)>>4]+w[t0&15])}return O.join("")}return{toBytes:_,fromBytes:I}}(),x={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],s=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],v=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],C=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],E=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],B=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],F=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],D=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],T=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],P=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(_){for(var w=[],I=0;I<_.length;I+=4)w.push(_[I]<<24|_[I+1]<<16|_[I+2]<<8|_[I+3]);return w}var A=function(_){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(_,!0)}),this._prepare()};A.prototype._prepare=function(){var _=x[this.key.length];if(_==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var w=0;w<=_;w++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var I=(_+1)*4,k=this.key.length/4,O=S(this.key),W,w=0;w<k;w++)W=w>>2,this._Ke[W][w%4]=O[w],this._Kd[_-W][w%4]=O[w];for(var t0=0,j=k,s0;j<I;){if(s0=O[k-1],O[0]^=s[s0>>16&255]<<24^s[s0>>8&255]<<16^s[s0&255]<<8^s[s0>>24&255]^h[t0]<<24,t0+=1,k!=8)for(var w=1;w<k;w++)O[w]^=O[w-1];else{for(var w=1;w<k/2;w++)O[w]^=O[w-1];s0=O[k/2-1],O[k/2]^=s[s0&255]^s[s0>>8&255]<<8^s[s0>>16&255]<<16^s[s0>>24&255]<<24;for(var w=k/2+1;w<k;w++)O[w]^=O[w-1]}for(var w=0,l0,C0;w<k&&j<I;)l0=j>>2,C0=j%4,this._Ke[l0][C0]=O[w],this._Kd[_-l0][C0]=O[w++],j++}for(var l0=1;l0<_;l0++)for(var C0=0;C0<4;C0++)s0=this._Kd[l0][C0],this._Kd[l0][C0]=D[s0>>24&255]^T[s0>>16&255]^P[s0>>8&255]^H[s0&255]},A.prototype.encrypt=function(_){if(_.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var w=this._Ke.length-1,I=[0,0,0,0],k=S(_),O=0;O<4;O++)k[O]^=this._Ke[0][O];for(var W=1;W<w;W++){for(var O=0;O<4;O++)I[O]=v[k[O]>>24&255]^m[k[(O+1)%4]>>16&255]^C[k[(O+2)%4]>>8&255]^E[k[(O+3)%4]&255]^this._Ke[W][O];k=I.slice()}for(var t0=c(16),j,O=0;O<4;O++)j=this._Ke[w][O],t0[4*O]=(s[k[O]>>24&255]^j>>24)&255,t0[4*O+1]=(s[k[(O+1)%4]>>16&255]^j>>16)&255,t0[4*O+2]=(s[k[(O+2)%4]>>8&255]^j>>8)&255,t0[4*O+3]=(s[k[(O+3)%4]&255]^j)&255;return t0},A.prototype.decrypt=function(_){if(_.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var w=this._Kd.length-1,I=[0,0,0,0],k=S(_),O=0;O<4;O++)k[O]^=this._Kd[0][O];for(var W=1;W<w;W++){for(var O=0;O<4;O++)I[O]=y[k[O]>>24&255]^B[k[(O+3)%4]>>16&255]^b[k[(O+2)%4]>>8&255]^F[k[(O+1)%4]&255]^this._Kd[W][O];k=I.slice()}for(var t0=c(16),j,O=0;O<4;O++)j=this._Kd[w][O],t0[4*O]=(d[k[O]>>24&255]^j>>24)&255,t0[4*O+1]=(d[k[(O+3)%4]>>16&255]^j>>16)&255,t0[4*O+2]=(d[k[(O+2)%4]>>8&255]^j>>8)&255,t0[4*O+3]=(d[k[(O+1)%4]&255]^j)&255;return t0};var q=function(_){if(!(this instanceof q))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new A(_)};q.prototype.encrypt=function(_){if(_=i(_),_.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var w=c(_.length),I=c(16),k=0;k<_.length;k+=16)f(_,I,0,k,k+16),I=this._aes.encrypt(I),f(I,w,k);return w},q.prototype.decrypt=function(_){if(_=i(_),_.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var w=c(_.length),I=c(16),k=0;k<_.length;k+=16)f(_,I,0,k,k+16),I=this._aes.decrypt(I),f(I,w,k);return w};var N=function(_,w){if(!(this instanceof N))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!w)w=c(16);else if(w.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=i(w,!0),this._aes=new A(_)};N.prototype.encrypt=function(_){if(_=i(_),_.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var w=c(_.length),I=c(16),k=0;k<_.length;k+=16){f(_,I,0,k,k+16);for(var O=0;O<16;O++)I[O]^=this._lastCipherblock[O];this._lastCipherblock=this._aes.encrypt(I),f(this._lastCipherblock,w,k)}return w},N.prototype.decrypt=function(_){if(_=i(_),_.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var w=c(_.length),I=c(16),k=0;k<_.length;k+=16){f(_,I,0,k,k+16),I=this._aes.decrypt(I);for(var O=0;O<16;O++)w[k+O]=I[O]^this._lastCipherblock[O];f(_,this._lastCipherblock,0,k,k+16)}return w};var z=function(_,w,I){if(!(this instanceof z))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!w)w=c(16);else if(w.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");I||(I=1),this.segmentSize=I,this._shiftRegister=i(w,!0),this._aes=new A(_)};z.prototype.encrypt=function(_){if(_.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var w=i(_,!0),I,k=0;k<w.length;k+=this.segmentSize){I=this._aes.encrypt(this._shiftRegister);for(var O=0;O<this.segmentSize;O++)w[k+O]^=I[O];f(this._shiftRegister,this._shiftRegister,0,this.segmentSize),f(w,this._shiftRegister,16-this.segmentSize,k,k+this.segmentSize)}return w},z.prototype.decrypt=function(_){if(_.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var w=i(_,!0),I,k=0;k<w.length;k+=this.segmentSize){I=this._aes.encrypt(this._shiftRegister);for(var O=0;O<this.segmentSize;O++)w[k+O]^=I[O];f(this._shiftRegister,this._shiftRegister,0,this.segmentSize),f(_,this._shiftRegister,16-this.segmentSize,k,k+this.segmentSize)}return w};var L=function(_,w){if(!(this instanceof L))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!w)w=c(16);else if(w.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=i(w,!0),this._lastPrecipherIndex=16,this._aes=new A(_)};L.prototype.encrypt=function(_){for(var w=i(_,!0),I=0;I<w.length;I++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),w[I]^=this._lastPrecipher[this._lastPrecipherIndex++];return w},L.prototype.decrypt=L.prototype.encrypt;var X=function(_){if(!(this instanceof X))throw Error("Counter must be instanitated with `new`");_!==0&&!_&&(_=1),typeof _=="number"?(this._counter=c(16),this.setValue(_)):this.setBytes(_)};X.prototype.setValue=function(_){if(typeof _!="number"||parseInt(_)!=_)throw new Error("invalid counter value (must be an integer)");if(_>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var w=15;w>=0;--w)this._counter[w]=_%256,_=parseInt(_/256)},X.prototype.setBytes=function(_){if(_=i(_,!0),_.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=_},X.prototype.increment=function(){for(var _=15;_>=0;_--)if(this._counter[_]===255)this._counter[_]=0;else{this._counter[_]++;break}};var Y=function(_,w){if(!(this instanceof Y))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",w instanceof X||(w=new X(w)),this._counter=w,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new A(_)};Y.prototype.encrypt=function(_){for(var w=i(_,!0),I=0;I<w.length;I++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),w[I]^=this._remainingCounter[this._remainingCounterIndex++];return w},Y.prototype.decrypt=Y.prototype.encrypt;function r0(_){_=i(_,!0);var w=16-_.length%16,I=c(_.length+w);f(_,I);for(var k=_.length;k<I.length;k++)I[k]=w;return I}function o0(_){if(_=i(_,!0),_.length<16)throw new Error("PKCS#7 invalid length");var w=_[_.length-1];if(w>16)throw new Error("PKCS#7 padding byte out of range");for(var I=_.length-w,k=0;k<w;k++)if(_[I+k]!==w)throw new Error("PKCS#7 invalid padding byte");var O=c(I);return f(_,O,0,0,I),O}var n0={AES:A,Counter:X,ModeOfOperation:{ecb:q,cbc:N,cfb:z,ofb:L,ctr:Y},utils:{hex:o,utf8:p},padding:{pkcs7:{pad:r0,strip:o0}},_arrayTest:{coerceArray:i,createArray:c,copyArray:f}};e.exports=n0})()})(ai);var ks=ai.exports;const At=tt(ks);var ii={exports:{}};function Rs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xr={exports:{}};const Ps={},Is=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),oi=Ts(Is);var On;function e0(){return On||(On=1,function(e,t){(function(r,n){e.exports=n()})(G,function(){var r=r||function(n,a){var i;if(typeof window!="undefined"&&window.crypto&&(i=window.crypto),typeof self!="undefined"&&self.crypto&&(i=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window!="undefined"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof G!="undefined"&&G.crypto&&(i=G.crypto),!i&&typeof Rs=="function")try{i=oi}catch(y){}var c=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function y(){}return function(B){var b;return y.prototype=B,b=new y,y.prototype=null,b}}(),p={},o=p.lib={},x=o.Base=function(){return{extend:function(y){var B=f(this);return y&&B.mixIn(y),(!B.hasOwnProperty("init")||this.init===B.init)&&(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var B in y)y.hasOwnProperty(B)&&(this[B]=y[B]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=o.WordArray=x.extend({init:function(y,B){y=this.words=y||[],B!=a?this.sigBytes=B:this.sigBytes=y.length*4},toString:function(y){return(y||d).stringify(this)},concat:function(y){var B=this.words,b=y.words,F=this.sigBytes,D=y.sigBytes;if(this.clamp(),F%4)for(var T=0;T<D;T++){var P=b[T>>>2]>>>24-T%4*8&255;B[F+T>>>2]|=P<<24-(F+T)%4*8}else for(var H=0;H<D;H+=4)B[F+H>>>2]=b[H>>>2];return this.sigBytes+=D,this},clamp:function(){var y=this.words,B=this.sigBytes;y[B>>>2]&=4294967295<<32-B%4*8,y.length=n.ceil(B/4)},clone:function(){var y=x.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var B=[],b=0;b<y;b+=4)B.push(c());return new h.init(B,y)}}),s=p.enc={},d=s.Hex={stringify:function(y){for(var B=y.words,b=y.sigBytes,F=[],D=0;D<b;D++){var T=B[D>>>2]>>>24-D%4*8&255;F.push((T>>>4).toString(16)),F.push((T&15).toString(16))}return F.join("")},parse:function(y){for(var B=y.length,b=[],F=0;F<B;F+=2)b[F>>>3]|=parseInt(y.substr(F,2),16)<<24-F%8*4;return new h.init(b,B/2)}},v=s.Latin1={stringify:function(y){for(var B=y.words,b=y.sigBytes,F=[],D=0;D<b;D++){var T=B[D>>>2]>>>24-D%4*8&255;F.push(String.fromCharCode(T))}return F.join("")},parse:function(y){for(var B=y.length,b=[],F=0;F<B;F++)b[F>>>2]|=(y.charCodeAt(F)&255)<<24-F%4*8;return new h.init(b,B)}},m=s.Utf8={stringify:function(y){try{return decodeURIComponent(escape(v.stringify(y)))}catch(B){throw new Error("Malformed UTF-8 data")}},parse:function(y){return v.parse(unescape(encodeURIComponent(y)))}},C=o.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var B,b=this._data,F=b.words,D=b.sigBytes,T=this.blockSize,P=T*4,H=D/P;y?H=n.ceil(H):H=n.max((H|0)-this._minBufferSize,0);var S=H*T,A=n.min(S*4,D);if(S){for(var q=0;q<S;q+=T)this._doProcessBlock(F,q);B=F.splice(0,S),b.sigBytes-=A}return new h.init(B,A)},clone:function(){var y=x.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});o.Hasher=C.extend({cfg:x.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var B=this._doFinalize();return B},blockSize:16,_createHelper:function(y){return function(B,b){return new y.init(b).finalize(B)}},_createHmacHelper:function(y){return function(B,b){return new E.HMAC.init(y,b).finalize(B)}}});var E=p.algo={};return p}(Math);return r})}(xr)),xr.exports}var cr={exports:{}},Hn;function Mt(){return Hn||(Hn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(n){var a=r,i=a.lib,c=i.Base,f=i.WordArray,p=a.x64={};p.Word=c.extend({init:function(o,x){this.high=o,this.low=x}}),p.WordArray=c.extend({init:function(o,x){o=this.words=o||[],x!=n?this.sigBytes=x:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,x=o.length,h=[],s=0;s<x;s++){var d=o[s];h.push(d.high),h.push(d.low)}return f.create(h,this.sigBytes)},clone:function(){for(var o=c.clone.call(this),x=o.words=this.words.slice(0),h=x.length,s=0;s<h;s++)x[s]=x[s].clone();return o}})}(),r})}(cr)),cr.exports}var fr={exports:{}},Nn;function qs(){return Nn||(Nn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,a=n.lib,i=a.WordArray,c=i.init,f=i.init=function(p){if(p instanceof ArrayBuffer&&(p=new Uint8Array(p)),(p instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength)),p instanceof Uint8Array){for(var o=p.byteLength,x=[],h=0;h<o;h++)x[h>>>2]|=p[h]<<24-h%4*8;c.call(this,x,o)}else c.apply(this,arguments)};f.prototype=i}}(),r.lib.WordArray})}(fr)),fr.exports}var dr={exports:{}},Mn;function Os(){return Mn||(Mn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,c=n.enc;c.Utf16=c.Utf16BE={stringify:function(p){for(var o=p.words,x=p.sigBytes,h=[],s=0;s<x;s+=2){var d=o[s>>>2]>>>16-s%4*8&65535;h.push(String.fromCharCode(d))}return h.join("")},parse:function(p){for(var o=p.length,x=[],h=0;h<o;h++)x[h>>>1]|=p.charCodeAt(h)<<16-h%2*16;return i.create(x,o*2)}},c.Utf16LE={stringify:function(p){for(var o=p.words,x=p.sigBytes,h=[],s=0;s<x;s+=2){var d=f(o[s>>>2]>>>16-s%4*8&65535);h.push(String.fromCharCode(d))}return h.join("")},parse:function(p){for(var o=p.length,x=[],h=0;h<o;h++)x[h>>>1]|=f(p.charCodeAt(h)<<16-h%2*16);return i.create(x,o*2)}};function f(p){return p<<8&4278255360|p>>>8&16711935}}(),r.enc.Utf16})}(dr)),dr.exports}var ur={exports:{}},Un;function ve(){return Un||(Un=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,c=n.enc;c.Base64={stringify:function(p){var o=p.words,x=p.sigBytes,h=this._map;p.clamp();for(var s=[],d=0;d<x;d+=3)for(var v=o[d>>>2]>>>24-d%4*8&255,m=o[d+1>>>2]>>>24-(d+1)%4*8&255,C=o[d+2>>>2]>>>24-(d+2)%4*8&255,E=v<<16|m<<8|C,y=0;y<4&&d+y*.75<x;y++)s.push(h.charAt(E>>>6*(3-y)&63));var B=h.charAt(64);if(B)for(;s.length%4;)s.push(B);return s.join("")},parse:function(p){var o=p.length,x=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var s=0;s<x.length;s++)h[x.charCodeAt(s)]=s}var d=x.charAt(64);if(d){var v=p.indexOf(d);v!==-1&&(o=v)}return f(p,o,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(p,o,x){for(var h=[],s=0,d=0;d<o;d++)if(d%4){var v=x[p.charCodeAt(d-1)]<<d%4*2,m=x[p.charCodeAt(d)]>>>6-d%4*2,C=v|m;h[s>>>2]|=C<<24-s%4*8,s++}return i.create(h,s)}}(),r.enc.Base64})}(ur)),ur.exports}var hr={exports:{}},zn;function Hs(){return zn||(zn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,c=n.enc;c.Base64url={stringify:function(p,o){o===void 0&&(o=!0);var x=p.words,h=p.sigBytes,s=o?this._safe_map:this._map;p.clamp();for(var d=[],v=0;v<h;v+=3)for(var m=x[v>>>2]>>>24-v%4*8&255,C=x[v+1>>>2]>>>24-(v+1)%4*8&255,E=x[v+2>>>2]>>>24-(v+2)%4*8&255,y=m<<16|C<<8|E,B=0;B<4&&v+B*.75<h;B++)d.push(s.charAt(y>>>6*(3-B)&63));var b=s.charAt(64);if(b)for(;d.length%4;)d.push(b);return d.join("")},parse:function(p,o){o===void 0&&(o=!0);var x=p.length,h=o?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var d=0;d<h.length;d++)s[h.charCodeAt(d)]=d}var v=h.charAt(64);if(v){var m=p.indexOf(v);m!==-1&&(x=m)}return f(p,x,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(p,o,x){for(var h=[],s=0,d=0;d<o;d++)if(d%4){var v=x[p.charCodeAt(d-1)]<<d%4*2,m=x[p.charCodeAt(d)]>>>6-d%4*2,C=v|m;h[s>>>2]|=C<<24-s%4*8,s++}return i.create(h,s)}}(),r.enc.Base64url})}(hr)),hr.exports}var lr={exports:{}},Ln;function ye(){return Ln||(Ln=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(n){var a=r,i=a.lib,c=i.WordArray,f=i.Hasher,p=a.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=n.abs(n.sin(m+1))*4294967296|0})();var x=p.MD5=f.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,C){for(var E=0;E<16;E++){var y=C+E,B=m[y];m[y]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var b=this._hash.words,F=m[C+0],D=m[C+1],T=m[C+2],P=m[C+3],H=m[C+4],S=m[C+5],A=m[C+6],q=m[C+7],N=m[C+8],z=m[C+9],L=m[C+10],X=m[C+11],Y=m[C+12],r0=m[C+13],o0=m[C+14],n0=m[C+15],_=b[0],w=b[1],I=b[2],k=b[3];_=h(_,w,I,k,F,7,o[0]),k=h(k,_,w,I,D,12,o[1]),I=h(I,k,_,w,T,17,o[2]),w=h(w,I,k,_,P,22,o[3]),_=h(_,w,I,k,H,7,o[4]),k=h(k,_,w,I,S,12,o[5]),I=h(I,k,_,w,A,17,o[6]),w=h(w,I,k,_,q,22,o[7]),_=h(_,w,I,k,N,7,o[8]),k=h(k,_,w,I,z,12,o[9]),I=h(I,k,_,w,L,17,o[10]),w=h(w,I,k,_,X,22,o[11]),_=h(_,w,I,k,Y,7,o[12]),k=h(k,_,w,I,r0,12,o[13]),I=h(I,k,_,w,o0,17,o[14]),w=h(w,I,k,_,n0,22,o[15]),_=s(_,w,I,k,D,5,o[16]),k=s(k,_,w,I,A,9,o[17]),I=s(I,k,_,w,X,14,o[18]),w=s(w,I,k,_,F,20,o[19]),_=s(_,w,I,k,S,5,o[20]),k=s(k,_,w,I,L,9,o[21]),I=s(I,k,_,w,n0,14,o[22]),w=s(w,I,k,_,H,20,o[23]),_=s(_,w,I,k,z,5,o[24]),k=s(k,_,w,I,o0,9,o[25]),I=s(I,k,_,w,P,14,o[26]),w=s(w,I,k,_,N,20,o[27]),_=s(_,w,I,k,r0,5,o[28]),k=s(k,_,w,I,T,9,o[29]),I=s(I,k,_,w,q,14,o[30]),w=s(w,I,k,_,Y,20,o[31]),_=d(_,w,I,k,S,4,o[32]),k=d(k,_,w,I,N,11,o[33]),I=d(I,k,_,w,X,16,o[34]),w=d(w,I,k,_,o0,23,o[35]),_=d(_,w,I,k,D,4,o[36]),k=d(k,_,w,I,H,11,o[37]),I=d(I,k,_,w,q,16,o[38]),w=d(w,I,k,_,L,23,o[39]),_=d(_,w,I,k,r0,4,o[40]),k=d(k,_,w,I,F,11,o[41]),I=d(I,k,_,w,P,16,o[42]),w=d(w,I,k,_,A,23,o[43]),_=d(_,w,I,k,z,4,o[44]),k=d(k,_,w,I,Y,11,o[45]),I=d(I,k,_,w,n0,16,o[46]),w=d(w,I,k,_,T,23,o[47]),_=v(_,w,I,k,F,6,o[48]),k=v(k,_,w,I,q,10,o[49]),I=v(I,k,_,w,o0,15,o[50]),w=v(w,I,k,_,S,21,o[51]),_=v(_,w,I,k,Y,6,o[52]),k=v(k,_,w,I,P,10,o[53]),I=v(I,k,_,w,L,15,o[54]),w=v(w,I,k,_,D,21,o[55]),_=v(_,w,I,k,N,6,o[56]),k=v(k,_,w,I,n0,10,o[57]),I=v(I,k,_,w,A,15,o[58]),w=v(w,I,k,_,r0,21,o[59]),_=v(_,w,I,k,H,6,o[60]),k=v(k,_,w,I,X,10,o[61]),I=v(I,k,_,w,T,15,o[62]),w=v(w,I,k,_,z,21,o[63]),b[0]=b[0]+_|0,b[1]=b[1]+w|0,b[2]=b[2]+I|0,b[3]=b[3]+k|0},_doFinalize:function(){var m=this._data,C=m.words,E=this._nDataBytes*8,y=m.sigBytes*8;C[y>>>5]|=128<<24-y%32;var B=n.floor(E/4294967296),b=E;C[(y+64>>>9<<4)+15]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,C[(y+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(C.length+1)*4,this._process();for(var F=this._hash,D=F.words,T=0;T<4;T++){var P=D[T];D[T]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return F},clone:function(){var m=f.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,C,E,y,B,b,F){var D=m+(C&E|~C&y)+B+F;return(D<<b|D>>>32-b)+C}function s(m,C,E,y,B,b,F){var D=m+(C&y|E&~y)+B+F;return(D<<b|D>>>32-b)+C}function d(m,C,E,y,B,b,F){var D=m+(C^E^y)+B+F;return(D<<b|D>>>32-b)+C}function v(m,C,E,y,B,b,F){var D=m+(E^(C|~y))+B+F;return(D<<b|D>>>32-b)+C}a.MD5=f._createHelper(x),a.HmacMD5=f._createHmacHelper(x)}(Math),r.MD5})}(lr)),lr.exports}var pr={exports:{}},$n;function si(){return $n||($n=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,c=a.Hasher,f=n.algo,p=[],o=f.SHA1=c.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,h){for(var s=this._hash.words,d=s[0],v=s[1],m=s[2],C=s[3],E=s[4],y=0;y<80;y++){if(y<16)p[y]=x[h+y]|0;else{var B=p[y-3]^p[y-8]^p[y-14]^p[y-16];p[y]=B<<1|B>>>31}var b=(d<<5|d>>>27)+E+p[y];y<20?b+=(v&m|~v&C)+1518500249:y<40?b+=(v^m^C)+1859775393:y<60?b+=(v&m|v&C|m&C)-1894007588:b+=(v^m^C)-899497514,E=C,C=m,m=v<<30|v>>>2,v=d,d=b}s[0]=s[0]+d|0,s[1]=s[1]+v|0,s[2]=s[2]+m|0,s[3]=s[3]+C|0,s[4]=s[4]+E|0},_doFinalize:function(){var x=this._data,h=x.words,s=this._nDataBytes*8,d=x.sigBytes*8;return h[d>>>5]|=128<<24-d%32,h[(d+64>>>9<<4)+14]=Math.floor(s/4294967296),h[(d+64>>>9<<4)+15]=s,x.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var x=c.clone.call(this);return x._hash=this._hash.clone(),x}});n.SHA1=c._createHelper(o),n.HmacSHA1=c._createHmacHelper(o)}(),r.SHA1})}(pr)),pr.exports}var br={exports:{}},Kn;function hn(){return Kn||(Kn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){return function(n){var a=r,i=a.lib,c=i.WordArray,f=i.Hasher,p=a.algo,o=[],x=[];(function(){function d(E){for(var y=n.sqrt(E),B=2;B<=y;B++)if(!(E%B))return!1;return!0}function v(E){return(E-(E|0))*4294967296|0}for(var m=2,C=0;C<64;)d(m)&&(C<8&&(o[C]=v(n.pow(m,1/2))),x[C]=v(n.pow(m,1/3)),C++),m++})();var h=[],s=p.SHA256=f.extend({_doReset:function(){this._hash=new c.init(o.slice(0))},_doProcessBlock:function(d,v){for(var m=this._hash.words,C=m[0],E=m[1],y=m[2],B=m[3],b=m[4],F=m[5],D=m[6],T=m[7],P=0;P<64;P++){if(P<16)h[P]=d[v+P]|0;else{var H=h[P-15],S=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,A=h[P-2],q=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;h[P]=S+h[P-7]+q+h[P-16]}var N=b&F^~b&D,z=C&E^C&y^E&y,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),X=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),Y=T+X+N+x[P]+h[P],r0=L+z;T=D,D=F,F=b,b=B+Y|0,B=y,y=E,E=C,C=Y+r0|0}m[0]=m[0]+C|0,m[1]=m[1]+E|0,m[2]=m[2]+y|0,m[3]=m[3]+B|0,m[4]=m[4]+b|0,m[5]=m[5]+F|0,m[6]=m[6]+D|0,m[7]=m[7]+T|0},_doFinalize:function(){var d=this._data,v=d.words,m=this._nDataBytes*8,C=d.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(m/4294967296),v[(C+64>>>9<<4)+15]=m,d.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var d=f.clone.call(this);return d._hash=this._hash.clone(),d}});a.SHA256=f._createHelper(s),a.HmacSHA256=f._createHmacHelper(s)}(Math),r.SHA256})}(br)),br.exports}var vr={exports:{}},Wn;function Ns(){return Wn||(Wn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),hn())})(G,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,c=n.algo,f=c.SHA256,p=c.SHA224=f.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=f._doFinalize.call(this);return o.sigBytes-=4,o}});n.SHA224=f._createHelper(p),n.HmacSHA224=f._createHmacHelper(p)}(),r.SHA224})}(vr)),vr.exports}var yr={exports:{}},jn;function xi(){return jn||(jn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),Mt())})(G,function(r){return function(){var n=r,a=n.lib,i=a.Hasher,c=n.x64,f=c.Word,p=c.WordArray,o=n.algo;function x(){return f.create.apply(f,arguments)}var h=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],s=[];(function(){for(var v=0;v<80;v++)s[v]=x()})();var d=o.SHA512=i.extend({_doReset:function(){this._hash=new p.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(v,m){for(var C=this._hash.words,E=C[0],y=C[1],B=C[2],b=C[3],F=C[4],D=C[5],T=C[6],P=C[7],H=E.high,S=E.low,A=y.high,q=y.low,N=B.high,z=B.low,L=b.high,X=b.low,Y=F.high,r0=F.low,o0=D.high,n0=D.low,_=T.high,w=T.low,I=P.high,k=P.low,O=H,W=S,t0=A,j=q,s0=N,l0=z,C0=L,oe=X,E0=Y,y0=r0,me=o0,se=n0,Be=_,xe=w,$e=I,ce=k,F0=0;F0<80;F0++){var _0,U0,Ce=s[F0];if(F0<16)U0=Ce.high=v[m+F0*2]|0,_0=Ce.low=v[m+F0*2+1]|0;else{var rt=s[F0-15],V0=rt.high,fe=rt.low,Wt=(V0>>>1|fe<<31)^(V0>>>8|fe<<24)^V0>>>7,nt=(fe>>>1|V0<<31)^(fe>>>8|V0<<24)^(fe>>>7|V0<<25),at=s[F0-2],G0=at.high,de=at.low,jt=(G0>>>19|de<<13)^(G0<<3|de>>>29)^G0>>>6,_e=(de>>>19|G0<<13)^(de<<3|G0>>>29)^(de>>>6|G0<<26),it=s[F0-7],ot=it.high,Xt=it.low,Ke=s[F0-16],Vt=Ke.high,st=Ke.low;_0=nt+Xt,U0=Wt+ot+(_0>>>0<nt>>>0?1:0),_0=_0+_e,U0=U0+jt+(_0>>>0<_e>>>0?1:0),_0=_0+st,U0=U0+Vt+(_0>>>0<st>>>0?1:0),Ce.high=U0,Ce.low=_0}var Gt=E0&me^~E0&Be,xt=y0&se^~y0&xe,Zt=O&t0^O&s0^t0&s0,Yt=W&j^W&l0^j&l0,Qt=(O>>>28|W<<4)^(O<<30|W>>>2)^(O<<25|W>>>7),ct=(W>>>28|O<<4)^(W<<30|O>>>2)^(W<<25|O>>>7),Jt=(E0>>>14|y0<<18)^(E0>>>18|y0<<14)^(E0<<23|y0>>>9),er=(y0>>>14|E0<<18)^(y0>>>18|E0<<14)^(y0<<23|E0>>>9),ft=h[F0],tr=ft.high,dt=ft.low,g0=ce+er,z0=$e+Jt+(g0>>>0<ce>>>0?1:0),g0=g0+xt,z0=z0+Gt+(g0>>>0<xt>>>0?1:0),g0=g0+dt,z0=z0+tr+(g0>>>0<dt>>>0?1:0),g0=g0+_0,z0=z0+U0+(g0>>>0<_0>>>0?1:0),ut=ct+Yt,rr=Qt+Zt+(ut>>>0<ct>>>0?1:0);$e=Be,ce=xe,Be=me,xe=se,me=E0,se=y0,y0=oe+g0|0,E0=C0+z0+(y0>>>0<oe>>>0?1:0)|0,C0=s0,oe=l0,s0=t0,l0=j,t0=O,j=W,W=g0+ut|0,O=z0+rr+(W>>>0<g0>>>0?1:0)|0}S=E.low=S+W,E.high=H+O+(S>>>0<W>>>0?1:0),q=y.low=q+j,y.high=A+t0+(q>>>0<j>>>0?1:0),z=B.low=z+l0,B.high=N+s0+(z>>>0<l0>>>0?1:0),X=b.low=X+oe,b.high=L+C0+(X>>>0<oe>>>0?1:0),r0=F.low=r0+y0,F.high=Y+E0+(r0>>>0<y0>>>0?1:0),n0=D.low=n0+se,D.high=o0+me+(n0>>>0<se>>>0?1:0),w=T.low=w+xe,T.high=_+Be+(w>>>0<xe>>>0?1:0),k=P.low=k+ce,P.high=I+$e+(k>>>0<ce>>>0?1:0)},_doFinalize:function(){var v=this._data,m=v.words,C=this._nDataBytes*8,E=v.sigBytes*8;m[E>>>5]|=128<<24-E%32,m[(E+128>>>10<<5)+30]=Math.floor(C/4294967296),m[(E+128>>>10<<5)+31]=C,v.sigBytes=m.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=i._createHelper(d),n.HmacSHA512=i._createHmacHelper(d)}(),r.SHA512})}(yr)),yr.exports}var gr={exports:{}},Xn;function Ms(){return Xn||(Xn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),Mt(),xi())})(G,function(r){return function(){var n=r,a=n.x64,i=a.Word,c=a.WordArray,f=n.algo,p=f.SHA512,o=f.SHA384=p.extend({_doReset:function(){this._hash=new c.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var x=p._doFinalize.call(this);return x.sigBytes-=16,x}});n.SHA384=p._createHelper(o),n.HmacSHA384=p._createHmacHelper(o)}(),r.SHA384})}(gr)),gr.exports}var mr={exports:{}},Vn;function Us(){return Vn||(Vn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),Mt())})(G,function(r){return function(n){var a=r,i=a.lib,c=i.WordArray,f=i.Hasher,p=a.x64,o=p.Word,x=a.algo,h=[],s=[],d=[];(function(){for(var C=1,E=0,y=0;y<24;y++){h[C+5*E]=(y+1)*(y+2)/2%64;var B=E%5,b=(2*C+3*E)%5;C=B,E=b}for(var C=0;C<5;C++)for(var E=0;E<5;E++)s[C+5*E]=E+(2*C+3*E)%5*5;for(var F=1,D=0;D<24;D++){for(var T=0,P=0,H=0;H<7;H++){if(F&1){var S=(1<<H)-1;S<32?P^=1<<S:T^=1<<S-32}F&128?F=F<<1^113:F<<=1}d[D]=o.create(T,P)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=o.create()})();var m=x.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],E=0;E<25;E++)C[E]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,E){for(var y=this._state,B=this.blockSize/2,b=0;b<B;b++){var F=C[E+2*b],D=C[E+2*b+1];F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var T=y[b];T.high^=D,T.low^=F}for(var P=0;P<24;P++){for(var H=0;H<5;H++){for(var S=0,A=0,q=0;q<5;q++){var T=y[H+5*q];S^=T.high,A^=T.low}var N=v[H];N.high=S,N.low=A}for(var H=0;H<5;H++)for(var z=v[(H+4)%5],L=v[(H+1)%5],X=L.high,Y=L.low,S=z.high^(X<<1|Y>>>31),A=z.low^(Y<<1|X>>>31),q=0;q<5;q++){var T=y[H+5*q];T.high^=S,T.low^=A}for(var r0=1;r0<25;r0++){var S,A,T=y[r0],o0=T.high,n0=T.low,_=h[r0];_<32?(S=o0<<_|n0>>>32-_,A=n0<<_|o0>>>32-_):(S=n0<<_-32|o0>>>64-_,A=o0<<_-32|n0>>>64-_);var w=v[s[r0]];w.high=S,w.low=A}var I=v[0],k=y[0];I.high=k.high,I.low=k.low;for(var H=0;H<5;H++)for(var q=0;q<5;q++){var r0=H+5*q,T=y[r0],O=v[r0],W=v[(H+1)%5+5*q],t0=v[(H+2)%5+5*q];T.high=O.high^~W.high&t0.high,T.low=O.low^~W.low&t0.low}var T=y[0],j=d[P];T.high^=j.high,T.low^=j.low}},_doFinalize:function(){var C=this._data,E=C.words;this._nDataBytes*8;var y=C.sigBytes*8,B=this.blockSize*32;E[y>>>5]|=1<<24-y%32,E[(n.ceil((y+1)/B)*B>>>5)-1]|=128,C.sigBytes=E.length*4,this._process();for(var b=this._state,F=this.cfg.outputLength/8,D=F/8,T=[],P=0;P<D;P++){var H=b[P],S=H.high,A=H.low;S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T.push(A),T.push(S)}return new c.init(T,F)},clone:function(){for(var C=f.clone.call(this),E=C._state=this._state.slice(0),y=0;y<25;y++)E[y]=E[y].clone();return C}});a.SHA3=f._createHelper(m),a.HmacSHA3=f._createHmacHelper(m)}(Math),r.SHA3})}(mr)),mr.exports}var Br={exports:{}},Gn;function zs(){return Gn||(Gn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){/** @preserve
|
|
1
|
+
"use strict";var $a=Object.defineProperty,Ka=Object.defineProperties;var Va=Object.getOwnPropertyDescriptors;var qn=Object.getOwnPropertySymbols;var Xa=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable;var ar=(t,n,e)=>n in t?$a(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,ze=(t,n)=>{for(var e in n||(n={}))Xa.call(n,e)&&ar(t,e,n[e]);if(qn)for(var e of qn(n))Ga.call(n,e)&&ar(t,e,n[e]);return t},St=(t,n)=>Ka(t,Va(n));var ye=(t,n,e)=>ar(t,typeof n!="symbol"?n+"":n,e);var De=(t,n,e)=>new Promise((r,i)=>{var o=h=>{try{c(e.next(h))}catch(a){i(a)}},s=h=>{try{c(e.throw(h))}catch(a){i(a)}},c=h=>h.done?r(h.value):Promise.resolve(h.value).then(o,s);c((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class Ya{constructor(){this.__eventStore={}}__addOnEvent(n,e,r,i){if(!e||!r)return;let o=this.__eventStore[e];o||(o=[]),o.push({type:n,handler:r,callbackHandler:r.bind(i)}),this.__eventStore[e]=o}on(n,e,r=this){this.__addOnEvent("normal",n,e,r)}once(n,e,r=this){this.__addOnEvent("once",n,e,r)}off(n,e){let r=this.__eventStore[n];r&&(r=r.filter(i=>i.handler!==e),this.__eventStore[n]=r)}emit(n,e,r){const i=this.__eventStore[n];i&&i.forEach(o=>{const{type:s,handler:c,callbackHandler:h}=o;typeof h=="function"&&h(e,r),s==="once"&&this.off(n,c)})}destroy(){this.__eventStore={}}}const Za=Object.prototype.hasOwnProperty;function dn(t,n){return Za.call(t,n)}function Zt(t,...n){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(let e=0;e<n.length;e++){const r=n[e];if(r!=null)for(const i in r)i!=="__proto__"&&dn(r,i)&&(t[i]=r[i])}return t}function Qa(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const n in t)if(dn(t,n))return!1}return!0}const Ja=Object.prototype.toString;function es(t){return Ja.call(t)==="[object Object]"}function eo(t,n,e,r){e==null&&(e=""),(e!==""||!r.ignoreEmpty)&&(typeof r.encode=="function"&&(n=r.encode(n),e=["boolean","string","number"].indexOf(typeof e)!==-1?r.encode(String(e)):""),t.push(n+"="+e))}function ts(t,n,e,r){e.forEach(i=>{eo(t,n,i,r)})}function to(t,n){const e=Zt({encode:encodeURIComponent},n),r=[];let i,o;for(i in t)dn(t,i)&&(o=t[i],Array.isArray(o)?ts(r,i,o,e):eo(r,i,o,e));return r.join("&")}function rs(t){const n={leftContext:""};let e=t.indexOf("#");return e!==-1&&(n.hash=t.slice(e+1),t=t.slice(0,e)),e=t.indexOf("?"),e!==-1&&(n.search=t.slice(e+1),t=t.slice(0,e)),n.leftContext=t,n}function ns(t){let n=t.leftContext;return t.search!=null&&(n+="?"+t.search),t.hash!=null&&(n+="#"+t.hash),n}function Qr(t,n,e){if(t=String(t),n==null||!(n=typeof n=="string"?n.replace(/^[?&]/,""):to(n,e)))return t;const r=rs(t);let i=r.search||"";return i&&i.slice(-1)!=="&"&&(i+="&"),i+=n,r.search=i,ns(r)}function is(t){if(typeof document=="undefined"||typeof document.createElement!="function")return!1;let n=document.createElement("div");n.innerHTML='<a href="'+t+'"></a>';let e=n.firstChild;const r=e.host!==location.host;return n=null,e=null,r}function os(){return/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10}const as=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;function ss(t){return t&&as.test(t)?RegExp.$1.toLowerCase():""}function cs(t){return!(t===void 0||t>=200&&t<300||t===1223||t===304)}function hn(t,n){return t.requestWith=n,Object.freeze(t)}function fs(t,n){const e=/^(?:(?:[a-z]+):)?\/{2,3}/;return e.test(n)?n:(/\/$/.test(t)||(t+="/"),/^\//.test(n)?e.test(t)?RegExp.lastMatch+t.replace(e,"").split("/")[0]+n:n:t+n)}function xs(t,n,e){return t=Qr(t,n,{ignoreEmpty:!1}),e&&(t=Qr(t,{_:Date.now()})),t}function ro(t,n,e,r=!0){const i=n.toLowerCase();Object.keys(t).some(o=>{if(o.toLowerCase()===i)return r&&(t[o]=e),!0})||(t[n]=e)}var Ht;(function(t){t.NETWORK_ERROR="network error",t.TIMEOUT="timeout",t.ABORTED="aborted",t.HTTP_ERROR="http error",t.PARSE_ERROR="parse error"})(Ht||(Ht={}));let L0=class extends Error{constructor(n){super(n.message),this.name="RequestError",this.result=n.result,this.code=n.code,this.type=n.type,Object.freeze(this)}},us=class{constructor(n,e){this._baseOptions=Object.create(null),this._adapter=n,this.mixBaseOptions(e)}mixBaseOptions(n){return Zt(this._baseOptions,n),Zt(Object.create(null),this._baseOptions)}send(n,e){var r;let i=Zt(Object.create(null),e,this._baseOptions);const o=i.beforeSend;return typeof o=="function"&&(i=(r=o(i))!==null&&r!==void 0?r:i),i.baseURL&&(n=fs(i.baseURL,n)),n=xs(n,i.params,i.preventCaching),this._adapter.send(Object.freeze({url:n,baseURL:i.baseURL,params:i.params,data:i.data,headers:i.headers||Object.create(null),method:(i.method||"GET").toUpperCase(),requestType:(i.requestType||"").toLowerCase(),responseType:(i.responseType||"json").toLowerCase(),withCredentials:i.withCredentials,timeout:i.timeout,preventCaching:i.preventCaching,username:i.username,password:i.password,beforeSend:i.beforeSend,beforeXhrSend:i.beforeXhrSend,receiveTaskId:i.receiveTaskId,onUploadProgress:i.onUploadProgress,onDownloadProgress:i.onDownloadProgress,extra:i.extra}))}get(n,e){const r=Zt(Object.create(null),e);return r.method="GET",this.send(n,r)}post(n,e){const r=Zt(Object.create(null),e);return r.method="POST",this.send(n,r)}abort(n){return this._adapter.abort(n)}};var g0;(function(t){t.XHR="XMLHttpRequest",t.WX_REQUEST="wx.request"})(g0||(g0={}));class ds{constructor(){this.__autoId=0,this.__list=Object.create(null)}addTask(n){const e=++this.__autoId;return this.__list[e]=n,e}removeTask(n){const e=this.__list[n];return delete this.__list[n],e}}const hs="Network error",ls="Request aborted",ps="Request timeout",vs="HTTP status error(${status})";function bs(t,n,e,r){return function(){let i,o,s;switch(n.responseType||ss(t.getResponseHeader("Content-Type"))){case"json":try{i=JSON.parse(t.responseText)}catch(f){s=Ht.PARSE_ERROR,o="Invalid JSON structure"}break;case"xml":i=t.responseXML,i&&i.documentElement||(s=Ht.PARSE_ERROR,o="Invalid XML format");break;case"blob":i=t.response;break;default:i=t.responseText}const c=hn({options:n,data:i,xhr:t},g0.XHR),h=t.status;let a;cs(h)?a=new L0({message:vs.replace("${status}",h.toString()),type:Ht.HTTP_ERROR,code:h,result:c}):o&&(a=new L0({message:o,type:s,result:c})),a?r(a):e(c)}}function Mn(t,n,e,r,i){return function(){e(new L0({message:r,type:i,result:hn({xhr:t,options:n},g0.XHR)}))}}function ys(t,n,e,r){t.onload=bs(t,n,e,r),t.ontimeout=Mn(t,n,r,ps,Ht.TIMEOUT),t.onerror=Mn(t,n,r,hs,Ht.NETWORK_ERROR),n.onDownloadProgress&&t.addEventListener("progress",n.onDownloadProgress),n.onUploadProgress&&t.upload&&t.upload.addEventListener("progress",n.onUploadProgress)}const D0=new ds;function gs(t,n,e,r,i){return t&&os()&&window.XDomainRequest&&(n==="get"||n==="post")&&!e&&!i&&Qa(r)?new window.XDomainRequest:new window.XMLHttpRequest}function ms(t,n,e,r){n.timeout!=null&&(t.timeout=n.timeout),e&&n.withCredentials!=null&&(t.withCredentials=!!n.withCredentials),e||ro(r,"X-Request-With","XMLHttpRequest",!1),Object.keys(r).forEach(function(i){r[i]!=null&&t.setRequestHeader(i,String(r[i]))})}function Es(t,n,e,r){if(e==null||t==="GET")return;let i,o;return r==="json"?(i=typeof e=="string"?e:JSON.stringify(e),o="application/json; charset=utf-8"):(i=es(e)?to(e,{ignoreEmpty:!1}):e,typeof i=="string"&&(o="application/x-www-form-urlencoded; charset=utf-8")),ro(n,"Content-Type",o,!1),i}const _s={send:t=>new Promise((n,e)=>{let r=0;const i=is(t.url),o=gs(i,t.method,t.requestType,t.headers,t.withCredentials);ys(o,t,function(a){D0.removeTask(r),n(a)},function(a){r&&D0.removeTask(r),e(a)}),r=D0.addTask({xhr:o,options:t,reject:e}),t.responseType!=="blob"&&t.responseType!=="arraybuffer"||(o.responseType=t.responseType),o.open(t.method,t.url,!0,t.username,t.password);const s=Es(t.method,t.headers,t.data,t.requestType);ms(o,t,i,t.headers);const c=t.beforeXhrSend;typeof c=="function"&&c(o),o.send(s||"");const h=t.receiveTaskId;typeof h=="function"&&h(r)}),abort(t){const n=D0.removeTask(t);return n?(n.xhr.abort(),(0,n.reject)(new L0({message:ls,type:Ht.ABORTED,result:hn({xhr:n.xhr,options:n.options},g0.XHR)})),!0):!1}},W0=/^(?:([a-z]+):)?\/{2,3}/i;function no(t,n){return W0.test(t)}function io(t,n){return W0.test(n)||(n+="://"),no(t)?t.replace(W0,n):n+t}function ws(t){return t.replace(W0,"")}class Bs{constructor(n){ye(this,"__requestPlugins",[]);n.forEach(e=>{this.installPlugin(e)})}installPlugin(n){this.__requestPlugins.push(n),n.installPlugin&&n.installPlugin(this)}__getUsePlugin(n,e){return De(this,null,function*(){return e.usePlugin?!!(yield e.usePlugin(n)):!0})}__forEachRequestPlugin(n,e,r){return De(this,null,function*(){for(let i=0;i<this.__requestPlugins.length;i++){const o=this.__requestPlugins[i];(yield this.__getUsePlugin(n,o))&&o[e]&&(yield r(o))}})}interceptPluginRequest(n){return De(this,null,function*(){let e=n;return yield this.__forEachRequestPlugin(n,"interceptIncludeParams",r=>De(this,null,function*(){const i=yield r.interceptIncludeParams(e);i&&(e.params=ze(ze({},e.params||{}),i))})),yield this.__forEachRequestPlugin(n,"interceptAuthorizeRequest",r=>De(this,null,function*(){e=(yield r.interceptAuthorizeRequest(e))||e})),yield this.__forEachRequestPlugin(n,"interceptEncryptRequest",r=>De(this,null,function*(){e=(yield r.interceptEncryptRequest(e))||e})),yield this.__forEachRequestPlugin(n,"interceptRequest",r=>De(this,null,function*(){e=(yield r.interceptRequest(e))||e})),e})}interceptPluginResponse(n,e){return De(this,null,function*(){let r=n;return yield this.__forEachRequestPlugin(e,"interceptDecryptResponse",i=>De(this,null,function*(){r=(yield i.interceptDecryptResponse(r,e))||r})),yield this.__forEachRequestPlugin(e,"interceptResponse",i=>De(this,null,function*(){r=(yield i.interceptResponse(r,e))||r})),r})}}function As(t){for(const n in t)if(t[n]instanceof File)return!0;return!1}function Cs(t){const n=new FormData;for(const e in t){const r=t[e];n.append(e,r)}return n}const Fs="json",Ss="json";let sr;class oo{constructor(n={}){ye(this,"__isDestroyed",!1);ye(this,"__baseUrl","");ye(this,"__timeout");ye(this,"__requestType");ye(this,"__responseType");ye(this,"__withCredentials");ye(this,"__xhrRequest");ye(this,"__pluginCtrl");var i;const{baseUrl:e}=n;e&&this.setBaseUrl(e),this.__timeout=n.timeout||1e4,this.__requestType=n.requestType||Fs,this.__responseType=n.responseType||Ss,this.__withCredentials=(i=n.withCredentials)!=null?i:!1,sr||(sr=new us(_s)),this.__xhrRequest=sr;const r=n.requestPlugins||[];this.__pluginCtrl=new Bs(r)}setBaseUrl(n){this.__baseUrl=n}generateUrl(n){if(n.requestUrl)return n.requestUrl;const e=n.url||"";let r="";return typeof this.__baseUrl=="string"&&(r=this.__baseUrl),!r||no(e)?e:r+e}__handleOptions(n){return De(this,null,function*(){let e=ze({},n);const r=this.generateUrl(e);e.requestUrl=r,e.timeout=e.timeout||this.__timeout,e.requestType=e.requestType||this.__requestType,e.responseType=e.responseType||this.__responseType,e.withCredentials=e.withCredentials||this.__withCredentials,e=yield this.__interceptRequest(e);const i=e.requestUrl||r;return{options:e,requestUrl:i}})}_request(n){return De(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const e=yield this.__handleOptions(n),r=this.__beforeSend(e.options);let i;try{const o=yield this.__xhrRequest.send(e.requestUrl,ze({},r)),s=this.__parseResponseHeaders(o.xhr.getAllResponseHeaders());i={data:o.data,headers:s}}catch(o){i={data:o.result.data}}if(!i)throw Error("result is undefined");return i=yield this.__interceptResponse(i,r),i.data})}__beforeSend(n){var r;const e=n.data||{};return n.method==="POST"&&n.requestType==="form"&&typeof e=="object"&&((r=n.useFormData)!=null?r:As(e))&&(n.data=Cs(e)),n}__interceptRequest(n){return De(this,null,function*(){let e=n;return e=yield this.__pluginCtrl.interceptPluginRequest(e),e})}__interceptResponse(n,e){return De(this,null,function*(){let r=n;return r=yield this.__pluginCtrl.interceptPluginResponse(r,e),r})}__filterParamsData(n){const e={};for(const r in n){const i=n[r];typeof i!="undefined"&&(e[r]=i)}return e}get(n,e,r){return this._request(Object.assign({url:n,method:"GET",params:this.__filterParamsData(e)},r))}post(n,e,r){return this._request(Object.assign({url:n,method:"POST",data:this.__filterParamsData(e)},r))}delete(n,e,r){return this._request(Object.assign({url:n,method:"DELETE",data:this.__filterParamsData(e)},r))}put(n,e,r){return this._request(Object.assign({url:n,method:"PUT",data:this.__filterParamsData(e)},r))}open(n,e,r){return De(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const i=yield this.__handleOptions(Object.assign({url:n,method:"GET",params:this.__filterParamsData(e)},r)),o=i.options.params||{},s=Qr(i.requestUrl,o);window.open(s,"_blank")})}__parseResponseHeaders(n){const e={};return n&&n.trim().split(`\r
|
|
2
|
+
`).forEach(i=>{const o=i.indexOf(":");if(o>0){const s=i.substring(0,o).trim().toLowerCase(),c=i.substring(o+1).trim();e[s]=c}}),e}destroy(){this.__isDestroyed=!0}}class Ds extends Error{constructor(e){const{code:r,message:i}=e;super(i);ye(this,"code");this.code=r}}function Ts(t){return new Ds(t)}var $t;(function(t){t.Header="header",t.Params="params"})($t||($t={}));const ks="token",Rs=$t.Params;class ao{constructor(n={}){ye(this,"__useToken");ye(this,"__config");ye(this,"__recordToken");const{useToken:e=!0}=n;this.__config=n,this.__useToken=e}usePlugin(n){const{useToken:e=this.__useToken}=n;return e}interceptAuthorizeRequest(n){return De(this,null,function*(){const e=yield this.__getTokenInfo(n);if(!e)return n;const r=e.token||this.__recordToken;if(!r)return n;const{tokenField:i=ks,tokenMode:o=Rs,includeParams:s={}}=e;let c=n.params||{};const h=n.headers||{};return s&&(c=Object.assign({},c,s)),o===$t.Params&&(c[i]=r),o===$t.Header&&(h[i]=r),St(ze({},n),{params:c,headers:h})})}interceptResponse(n,e){return De(this,null,function*(){if(!n.headers)return;const r=e.responseTokenField||this.__config.responseTokenField;if(!r)return;const o=n.headers[r];o&&(this.__recordToken=o,this.__config.responseTokenCallback&&this.__config.responseTokenCallback({token:o}))})}__getTokenInfo(n){return De(this,null,function*(){let e=ze({},this.__config);if(typeof this.__config.getTokenInfo=="function"){const r=(yield this.__config.getTokenInfo(n))||{};e=ze(ze({},e),r)}return n.tokenInfo&&(e=ze(ze({},e),n.tokenInfo)),e})}}class Jr{constructor(n={}){ye(this,"__config");ye(this,"__useGlobalParams");this.__config=n;const{useGlobalParams:e=!0}=n;this.__useGlobalParams=e}usePlugin(n){const{useGlobalParams:e=this.__useGlobalParams}=n;return e}interceptIncludeParams(n){return De(this,null,function*(){let e;return typeof this.__config.globalParams=="function"?e=yield this.__config.globalParams(n):e=this.__config.globalParams,e})}}class so{constructor(n={}){ye(this,"__fields");ye(this,"__successCodes");ye(this,"__errorCallback");var e;this.__successCodes=this.__formateSuccessCode((e=n.successCode)!=null?e:200),this.__errorCallback=n.errorCallback,this.__fields=ze({codeField:"code",statusField:"status",messageField:"message",dataField:"data",errorField:"error",errorCodeField:"code",errorDescField:"desc"},n.fields)}usePlugin(n){const{useStatusCode:e=!0}=n;return e}interceptResponse(n,e){var f,p;if(!n.data)throw new Error(`status-code-plugin error: result.data is undefined, url: ${e.requestUrl}`);const r=this.__formatRes(n.data),i=r.code,o=r.status;if(this.__getSuccessCodes(e).includes(i)||o==="success")return Promise.resolve(St(ze({},n),{data:r.data}));const c=((f=r.error)==null?void 0:f.code)||i,h=((p=r.error)==null?void 0:p.desc)||r.message||"未知错误",a=Ts({code:c,message:h});return this.__errorCallback&&this.__errorCallback(c,h),Promise.reject(a)}__formatRes(n){const e=n[this.__fields.codeField],r=n[this.__fields.statusField],i=n[this.__fields.messageField],o=n[this.__fields.dataField],s={code:e,data:o,status:r,message:i},c=n[this.__fields.errorField];if(c){const h=c[this.__fields.errorCodeField],a=c[this.__fields.errorDescField];s.error={code:h,desc:a}}return s}__formateSuccessCode(n){return typeof n=="number"?[n]:Array.isArray(n)?n:[]}__getSuccessCodes(n){const e=this.__formateSuccessCode(n.successCode);return[...this.__successCodes,...e]}}var e0;(function(t){t.WholeResponse="wholeResponse",t.ResponseData="responseData"})(e0||(e0={}));var o0;(function(t){t.Hex="hex",t.Base64="base64"})(o0||(o0={}));var ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function A0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Is(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var e=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),e}var co={exports:{}};/*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */(function(t,n){(function(e){function r(P){return parseInt(P)===P}function i(P){if(!r(P.length))return!1;for(var l=0;l<P.length;l++)if(!r(P[l])||P[l]<0||P[l]>255)return!1;return!0}function o(P,l){if(P.buffer&&P.name==="Uint8Array")return l&&(P.slice?P=P.slice():P=Array.prototype.slice.call(P)),P;if(Array.isArray(P)){if(!i(P))throw new Error("Array contains invalid value: "+P);return new Uint8Array(P)}if(r(P.length)&&i(P))return new Uint8Array(P);throw new Error("unsupported array-like object")}function s(P){return new Uint8Array(P)}function c(P,l,y,w,T){(w!=null||T!=null)&&(P.slice?P=P.slice(w,T):P=Array.prototype.slice.call(P,w,T)),l.set(P,y)}var h=function(){function P(y){var w=[],T=0;for(y=encodeURI(y);T<y.length;){var N=y.charCodeAt(T++);N===37?(w.push(parseInt(y.substr(T,2),16)),T+=2):w.push(N)}return o(w)}function l(y){for(var w=[],T=0;T<y.length;){var N=y[T];N<128?(w.push(String.fromCharCode(N)),T++):N>191&&N<224?(w.push(String.fromCharCode((N&31)<<6|y[T+1]&63)),T+=2):(w.push(String.fromCharCode((N&15)<<12|(y[T+1]&63)<<6|y[T+2]&63)),T+=3)}return w.join("")}return{toBytes:P,fromBytes:l}}(),a=function(){function P(w){for(var T=[],N=0;N<w.length;N+=2)T.push(parseInt(w.substr(N,2),16));return T}var l="0123456789abcdef";function y(w){for(var T=[],N=0;N<w.length;N++){var X=w[N];T.push(l[(X&240)>>4]+l[X&15])}return T.join("")}return{toBytes:P,fromBytes:y}}(),f={16:10,24:12,32:14},p=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],x=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],b=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],E=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],A=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],d=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],B=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],k=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function F(P){for(var l=[],y=0;y<P.length;y+=4)l.push(P[y]<<24|P[y+1]<<16|P[y+2]<<8|P[y+3]);return l}var D=function(P){if(!(this instanceof D))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(P,!0)}),this._prepare()};D.prototype._prepare=function(){var P=f[this.key.length];if(P==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var l=0;l<=P;l++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var y=(P+1)*4,w=this.key.length/4,T=F(this.key),N,l=0;l<w;l++)N=l>>2,this._Ke[N][l%4]=T[l],this._Kd[P-N][l%4]=T[l];for(var X=0,V=w,Y;V<y;){if(Y=T[w-1],T[0]^=x[Y>>16&255]<<24^x[Y>>8&255]<<16^x[Y&255]<<8^x[Y>>24&255]^p[X]<<24,X+=1,w!=8)for(var l=1;l<w;l++)T[l]^=T[l-1];else{for(var l=1;l<w/2;l++)T[l]^=T[l-1];Y=T[w/2-1],T[w/2]^=x[Y&255]^x[Y>>8&255]<<8^x[Y>>16&255]<<16^x[Y>>24&255]<<24;for(var l=w/2+1;l<w;l++)T[l]^=T[l-1]}for(var l=0,ie,ue;l<w&&V<y;)ie=V>>2,ue=V%4,this._Ke[ie][ue]=T[l],this._Kd[P-ie][ue]=T[l++],V++}for(var ie=1;ie<P;ie++)for(var ue=0;ue<4;ue++)Y=this._Kd[ie][ue],this._Kd[ie][ue]=B[Y>>24&255]^C[Y>>16&255]^S[Y>>8&255]^k[Y&255]},D.prototype.encrypt=function(P){if(P.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var l=this._Ke.length-1,y=[0,0,0,0],w=F(P),T=0;T<4;T++)w[T]^=this._Ke[0][T];for(var N=1;N<l;N++){for(var T=0;T<4;T++)y[T]=b[w[T]>>24&255]^m[w[(T+1)%4]>>16&255]^E[w[(T+2)%4]>>8&255]^A[w[(T+3)%4]&255]^this._Ke[N][T];w=y.slice()}for(var X=s(16),V,T=0;T<4;T++)V=this._Ke[l][T],X[4*T]=(x[w[T]>>24&255]^V>>24)&255,X[4*T+1]=(x[w[(T+1)%4]>>16&255]^V>>16)&255,X[4*T+2]=(x[w[(T+2)%4]>>8&255]^V>>8)&255,X[4*T+3]=(x[w[(T+3)%4]&255]^V)&255;return X},D.prototype.decrypt=function(P){if(P.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var l=this._Kd.length-1,y=[0,0,0,0],w=F(P),T=0;T<4;T++)w[T]^=this._Kd[0][T];for(var N=1;N<l;N++){for(var T=0;T<4;T++)y[T]=g[w[T]>>24&255]^v[w[(T+3)%4]>>16&255]^d[w[(T+2)%4]>>8&255]^_[w[(T+1)%4]&255]^this._Kd[N][T];w=y.slice()}for(var X=s(16),V,T=0;T<4;T++)V=this._Kd[l][T],X[4*T]=(u[w[T]>>24&255]^V>>24)&255,X[4*T+1]=(u[w[(T+3)%4]>>16&255]^V>>16)&255,X[4*T+2]=(u[w[(T+2)%4]>>8&255]^V>>8)&255,X[4*T+3]=(u[w[(T+1)%4]&255]^V)&255;return X};var O=function(P){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new D(P)};O.prototype.encrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16)c(P,y,0,w,w+16),y=this._aes.encrypt(y),c(y,l,w);return l},O.prototype.decrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16)c(P,y,0,w,w+16),y=this._aes.decrypt(y),c(y,l,w);return l};var M=function(P,l){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=o(l,!0),this._aes=new D(P)};M.prototype.encrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16){c(P,y,0,w,w+16);for(var T=0;T<16;T++)y[T]^=this._lastCipherblock[T];this._lastCipherblock=this._aes.encrypt(y),c(this._lastCipherblock,l,w)}return l},M.prototype.decrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16){c(P,y,0,w,w+16),y=this._aes.decrypt(y);for(var T=0;T<16;T++)l[w+T]=y[T]^this._lastCipherblock[T];c(P,this._lastCipherblock,0,w,w+16)}return l};var U=function(P,l,y){if(!(this instanceof U))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");y||(y=1),this.segmentSize=y,this._shiftRegister=o(l,!0),this._aes=new D(P)};U.prototype.encrypt=function(P){if(P.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var l=o(P,!0),y,w=0;w<l.length;w+=this.segmentSize){y=this._aes.encrypt(this._shiftRegister);for(var T=0;T<this.segmentSize;T++)l[w+T]^=y[T];c(this._shiftRegister,this._shiftRegister,0,this.segmentSize),c(l,this._shiftRegister,16-this.segmentSize,w,w+this.segmentSize)}return l},U.prototype.decrypt=function(P){if(P.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var l=o(P,!0),y,w=0;w<l.length;w+=this.segmentSize){y=this._aes.encrypt(this._shiftRegister);for(var T=0;T<this.segmentSize;T++)l[w+T]^=y[T];c(this._shiftRegister,this._shiftRegister,0,this.segmentSize),c(P,this._shiftRegister,16-this.segmentSize,w,w+this.segmentSize)}return l};var z=function(P,l){if(!(this instanceof z))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=o(l,!0),this._lastPrecipherIndex=16,this._aes=new D(P)};z.prototype.encrypt=function(P){for(var l=o(P,!0),y=0;y<l.length;y++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),l[y]^=this._lastPrecipher[this._lastPrecipherIndex++];return l},z.prototype.decrypt=z.prototype.encrypt;var j=function(P){if(!(this instanceof j))throw Error("Counter must be instanitated with `new`");P!==0&&!P&&(P=1),typeof P=="number"?(this._counter=s(16),this.setValue(P)):this.setBytes(P)};j.prototype.setValue=function(P){if(typeof P!="number"||parseInt(P)!=P)throw new Error("invalid counter value (must be an integer)");if(P>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var l=15;l>=0;--l)this._counter[l]=P%256,P=parseInt(P/256)},j.prototype.setBytes=function(P){if(P=o(P,!0),P.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=P},j.prototype.increment=function(){for(var P=15;P>=0;P--)if(this._counter[P]===255)this._counter[P]=0;else{this._counter[P]++;break}};var W=function(P,l){if(!(this instanceof W))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",l instanceof j||(l=new j(l)),this._counter=l,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new D(P)};W.prototype.encrypt=function(P){for(var l=o(P,!0),y=0;y<l.length;y++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),l[y]^=this._remainingCounter[this._remainingCounterIndex++];return l},W.prototype.decrypt=W.prototype.encrypt;function Q(P){P=o(P,!0);var l=16-P.length%16,y=s(P.length+l);c(P,y);for(var w=P.length;w<y.length;w++)y[w]=l;return y}function Z(P){if(P=o(P,!0),P.length<16)throw new Error("PKCS#7 invalid length");var l=P[P.length-1];if(l>16)throw new Error("PKCS#7 padding byte out of range");for(var y=P.length-l,w=0;w<l;w++)if(P[y+w]!==l)throw new Error("PKCS#7 invalid padding byte");var T=s(y);return c(P,T,0,0,y),T}var te={AES:D,Counter:j,ModeOfOperation:{ecb:O,cbc:M,cfb:U,ofb:z,ctr:W},utils:{hex:a,utf8:h},padding:{pkcs7:{pad:Q,strip:Z}},_arrayTest:{coerceArray:o,createArray:s,copyArray:c}};t.exports=te})()})(co);var Ps=co.exports;const H0=A0(Ps);var fo={exports:{}};function Os(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cr={exports:{}};const qs={},Ms=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),xo=Is(Ms);var Nn;function Ne(){return Nn||(Nn=1,function(t,n){(function(e,r){t.exports=r()})(ke,function(){var e=e||function(r,i){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ke!="undefined"&&ke.crypto&&(o=ke.crypto),!o&&typeof Os=="function")try{o=xo}catch(g){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function g(){}return function(v){var d;return g.prototype=v,d=new g,g.prototype=null,d}}(),h={},a=h.lib={},f=a.Base=function(){return{extend:function(g){var v=c(this);return g&&v.mixIn(g),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var v in g)g.hasOwnProperty(v)&&(this[v]=g[v]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=a.WordArray=f.extend({init:function(g,v){g=this.words=g||[],v!=i?this.sigBytes=v:this.sigBytes=g.length*4},toString:function(g){return(g||u).stringify(this)},concat:function(g){var v=this.words,d=g.words,_=this.sigBytes,B=g.sigBytes;if(this.clamp(),_%4)for(var C=0;C<B;C++){var S=d[C>>>2]>>>24-C%4*8&255;v[_+C>>>2]|=S<<24-(_+C)%4*8}else for(var k=0;k<B;k+=4)v[_+k>>>2]=d[k>>>2];return this.sigBytes+=B,this},clamp:function(){var g=this.words,v=this.sigBytes;g[v>>>2]&=4294967295<<32-v%4*8,g.length=r.ceil(v/4)},clone:function(){var g=f.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var v=[],d=0;d<g;d+=4)v.push(s());return new p.init(v,g)}}),x=h.enc={},u=x.Hex={stringify:function(g){for(var v=g.words,d=g.sigBytes,_=[],B=0;B<d;B++){var C=v[B>>>2]>>>24-B%4*8&255;_.push((C>>>4).toString(16)),_.push((C&15).toString(16))}return _.join("")},parse:function(g){for(var v=g.length,d=[],_=0;_<v;_+=2)d[_>>>3]|=parseInt(g.substr(_,2),16)<<24-_%8*4;return new p.init(d,v/2)}},b=x.Latin1={stringify:function(g){for(var v=g.words,d=g.sigBytes,_=[],B=0;B<d;B++){var C=v[B>>>2]>>>24-B%4*8&255;_.push(String.fromCharCode(C))}return _.join("")},parse:function(g){for(var v=g.length,d=[],_=0;_<v;_++)d[_>>>2]|=(g.charCodeAt(_)&255)<<24-_%4*8;return new p.init(d,v)}},m=x.Utf8={stringify:function(g){try{return decodeURIComponent(escape(b.stringify(g)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(g){return b.parse(unescape(encodeURIComponent(g)))}},E=a.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var v,d=this._data,_=d.words,B=d.sigBytes,C=this.blockSize,S=C*4,k=B/S;g?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var F=k*C,D=r.min(F*4,B);if(F){for(var O=0;O<F;O+=C)this._doProcessBlock(_,O);v=_.splice(0,F),d.sigBytes-=D}return new p.init(v,D)},clone:function(){var g=f.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});a.Hasher=E.extend({cfg:f.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(g){return function(v,d){return new g.init(d).finalize(v)}},_createHmacHelper:function(g){return function(v,d){return new A.HMAC.init(g,d).finalize(v)}}});var A=h.algo={};return h}(Math);return e})}(cr)),cr.exports}var fr={exports:{}},Hn;function Z0(){return Hn||(Hn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.Base,c=o.WordArray,h=i.x64={};h.Word=s.extend({init:function(a,f){this.high=a,this.low=f}}),h.WordArray=s.extend({init:function(a,f){a=this.words=a||[],f!=r?this.sigBytes=f:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,f=a.length,p=[],x=0;x<f;x++){var u=a[x];p.push(u.high),p.push(u.low)}return c.create(p,this.sigBytes)},clone:function(){for(var a=s.clone.call(this),f=a.words=this.words.slice(0),p=f.length,x=0;x<p;x++)f[x]=f[x].clone();return a}})}(),e})}(fr)),fr.exports}var xr={exports:{}},Un;function Ns(){return Un||(Un=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){if(typeof ArrayBuffer=="function"){var r=e,i=r.lib,o=i.WordArray,s=o.init,c=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var a=h.byteLength,f=[],p=0;p<a;p++)f[p>>>2]|=h[p]<<24-p%4*8;s.call(this,f,a)}else s.apply(this,arguments)};c.prototype=o}}(),e.lib.WordArray})}(xr)),xr.exports}var ur={exports:{}},zn;function Hs(){return zn||(zn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var a=h.words,f=h.sigBytes,p=[],x=0;x<f;x+=2){var u=a[x>>>2]>>>16-x%4*8&65535;p.push(String.fromCharCode(u))}return p.join("")},parse:function(h){for(var a=h.length,f=[],p=0;p<a;p++)f[p>>>1]|=h.charCodeAt(p)<<16-p%2*16;return o.create(f,a*2)}},s.Utf16LE={stringify:function(h){for(var a=h.words,f=h.sigBytes,p=[],x=0;x<f;x+=2){var u=c(a[x>>>2]>>>16-x%4*8&65535);p.push(String.fromCharCode(u))}return p.join("")},parse:function(h){for(var a=h.length,f=[],p=0;p<a;p++)f[p>>>1]|=c(h.charCodeAt(p)<<16-p%2*16);return o.create(f,a*2)}};function c(h){return h<<8&4278255360|h>>>8&16711935}}(),e.enc.Utf16})}(ur)),ur.exports}var dr={exports:{}},jn;function Kt(){return jn||(jn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Base64={stringify:function(h){var a=h.words,f=h.sigBytes,p=this._map;h.clamp();for(var x=[],u=0;u<f;u+=3)for(var b=a[u>>>2]>>>24-u%4*8&255,m=a[u+1>>>2]>>>24-(u+1)%4*8&255,E=a[u+2>>>2]>>>24-(u+2)%4*8&255,A=b<<16|m<<8|E,g=0;g<4&&u+g*.75<f;g++)x.push(p.charAt(A>>>6*(3-g)&63));var v=p.charAt(64);if(v)for(;x.length%4;)x.push(v);return x.join("")},parse:function(h){var a=h.length,f=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var x=0;x<f.length;x++)p[f.charCodeAt(x)]=x}var u=f.charAt(64);if(u){var b=h.indexOf(u);b!==-1&&(a=b)}return c(h,a,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function c(h,a,f){for(var p=[],x=0,u=0;u<a;u++)if(u%4){var b=f[h.charCodeAt(u-1)]<<u%4*2,m=f[h.charCodeAt(u)]>>>6-u%4*2,E=b|m;p[x>>>2]|=E<<24-x%4*8,x++}return o.create(p,x)}}(),e.enc.Base64})}(dr)),dr.exports}var hr={exports:{}},Ln;function Us(){return Ln||(Ln=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Base64url={stringify:function(h,a){a===void 0&&(a=!0);var f=h.words,p=h.sigBytes,x=a?this._safe_map:this._map;h.clamp();for(var u=[],b=0;b<p;b+=3)for(var m=f[b>>>2]>>>24-b%4*8&255,E=f[b+1>>>2]>>>24-(b+1)%4*8&255,A=f[b+2>>>2]>>>24-(b+2)%4*8&255,g=m<<16|E<<8|A,v=0;v<4&&b+v*.75<p;v++)u.push(x.charAt(g>>>6*(3-v)&63));var d=x.charAt(64);if(d)for(;u.length%4;)u.push(d);return u.join("")},parse:function(h,a){a===void 0&&(a=!0);var f=h.length,p=a?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<p.length;u++)x[p.charCodeAt(u)]=u}var b=p.charAt(64);if(b){var m=h.indexOf(b);m!==-1&&(f=m)}return c(h,f,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function c(h,a,f){for(var p=[],x=0,u=0;u<a;u++)if(u%4){var b=f[h.charCodeAt(u-1)]<<u%4*2,m=f[h.charCodeAt(u)]>>>6-u%4*2,E=b|m;p[x>>>2]|=E<<24-x%4*8,x++}return o.create(p,x)}}(),e.enc.Base64url})}(hr)),hr.exports}var lr={exports:{}},Wn;function Vt(){return Wn||(Wn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=[];(function(){for(var m=0;m<64;m++)a[m]=r.abs(r.sin(m+1))*4294967296|0})();var f=h.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,E){for(var A=0;A<16;A++){var g=E+A,v=m[g];m[g]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var d=this._hash.words,_=m[E+0],B=m[E+1],C=m[E+2],S=m[E+3],k=m[E+4],F=m[E+5],D=m[E+6],O=m[E+7],M=m[E+8],U=m[E+9],z=m[E+10],j=m[E+11],W=m[E+12],Q=m[E+13],Z=m[E+14],te=m[E+15],P=d[0],l=d[1],y=d[2],w=d[3];P=p(P,l,y,w,_,7,a[0]),w=p(w,P,l,y,B,12,a[1]),y=p(y,w,P,l,C,17,a[2]),l=p(l,y,w,P,S,22,a[3]),P=p(P,l,y,w,k,7,a[4]),w=p(w,P,l,y,F,12,a[5]),y=p(y,w,P,l,D,17,a[6]),l=p(l,y,w,P,O,22,a[7]),P=p(P,l,y,w,M,7,a[8]),w=p(w,P,l,y,U,12,a[9]),y=p(y,w,P,l,z,17,a[10]),l=p(l,y,w,P,j,22,a[11]),P=p(P,l,y,w,W,7,a[12]),w=p(w,P,l,y,Q,12,a[13]),y=p(y,w,P,l,Z,17,a[14]),l=p(l,y,w,P,te,22,a[15]),P=x(P,l,y,w,B,5,a[16]),w=x(w,P,l,y,D,9,a[17]),y=x(y,w,P,l,j,14,a[18]),l=x(l,y,w,P,_,20,a[19]),P=x(P,l,y,w,F,5,a[20]),w=x(w,P,l,y,z,9,a[21]),y=x(y,w,P,l,te,14,a[22]),l=x(l,y,w,P,k,20,a[23]),P=x(P,l,y,w,U,5,a[24]),w=x(w,P,l,y,Z,9,a[25]),y=x(y,w,P,l,S,14,a[26]),l=x(l,y,w,P,M,20,a[27]),P=x(P,l,y,w,Q,5,a[28]),w=x(w,P,l,y,C,9,a[29]),y=x(y,w,P,l,O,14,a[30]),l=x(l,y,w,P,W,20,a[31]),P=u(P,l,y,w,F,4,a[32]),w=u(w,P,l,y,M,11,a[33]),y=u(y,w,P,l,j,16,a[34]),l=u(l,y,w,P,Z,23,a[35]),P=u(P,l,y,w,B,4,a[36]),w=u(w,P,l,y,k,11,a[37]),y=u(y,w,P,l,O,16,a[38]),l=u(l,y,w,P,z,23,a[39]),P=u(P,l,y,w,Q,4,a[40]),w=u(w,P,l,y,_,11,a[41]),y=u(y,w,P,l,S,16,a[42]),l=u(l,y,w,P,D,23,a[43]),P=u(P,l,y,w,U,4,a[44]),w=u(w,P,l,y,W,11,a[45]),y=u(y,w,P,l,te,16,a[46]),l=u(l,y,w,P,C,23,a[47]),P=b(P,l,y,w,_,6,a[48]),w=b(w,P,l,y,O,10,a[49]),y=b(y,w,P,l,Z,15,a[50]),l=b(l,y,w,P,F,21,a[51]),P=b(P,l,y,w,W,6,a[52]),w=b(w,P,l,y,S,10,a[53]),y=b(y,w,P,l,z,15,a[54]),l=b(l,y,w,P,B,21,a[55]),P=b(P,l,y,w,M,6,a[56]),w=b(w,P,l,y,te,10,a[57]),y=b(y,w,P,l,D,15,a[58]),l=b(l,y,w,P,Q,21,a[59]),P=b(P,l,y,w,k,6,a[60]),w=b(w,P,l,y,j,10,a[61]),y=b(y,w,P,l,C,15,a[62]),l=b(l,y,w,P,U,21,a[63]),d[0]=d[0]+P|0,d[1]=d[1]+l|0,d[2]=d[2]+y|0,d[3]=d[3]+w|0},_doFinalize:function(){var m=this._data,E=m.words,A=this._nDataBytes*8,g=m.sigBytes*8;E[g>>>5]|=128<<24-g%32;var v=r.floor(A/4294967296),d=A;E[(g+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E[(g+64>>>9<<4)+14]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,m.sigBytes=(E.length+1)*4,this._process();for(var _=this._hash,B=_.words,C=0;C<4;C++){var S=B[C];B[C]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return _},clone:function(){var m=c.clone.call(this);return m._hash=this._hash.clone(),m}});function p(m,E,A,g,v,d,_){var B=m+(E&A|~E&g)+v+_;return(B<<d|B>>>32-d)+E}function x(m,E,A,g,v,d,_){var B=m+(E&g|A&~g)+v+_;return(B<<d|B>>>32-d)+E}function u(m,E,A,g,v,d,_){var B=m+(E^A^g)+v+_;return(B<<d|B>>>32-d)+E}function b(m,E,A,g,v,d,_){var B=m+(A^(E|~g))+v+_;return(B<<d|B>>>32-d)+E}i.MD5=c._createHelper(f),i.HmacMD5=c._createHmacHelper(f)}(Math),e.MD5})}(lr)),lr.exports}var pr={exports:{}},$n;function uo(){return $n||($n=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=i.Hasher,c=r.algo,h=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,p){for(var x=this._hash.words,u=x[0],b=x[1],m=x[2],E=x[3],A=x[4],g=0;g<80;g++){if(g<16)h[g]=f[p+g]|0;else{var v=h[g-3]^h[g-8]^h[g-14]^h[g-16];h[g]=v<<1|v>>>31}var d=(u<<5|u>>>27)+A+h[g];g<20?d+=(b&m|~b&E)+1518500249:g<40?d+=(b^m^E)+1859775393:g<60?d+=(b&m|b&E|m&E)-1894007588:d+=(b^m^E)-899497514,A=E,E=m,m=b<<30|b>>>2,b=u,u=d}x[0]=x[0]+u|0,x[1]=x[1]+b|0,x[2]=x[2]+m|0,x[3]=x[3]+E|0,x[4]=x[4]+A|0},_doFinalize:function(){var f=this._data,p=f.words,x=this._nDataBytes*8,u=f.sigBytes*8;return p[u>>>5]|=128<<24-u%32,p[(u+64>>>9<<4)+14]=Math.floor(x/4294967296),p[(u+64>>>9<<4)+15]=x,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA1=s._createHelper(a),r.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1})}(pr)),pr.exports}var vr={exports:{}},Kn;function ln(){return Kn||(Kn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=[],f=[];(function(){function u(A){for(var g=r.sqrt(A),v=2;v<=g;v++)if(!(A%v))return!1;return!0}function b(A){return(A-(A|0))*4294967296|0}for(var m=2,E=0;E<64;)u(m)&&(E<8&&(a[E]=b(r.pow(m,1/2))),f[E]=b(r.pow(m,1/3)),E++),m++})();var p=[],x=h.SHA256=c.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(u,b){for(var m=this._hash.words,E=m[0],A=m[1],g=m[2],v=m[3],d=m[4],_=m[5],B=m[6],C=m[7],S=0;S<64;S++){if(S<16)p[S]=u[b+S]|0;else{var k=p[S-15],F=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,D=p[S-2],O=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;p[S]=F+p[S-7]+O+p[S-16]}var M=d&_^~d&B,U=E&A^E&g^A&g,z=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),j=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),W=C+j+M+f[S]+p[S],Q=z+U;C=B,B=_,_=d,d=v+W|0,v=g,g=A,A=E,E=W+Q|0}m[0]=m[0]+E|0,m[1]=m[1]+A|0,m[2]=m[2]+g|0,m[3]=m[3]+v|0,m[4]=m[4]+d|0,m[5]=m[5]+_|0,m[6]=m[6]+B|0,m[7]=m[7]+C|0},_doFinalize:function(){var u=this._data,b=u.words,m=this._nDataBytes*8,E=u.sigBytes*8;return b[E>>>5]|=128<<24-E%32,b[(E+64>>>9<<4)+14]=r.floor(m/4294967296),b[(E+64>>>9<<4)+15]=m,u.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var u=c.clone.call(this);return u._hash=this._hash.clone(),u}});i.SHA256=c._createHelper(x),i.HmacSHA256=c._createHmacHelper(x)}(Math),e.SHA256})}(vr)),vr.exports}var br={exports:{}},Vn;function zs(){return Vn||(Vn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),ln())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.algo,c=s.SHA256,h=s.SHA224=c.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=c._doFinalize.call(this);return a.sigBytes-=4,a}});r.SHA224=c._createHelper(h),r.HmacSHA224=c._createHmacHelper(h)}(),e.SHA224})}(br)),br.exports}var yr={exports:{}},Xn;function ho(){return Xn||(Xn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Hasher,s=r.x64,c=s.Word,h=s.WordArray,a=r.algo;function f(){return c.create.apply(c,arguments)}var p=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],x=[];(function(){for(var b=0;b<80;b++)x[b]=f()})();var u=a.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new c.init(1779033703,4089235720),new c.init(3144134277,2227873595),new c.init(1013904242,4271175723),new c.init(2773480762,1595750129),new c.init(1359893119,2917565137),new c.init(2600822924,725511199),new c.init(528734635,4215389547),new c.init(1541459225,327033209)])},_doProcessBlock:function(b,m){for(var E=this._hash.words,A=E[0],g=E[1],v=E[2],d=E[3],_=E[4],B=E[5],C=E[6],S=E[7],k=A.high,F=A.low,D=g.high,O=g.low,M=v.high,U=v.low,z=d.high,j=d.low,W=_.high,Q=_.low,Z=B.high,te=B.low,P=C.high,l=C.low,y=S.high,w=S.low,T=k,N=F,X=D,V=O,Y=M,ie=U,ue=z,Ee=j,we=W,ve=Q,Be=Z,qe=te,Re=P,We=l,J=y,ce=w,le=0;le<80;le++){var me,ge,Ve=x[le];if(le<16)ge=Ve.high=b[m+le*2]|0,me=Ve.low=b[m+le*2+1]|0;else{var Oe=x[le-15],Te=Oe.high,Ae=Oe.low,Ue=(Te>>>1|Ae<<31)^(Te>>>8|Ae<<24)^Te>>>7,Ge=(Ae>>>1|Te<<31)^(Ae>>>8|Te<<24)^(Ae>>>7|Te<<25),$e=x[le-2],ee=$e.high,oe=$e.low,he=(ee>>>19|oe<<13)^(ee<<3|oe>>>29)^ee>>>6,be=(oe>>>19|ee<<13)^(oe<<3|ee>>>29)^(oe>>>6|ee<<26),Ce=x[le-7],He=Ce.high,Ke=Ce.low,Ye=x[le-16],Ze=Ye.high,fe=Ye.low;me=Ge+Ke,ge=Ue+He+(me>>>0<Ge>>>0?1:0),me=me+be,ge=ge+he+(me>>>0<be>>>0?1:0),me=me+fe,ge=ge+Ze+(me>>>0<fe>>>0?1:0),Ve.high=ge,Ve.low=me}var H=we&Be^~we&Re,L=ve&qe^~ve&We,K=T&X^T&Y^X&Y,G=N&V^N&ie^V&ie,se=(T>>>28|N<<4)^(T<<30|N>>>2)^(T<<25|N>>>7),ne=(N>>>28|T<<4)^(N<<30|T>>>2)^(N<<25|T>>>7),pe=(we>>>14|ve<<18)^(we>>>18|ve<<14)^(we<<23|ve>>>9),_e=(ve>>>14|we<<18)^(ve>>>18|we<<14)^(ve<<23|we>>>9),Fe=p[le],Se=Fe.high,Le=Fe.low,Pe=ce+_e,Qe=J+pe+(Pe>>>0<ce>>>0?1:0),Pe=Pe+L,Qe=Qe+H+(Pe>>>0<L>>>0?1:0),Pe=Pe+Le,Qe=Qe+Se+(Pe>>>0<Le>>>0?1:0),Pe=Pe+me,Qe=Qe+ge+(Pe>>>0<me>>>0?1:0),et=ne+G,xt=se+K+(et>>>0<ne>>>0?1:0);J=Re,ce=We,Re=Be,We=qe,Be=we,qe=ve,ve=Ee+Pe|0,we=ue+Qe+(ve>>>0<Ee>>>0?1:0)|0,ue=Y,Ee=ie,Y=X,ie=V,X=T,V=N,N=Pe+et|0,T=Qe+xt+(N>>>0<Pe>>>0?1:0)|0}F=A.low=F+N,A.high=k+T+(F>>>0<N>>>0?1:0),O=g.low=O+V,g.high=D+X+(O>>>0<V>>>0?1:0),U=v.low=U+ie,v.high=M+Y+(U>>>0<ie>>>0?1:0),j=d.low=j+Ee,d.high=z+ue+(j>>>0<Ee>>>0?1:0),Q=_.low=Q+ve,_.high=W+we+(Q>>>0<ve>>>0?1:0),te=B.low=te+qe,B.high=Z+Be+(te>>>0<qe>>>0?1:0),l=C.low=l+We,C.high=P+Re+(l>>>0<We>>>0?1:0),w=S.low=w+ce,S.high=y+J+(w>>>0<ce>>>0?1:0)},_doFinalize:function(){var b=this._data,m=b.words,E=this._nDataBytes*8,A=b.sigBytes*8;m[A>>>5]|=128<<24-A%32,m[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),m[(A+128>>>10<<5)+31]=E,b.sigBytes=m.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var b=o.clone.call(this);return b._hash=this._hash.clone(),b},blockSize:1024/32});r.SHA512=o._createHelper(u),r.HmacSHA512=o._createHmacHelper(u)}(),e.SHA512})}(yr)),yr.exports}var gr={exports:{}},Gn;function js(){return Gn||(Gn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0(),ho())})(ke,function(e){return function(){var r=e,i=r.x64,o=i.Word,s=i.WordArray,c=r.algo,h=c.SHA512,a=c.SHA384=h.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=h._doFinalize.call(this);return f.sigBytes-=16,f}});r.SHA384=h._createHelper(a),r.HmacSHA384=h._createHmacHelper(a)}(),e.SHA384})}(gr)),gr.exports}var mr={exports:{}},Yn;function Ls(){return Yn||(Yn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.x64,a=h.Word,f=i.algo,p=[],x=[],u=[];(function(){for(var E=1,A=0,g=0;g<24;g++){p[E+5*A]=(g+1)*(g+2)/2%64;var v=A%5,d=(2*E+3*A)%5;E=v,A=d}for(var E=0;E<5;E++)for(var A=0;A<5;A++)x[E+5*A]=A+(2*E+3*A)%5*5;for(var _=1,B=0;B<24;B++){for(var C=0,S=0,k=0;k<7;k++){if(_&1){var F=(1<<k)-1;F<32?S^=1<<F:C^=1<<F-32}_&128?_=_<<1^113:_<<=1}u[B]=a.create(C,S)}})();var b=[];(function(){for(var E=0;E<25;E++)b[E]=a.create()})();var m=f.SHA3=c.extend({cfg:c.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var g=this._state,v=this.blockSize/2,d=0;d<v;d++){var _=E[A+2*d],B=E[A+2*d+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360;var C=g[d];C.high^=B,C.low^=_}for(var S=0;S<24;S++){for(var k=0;k<5;k++){for(var F=0,D=0,O=0;O<5;O++){var C=g[k+5*O];F^=C.high,D^=C.low}var M=b[k];M.high=F,M.low=D}for(var k=0;k<5;k++)for(var U=b[(k+4)%5],z=b[(k+1)%5],j=z.high,W=z.low,F=U.high^(j<<1|W>>>31),D=U.low^(W<<1|j>>>31),O=0;O<5;O++){var C=g[k+5*O];C.high^=F,C.low^=D}for(var Q=1;Q<25;Q++){var F,D,C=g[Q],Z=C.high,te=C.low,P=p[Q];P<32?(F=Z<<P|te>>>32-P,D=te<<P|Z>>>32-P):(F=te<<P-32|Z>>>64-P,D=Z<<P-32|te>>>64-P);var l=b[x[Q]];l.high=F,l.low=D}var y=b[0],w=g[0];y.high=w.high,y.low=w.low;for(var k=0;k<5;k++)for(var O=0;O<5;O++){var Q=k+5*O,C=g[Q],T=b[Q],N=b[(k+1)%5+5*O],X=b[(k+2)%5+5*O];C.high=T.high^~N.high&X.high,C.low=T.low^~N.low&X.low}var C=g[0],V=u[S];C.high^=V.high,C.low^=V.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var g=E.sigBytes*8,v=this.blockSize*32;A[g>>>5]|=1<<24-g%32,A[(r.ceil((g+1)/v)*v>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var d=this._state,_=this.cfg.outputLength/8,B=_/8,C=[],S=0;S<B;S++){var k=d[S],F=k.high,D=k.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,C.push(D),C.push(F)}return new s.init(C,_)},clone:function(){for(var E=c.clone.call(this),A=E._state=this._state.slice(0),g=0;g<25;g++)A[g]=A[g].clone();return E}});i.SHA3=c._createHelper(m),i.HmacSHA3=c._createHmacHelper(m)}(Math),e.SHA3})}(mr)),mr.exports}var Er={exports:{}},Zn;function Ws(){return Zn||(Zn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){/** @preserve
|
|
3
3
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
4
4
|
|
|
5
5
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -8,14 +8,20 @@
|
|
|
8
8
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
9
|
|
|
10
10
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11
|
-
*/return function(n){var a=r,i=a.lib,c=i.WordArray,f=i.Hasher,p=a.algo,o=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=c.create([0,1518500249,1859775393,2400959708,2840853838]),v=c.create([1352829926,1548603684,1836072691,2053994217,0]),m=p.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,T){for(var P=0;P<16;P++){var H=T+P,S=D[H];D[H]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var A=this._hash.words,q=d.words,N=v.words,z=o.words,L=x.words,X=h.words,Y=s.words,r0,o0,n0,_,w,I,k,O,W,t0;I=r0=A[0],k=o0=A[1],O=n0=A[2],W=_=A[3],t0=w=A[4];for(var j,P=0;P<80;P+=1)j=r0+D[T+z[P]]|0,P<16?j+=C(o0,n0,_)+q[0]:P<32?j+=E(o0,n0,_)+q[1]:P<48?j+=y(o0,n0,_)+q[2]:P<64?j+=B(o0,n0,_)+q[3]:j+=b(o0,n0,_)+q[4],j=j|0,j=F(j,X[P]),j=j+w|0,r0=w,w=_,_=F(n0,10),n0=o0,o0=j,j=I+D[T+L[P]]|0,P<16?j+=b(k,O,W)+N[0]:P<32?j+=B(k,O,W)+N[1]:P<48?j+=y(k,O,W)+N[2]:P<64?j+=E(k,O,W)+N[3]:j+=C(k,O,W)+N[4],j=j|0,j=F(j,Y[P]),j=j+t0|0,I=t0,t0=W,W=F(O,10),O=k,k=j;j=A[1]+n0+W|0,A[1]=A[2]+_+t0|0,A[2]=A[3]+w+I|0,A[3]=A[4]+r0+k|0,A[4]=A[0]+o0+O|0,A[0]=j},_doFinalize:function(){var D=this._data,T=D.words,P=this._nDataBytes*8,H=D.sigBytes*8;T[H>>>5]|=128<<24-H%32,T[(H+64>>>9<<4)+14]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,D.sigBytes=(T.length+1)*4,this._process();for(var S=this._hash,A=S.words,q=0;q<5;q++){var N=A[q];A[q]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return S},clone:function(){var D=f.clone.call(this);return D._hash=this._hash.clone(),D}});function C(D,T,P){return D^T^P}function E(D,T,P){return D&T|~D&P}function y(D,T,P){return(D|~T)^P}function B(D,T,P){return D&P|T&~P}function b(D,T,P){return D^(T|~P)}function F(D,T){return D<<T|D>>>32-T}a.RIPEMD160=f._createHelper(m),a.HmacRIPEMD160=f._createHmacHelper(m)}(),r.RIPEMD160})}(Br)),Br.exports}var Cr={exports:{}},Zn;function ln(){return Zn||(Zn=1,function(e,t){(function(r,n){e.exports=n(e0())})(G,function(r){(function(){var n=r,a=n.lib,i=a.Base,c=n.enc,f=c.Utf8,p=n.algo;p.HMAC=i.extend({init:function(o,x){o=this._hasher=new o.init,typeof x=="string"&&(x=f.parse(x));var h=o.blockSize,s=h*4;x.sigBytes>s&&(x=o.finalize(x)),x.clamp();for(var d=this._oKey=x.clone(),v=this._iKey=x.clone(),m=d.words,C=v.words,E=0;E<h;E++)m[E]^=1549556828,C[E]^=909522486;d.sigBytes=v.sigBytes=s,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var x=this._hasher,h=x.finalize(o);x.reset();var s=x.finalize(this._oKey.clone().concat(h));return s}})})()})}(Cr)),Cr.exports}var _r={exports:{}},Yn;function Ls(){return Yn||(Yn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),hn(),ln())})(G,function(r){return function(){var n=r,a=n.lib,i=a.Base,c=a.WordArray,f=n.algo,p=f.SHA256,o=f.HMAC,x=f.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:p,iterations:25e4}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,s){for(var d=this.cfg,v=o.create(d.hasher,h),m=c.create(),C=c.create([1]),E=m.words,y=C.words,B=d.keySize,b=d.iterations;E.length<B;){var F=v.update(s).finalize(C);v.reset();for(var D=F.words,T=D.length,P=F,H=1;H<b;H++){P=v.finalize(P),v.reset();for(var S=P.words,A=0;A<T;A++)D[A]^=S[A]}m.concat(F),y[0]++}return m.sigBytes=B*4,m}});n.PBKDF2=function(h,s,d){return x.create(d).compute(h,s)}}(),r.PBKDF2})}(_r)),_r.exports}var Er={exports:{}},Qn;function ie(){return Qn||(Qn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),si(),ln())})(G,function(r){return function(){var n=r,a=n.lib,i=a.Base,c=a.WordArray,f=n.algo,p=f.MD5,o=f.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:p,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var s,d=this.cfg,v=d.hasher.create(),m=c.create(),C=m.words,E=d.keySize,y=d.iterations;C.length<E;){s&&v.update(s),s=v.update(x).finalize(h),v.reset();for(var B=1;B<y;B++)s=v.finalize(s),v.reset();m.concat(s)}return m.sigBytes=E*4,m}});n.EvpKDF=function(x,h,s){return o.create(s).compute(x,h)}}(),r.EvpKDF})}(Er)),Er.exports}var Fr={exports:{}},Jn;function h0(){return Jn||(Jn=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ie())})(G,function(r){r.lib.Cipher||function(n){var a=r,i=a.lib,c=i.Base,f=i.WordArray,p=i.BufferedBlockAlgorithm,o=a.enc;o.Utf8;var x=o.Base64,h=a.algo,s=h.EvpKDF,d=i.Cipher=p.extend({cfg:c.extend(),createEncryptor:function(S,A){return this.create(this._ENC_XFORM_MODE,S,A)},createDecryptor:function(S,A){return this.create(this._DEC_XFORM_MODE,S,A)},init:function(S,A,q){this.cfg=this.cfg.extend(q),this._xformMode=S,this._key=A,this.reset()},reset:function(){p.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function S(A){return typeof A=="string"?H:D}return function(A){return{encrypt:function(q,N,z){return S(N).encrypt(A,q,N,z)},decrypt:function(q,N,z){return S(N).decrypt(A,q,N,z)}}}}()});i.StreamCipher=d.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var v=a.mode={},m=i.BlockCipherMode=c.extend({createEncryptor:function(S,A){return this.Encryptor.create(S,A)},createDecryptor:function(S,A){return this.Decryptor.create(S,A)},init:function(S,A){this._cipher=S,this._iv=A}}),C=v.CBC=function(){var S=m.extend();S.Encryptor=S.extend({processBlock:function(q,N){var z=this._cipher,L=z.blockSize;A.call(this,q,N,L),z.encryptBlock(q,N),this._prevBlock=q.slice(N,N+L)}}),S.Decryptor=S.extend({processBlock:function(q,N){var z=this._cipher,L=z.blockSize,X=q.slice(N,N+L);z.decryptBlock(q,N),A.call(this,q,N,L),this._prevBlock=X}});function A(q,N,z){var L,X=this._iv;X?(L=X,this._iv=n):L=this._prevBlock;for(var Y=0;Y<z;Y++)q[N+Y]^=L[Y]}return S}(),E=a.pad={},y=E.Pkcs7={pad:function(S,A){for(var q=A*4,N=q-S.sigBytes%q,z=N<<24|N<<16|N<<8|N,L=[],X=0;X<N;X+=4)L.push(z);var Y=f.create(L,N);S.concat(Y)},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}};i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:C,padding:y}),reset:function(){var S;d.reset.call(this);var A=this.cfg,q=A.iv,N=A.mode;this._xformMode==this._ENC_XFORM_MODE?S=N.createEncryptor:(S=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,q&&q.words):(this._mode=S.call(N,this,q&&q.words),this._mode.__creator=S)},_doProcessBlock:function(S,A){this._mode.processBlock(S,A)},_doFinalize:function(){var S,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),A.unpad(S)),S},blockSize:128/32});var B=i.CipherParams=c.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),b=a.format={},F=b.OpenSSL={stringify:function(S){var A,q=S.ciphertext,N=S.salt;return N?A=f.create([1398893684,1701076831]).concat(N).concat(q):A=q,A.toString(x)},parse:function(S){var A,q=x.parse(S),N=q.words;return N[0]==1398893684&&N[1]==1701076831&&(A=f.create(N.slice(2,4)),N.splice(0,4),q.sigBytes-=16),B.create({ciphertext:q,salt:A})}},D=i.SerializableCipher=c.extend({cfg:c.extend({format:F}),encrypt:function(S,A,q,N){N=this.cfg.extend(N);var z=S.createEncryptor(q,N),L=z.finalize(A),X=z.cfg;return B.create({ciphertext:L,key:q,iv:X.iv,algorithm:S,mode:X.mode,padding:X.padding,blockSize:S.blockSize,formatter:N.format})},decrypt:function(S,A,q,N){N=this.cfg.extend(N),A=this._parse(A,N.format);var z=S.createDecryptor(q,N).finalize(A.ciphertext);return z},_parse:function(S,A){return typeof S=="string"?A.parse(S,this):S}}),T=a.kdf={},P=T.OpenSSL={execute:function(S,A,q,N,z){if(N||(N=f.random(64/8)),z)var L=s.create({keySize:A+q,hasher:z}).compute(S,N);else var L=s.create({keySize:A+q}).compute(S,N);var X=f.create(L.words.slice(A),q*4);return L.sigBytes=A*4,B.create({key:L,iv:X,salt:N})}},H=i.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:P}),encrypt:function(S,A,q,N){N=this.cfg.extend(N);var z=N.kdf.execute(q,S.keySize,S.ivSize,N.salt,N.hasher);N.iv=z.iv;var L=D.encrypt.call(this,S,A,z.key,N);return L.mixIn(z),L},decrypt:function(S,A,q,N){N=this.cfg.extend(N),A=this._parse(A,N.format);var z=N.kdf.execute(q,S.keySize,S.ivSize,A.salt,N.hasher);N.iv=z.iv;var L=D.decrypt.call(this,S,A,z.key,N);return L}})}()})}(Fr)),Fr.exports}var Ar={exports:{}},ea;function $s(){return ea||(ea=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,c){var f=this._cipher,p=f.blockSize;a.call(this,i,c,p,f),this._prevBlock=i.slice(c,c+p)}}),n.Decryptor=n.extend({processBlock:function(i,c){var f=this._cipher,p=f.blockSize,o=i.slice(c,c+p);a.call(this,i,c,p,f),this._prevBlock=o}});function a(i,c,f,p){var o,x=this._iv;x?(o=x.slice(0),this._iv=void 0):o=this._prevBlock,p.encryptBlock(o,0);for(var h=0;h<f;h++)i[c+h]^=o[h]}return n}(),r.mode.CFB})}(Ar)),Ar.exports}var Dr={exports:{}},ta;function Ks(){return ta||(ta=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,c){var f=this._cipher,p=f.blockSize,o=this._iv,x=this._counter;o&&(x=this._counter=o.slice(0),this._iv=void 0);var h=x.slice(0);f.encryptBlock(h,0),x[p-1]=x[p-1]+1|0;for(var s=0;s<p;s++)i[c+s]^=h[s]}});return n.Decryptor=a,n}(),r.mode.CTR})}(Dr)),Dr.exports}var wr={exports:{}},ra;function Ws(){return ra||(ra=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){/** @preserve
|
|
11
|
+
*/return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),x=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),b=s.create([1352829926,1548603684,1836072691,2053994217,0]),m=h.RIPEMD160=c.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,C){for(var S=0;S<16;S++){var k=C+S,F=B[k];B[k]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}var D=this._hash.words,O=u.words,M=b.words,U=a.words,z=f.words,j=p.words,W=x.words,Q,Z,te,P,l,y,w,T,N,X;y=Q=D[0],w=Z=D[1],T=te=D[2],N=P=D[3],X=l=D[4];for(var V,S=0;S<80;S+=1)V=Q+B[C+U[S]]|0,S<16?V+=E(Z,te,P)+O[0]:S<32?V+=A(Z,te,P)+O[1]:S<48?V+=g(Z,te,P)+O[2]:S<64?V+=v(Z,te,P)+O[3]:V+=d(Z,te,P)+O[4],V=V|0,V=_(V,j[S]),V=V+l|0,Q=l,l=P,P=_(te,10),te=Z,Z=V,V=y+B[C+z[S]]|0,S<16?V+=d(w,T,N)+M[0]:S<32?V+=v(w,T,N)+M[1]:S<48?V+=g(w,T,N)+M[2]:S<64?V+=A(w,T,N)+M[3]:V+=E(w,T,N)+M[4],V=V|0,V=_(V,W[S]),V=V+X|0,y=X,X=N,N=_(T,10),T=w,w=V;V=D[1]+te+N|0,D[1]=D[2]+P+X|0,D[2]=D[3]+l+y|0,D[3]=D[4]+Q+w|0,D[4]=D[0]+Z+T|0,D[0]=V},_doFinalize:function(){var B=this._data,C=B.words,S=this._nDataBytes*8,k=B.sigBytes*8;C[k>>>5]|=128<<24-k%32,C[(k+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,B.sigBytes=(C.length+1)*4,this._process();for(var F=this._hash,D=F.words,O=0;O<5;O++){var M=D[O];D[O]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return F},clone:function(){var B=c.clone.call(this);return B._hash=this._hash.clone(),B}});function E(B,C,S){return B^C^S}function A(B,C,S){return B&C|~B&S}function g(B,C,S){return(B|~C)^S}function v(B,C,S){return B&S|C&~S}function d(B,C,S){return B^(C|~S)}function _(B,C){return B<<C|B>>>32-C}i.RIPEMD160=c._createHelper(m),i.HmacRIPEMD160=c._createHmacHelper(m)}(),e.RIPEMD160})}(Er)),Er.exports}var _r={exports:{}},Qn;function pn(){return Qn||(Qn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){(function(){var r=e,i=r.lib,o=i.Base,s=r.enc,c=s.Utf8,h=r.algo;h.HMAC=o.extend({init:function(a,f){a=this._hasher=new a.init,typeof f=="string"&&(f=c.parse(f));var p=a.blockSize,x=p*4;f.sigBytes>x&&(f=a.finalize(f)),f.clamp();for(var u=this._oKey=f.clone(),b=this._iKey=f.clone(),m=u.words,E=b.words,A=0;A<p;A++)m[A]^=1549556828,E[A]^=909522486;u.sigBytes=b.sigBytes=x,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var f=this._hasher,p=f.finalize(a);f.reset();var x=f.finalize(this._oKey.clone().concat(p));return x}})})()})}(_r)),_r.exports}var wr={exports:{}},Jn;function $s(){return Jn||(Jn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),ln(),pn())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.SHA256,a=c.HMAC,f=c.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,x){for(var u=this.cfg,b=a.create(u.hasher,p),m=s.create(),E=s.create([1]),A=m.words,g=E.words,v=u.keySize,d=u.iterations;A.length<v;){var _=b.update(x).finalize(E);b.reset();for(var B=_.words,C=B.length,S=_,k=1;k<d;k++){S=b.finalize(S),b.reset();for(var F=S.words,D=0;D<C;D++)B[D]^=F[D]}m.concat(_),g[0]++}return m.sigBytes=v*4,m}});r.PBKDF2=function(p,x,u){return f.create(u).compute(p,x)}}(),e.PBKDF2})}(wr)),wr.exports}var Br={exports:{}},ei;function Ut(){return ei||(ei=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),uo(),pn())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,p){for(var x,u=this.cfg,b=u.hasher.create(),m=s.create(),E=m.words,A=u.keySize,g=u.iterations;E.length<A;){x&&b.update(x),x=b.update(f).finalize(p),b.reset();for(var v=1;v<g;v++)x=b.finalize(x),b.reset();m.concat(x)}return m.sigBytes=A*4,m}});r.EvpKDF=function(f,p,x){return a.create(x).compute(f,p)}}(),e.EvpKDF})}(Br)),Br.exports}var Ar={exports:{}},ti;function it(){return ti||(ti=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Ut())})(ke,function(e){e.lib.Cipher||function(r){var i=e,o=i.lib,s=o.Base,c=o.WordArray,h=o.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var f=a.Base64,p=i.algo,x=p.EvpKDF,u=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(F,D){return this.create(this._ENC_XFORM_MODE,F,D)},createDecryptor:function(F,D){return this.create(this._DEC_XFORM_MODE,F,D)},init:function(F,D,O){this.cfg=this.cfg.extend(O),this._xformMode=F,this._key=D,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(F){return this._append(F),this._process()},finalize:function(F){F&&this._append(F);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function F(D){return typeof D=="string"?k:B}return function(D){return{encrypt:function(O,M,U){return F(M).encrypt(D,O,M,U)},decrypt:function(O,M,U){return F(M).decrypt(D,O,M,U)}}}}()});o.StreamCipher=u.extend({_doFinalize:function(){var F=this._process(!0);return F},blockSize:1});var b=i.mode={},m=o.BlockCipherMode=s.extend({createEncryptor:function(F,D){return this.Encryptor.create(F,D)},createDecryptor:function(F,D){return this.Decryptor.create(F,D)},init:function(F,D){this._cipher=F,this._iv=D}}),E=b.CBC=function(){var F=m.extend();F.Encryptor=F.extend({processBlock:function(O,M){var U=this._cipher,z=U.blockSize;D.call(this,O,M,z),U.encryptBlock(O,M),this._prevBlock=O.slice(M,M+z)}}),F.Decryptor=F.extend({processBlock:function(O,M){var U=this._cipher,z=U.blockSize,j=O.slice(M,M+z);U.decryptBlock(O,M),D.call(this,O,M,z),this._prevBlock=j}});function D(O,M,U){var z,j=this._iv;j?(z=j,this._iv=r):z=this._prevBlock;for(var W=0;W<U;W++)O[M+W]^=z[W]}return F}(),A=i.pad={},g=A.Pkcs7={pad:function(F,D){for(var O=D*4,M=O-F.sigBytes%O,U=M<<24|M<<16|M<<8|M,z=[],j=0;j<M;j+=4)z.push(U);var W=c.create(z,M);F.concat(W)},unpad:function(F){var D=F.words[F.sigBytes-1>>>2]&255;F.sigBytes-=D}};o.BlockCipher=u.extend({cfg:u.cfg.extend({mode:E,padding:g}),reset:function(){var F;u.reset.call(this);var D=this.cfg,O=D.iv,M=D.mode;this._xformMode==this._ENC_XFORM_MODE?F=M.createEncryptor:(F=M.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==F?this._mode.init(this,O&&O.words):(this._mode=F.call(M,this,O&&O.words),this._mode.__creator=F)},_doProcessBlock:function(F,D){this._mode.processBlock(F,D)},_doFinalize:function(){var F,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),F=this._process(!0)):(F=this._process(!0),D.unpad(F)),F},blockSize:128/32});var v=o.CipherParams=s.extend({init:function(F){this.mixIn(F)},toString:function(F){return(F||this.formatter).stringify(this)}}),d=i.format={},_=d.OpenSSL={stringify:function(F){var D,O=F.ciphertext,M=F.salt;return M?D=c.create([1398893684,1701076831]).concat(M).concat(O):D=O,D.toString(f)},parse:function(F){var D,O=f.parse(F),M=O.words;return M[0]==1398893684&&M[1]==1701076831&&(D=c.create(M.slice(2,4)),M.splice(0,4),O.sigBytes-=16),v.create({ciphertext:O,salt:D})}},B=o.SerializableCipher=s.extend({cfg:s.extend({format:_}),encrypt:function(F,D,O,M){M=this.cfg.extend(M);var U=F.createEncryptor(O,M),z=U.finalize(D),j=U.cfg;return v.create({ciphertext:z,key:O,iv:j.iv,algorithm:F,mode:j.mode,padding:j.padding,blockSize:F.blockSize,formatter:M.format})},decrypt:function(F,D,O,M){M=this.cfg.extend(M),D=this._parse(D,M.format);var U=F.createDecryptor(O,M).finalize(D.ciphertext);return U},_parse:function(F,D){return typeof F=="string"?D.parse(F,this):F}}),C=i.kdf={},S=C.OpenSSL={execute:function(F,D,O,M,U){if(M||(M=c.random(64/8)),U)var z=x.create({keySize:D+O,hasher:U}).compute(F,M);else var z=x.create({keySize:D+O}).compute(F,M);var j=c.create(z.words.slice(D),O*4);return z.sigBytes=D*4,v.create({key:z,iv:j,salt:M})}},k=o.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:S}),encrypt:function(F,D,O,M){M=this.cfg.extend(M);var U=M.kdf.execute(O,F.keySize,F.ivSize,M.salt,M.hasher);M.iv=U.iv;var z=B.encrypt.call(this,F,D,U.key,M);return z.mixIn(U),z},decrypt:function(F,D,O,M){M=this.cfg.extend(M),D=this._parse(D,M.format);var U=M.kdf.execute(O,F.keySize,F.ivSize,D.salt,M.hasher);M.iv=U.iv;var z=B.decrypt.call(this,F,D,U.key,M);return z}})}()})}(Ar)),Ar.exports}var Cr={exports:{}},ri;function Ks(){return ri||(ri=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.CFB=function(){var r=e.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize;i.call(this,o,s,h,c),this._prevBlock=o.slice(s,s+h)}}),r.Decryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=o.slice(s,s+h);i.call(this,o,s,h,c),this._prevBlock=a}});function i(o,s,c,h){var a,f=this._iv;f?(a=f.slice(0),this._iv=void 0):a=this._prevBlock,h.encryptBlock(a,0);for(var p=0;p<c;p++)o[s+p]^=a[p]}return r}(),e.mode.CFB})}(Cr)),Cr.exports}var Fr={exports:{}},ni;function Vs(){return ni||(ni=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.CTR=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=this._iv,f=this._counter;a&&(f=this._counter=a.slice(0),this._iv=void 0);var p=f.slice(0);c.encryptBlock(p,0),f[h-1]=f[h-1]+1|0;for(var x=0;x<h;x++)o[s+x]^=p[x]}});return r.Decryptor=i,r}(),e.mode.CTR})}(Fr)),Fr.exports}var Sr={exports:{}},ii;function Xs(){return ii||(ii=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){/** @preserve
|
|
12
12
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
13
13
|
* derived from CryptoJS.mode.CTR
|
|
14
14
|
* Jan Hruby jhruby.web@gmail.com
|
|
15
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function a(f){if((f>>24&255)===255){var p=f>>16&255,o=f>>8&255,x=f&255;p===255?(p=0,o===255?(o=0,x===255?x=0:++x):++o):++p,f=0,f+=p<<16,f+=o<<8,f+=x}else f+=1<<24;return f}function i(f){return(f[0]=a(f[0]))===0&&(f[1]=a(f[1])),f}var c=n.Encryptor=n.extend({processBlock:function(f,p){var o=this._cipher,x=o.blockSize,h=this._iv,s=this._counter;h&&(s=this._counter=h.slice(0),this._iv=void 0),i(s);var d=s.slice(0);o.encryptBlock(d,0);for(var v=0;v<x;v++)f[p+v]^=d[v]}});return n.Decryptor=c,n}(),r.mode.CTRGladman})}(wr)),wr.exports}var Sr={exports:{}},na;function js(){return na||(na=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,c){var f=this._cipher,p=f.blockSize,o=this._iv,x=this._keystream;o&&(x=this._keystream=o.slice(0),this._iv=void 0),f.encryptBlock(x,0);for(var h=0;h<p;h++)i[c+h]^=x[h]}});return n.Decryptor=a,n}(),r.mode.OFB})}(Sr)),Sr.exports}var Tr={exports:{}},aa;function Xs(){return aa||(aa=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),n.Decryptor=n.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),n}(),r.mode.ECB})}(Tr)),Tr.exports}var kr={exports:{}},ia;function Vs(){return ia||(ia=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.pad.AnsiX923={pad:function(n,a){var i=n.sigBytes,c=a*4,f=c-i%c,p=i+f-1;n.clamp(),n.words[p>>>2]|=f<<24-p%4*8,n.sigBytes+=f},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Ansix923})}(kr)),kr.exports}var Rr={exports:{}},oa;function Gs(){return oa||(oa=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.pad.Iso10126={pad:function(n,a){var i=a*4,c=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(c-1)).concat(r.lib.WordArray.create([c<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Iso10126})}(Rr)),Rr.exports}var Pr={exports:{}},sa;function Zs(){return sa||(sa=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.pad.Iso97971={pad:function(n,a){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,a)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(Pr)),Pr.exports}var Ir={exports:{}},xa;function Ys(){return xa||(xa=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.pad.ZeroPadding={pad:function(n,a){var i=a*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var a=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(Ir)),Ir.exports}var qr={exports:{}},ca;function Qs(){return ca||(ca=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(qr)),qr.exports}var Or={exports:{}},fa;function Js(){return fa||(fa=1,function(e,t){(function(r,n,a){e.exports=n(e0(),h0())})(G,function(r){return function(n){var a=r,i=a.lib,c=i.CipherParams,f=a.enc,p=f.Hex,o=a.format;o.Hex={stringify:function(x){return x.ciphertext.toString(p)},parse:function(x){var h=p.parse(x);return c.create({ciphertext:h})}}}(),r.format.Hex})}(Or)),Or.exports}var Hr={exports:{}},da;function ex(){return da||(da=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ve(),ye(),ie(),h0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,c=n.algo,f=[],p=[],o=[],x=[],h=[],s=[],d=[],v=[],m=[],C=[];(function(){for(var B=[],b=0;b<256;b++)b<128?B[b]=b<<1:B[b]=b<<1^283;for(var F=0,D=0,b=0;b<256;b++){var T=D^D<<1^D<<2^D<<3^D<<4;T=T>>>8^T&255^99,f[F]=T,p[T]=F;var P=B[F],H=B[P],S=B[H],A=B[T]*257^T*16843008;o[F]=A<<24|A>>>8,x[F]=A<<16|A>>>16,h[F]=A<<8|A>>>24,s[F]=A;var A=S*16843009^H*65537^P*257^F*16843008;d[T]=A<<24|A>>>8,v[T]=A<<16|A>>>16,m[T]=A<<8|A>>>24,C[T]=A,F?(F=P^B[B[B[S^P]]],D^=B[B[D]]):F=D=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],y=c.AES=i.extend({_doReset:function(){var B;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,F=b.words,D=b.sigBytes/4,T=this._nRounds=D+6,P=(T+1)*4,H=this._keySchedule=[],S=0;S<P;S++)S<D?H[S]=F[S]:(B=H[S-1],S%D?D>6&&S%D==4&&(B=f[B>>>24]<<24|f[B>>>16&255]<<16|f[B>>>8&255]<<8|f[B&255]):(B=B<<8|B>>>24,B=f[B>>>24]<<24|f[B>>>16&255]<<16|f[B>>>8&255]<<8|f[B&255],B^=E[S/D|0]<<24),H[S]=H[S-D]^B);for(var A=this._invKeySchedule=[],q=0;q<P;q++){var S=P-q;if(q%4)var B=H[S];else var B=H[S-4];q<4||S<=4?A[q]=B:A[q]=d[f[B>>>24]]^v[f[B>>>16&255]]^m[f[B>>>8&255]]^C[f[B&255]]}}},encryptBlock:function(B,b){this._doCryptBlock(B,b,this._keySchedule,o,x,h,s,f)},decryptBlock:function(B,b){var F=B[b+1];B[b+1]=B[b+3],B[b+3]=F,this._doCryptBlock(B,b,this._invKeySchedule,d,v,m,C,p);var F=B[b+1];B[b+1]=B[b+3],B[b+3]=F},_doCryptBlock:function(B,b,F,D,T,P,H,S){for(var A=this._nRounds,q=B[b]^F[0],N=B[b+1]^F[1],z=B[b+2]^F[2],L=B[b+3]^F[3],X=4,Y=1;Y<A;Y++){var r0=D[q>>>24]^T[N>>>16&255]^P[z>>>8&255]^H[L&255]^F[X++],o0=D[N>>>24]^T[z>>>16&255]^P[L>>>8&255]^H[q&255]^F[X++],n0=D[z>>>24]^T[L>>>16&255]^P[q>>>8&255]^H[N&255]^F[X++],_=D[L>>>24]^T[q>>>16&255]^P[N>>>8&255]^H[z&255]^F[X++];q=r0,N=o0,z=n0,L=_}var r0=(S[q>>>24]<<24|S[N>>>16&255]<<16|S[z>>>8&255]<<8|S[L&255])^F[X++],o0=(S[N>>>24]<<24|S[z>>>16&255]<<16|S[L>>>8&255]<<8|S[q&255])^F[X++],n0=(S[z>>>24]<<24|S[L>>>16&255]<<16|S[q>>>8&255]<<8|S[N&255])^F[X++],_=(S[L>>>24]<<24|S[q>>>16&255]<<16|S[N>>>8&255]<<8|S[z&255])^F[X++];B[b]=r0,B[b+1]=o0,B[b+2]=n0,B[b+3]=_},keySize:256/32});n.AES=i._createHelper(y)}(),r.AES})}(Hr)),Hr.exports}var Nr={exports:{}},ua;function tx(){return ua||(ua=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ve(),ye(),ie(),h0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,c=a.BlockCipher,f=n.algo,p=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],x=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],s=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=f.DES=c.extend({_doReset:function(){for(var E=this._key,y=E.words,B=[],b=0;b<56;b++){var F=p[b]-1;B[b]=y[F>>>5]>>>31-F%32&1}for(var D=this._subKeys=[],T=0;T<16;T++){for(var P=D[T]=[],H=x[T],b=0;b<24;b++)P[b/6|0]|=B[(o[b]-1+H)%28]<<31-b%6,P[4+(b/6|0)]|=B[28+(o[b+24]-1+H)%28]<<31-b%6;P[0]=P[0]<<1|P[0]>>>31;for(var b=1;b<7;b++)P[b]=P[b]>>>(b-1)*4+3;P[7]=P[7]<<5|P[7]>>>27}for(var S=this._invSubKeys=[],b=0;b<16;b++)S[b]=D[15-b]},encryptBlock:function(E,y){this._doCryptBlock(E,y,this._subKeys)},decryptBlock:function(E,y){this._doCryptBlock(E,y,this._invSubKeys)},_doCryptBlock:function(E,y,B){this._lBlock=E[y],this._rBlock=E[y+1],v.call(this,4,252645135),v.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),v.call(this,1,1431655765);for(var b=0;b<16;b++){for(var F=B[b],D=this._lBlock,T=this._rBlock,P=0,H=0;H<8;H++)P|=h[H][((T^F[H])&s[H])>>>0];this._lBlock=T,this._rBlock=D^P}var S=this._lBlock;this._lBlock=this._rBlock,this._rBlock=S,v.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),E[y]=this._lBlock,E[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(E,y){var B=(this._lBlock>>>E^this._rBlock)&y;this._rBlock^=B,this._lBlock^=B<<E}function m(E,y){var B=(this._rBlock>>>E^this._lBlock)&y;this._lBlock^=B,this._rBlock^=B<<E}n.DES=c._createHelper(d);var C=f.TripleDES=c.extend({_doReset:function(){var E=this._key,y=E.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var B=y.slice(0,2),b=y.length<4?y.slice(0,2):y.slice(2,4),F=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=d.createEncryptor(i.create(B)),this._des2=d.createEncryptor(i.create(b)),this._des3=d.createEncryptor(i.create(F))},encryptBlock:function(E,y){this._des1.encryptBlock(E,y),this._des2.decryptBlock(E,y),this._des3.encryptBlock(E,y)},decryptBlock:function(E,y){this._des3.decryptBlock(E,y),this._des2.encryptBlock(E,y),this._des1.decryptBlock(E,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=c._createHelper(C)}(),r.TripleDES})}(Nr)),Nr.exports}var Mr={exports:{}},ha;function rx(){return ha||(ha=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ve(),ye(),ie(),h0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,c=n.algo,f=c.RC4=i.extend({_doReset:function(){for(var x=this._key,h=x.words,s=x.sigBytes,d=this._S=[],v=0;v<256;v++)d[v]=v;for(var v=0,m=0;v<256;v++){var C=v%s,E=h[C>>>2]>>>24-C%4*8&255;m=(m+d[v]+E)%256;var y=d[v];d[v]=d[m],d[m]=y}this._i=this._j=0},_doProcessBlock:function(x,h){x[h]^=p.call(this)},keySize:256/32,ivSize:0});function p(){for(var x=this._S,h=this._i,s=this._j,d=0,v=0;v<4;v++){h=(h+1)%256,s=(s+x[h])%256;var m=x[h];x[h]=x[s],x[s]=m,d|=x[(x[h]+x[s])%256]<<24-v*8}return this._i=h,this._j=s,d}n.RC4=i._createHelper(f);var o=c.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var x=this.cfg.drop;x>0;x--)p.call(this)}});n.RC4Drop=i._createHelper(o)}(),r.RC4})}(Mr)),Mr.exports}var Ur={exports:{}},la;function nx(){return la||(la=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ve(),ye(),ie(),h0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,c=n.algo,f=[],p=[],o=[],x=c.Rabbit=i.extend({_doReset:function(){for(var s=this._key.words,d=this.cfg.iv,v=0;v<4;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360;var m=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],C=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var v=0;v<4;v++)h.call(this);for(var v=0;v<8;v++)C[v]^=m[v+4&7];if(d){var E=d.words,y=E[0],B=E[1],b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,F=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,D=b>>>16|F&4294901760,T=F<<16|b&65535;C[0]^=b,C[1]^=D,C[2]^=F,C[3]^=T,C[4]^=b,C[5]^=D,C[6]^=F,C[7]^=T;for(var v=0;v<4;v++)h.call(this)}},_doProcessBlock:function(s,d){var v=this._X;h.call(this),f[0]=v[0]^v[5]>>>16^v[3]<<16,f[1]=v[2]^v[7]>>>16^v[5]<<16,f[2]=v[4]^v[1]>>>16^v[7]<<16,f[3]=v[6]^v[3]>>>16^v[1]<<16;for(var m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360,s[d+m]^=f[m]},blockSize:128/32,ivSize:64/32});function h(){for(var s=this._X,d=this._C,v=0;v<8;v++)p[v]=d[v];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<p[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<p[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<p[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<p[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<p[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<p[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<p[6]>>>0?1:0)|0,this._b=d[7]>>>0<p[7]>>>0?1:0;for(var v=0;v<8;v++){var m=s[v]+d[v],C=m&65535,E=m>>>16,y=((C*C>>>17)+C*E>>>15)+E*E,B=((m&4294901760)*m|0)+((m&65535)*m|0);o[v]=y^B}s[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,s[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,s[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,s[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,s[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,s[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,s[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,s[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}n.Rabbit=i._createHelper(x)}(),r.Rabbit})}(Ur)),Ur.exports}var zr={exports:{}},pa;function ax(){return pa||(pa=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ve(),ye(),ie(),h0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,c=n.algo,f=[],p=[],o=[],x=c.RabbitLegacy=i.extend({_doReset:function(){var s=this._key.words,d=this.cfg.iv,v=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],m=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var C=0;C<4;C++)h.call(this);for(var C=0;C<8;C++)m[C]^=v[C+4&7];if(d){var E=d.words,y=E[0],B=E[1],b=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,F=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,D=b>>>16|F&4294901760,T=F<<16|b&65535;m[0]^=b,m[1]^=D,m[2]^=F,m[3]^=T,m[4]^=b,m[5]^=D,m[6]^=F,m[7]^=T;for(var C=0;C<4;C++)h.call(this)}},_doProcessBlock:function(s,d){var v=this._X;h.call(this),f[0]=v[0]^v[5]>>>16^v[3]<<16,f[1]=v[2]^v[7]>>>16^v[5]<<16,f[2]=v[4]^v[1]>>>16^v[7]<<16,f[3]=v[6]^v[3]>>>16^v[1]<<16;for(var m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360,s[d+m]^=f[m]},blockSize:128/32,ivSize:64/32});function h(){for(var s=this._X,d=this._C,v=0;v<8;v++)p[v]=d[v];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<p[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<p[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<p[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<p[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<p[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<p[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<p[6]>>>0?1:0)|0,this._b=d[7]>>>0<p[7]>>>0?1:0;for(var v=0;v<8;v++){var m=s[v]+d[v],C=m&65535,E=m>>>16,y=((C*C>>>17)+C*E>>>15)+E*E,B=((m&4294901760)*m|0)+((m&65535)*m|0);o[v]=y^B}s[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,s[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,s[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,s[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,s[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,s[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,s[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,s[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}n.RabbitLegacy=i._createHelper(x)}(),r.RabbitLegacy})}(zr)),zr.exports}var Lr={exports:{}},ba;function ix(){return ba||(ba=1,function(e,t){(function(r,n,a){e.exports=n(e0(),ve(),ye(),ie(),h0())})(G,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,c=n.algo;const f=16,p=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var x={pbox:[],sbox:[]};function h(C,E){let y=E>>24&255,B=E>>16&255,b=E>>8&255,F=E&255,D=C.sbox[0][y]+C.sbox[1][B];return D=D^C.sbox[2][b],D=D+C.sbox[3][F],D}function s(C,E,y){let B=E,b=y,F;for(let D=0;D<f;++D)B=B^C.pbox[D],b=h(C,B)^b,F=B,B=b,b=F;return F=B,B=b,b=F,b=b^C.pbox[f],B=B^C.pbox[f+1],{left:B,right:b}}function d(C,E,y){let B=E,b=y,F;for(let D=f+1;D>1;--D)B=B^C.pbox[D],b=h(C,B)^b,F=B,B=b,b=F;return F=B,B=b,b=F,b=b^C.pbox[1],B=B^C.pbox[0],{left:B,right:b}}function v(C,E,y){for(let T=0;T<4;T++){C.sbox[T]=[];for(let P=0;P<256;P++)C.sbox[T][P]=o[T][P]}let B=0;for(let T=0;T<f+2;T++)C.pbox[T]=p[T]^E[B],B++,B>=y&&(B=0);let b=0,F=0,D=0;for(let T=0;T<f+2;T+=2)D=s(C,b,F),b=D.left,F=D.right,C.pbox[T]=b,C.pbox[T+1]=F;for(let T=0;T<4;T++)for(let P=0;P<256;P+=2)D=s(C,b,F),b=D.left,F=D.right,C.sbox[T][P]=b,C.sbox[T][P+1]=F;return!0}var m=c.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var C=this._keyPriorReset=this._key,E=C.words,y=C.sigBytes/4;v(x,E,y)}},encryptBlock:function(C,E){var y=s(x,C[E],C[E+1]);C[E]=y.left,C[E+1]=y.right},decryptBlock:function(C,E){var y=d(x,C[E],C[E+1]);C[E]=y.left,C[E+1]=y.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=i._createHelper(m)}(),r.Blowfish})}(Lr)),Lr.exports}(function(e,t){(function(r,n,a){e.exports=n(e0(),Mt(),qs(),Os(),ve(),Hs(),ye(),si(),hn(),Ns(),xi(),Ms(),Us(),zs(),ln(),Ls(),ie(),h0(),$s(),Ks(),Ws(),js(),Xs(),Vs(),Gs(),Zs(),Ys(),Qs(),Js(),ex(),tx(),rx(),nx(),ax(),ix())})(G,function(r){return r})})(ii);var ox=ii.exports;const k0=tt(ox),ci="3.7.8",sx=ci,He=typeof Buffer=="function",va=typeof TextDecoder=="function"?new TextDecoder:void 0,ya=typeof TextEncoder=="function"?new TextEncoder:void 0,xx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",je=Array.prototype.slice.call(xx),vt=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(je),cx=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,b0=String.fromCharCode.bind(String),ga=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),fi=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),di=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),ui=e=>{let t,r,n,a,i="";const c=e.length%3;for(let f=0;f<e.length;){if((r=e.charCodeAt(f++))>255||(n=e.charCodeAt(f++))>255||(a=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=je[t>>18&63]+je[t>>12&63]+je[t>>6&63]+je[t&63]}return c?i.slice(0,c-3)+"===".substring(c):i},pn=typeof btoa=="function"?e=>btoa(e):He?e=>Buffer.from(e,"binary").toString("base64"):ui,Jr=He?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push(b0.apply(null,e.subarray(n,n+4096)));return pn(r.join(""))},Dt=(e,t=!1)=>t?fi(Jr(e)):Jr(e),fx=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?b0(192|t>>>6)+b0(128|t&63):b0(224|t>>>12&15)+b0(128|t>>>6&63)+b0(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return b0(240|t>>>18&7)+b0(128|t>>>12&63)+b0(128|t>>>6&63)+b0(128|t&63)}},dx=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,hi=e=>e.replace(dx,fx),ma=He?e=>Buffer.from(e,"utf8").toString("base64"):ya?e=>Jr(ya.encode(e)):e=>pn(hi(e)),Te=(e,t=!1)=>t?fi(ma(e)):ma(e),Ba=e=>Te(e,!0),ux=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,hx=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return b0((r>>>10)+55296)+b0((r&1023)+56320);case 3:return b0((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return b0((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},li=e=>e.replace(ux,hx),pi=e=>{if(e=e.replace(/\s+/g,""),!cx.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r,n,a=[];for(let i=0;i<e.length;)t=vt[e.charAt(i++)]<<18|vt[e.charAt(i++)]<<12|(r=vt[e.charAt(i++)])<<6|(n=vt[e.charAt(i++)]),r===64?a.push(b0(t>>16&255)):n===64?a.push(b0(t>>16&255,t>>8&255)):a.push(b0(t>>16&255,t>>8&255,t&255));return a.join("")},bn=typeof atob=="function"?e=>atob(di(e)):He?e=>Buffer.from(e,"base64").toString("binary"):pi,bi=He?e=>ga(Buffer.from(e,"base64")):e=>ga(bn(e).split("").map(t=>t.charCodeAt(0))),vi=e=>bi(yi(e)),lx=He?e=>Buffer.from(e,"base64").toString("utf8"):va?e=>va.decode(bi(e)):e=>li(bn(e)),yi=e=>di(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),j0=e=>lx(yi(e)),px=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},gi=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),mi=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,gi(r));e("fromBase64",function(){return j0(this)}),e("toBase64",function(t){return Te(this,t)}),e("toBase64URI",function(){return Te(this,!0)}),e("toBase64URL",function(){return Te(this,!0)}),e("toUint8Array",function(){return vi(this)})},Bi=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,gi(r));e("toBase64",function(t){return Dt(this,t)}),e("toBase64URI",function(){return Dt(this,!0)}),e("toBase64URL",function(){return Dt(this,!0)})},bx=()=>{mi(),Bi()},vx={version:ci,VERSION:sx,atob:bn,atobPolyfill:pi,btoa:pn,btoaPolyfill:ui,fromBase64:j0,toBase64:Te,encode:Te,encodeURI:Ba,encodeURL:Ba,utob:hi,btou:li,decode:j0,isValid:px,fromUint8Array:Dt,toUint8Array:vi,extendString:mi,extendUint8Array:Bi,extendBuiltins:bx},Ca=(e,t)=>{const r=At.utils.utf8.toBytes(e),n=r.length;return n>=t?r.slice(0,t):[].concat(...new Array(Math.ceil(t/n)).fill(r)).slice(0,t)};function en(e,t,r){const{sign:n,iv:a}=t;let i="";try{r===Ie.Hex?i=gx(e,n,a):i=yx(e,n,a)}catch(f){console.error("decryptTextAES decrypt error",f,{encryptedText:e,decryptKeys:t,decryptType:r})}let c=i;try{c=JSON.parse(c)}catch(f){}return c}function yx(e,t,r){const n=k0.enc.Utf8.parse(t),a={};return a.iv=k0.enc.Utf8.parse(r),a.mode=k0.mode.CBC,a.pad=k0.pad.Pkcs7,k0.AES.decrypt(e,n,a).toString(k0.enc.Utf8)}function gx(e,t,r){const n=At.utils.hex.toBytes(e),a=Ca(t,16);let i=a;r&&(i=Ca(r,16));const f=new At.ModeOfOperation.cbc(a,i).decrypt(n),p=At.utils.utf8.fromBytes(f);return vx.decode(p)}class Ci{constructor(t={}){V(this,"__config");this.__config=t}usePlugin(t){const{useAESDecrypt:r=!1}=t;return r}interceptDecryptResponse(t,r){return Q(this,null,function*(){const n=yield this.__getDecryptInfo(r);if(!n||!n.decryptKeys)return t;let a=t.data;const i=n.decryptPosition||Se.ResponseData;if(i===Se.WholeResponse&&typeof t.data=="string"&&(a=en(t.data,n.decryptKeys,Ie.Hex)),i===Se.ResponseData&&typeof t.data=="object"&&t.data){const c=t.data;if(typeof c.data=="string"){const f=en(c.data,n.decryptKeys,Ie.Hex);a=W0(a0({},a),{data:f})}}return W0(a0({},t),{data:a})})}__getDecryptInfo(t){return Q(this,null,function*(){let r=a0({},this.__config);if(typeof this.__config.getDecryptInfo=="function"){const n=(yield this.__config.getDecryptInfo(t))||{};r=a0(a0({},r),n)}return t.aesDecryptInfo&&(r=a0(a0({},r),t.aesDecryptInfo)),r})}}function _a(e){return e.indexOf("/live/v4/watch/common")!==-1}function mx(e){return e.indexOf("/live/v4/watch/viewer")!==-1}function Ea(e){return/\/live\/v[34]\/channel/.test(e)}function Bx(e){return e.indexOf("/live/v3")!==-1}class Cx{constructor(t){V(this,"__usePolyvBusiness");V(this,"__config");var r;this.__config=t,this.__usePolyvBusiness=(r=t.usePolyvBusiness)!=null?r:!0}installPlugin(t){const r=new Qr({globalParams:n=>Q(this,null,function*(){const a={};if(!this.usePlugin(n))return a;const i=n.url||"",c=yield this.__getBusinessData(n);return _a(i)&&this.__checkBusiness(c,["sourceType","sourceId"])?(a.sourceType=c.sourceType,a.sourceId=c.sourceId):mx(i)&&this.__checkBusiness(c,["sourceType","sourceId","viewerId","unionId"])?(a.sourceType=c.sourceType,a.sourceId=c.sourceId,a.viewerId=c.viewerId,a.userId=c.unionId):Ea(i)&&this.__checkBusiness(c,["channelId"])?a.channelId=c.channelId:this.__checkBusiness(c,["channelId","viewerId"])&&(a.channelId=c.channelId,a.viewerId=c.viewerId),a})});t.installPlugin(r)}usePlugin(t){const{usePolyvBusiness:r=this.__usePolyvBusiness}=t;return r}interceptIncludeParams(t){const r=t.url||"";if(t=t,_a(r)){t.useToken=!1;return}if(t.tokenInfo||(t.tokenInfo={}),!t.tokenInfo.tokenField){let n="viewerToken";Ea(r)?n="channelToken":Bx(r)&&(n="token"),t.tokenInfo.tokenField=n}}__checkBusiness(t,r){for(let n=0;n<r.length;n++){const a=r[n];if(!t[a])return!1}return!0}__getBusinessData(t){return Q(this,null,function*(){let r={};if(typeof this.__config.getBusinessData=="function"){const n=(yield this.__config.getBusinessData(t))||{};r=a0(a0({},r),n)}return t.businessData&&(r=a0(a0({},r),t.businessData)),r})}}function _x(){return{watchPageDomain:"https://live.polyv.cn",watchApiDomain:"https://live.polyv.cn",backstageApiDomain:"https://live.polyv.net",liveApiDomain:"https://live.polyv.net",polyvApiDomain:"https://api.polyv.net",polyvWatchApiDomain:"https://watch-api.polyv.cn",normalApiDomain:"https://live-normal.polyv.net",rtasDomain:"https://rtas.videocc.net",rtasDomain2:"https://rtas-2.videocc.net",elogDomain:"https://elog.polyv.net",chatWsDomain:"chat.polyv.net",chatApiDomain:"https://apichat.polyv.net",staticDomain:"https://liveimages.videocc.net",resourceDomain:"https://s1.videocc.net",playerBasicDomain:"https://player.polyv.net",liveJsonDomain:"https://livejson.polyv.net",vodImgStatic:"https://img.videocc.net",vodStaticDomain:"https://static.polyv.net",vodAuthDomain:"https://v3.polyv.net",vodEncryptDomain:"https://v.polyv.net",vodBetaDomain:"https://beta.polyv.net",vodHlsDomain:"https://hls.videocc.net",vodRtasDomain:"https://prtas.videocc.net",vodRtasDomain2:"https://prtas-2.videocc.net",vodScriptDomain:" https://script.polyv.net",playerSdkDomain:"https://player.polyv.net",webSdkDomain:"https://websdk.videocc.net",webSdkTestDomain:"https://polyv-frontend-sdk-test-01.oss-cn-shenzhen.aliyuncs.com"}}function vn(e){return a0(a0({},_x()),e||{})}var _i={exports:{}},Ei={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return t.rotl(r,8)&16711935|t.rotl(r,24)&4278255360;for(var n=0;n<r.length;n++)r[n]=t.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],a=0,i=0;a<r.length;a++,i+=8)n[i>>>5]|=r[a]<<24-i%32;return n},wordsToBytes:function(r){for(var n=[],a=0;a<r.length*32;a+=8)n.push(r[a>>>5]>>>24-a%32&255);return n},bytesToHex:function(r){for(var n=[],a=0;a<r.length;a++)n.push((r[a]>>>4).toString(16)),n.push((r[a]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],a=0;a<r.length;a+=2)n.push(parseInt(r.substr(a,2),16));return n},bytesToBase64:function(r){for(var n=[],a=0;a<r.length;a+=3)for(var i=r[a]<<16|r[a+1]<<8|r[a+2],c=0;c<4;c++)a*8+c*6<=r.length*8?n.push(e.charAt(i>>>6*(3-c)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],a=0,i=0;a<r.length;i=++a%4)i!=0&&n.push((e.indexOf(r.charAt(a-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(r.charAt(a))>>>6-i*2);return n}};Ei.exports=t})();var Ex=Ei.exports,tn={utf8:{stringToBytes:function(e){return tn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(tn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r)&255);return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}},Fa=tn;/*!
|
|
15
|
+
*/return e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function i(c){if((c>>24&255)===255){var h=c>>16&255,a=c>>8&255,f=c&255;h===255?(h=0,a===255?(a=0,f===255?f=0:++f):++a):++h,c=0,c+=h<<16,c+=a<<8,c+=f}else c+=1<<24;return c}function o(c){return(c[0]=i(c[0]))===0&&(c[1]=i(c[1])),c}var s=r.Encryptor=r.extend({processBlock:function(c,h){var a=this._cipher,f=a.blockSize,p=this._iv,x=this._counter;p&&(x=this._counter=p.slice(0),this._iv=void 0),o(x);var u=x.slice(0);a.encryptBlock(u,0);for(var b=0;b<f;b++)c[h+b]^=u[b]}});return r.Decryptor=s,r}(),e.mode.CTRGladman})}(Sr)),Sr.exports}var Dr={exports:{}},oi;function Gs(){return oi||(oi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.OFB=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=this._iv,f=this._keystream;a&&(f=this._keystream=a.slice(0),this._iv=void 0),c.encryptBlock(f,0);for(var p=0;p<h;p++)o[s+p]^=f[p]}});return r.Decryptor=i,r}(),e.mode.OFB})}(Dr)),Dr.exports}var Tr={exports:{}},ai;function Ys(){return ai||(ai=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.ECB=function(){var r=e.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),e.mode.ECB})}(Tr)),Tr.exports}var kr={exports:{}},si;function Zs(){return si||(si=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,c=s-o%s,h=o+c-1;r.clamp(),r.words[h>>>2]|=c<<24-h%4*8,r.sigBytes+=c},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Ansix923})}(kr)),kr.exports}var Rr={exports:{}},ci;function Qs(){return ci||(ci=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(e.lib.WordArray.random(s-1)).concat(e.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Iso10126})}(Rr)),Rr.exports}var Ir={exports:{}},fi;function Js(){return fi||(fi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.Iso97971={pad:function(r,i){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,i)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971})}(Ir)),Ir.exports}var Pr={exports:{}},xi;function ec(){return xi||(xi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},e.pad.ZeroPadding})}(Pr)),Pr.exports}var Or={exports:{}},ui;function tc(){return ui||(ui=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(Or)),Or.exports}var qr={exports:{}},di;function rc(){return di||(di=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.CipherParams,c=i.enc,h=c.Hex,a=i.format;a.Hex={stringify:function(f){return f.ciphertext.toString(h)},parse:function(f){var p=h.parse(f);return s.create({ciphertext:p})}}}(),e.format.Hex})}(qr)),qr.exports}var Mr={exports:{}},hi;function nc(){return hi||(hi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.BlockCipher,s=r.algo,c=[],h=[],a=[],f=[],p=[],x=[],u=[],b=[],m=[],E=[];(function(){for(var v=[],d=0;d<256;d++)d<128?v[d]=d<<1:v[d]=d<<1^283;for(var _=0,B=0,d=0;d<256;d++){var C=B^B<<1^B<<2^B<<3^B<<4;C=C>>>8^C&255^99,c[_]=C,h[C]=_;var S=v[_],k=v[S],F=v[k],D=v[C]*257^C*16843008;a[_]=D<<24|D>>>8,f[_]=D<<16|D>>>16,p[_]=D<<8|D>>>24,x[_]=D;var D=F*16843009^k*65537^S*257^_*16843008;u[C]=D<<24|D>>>8,b[C]=D<<16|D>>>16,m[C]=D<<8|D>>>24,E[C]=D,_?(_=S^v[v[v[F^S]]],B^=v[v[B]]):_=B=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],g=s.AES=o.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var d=this._keyPriorReset=this._key,_=d.words,B=d.sigBytes/4,C=this._nRounds=B+6,S=(C+1)*4,k=this._keySchedule=[],F=0;F<S;F++)F<B?k[F]=_[F]:(v=k[F-1],F%B?B>6&&F%B==4&&(v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255]):(v=v<<8|v>>>24,v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255],v^=A[F/B|0]<<24),k[F]=k[F-B]^v);for(var D=this._invKeySchedule=[],O=0;O<S;O++){var F=S-O;if(O%4)var v=k[F];else var v=k[F-4];O<4||F<=4?D[O]=v:D[O]=u[c[v>>>24]]^b[c[v>>>16&255]]^m[c[v>>>8&255]]^E[c[v&255]]}}},encryptBlock:function(v,d){this._doCryptBlock(v,d,this._keySchedule,a,f,p,x,c)},decryptBlock:function(v,d){var _=v[d+1];v[d+1]=v[d+3],v[d+3]=_,this._doCryptBlock(v,d,this._invKeySchedule,u,b,m,E,h);var _=v[d+1];v[d+1]=v[d+3],v[d+3]=_},_doCryptBlock:function(v,d,_,B,C,S,k,F){for(var D=this._nRounds,O=v[d]^_[0],M=v[d+1]^_[1],U=v[d+2]^_[2],z=v[d+3]^_[3],j=4,W=1;W<D;W++){var Q=B[O>>>24]^C[M>>>16&255]^S[U>>>8&255]^k[z&255]^_[j++],Z=B[M>>>24]^C[U>>>16&255]^S[z>>>8&255]^k[O&255]^_[j++],te=B[U>>>24]^C[z>>>16&255]^S[O>>>8&255]^k[M&255]^_[j++],P=B[z>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[U&255]^_[j++];O=Q,M=Z,U=te,z=P}var Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[U>>>8&255]<<8|F[z&255])^_[j++],Z=(F[M>>>24]<<24|F[U>>>16&255]<<16|F[z>>>8&255]<<8|F[O&255])^_[j++],te=(F[U>>>24]<<24|F[z>>>16&255]<<16|F[O>>>8&255]<<8|F[M&255])^_[j++],P=(F[z>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[U&255])^_[j++];v[d]=Q,v[d+1]=Z,v[d+2]=te,v[d+3]=P},keySize:256/32});r.AES=o._createHelper(g)}(),e.AES})}(Mr)),Mr.exports}var Nr={exports:{}},li;function ic(){return li||(li=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=i.BlockCipher,c=r.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=c.DES=s.extend({_doReset:function(){for(var A=this._key,g=A.words,v=[],d=0;d<56;d++){var _=h[d]-1;v[d]=g[_>>>5]>>>31-_%32&1}for(var B=this._subKeys=[],C=0;C<16;C++){for(var S=B[C]=[],k=f[C],d=0;d<24;d++)S[d/6|0]|=v[(a[d]-1+k)%28]<<31-d%6,S[4+(d/6|0)]|=v[28+(a[d+24]-1+k)%28]<<31-d%6;S[0]=S[0]<<1|S[0]>>>31;for(var d=1;d<7;d++)S[d]=S[d]>>>(d-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var F=this._invSubKeys=[],d=0;d<16;d++)F[d]=B[15-d]},encryptBlock:function(A,g){this._doCryptBlock(A,g,this._subKeys)},decryptBlock:function(A,g){this._doCryptBlock(A,g,this._invSubKeys)},_doCryptBlock:function(A,g,v){this._lBlock=A[g],this._rBlock=A[g+1],b.call(this,4,252645135),b.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),b.call(this,1,1431655765);for(var d=0;d<16;d++){for(var _=v[d],B=this._lBlock,C=this._rBlock,S=0,k=0;k<8;k++)S|=p[k][((C^_[k])&x[k])>>>0];this._lBlock=C,this._rBlock=B^S}var F=this._lBlock;this._lBlock=this._rBlock,this._rBlock=F,b.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),A[g]=this._lBlock,A[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function b(A,g){var v=(this._lBlock>>>A^this._rBlock)&g;this._rBlock^=v,this._lBlock^=v<<A}function m(A,g){var v=(this._rBlock>>>A^this._lBlock)&g;this._lBlock^=v,this._rBlock^=v<<A}r.DES=s._createHelper(u);var E=c.TripleDES=s.extend({_doReset:function(){var A=this._key,g=A.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=g.slice(0,2),d=g.length<4?g.slice(0,2):g.slice(2,4),_=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=u.createEncryptor(o.create(v)),this._des2=u.createEncryptor(o.create(d)),this._des3=u.createEncryptor(o.create(_))},encryptBlock:function(A,g){this._des1.encryptBlock(A,g),this._des2.decryptBlock(A,g),this._des3.encryptBlock(A,g)},decryptBlock:function(A,g){this._des3.decryptBlock(A,g),this._des2.encryptBlock(A,g),this._des1.decryptBlock(A,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(E)}(),e.TripleDES})}(Nr)),Nr.exports}var Hr={exports:{}},pi;function oc(){return pi||(pi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=s.RC4=o.extend({_doReset:function(){for(var f=this._key,p=f.words,x=f.sigBytes,u=this._S=[],b=0;b<256;b++)u[b]=b;for(var b=0,m=0;b<256;b++){var E=b%x,A=p[E>>>2]>>>24-E%4*8&255;m=(m+u[b]+A)%256;var g=u[b];u[b]=u[m],u[m]=g}this._i=this._j=0},_doProcessBlock:function(f,p){f[p]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var f=this._S,p=this._i,x=this._j,u=0,b=0;b<4;b++){p=(p+1)%256,x=(x+f[p])%256;var m=f[p];f[p]=f[x],f[x]=m,u|=f[(f[p]+f[x])%256]<<24-b*8}return this._i=p,this._j=x,u}r.RC4=o._createHelper(c);var a=s.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)h.call(this)}});r.RC4Drop=o._createHelper(a)}(),e.RC4})}(Hr)),Hr.exports}var Ur={exports:{}},vi;function ac(){return vi||(vi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=[],h=[],a=[],f=s.Rabbit=o.extend({_doReset:function(){for(var x=this._key.words,u=this.cfg.iv,b=0;b<4;b++)x[b]=(x[b]<<8|x[b]>>>24)&16711935|(x[b]<<24|x[b]>>>8)&4278255360;var m=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],E=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var b=0;b<4;b++)p.call(this);for(var b=0;b<8;b++)E[b]^=m[b+4&7];if(u){var A=u.words,g=A[0],v=A[1],d=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,_=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=d>>>16|_&4294901760,C=_<<16|d&65535;E[0]^=d,E[1]^=B,E[2]^=_,E[3]^=C,E[4]^=d,E[5]^=B,E[6]^=_,E[7]^=C;for(var b=0;b<4;b++)p.call(this)}},_doProcessBlock:function(x,u){var b=this._X;p.call(this),c[0]=b[0]^b[5]>>>16^b[3]<<16,c[1]=b[2]^b[7]>>>16^b[5]<<16,c[2]=b[4]^b[1]>>>16^b[7]<<16,c[3]=b[6]^b[3]>>>16^b[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,x[u+m]^=c[m]},blockSize:128/32,ivSize:64/32});function p(){for(var x=this._X,u=this._C,b=0;b<8;b++)h[b]=u[b];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0;for(var b=0;b<8;b++){var m=x[b]+u[b],E=m&65535,A=m>>>16,g=((E*E>>>17)+E*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);a[b]=g^v}x[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,x[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,x[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,x[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,x[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,x[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,x[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,x[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.Rabbit=o._createHelper(f)}(),e.Rabbit})}(Ur)),Ur.exports}var zr={exports:{}},bi;function sc(){return bi||(bi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=[],h=[],a=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var x=this._key.words,u=this.cfg.iv,b=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],m=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var E=0;E<4;E++)p.call(this);for(var E=0;E<8;E++)m[E]^=b[E+4&7];if(u){var A=u.words,g=A[0],v=A[1],d=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,_=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=d>>>16|_&4294901760,C=_<<16|d&65535;m[0]^=d,m[1]^=B,m[2]^=_,m[3]^=C,m[4]^=d,m[5]^=B,m[6]^=_,m[7]^=C;for(var E=0;E<4;E++)p.call(this)}},_doProcessBlock:function(x,u){var b=this._X;p.call(this),c[0]=b[0]^b[5]>>>16^b[3]<<16,c[1]=b[2]^b[7]>>>16^b[5]<<16,c[2]=b[4]^b[1]>>>16^b[7]<<16,c[3]=b[6]^b[3]>>>16^b[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,x[u+m]^=c[m]},blockSize:128/32,ivSize:64/32});function p(){for(var x=this._X,u=this._C,b=0;b<8;b++)h[b]=u[b];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0;for(var b=0;b<8;b++){var m=x[b]+u[b],E=m&65535,A=m>>>16,g=((E*E>>>17)+E*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);a[b]=g^v}x[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,x[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,x[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,x[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,x[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,x[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,x[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,x[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=o._createHelper(f)}(),e.RabbitLegacy})}(zr)),zr.exports}var jr={exports:{}},yi;function cc(){return yi||(yi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.BlockCipher,s=r.algo;const c=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var f={pbox:[],sbox:[]};function p(E,A){let g=A>>24&255,v=A>>16&255,d=A>>8&255,_=A&255,B=E.sbox[0][g]+E.sbox[1][v];return B=B^E.sbox[2][d],B=B+E.sbox[3][_],B}function x(E,A,g){let v=A,d=g,_;for(let B=0;B<c;++B)v=v^E.pbox[B],d=p(E,v)^d,_=v,v=d,d=_;return _=v,v=d,d=_,d=d^E.pbox[c],v=v^E.pbox[c+1],{left:v,right:d}}function u(E,A,g){let v=A,d=g,_;for(let B=c+1;B>1;--B)v=v^E.pbox[B],d=p(E,v)^d,_=v,v=d,d=_;return _=v,v=d,d=_,d=d^E.pbox[1],v=v^E.pbox[0],{left:v,right:d}}function b(E,A,g){for(let C=0;C<4;C++){E.sbox[C]=[];for(let S=0;S<256;S++)E.sbox[C][S]=a[C][S]}let v=0;for(let C=0;C<c+2;C++)E.pbox[C]=h[C]^A[v],v++,v>=g&&(v=0);let d=0,_=0,B=0;for(let C=0;C<c+2;C+=2)B=x(E,d,_),d=B.left,_=B.right,E.pbox[C]=d,E.pbox[C+1]=_;for(let C=0;C<4;C++)for(let S=0;S<256;S+=2)B=x(E,d,_),d=B.left,_=B.right,E.sbox[C][S]=d,E.sbox[C][S+1]=_;return!0}var m=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,g=E.sigBytes/4;b(f,A,g)}},encryptBlock:function(E,A){var g=x(f,E[A],E[A+1]);E[A]=g.left,E[A+1]=g.right},decryptBlock:function(E,A){var g=u(f,E[A],E[A+1]);E[A]=g.left,E[A+1]=g.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(m)}(),e.Blowfish})}(jr)),jr.exports}(function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0(),Ns(),Hs(),Kt(),Us(),Vt(),uo(),ln(),zs(),ho(),js(),Ls(),Ws(),pn(),$s(),Ut(),it(),Ks(),Vs(),Xs(),Gs(),Ys(),Zs(),Qs(),Js(),ec(),tc(),rc(),nc(),ic(),oc(),ac(),sc(),cc())})(ke,function(e){return e})})(fo);var fc=fo.exports;const bt=A0(fc),lo="3.7.8",xc=lo,f0=typeof Buffer=="function",gi=typeof TextDecoder=="function"?new TextDecoder:void 0,mi=typeof TextEncoder=="function"?new TextEncoder:void 0,uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v0=Array.prototype.slice.call(uc),T0=(t=>{let n={};return t.forEach((e,r)=>n[e]=r),n})(v0),dc=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,at=String.fromCharCode.bind(String),Ei=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),po=t=>t.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),vo=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),bo=t=>{let n,e,r,i,o="";const s=t.length%3;for(let c=0;c<t.length;){if((e=t.charCodeAt(c++))>255||(r=t.charCodeAt(c++))>255||(i=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");n=e<<16|r<<8|i,o+=v0[n>>18&63]+v0[n>>12&63]+v0[n>>6&63]+v0[n&63]}return s?o.slice(0,s-3)+"===".substring(s):o},vn=typeof btoa=="function"?t=>btoa(t):f0?t=>Buffer.from(t,"binary").toString("base64"):bo,en=f0?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,i=t.length;r<i;r+=4096)e.push(at.apply(null,t.subarray(r,r+4096)));return vn(e.join(""))},U0=(t,n=!1)=>n?po(en(t)):en(t),hc=t=>{if(t.length<2){var n=t.charCodeAt(0);return n<128?t:n<2048?at(192|n>>>6)+at(128|n&63):at(224|n>>>12&15)+at(128|n>>>6&63)+at(128|n&63)}else{var n=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return at(240|n>>>18&7)+at(128|n>>>12&63)+at(128|n>>>6&63)+at(128|n&63)}},lc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,yo=t=>t.replace(lc,hc),_i=f0?t=>Buffer.from(t,"utf8").toString("base64"):mi?t=>en(mi.encode(t)):t=>vn(yo(t)),t0=(t,n=!1)=>n?po(_i(t)):_i(t),wi=t=>t0(t,!0),pc=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,vc=t=>{switch(t.length){case 4:var n=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),e=n-65536;return at((e>>>10)+55296)+at((e&1023)+56320);case 3:return at((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return at((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},go=t=>t.replace(pc,vc),mo=t=>{if(t=t.replace(/\s+/g,""),!dc.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let n,e,r,i=[];for(let o=0;o<t.length;)n=T0[t.charAt(o++)]<<18|T0[t.charAt(o++)]<<12|(e=T0[t.charAt(o++)])<<6|(r=T0[t.charAt(o++)]),e===64?i.push(at(n>>16&255)):r===64?i.push(at(n>>16&255,n>>8&255)):i.push(at(n>>16&255,n>>8&255,n&255));return i.join("")},bn=typeof atob=="function"?t=>atob(vo(t)):f0?t=>Buffer.from(t,"base64").toString("binary"):mo,Eo=f0?t=>Ei(Buffer.from(t,"base64")):t=>Ei(bn(t).split("").map(n=>n.charCodeAt(0))),_o=t=>Eo(wo(t)),bc=f0?t=>Buffer.from(t,"base64").toString("utf8"):gi?t=>gi.decode(Eo(t)):t=>go(bn(t)),wo=t=>vo(t.replace(/[-_]/g,n=>n=="-"?"+":"/")),Dt=t=>bc(wo(t)),yc=t=>{if(typeof t!="string")return!1;const n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},Bo=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Ao=function(){const t=(n,e)=>Object.defineProperty(String.prototype,n,Bo(e));t("fromBase64",function(){return Dt(this)}),t("toBase64",function(n){return t0(this,n)}),t("toBase64URI",function(){return t0(this,!0)}),t("toBase64URL",function(){return t0(this,!0)}),t("toUint8Array",function(){return _o(this)})},Co=function(){const t=(n,e)=>Object.defineProperty(Uint8Array.prototype,n,Bo(e));t("toBase64",function(n){return U0(this,n)}),t("toBase64URI",function(){return U0(this,!0)}),t("toBase64URL",function(){return U0(this,!0)})},gc=()=>{Ao(),Co()},mc={version:lo,VERSION:xc,atob:bn,atobPolyfill:mo,btoa:vn,btoaPolyfill:bo,fromBase64:Dt,toBase64:t0,encode:t0,encodeURI:wi,encodeURL:wi,utob:yo,btou:go,decode:Dt,isValid:yc,fromUint8Array:U0,toUint8Array:_o,extendString:Ao,extendUint8Array:Co,extendBuiltins:gc},Bi=(t,n)=>{const e=H0.utils.utf8.toBytes(t),r=e.length;return r>=n?e.slice(0,n):[].concat(...new Array(Math.ceil(n/r)).fill(e)).slice(0,n)};function tn(t,n,e){const{sign:r,iv:i}=n;let o="";try{e===o0.Hex?o=_c(t,r,i):o=Ec(t,r,i)}catch(c){console.error("decryptTextAES decrypt error",c,{encryptedText:t,decryptKeys:n,decryptType:e})}let s=o;try{s=JSON.parse(s)}catch(c){}return s}function Ec(t,n,e){const r=bt.enc.Utf8.parse(n),i={};return i.iv=bt.enc.Utf8.parse(e),i.mode=bt.mode.CBC,i.pad=bt.pad.Pkcs7,bt.AES.decrypt(t,r,i).toString(bt.enc.Utf8)}function _c(t,n,e){const r=H0.utils.hex.toBytes(t),i=Bi(n,16);let o=i;e&&(o=Bi(e,16));const c=new H0.ModeOfOperation.cbc(i,o).decrypt(r),h=H0.utils.utf8.fromBytes(c);return mc.decode(h)}class Fo{constructor(n={}){ye(this,"__config");this.__config=n}usePlugin(n){const{useAESDecrypt:e=!1}=n;return e}interceptDecryptResponse(n,e){return De(this,null,function*(){const r=yield this.__getDecryptInfo(e);if(!r||!r.decryptKeys)return n;let i=n.data;const o=r.decryptPosition||e0.ResponseData;if(o===e0.WholeResponse&&typeof n.data=="string"&&(i=tn(n.data,r.decryptKeys,o0.Hex)),o===e0.ResponseData&&typeof n.data=="object"&&n.data){const s=n.data;if(typeof s.data=="string"){const c=tn(s.data,r.decryptKeys,o0.Hex);i=St(ze({},i),{data:c})}}return St(ze({},n),{data:i})})}__getDecryptInfo(n){return De(this,null,function*(){let e=ze({},this.__config);if(typeof this.__config.getDecryptInfo=="function"){const r=(yield this.__config.getDecryptInfo(n))||{};e=ze(ze({},e),r)}return n.aesDecryptInfo&&(e=ze(ze({},e),n.aesDecryptInfo)),e})}}function Ai(t){return t.indexOf("/live/v4/watch/common")!==-1}function wc(t){return t.indexOf("/live/v4/watch/viewer")!==-1}function Ci(t){return/\/live\/v[34]\/channel/.test(t)}function Bc(t){return t.indexOf("/live/v3")!==-1}class Ac{constructor(n){ye(this,"__usePolyvBusiness");ye(this,"__config");var e;this.__config=n,this.__usePolyvBusiness=(e=n.usePolyvBusiness)!=null?e:!0}installPlugin(n){const e=new Jr({globalParams:r=>De(this,null,function*(){const i={};if(!this.usePlugin(r))return i;const o=r.url||"",s=yield this.__getBusinessData(r);return Ai(o)&&this.__checkBusiness(s,["sourceType","sourceId"])?(i.sourceType=s.sourceType,i.sourceId=s.sourceId):wc(o)&&this.__checkBusiness(s,["sourceType","sourceId","viewerId","unionId"])?(i.sourceType=s.sourceType,i.sourceId=s.sourceId,i.viewerId=s.viewerId,i.userId=s.unionId):Ci(o)&&this.__checkBusiness(s,["channelId"])?i.channelId=s.channelId:this.__checkBusiness(s,["channelId","viewerId"])&&(i.channelId=s.channelId,i.viewerId=s.viewerId),i})});n.installPlugin(e)}usePlugin(n){const{usePolyvBusiness:e=this.__usePolyvBusiness}=n;return e}interceptIncludeParams(n){const e=n.url||"";if(n=n,Ai(e)){n.useToken=!1;return}if(n.tokenInfo||(n.tokenInfo={}),!n.tokenInfo.tokenField){let r="viewerToken";Ci(e)?r="channelToken":Bc(e)&&(r="token"),n.tokenInfo.tokenField=r}}__checkBusiness(n,e){for(let r=0;r<e.length;r++){const i=e[r];if(!n[i])return!1}return!0}__getBusinessData(n){return De(this,null,function*(){let e={};if(typeof this.__config.getBusinessData=="function"){const r=(yield this.__config.getBusinessData(n))||{};e=ze(ze({},e),r)}return n.businessData&&(e=ze(ze({},e),n.businessData)),e})}}function Cc(){return{watchPageDomain:"https://live.polyv.cn",watchApiDomain:"https://live.polyv.cn",backstageApiDomain:"https://live.polyv.net",liveApiDomain:"https://live.polyv.net",polyvApiDomain:"https://api.polyv.net",polyvWatchApiDomain:"https://watch-api.polyv.cn",normalApiDomain:"https://live-normal.polyv.net",rtasDomain:"https://rtas.videocc.net",rtasDomain2:"https://rtas-2.videocc.net",elogDomain:"https://elog.polyv.net",chatWsDomain:"chat.polyv.net",chatApiDomain:"https://apichat.polyv.net",staticDomain:"https://liveimages.videocc.net",resourceDomain:"https://s1.videocc.net",playerBasicDomain:"https://player.polyv.net",liveJsonDomain:"https://livejson.polyv.net",vodImgStatic:"https://img.videocc.net",vodStaticDomain:"https://static.polyv.net",vodAuthDomain:"https://v3.polyv.net",vodEncryptDomain:"https://v.polyv.net",vodBetaDomain:"https://beta.polyv.net",vodHlsDomain:"https://hls.videocc.net",vodRtasDomain:"https://prtas.videocc.net",vodRtasDomain2:"https://prtas-2.videocc.net",vodScriptDomain:" https://script.polyv.net",playerSdkDomain:"https://player.polyv.net",webSdkDomain:"https://websdk.videocc.net",webSdkTestDomain:"https://polyv-frontend-sdk-test-01.oss-cn-shenzhen.aliyuncs.com"}}function yn(t){return ze(ze({},Cc()),t||{})}var So={exports:{}},Do={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,r){return e<<r|e>>>32-r},rotr:function(e,r){return e<<32-r|e>>>r},endian:function(e){if(e.constructor==Number)return n.rotl(e,8)&16711935|n.rotl(e,24)&4278255360;for(var r=0;r<e.length;r++)e[r]=n.endian(e[r]);return e},randomBytes:function(e){for(var r=[];e>0;e--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(e){for(var r=[],i=0,o=0;i<e.length;i++,o+=8)r[o>>>5]|=e[i]<<24-o%32;return r},wordsToBytes:function(e){for(var r=[],i=0;i<e.length*32;i+=8)r.push(e[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(e){for(var r=[],i=0;i<e.length;i++)r.push((e[i]>>>4).toString(16)),r.push((e[i]&15).toString(16));return r.join("")},hexToBytes:function(e){for(var r=[],i=0;i<e.length;i+=2)r.push(parseInt(e.substr(i,2),16));return r},bytesToBase64:function(e){for(var r=[],i=0;i<e.length;i+=3)for(var o=e[i]<<16|e[i+1]<<8|e[i+2],s=0;s<4;s++)i*8+s*6<=e.length*8?r.push(t.charAt(o>>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,o=0;i<e.length;o=++i%4)o!=0&&r.push((t.indexOf(e.charAt(i-1))&Math.pow(2,-2*o+8)-1)<<o*2|t.indexOf(e.charAt(i))>>>6-o*2);return r}};Do.exports=n})();var Fc=Do.exports,rn={utf8:{stringToBytes:function(t){return rn.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(rn.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],e=0;e<t.length;e++)n.push(t.charCodeAt(e)&255);return n},bytesToString:function(t){for(var n=[],e=0;e<t.length;e++)n.push(String.fromCharCode(t[e]));return n.join("")}}},Fi=rn;/*!
|
|
16
16
|
* Determine if an object is a Buffer
|
|
17
17
|
*
|
|
18
18
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
19
19
|
* @license MIT
|
|
20
|
-
*/var Fx=function(e){return e!=null&&(Fi(e)||Ax(e)||!!e._isBuffer)};function Fi(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ax(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Fi(e.slice(0,0))}(function(){var e=Ex,t=Fa.utf8,r=Fx,n=Fa.bin,a=function(i,c){i.constructor==String?c&&c.encoding==="binary"?i=n.stringToBytes(i):i=t.stringToBytes(i):r(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var f=e.bytesToWords(i),p=i.length*8,o=1732584193,x=-271733879,h=-1732584194,s=271733878,d=0;d<f.length;d++)f[d]=(f[d]<<8|f[d]>>>24)&16711935|(f[d]<<24|f[d]>>>8)&4278255360;f[p>>>5]|=128<<p%32,f[(p+64>>>9<<4)+14]=p;for(var v=a._ff,m=a._gg,C=a._hh,E=a._ii,d=0;d<f.length;d+=16){var y=o,B=x,b=h,F=s;o=v(o,x,h,s,f[d+0],7,-680876936),s=v(s,o,x,h,f[d+1],12,-389564586),h=v(h,s,o,x,f[d+2],17,606105819),x=v(x,h,s,o,f[d+3],22,-1044525330),o=v(o,x,h,s,f[d+4],7,-176418897),s=v(s,o,x,h,f[d+5],12,1200080426),h=v(h,s,o,x,f[d+6],17,-1473231341),x=v(x,h,s,o,f[d+7],22,-45705983),o=v(o,x,h,s,f[d+8],7,1770035416),s=v(s,o,x,h,f[d+9],12,-1958414417),h=v(h,s,o,x,f[d+10],17,-42063),x=v(x,h,s,o,f[d+11],22,-1990404162),o=v(o,x,h,s,f[d+12],7,1804603682),s=v(s,o,x,h,f[d+13],12,-40341101),h=v(h,s,o,x,f[d+14],17,-1502002290),x=v(x,h,s,o,f[d+15],22,1236535329),o=m(o,x,h,s,f[d+1],5,-165796510),s=m(s,o,x,h,f[d+6],9,-1069501632),h=m(h,s,o,x,f[d+11],14,643717713),x=m(x,h,s,o,f[d+0],20,-373897302),o=m(o,x,h,s,f[d+5],5,-701558691),s=m(s,o,x,h,f[d+10],9,38016083),h=m(h,s,o,x,f[d+15],14,-660478335),x=m(x,h,s,o,f[d+4],20,-405537848),o=m(o,x,h,s,f[d+9],5,568446438),s=m(s,o,x,h,f[d+14],9,-1019803690),h=m(h,s,o,x,f[d+3],14,-187363961),x=m(x,h,s,o,f[d+8],20,1163531501),o=m(o,x,h,s,f[d+13],5,-1444681467),s=m(s,o,x,h,f[d+2],9,-51403784),h=m(h,s,o,x,f[d+7],14,1735328473),x=m(x,h,s,o,f[d+12],20,-1926607734),o=C(o,x,h,s,f[d+5],4,-378558),s=C(s,o,x,h,f[d+8],11,-2022574463),h=C(h,s,o,x,f[d+11],16,1839030562),x=C(x,h,s,o,f[d+14],23,-35309556),o=C(o,x,h,s,f[d+1],4,-1530992060),s=C(s,o,x,h,f[d+4],11,1272893353),h=C(h,s,o,x,f[d+7],16,-155497632),x=C(x,h,s,o,f[d+10],23,-1094730640),o=C(o,x,h,s,f[d+13],4,681279174),s=C(s,o,x,h,f[d+0],11,-358537222),h=C(h,s,o,x,f[d+3],16,-722521979),x=C(x,h,s,o,f[d+6],23,76029189),o=C(o,x,h,s,f[d+9],4,-640364487),s=C(s,o,x,h,f[d+12],11,-421815835),h=C(h,s,o,x,f[d+15],16,530742520),x=C(x,h,s,o,f[d+2],23,-995338651),o=E(o,x,h,s,f[d+0],6,-198630844),s=E(s,o,x,h,f[d+7],10,1126891415),h=E(h,s,o,x,f[d+14],15,-1416354905),x=E(x,h,s,o,f[d+5],21,-57434055),o=E(o,x,h,s,f[d+12],6,1700485571),s=E(s,o,x,h,f[d+3],10,-1894986606),h=E(h,s,o,x,f[d+10],15,-1051523),x=E(x,h,s,o,f[d+1],21,-2054922799),o=E(o,x,h,s,f[d+8],6,1873313359),s=E(s,o,x,h,f[d+15],10,-30611744),h=E(h,s,o,x,f[d+6],15,-1560198380),x=E(x,h,s,o,f[d+13],21,1309151649),o=E(o,x,h,s,f[d+4],6,-145523070),s=E(s,o,x,h,f[d+11],10,-1120210379),h=E(h,s,o,x,f[d+2],15,718787259),x=E(x,h,s,o,f[d+9],21,-343485551),o=o+y>>>0,x=x+B>>>0,h=h+b>>>0,s=s+F>>>0}return e.endian([o,x,h,s])};a._ff=function(i,c,f,p,o,x,h){var s=i+(c&f|~c&p)+(o>>>0)+h;return(s<<x|s>>>32-x)+c},a._gg=function(i,c,f,p,o,x,h){var s=i+(c&p|f&~p)+(o>>>0)+h;return(s<<x|s>>>32-x)+c},a._hh=function(i,c,f,p,o,x,h){var s=i+(c^f^p)+(o>>>0)+h;return(s<<x|s>>>32-x)+c},a._ii=function(i,c,f,p,o,x,h){var s=i+(f^(c|~p))+(o>>>0)+h;return(s<<x|s>>>32-x)+c},a._blocksize=16,a._digestsize=16,_i.exports=function(i,c){if(i==null)throw new Error("Illegal argument "+i);var f=e.wordsToBytes(a(i,c));return c&&c.asBytes?f:c&&c.asString?n.bytesToString(f):e.bytesToHex(f)}})();var Dx=_i.exports;const kt=tt(Dx),Rt=/^(?:([a-z]+):)?\/{2,3}/i;function wx(e,t){return Rt.test(e)}function Ai(e,t){return Rt.test(t)||(t+="://"),wx(e)?e.replace(Rt,t):t+e}function Sx(e){return e.replace(Rt,"")}var Di={exports:{}},$r={exports:{}},Aa;function Tx(){return Aa||(Aa=1,function(e){(function(t){var r={bytesToHex:function(i){return n(i)},hexToBytes:function(i){if(i.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return i.indexOf("0x")===0&&(i=i.slice(2)),i.match(/../g).map(function(c){return parseInt(c,16)})}};function n(i){return i.map(function(c){return a(c.toString(16),2)}).join("")}function a(i,c){return i.length>c?i:Array(c-i.length+1).join("0")+i}e.exports?e.exports=r:t.convertHex=r})(G)}($r)),$r.exports}var Kr={exports:{}},Da;function kx(){return Da||(Da=1,function(e){(function(t){var r={bytesToString:function(n){return n.map(function(a){return String.fromCharCode(a)}).join("")},stringToBytes:function(n){return n.split("").map(function(a){return a.charCodeAt(0)})}};r.UTF8={bytesToString:function(n){return decodeURIComponent(escape(r.bytesToString(n)))},stringToBytes:function(n){return r.stringToBytes(unescape(encodeURIComponent(n)))}},e.exports?e.exports=r:t.convertString=r})(G)}(Kr)),Kr.exports}(function(e){(function(t){var r={};e.exports?(r.bytesToHex=Tx().bytesToHex,r.convertString=kx(),e.exports=p):(r.bytesToHex=t.convertHex.bytesToHex,r.convertString=t.convertString,t.sha256=p);var n=[];(function(){function o(d){for(var v=Math.sqrt(d),m=2;m<=v;m++)if(!(d%m))return!1;return!0}function x(d){return(d-(d|0))*4294967296|0}for(var h=2,s=0;s<64;)o(h)&&(n[s]=x(Math.pow(h,1/3)),s++),h++})();var a=function(o){for(var x=[],h=0,s=0;h<o.length;h++,s+=8)x[s>>>5]|=o[h]<<24-s%32;return x},i=function(o){for(var x=[],h=0;h<o.length*32;h+=8)x.push(o[h>>>5]>>>24-h%32&255);return x},c=[],f=function(o,x,h){for(var s=o[0],d=o[1],v=o[2],m=o[3],C=o[4],E=o[5],y=o[6],B=o[7],b=0;b<64;b++){if(b<16)c[b]=x[h+b]|0;else{var F=c[b-15],D=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,T=c[b-2],P=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;c[b]=D+c[b-7]+P+c[b-16]}var H=C&E^~C&y,S=s&d^s&v^d&v,A=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),q=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),N=B+q+H+n[b]+c[b],z=A+S;B=y,y=E,E=C,C=m+N|0,m=v,v=d,d=s,s=N+z|0}o[0]=o[0]+s|0,o[1]=o[1]+d|0,o[2]=o[2]+v|0,o[3]=o[3]+m|0,o[4]=o[4]+C|0,o[5]=o[5]+E|0,o[6]=o[6]+y|0,o[7]=o[7]+B|0};function p(o,x){o.constructor===String&&(o=r.convertString.UTF8.stringToBytes(o));var h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=a(o),d=o.length*8;s[d>>5]|=128<<24-d%32,s[(d+64>>9<<4)+15]=d;for(var v=0;v<s.length;v+=16)f(h,s,v);var m=i(h);return x&&x.asBytes?m:x&&x.asString?r.convertString.bytesToString(m):r.bytesToHex(m)}p.x2=function(o,x){return p(p(o,{asBytes:!0}),x)}})(G)})(Di);var Rx=Di.exports;const wi=tt(Rx);function Px(e,t,r){const n=Object.keys(e).filter(i=>i!=="sign").sort();let a="";return n.forEach(i=>{let c=e[i];typeof c=="object"&&(c=JSON.stringify(c)),a+=i+c}),r||(r=String(e.signatureMethod).toLowerCase()==="sha256"?"sha256":"md5"),(r==="sha256"?wi:kt)(t+a+t).toString().toUpperCase()}class Ix extends ti{constructor(t){super({baseUrl:Ai(vn(t.config.domainInfo).chatApiDomain,"https"),requestPlugins:[new ri({getTokenInfo:()=>Q(this,null,function*(){const r=yield t.getToken();if(!r)return;let n=be.Params,a="token";const i=t.getUserInfo();return t.isSpecialUserType(i.userType)&&(n=be.Header,a="authorization"),{token:r,tokenField:a,tokenMode:n}})}),new Qr({globalParams:r=>Q(this,null,function*(){const{appendChannelId:n=!0,appendAccountId:a=!1,appendUserId:i=!0}=r,c={};if(n||a){const f=yield t.getChannelInfo();n&&(c.channelId=f.channelId),a&&(c.accountId=f.accountId)}if(i){const f=t.getUserInfo();c.userId=f.userId}return c})}),new ni({successCode:200}),new Qr({globalParams:r=>Q(this,null,function*(){const{appendSign:n=!1}=r;if(n)return{sign:yield this.getRoomSign()};const{appendChatSign:a=!1}=r;if(a){const i=r.params||{};return{sign:yield this.getChatSign(i)}}return{}})}),new Ci({getDecryptInfo:r=>{const n=r.params||{};return{decryptKeys:{sign:Px(n,"polyvChatClient"),iv:""},decryptPosition:Se.WholeResponse}}})]}),this._plvSocket=t}getRoomSign(){return Q(this,null,function*(){const t=yield this._plvSocket.getChannelInfo();return kt(`polyv_room_sign${t.channelId}`)})}getChatSign(t){return Q(this,null,function*(){let r=Object.keys(t).sort((a,i)=>{a=a.toLocaleLowerCase(),i=i.toLocaleLowerCase();for(let c=0;c<a.length&&c<i.length;c++){const f=a.charCodeAt(c)-i.charCodeAt(c);if(f!==0)return f}return a.length>i.length?1:-1}).reduce((a,i)=>{let c=t[i];return!c&&c!==0?a:(typeof c=="object"&&(c=JSON.stringify(c)),`${a}${i}${c}`)},"");return kt("polyvChatSign"+r+"polyvChatSign").toLocaleUpperCase()})}}var Xe=(e=>(e.Token="token",e.Sign="sign",e))(Xe||{}),Pt=(e=>(e.None="none",e.AES="aes",e.SM2="sm2",e))(Pt||{});let yt;const qx=new Uint8Array(16);function Ox(){if(!yt&&(yt=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yt(qx)}const p0=[];for(let e=0;e<256;++e)p0.push((e+256).toString(16).slice(1));function Hx(e,t=0){return p0[e[t+0]]+p0[e[t+1]]+p0[e[t+2]]+p0[e[t+3]]+"-"+p0[e[t+4]]+p0[e[t+5]]+"-"+p0[e[t+6]]+p0[e[t+7]]+"-"+p0[e[t+8]]+p0[e[t+9]]+"-"+p0[e[t+10]]+p0[e[t+11]]+p0[e[t+12]]+p0[e[t+13]]+p0[e[t+14]]+p0[e[t+15]]}const Nx=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wa={randomUUID:Nx};function Mx(e,t,r){if(wa.randomUUID&&!e)return wa.randomUUID();e=e||{};const n=e.random||(e.rng||Ox)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Hx(n)}exports.SignatureMethod=void 0;(function(e){e.MD5="MD5",e.SHA256="SHA256"})(exports.SignatureMethod||(exports.SignatureMethod={}));function Ux(e){let t="";const r=Object.keys(e).sort();for(const n of r)e[n]&&(t+=`${n}${e[n]}`);return t}function zx(e,t,r=exports.SignatureMethod.MD5){const n=Ux(e),a=t+n+t;return(r===exports.SignatureMethod.MD5?kt(a):wi(a)).toUpperCase()}class Lx{constructor(t){V(this,"__config");V(this,"__appId");V(this,"__appSecret");V(this,"__signatureNonce");V(this,"__signatureMethod");V(this,"__getAppSign");var r,n;this.__config=t,this.__appId=t.appId||"",this.__appSecret=t.appSecret||"",this.__signatureNonce=(r=t.signatureNonce)!=null?r:!1,this.__signatureMethod=(n=t.signatureMethod)!=null?n:exports.SignatureMethod.MD5,this.__getAppSign=t.getAppSign}usePlugin(t){const{useAppSign:r=!0}=t;return r}interceptIncludeParams(t){const{signatureNonce:r=this.__signatureNonce,signatureMethod:n=this.__signatureMethod}=t,a={};return r&&(a.signatureNonce=Mx()),n&&(a.signatureMethod=n),a}interceptAuthorizeRequest(t){return Q(this,null,function*(){const r=a0({},t.params||{}),n=yield this.__getAppSignData(r,t);return n?(r.appId=n.appId,r.timestamp=n.timestamp,r.sign=n.sign,n.signatureMethod&&(r.signatureMethod=n.signatureMethod)):console.error("AuthorizeAppSignRequestPlugin error, signData is undefined"),W0(a0({},t),{params:r})})}__getAppSignData(t,r){return Q(this,null,function*(){const{signatureMethod:n=this.__signatureMethod}=r;if(this.__getAppSign)return yield this.__getAppSign({params:t,signatureMethod:n});if(this.__appId&&this.__appSecret){const a=Date.now(),i=W0(a0({},t),{appId:this.__appId,timestamp:a}),c=zx(i,this.__appSecret,n);return{appId:this.__appId,timestamp:a,sign:c,signatureMethod:n}}})}}const $x=j0("S0xmTzdabmZRQzhqSXZFWA=="),Kx=j0("VlRSZTdTbWRsbFJzSjdDYg=="),Wx=j0("UG9seXZBcGlSZXNwb25zZQ=="),jx=j0("UG9seXZMaXZlRW5jcnlwdA==");function Xx(e,t){const{sign:r,iv:n}=t,a=k0.enc.Utf8.parse(r),i=k0.enc.Utf8.parse(e);return k0.AES.encrypt(i,a,{iv:k0.enc.Utf8.parse(n),mode:k0.mode.CBC,padding:k0.pad.Pkcs7}).toString()}class Vx{constructor(t={}){V(this,"__config");V(this,"__encryptPostAES");var r;this.__config=t,this.__encryptPostAES=(r=t.encryptPostAES)!=null?r:!0}usePlugin(t){const{useAES:r=!0}=t;return r}interceptIncludeParams(){return{encryptResponseType:1}}interceptEncryptRequest(t){const r=this.__handleData(t),n=this.__handleHeaders(t);return W0(a0({},t),{data:r,headers:n})}interceptDecryptResponse(t){const r=t.data;if(!r.encryption||typeof r.data!="string")return t;const n=r.data,a=this.__getDecryptKeyInfo();return r.data=en(n,a,Ie.Base64),t}__handleHeaders(t){var a;const r=t.headers||{},{encryptPostAES:n=this.__encryptPostAES}=t;return((a=t.method)==null?void 0:a.toLocaleUpperCase())==="POST"&&n&&(r["x-e-type"]=1),r}__handleData(t){var i;const r=t.data||{};if(((i=t.method)==null?void 0:i.toLocaleUpperCase())!=="POST")return r;let n=r;const{encryptPostAES:a=this.__encryptPostAES}=t;if(a){t.requestType="json";let c="";typeof r=="string"?c=r:typeof r=="object"&&(c=JSON.stringify(r));const f=this.__getEncryptKeyInfo(t);n=Xx(c,f)}return n}__getDecryptKeyInfo(){return{sign:Wx,iv:jx}}__getEncryptKeyInfo(t){const r=t.params||{};let n=$x;return"appId"in r&&r.appId===this.__config.appId&&this.__config.appSecret&&(n=this.__config.appSecret),{sign:n,iv:Kx}}}var Si={exports:{}};(function(e,t){(function(){var r,n=0xdeadbeefcafe,a=(n&16777215)==15715070;function i(u,l,g){u!=null&&(typeof u=="number"?this.fromNumber(u,l,g):l==null&&typeof u!="string"?this.fromString(u,256):this.fromString(u,l))}function c(){return new i(null)}function f(u,l,g,R,M,U){for(;--U>=0;){var $=l*this[u++]+g[R]+M;M=Math.floor($/67108864),g[R++]=$&67108863}return M}function p(u,l,g,R,M,U){for(var $=l&32767,K=l>>15;--U>=0;){var x0=this[u]&32767,u0=this[u++]>>15,S0=K*x0+u0*$;x0=$*x0+((S0&32767)<<15)+g[R]+(M&1073741823),M=(x0>>>30)+(S0>>>15)+K*u0+(M>>>30),g[R++]=x0&1073741823}return M}function o(u,l,g,R,M,U){for(var $=l&16383,K=l>>14;--U>=0;){var x0=this[u]&16383,u0=this[u++]>>14,S0=K*x0+u0*$;x0=$*x0+((S0&16383)<<14)+g[R]+M,M=(x0>>28)+(S0>>14)+K*u0,g[R++]=x0&268435455}return M}var x=typeof navigator!="undefined";x&&a&&navigator.appName=="Microsoft Internet Explorer"?(i.prototype.am=p,r=30):x&&a&&navigator.appName!="Netscape"?(i.prototype.am=f,r=26):(i.prototype.am=o,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r;var h=52;i.prototype.FV=Math.pow(2,h),i.prototype.F1=h-r,i.prototype.F2=2*r-h;var s="0123456789abcdefghijklmnopqrstuvwxyz",d=new Array,v,m;for(v=48,m=0;m<=9;++m)d[v++]=m;for(v=97,m=10;m<36;++m)d[v++]=m;for(v=65,m=10;m<36;++m)d[v++]=m;function C(u){return s.charAt(u)}function E(u,l){var g=d[u.charCodeAt(l)];return g==null?-1:g}function y(u){for(var l=this.t-1;l>=0;--l)u[l]=this[l];u.t=this.t,u.s=this.s}function B(u){this.t=1,this.s=u<0?-1:0,u>0?this[0]=u:u<-1?this[0]=u+this.DV:this.t=0}function b(u){var l=c();return l.fromInt(u),l}function F(u,l){var g;if(l==16)g=4;else if(l==8)g=3;else if(l==256)g=8;else if(l==2)g=1;else if(l==32)g=5;else if(l==4)g=2;else{this.fromRadix(u,l);return}this.t=0,this.s=0;for(var R=u.length,M=!1,U=0;--R>=0;){var $=g==8?u[R]&255:E(u,R);if($<0){u.charAt(R)=="-"&&(M=!0);continue}M=!1,U==0?this[this.t++]=$:U+g>this.DB?(this[this.t-1]|=($&(1<<this.DB-U)-1)<<U,this[this.t++]=$>>this.DB-U):this[this.t-1]|=$<<U,U+=g,U>=this.DB&&(U-=this.DB)}g==8&&u[0]&128&&(this.s=-1,U>0&&(this[this.t-1]|=(1<<this.DB-U)-1<<U)),this.clamp(),M&&i.ZERO.subTo(this,this)}function D(){for(var u=this.s&this.DM;this.t>0&&this[this.t-1]==u;)--this.t}function T(u){if(this.s<0)return"-"+this.negate().toString(u);var l;if(u==16)l=4;else if(u==8)l=3;else if(u==2)l=1;else if(u==32)l=5;else if(u==4)l=2;else return this.toRadix(u);var g=(1<<l)-1,R,M=!1,U="",$=this.t,K=this.DB-$*this.DB%l;if($-- >0)for(K<this.DB&&(R=this[$]>>K)>0&&(M=!0,U=C(R));$>=0;)K<l?(R=(this[$]&(1<<K)-1)<<l-K,R|=this[--$]>>(K+=this.DB-l)):(R=this[$]>>(K-=l)&g,K<=0&&(K+=this.DB,--$)),R>0&&(M=!0),M&&(U+=C(R));return M?U:"0"}function P(){var u=c();return i.ZERO.subTo(this,u),u}function H(){return this.s<0?this.negate():this}function S(u){var l=this.s-u.s;if(l!=0)return l;var g=this.t;if(l=g-u.t,l!=0)return this.s<0?-l:l;for(;--g>=0;)if((l=this[g]-u[g])!=0)return l;return 0}function A(u){var l=1,g;return(g=u>>>16)!=0&&(u=g,l+=16),(g=u>>8)!=0&&(u=g,l+=8),(g=u>>4)!=0&&(u=g,l+=4),(g=u>>2)!=0&&(u=g,l+=2),(g=u>>1)!=0&&(u=g,l+=1),l}function q(){return this.t<=0?0:this.DB*(this.t-1)+A(this[this.t-1]^this.s&this.DM)}function N(u,l){var g;for(g=this.t-1;g>=0;--g)l[g+u]=this[g];for(g=u-1;g>=0;--g)l[g]=0;l.t=this.t+u,l.s=this.s}function z(u,l){for(var g=u;g<this.t;++g)l[g-u]=this[g];l.t=Math.max(this.t-u,0),l.s=this.s}function L(u,l){var g=u%this.DB,R=this.DB-g,M=(1<<R)-1,U=Math.floor(u/this.DB),$=this.s<<g&this.DM,K;for(K=this.t-1;K>=0;--K)l[K+U+1]=this[K]>>R|$,$=(this[K]&M)<<g;for(K=U-1;K>=0;--K)l[K]=0;l[U]=$,l.t=this.t+U+1,l.s=this.s,l.clamp()}function X(u,l){l.s=this.s;var g=Math.floor(u/this.DB);if(g>=this.t){l.t=0;return}var R=u%this.DB,M=this.DB-R,U=(1<<R)-1;l[0]=this[g]>>R;for(var $=g+1;$<this.t;++$)l[$-g-1]|=(this[$]&U)<<M,l[$-g]=this[$]>>R;R>0&&(l[this.t-g-1]|=(this.s&U)<<M),l.t=this.t-g,l.clamp()}function Y(u,l){for(var g=0,R=0,M=Math.min(u.t,this.t);g<M;)R+=this[g]-u[g],l[g++]=R&this.DM,R>>=this.DB;if(u.t<this.t){for(R-=u.s;g<this.t;)R+=this[g],l[g++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;g<u.t;)R-=u[g],l[g++]=R&this.DM,R>>=this.DB;R-=u.s}l.s=R<0?-1:0,R<-1?l[g++]=this.DV+R:R>0&&(l[g++]=R),l.t=g,l.clamp()}function r0(u,l){var g=this.abs(),R=u.abs(),M=g.t;for(l.t=M+R.t;--M>=0;)l[M]=0;for(M=0;M<R.t;++M)l[M+g.t]=g.am(0,R[M],l,M,0,g.t);l.s=0,l.clamp(),this.s!=u.s&&i.ZERO.subTo(l,l)}function o0(u){for(var l=this.abs(),g=u.t=2*l.t;--g>=0;)u[g]=0;for(g=0;g<l.t-1;++g){var R=l.am(g,l[g],u,2*g,0,1);(u[g+l.t]+=l.am(g+1,2*l[g],u,2*g+1,R,l.t-g-1))>=l.DV&&(u[g+l.t]-=l.DV,u[g+l.t+1]=1)}u.t>0&&(u[u.t-1]+=l.am(g,l[g],u,2*g,0,1)),u.s=0,u.clamp()}function n0(u,l,g){var R=u.abs();if(!(R.t<=0)){var M=this.abs();if(M.t<R.t){l!=null&&l.fromInt(0),g!=null&&this.copyTo(g);return}g==null&&(g=c());var U=c(),$=this.s,K=u.s,x0=this.DB-A(R[R.t-1]);x0>0?(R.lShiftTo(x0,U),M.lShiftTo(x0,g)):(R.copyTo(U),M.copyTo(g));var u0=U.t,S0=U[u0-1];if(S0!=0){var D0=S0*(1<<this.F1)+(u0>1?U[u0-2]>>this.F2:0),K0=this.FV/D0,lt=(1<<this.F1)/D0,I0=1<<this.F2,q0=g.t,pt=q0-u0,Z0=l==null?c():l;for(U.dlShiftTo(pt,Z0),g.compareTo(Z0)>=0&&(g[g.t++]=1,g.subTo(Z0,g)),i.ONE.dlShiftTo(u0,Z0),Z0.subTo(U,U);U.t<u0;)U[U.t++]=0;for(;--pt>=0;){var ir=g[--q0]==S0?this.DM:Math.floor(g[q0]*K0+(g[q0-1]+I0)*lt);if((g[q0]+=U.am(0,ir,g,pt,0,u0))<ir)for(U.dlShiftTo(pt,Z0),g.subTo(Z0,g);g[q0]<--ir;)g.subTo(Z0,g)}l!=null&&(g.drShiftTo(u0,l),$!=K&&i.ZERO.subTo(l,l)),g.t=u0,g.clamp(),x0>0&&g.rShiftTo(x0,g),$<0&&i.ZERO.subTo(g,g)}}}function _(u){var l=c();return this.abs().divRemTo(u,null,l),this.s<0&&l.compareTo(i.ZERO)>0&&u.subTo(l,l),l}function w(u){this.m=u}function I(u){return u.s<0||u.compareTo(this.m)>=0?u.mod(this.m):u}function k(u){return u}function O(u){u.divRemTo(this.m,null,u)}function W(u,l,g){u.multiplyTo(l,g),this.reduce(g)}function t0(u,l){u.squareTo(l),this.reduce(l)}w.prototype.convert=I,w.prototype.revert=k,w.prototype.reduce=O,w.prototype.mulTo=W,w.prototype.sqrTo=t0;function j(){if(this.t<1)return 0;var u=this[0];if(!(u&1))return 0;var l=u&3;return l=l*(2-(u&15)*l)&15,l=l*(2-(u&255)*l)&255,l=l*(2-((u&65535)*l&65535))&65535,l=l*(2-u*l%this.DV)%this.DV,l>0?this.DV-l:-l}function s0(u){this.m=u,this.mp=u.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<u.DB-15)-1,this.mt2=2*u.t}function l0(u){var l=c();return u.abs().dlShiftTo(this.m.t,l),l.divRemTo(this.m,null,l),u.s<0&&l.compareTo(i.ZERO)>0&&this.m.subTo(l,l),l}function C0(u){var l=c();return u.copyTo(l),this.reduce(l),l}function oe(u){for(;u.t<=this.mt2;)u[u.t++]=0;for(var l=0;l<this.m.t;++l){var g=u[l]&32767,R=g*this.mpl+((g*this.mph+(u[l]>>15)*this.mpl&this.um)<<15)&u.DM;for(g=l+this.m.t,u[g]+=this.m.am(0,R,u,l,0,this.m.t);u[g]>=u.DV;)u[g]-=u.DV,u[++g]++}u.clamp(),u.drShiftTo(this.m.t,u),u.compareTo(this.m)>=0&&u.subTo(this.m,u)}function E0(u,l){u.squareTo(l),this.reduce(l)}function y0(u,l,g){u.multiplyTo(l,g),this.reduce(g)}s0.prototype.convert=l0,s0.prototype.revert=C0,s0.prototype.reduce=oe,s0.prototype.mulTo=y0,s0.prototype.sqrTo=E0;function me(){return(this.t>0?this[0]&1:this.s)==0}function se(u,l){if(u>4294967295||u<1)return i.ONE;var g=c(),R=c(),M=l.convert(this),U=A(u)-1;for(M.copyTo(g);--U>=0;)if(l.sqrTo(g,R),(u&1<<U)>0)l.mulTo(R,M,g);else{var $=g;g=R,R=$}return l.revert(g)}function Be(u,l){var g;return u<256||l.isEven()?g=new w(l):g=new s0(l),this.exp(u,g)}i.prototype.copyTo=y,i.prototype.fromInt=B,i.prototype.fromString=F,i.prototype.clamp=D,i.prototype.dlShiftTo=N,i.prototype.drShiftTo=z,i.prototype.lShiftTo=L,i.prototype.rShiftTo=X,i.prototype.subTo=Y,i.prototype.multiplyTo=r0,i.prototype.squareTo=o0,i.prototype.divRemTo=n0,i.prototype.invDigit=j,i.prototype.isEven=me,i.prototype.exp=se,i.prototype.toString=T,i.prototype.negate=P,i.prototype.abs=H,i.prototype.compareTo=S,i.prototype.bitLength=q,i.prototype.mod=_,i.prototype.modPowInt=Be,i.ZERO=b(0),i.ONE=b(1);function xe(){var u=c();return this.copyTo(u),u}function $e(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ce(){return this.t==0?this.s:this[0]<<24>>24}function F0(){return this.t==0?this.s:this[0]<<16>>16}function _0(u){return Math.floor(Math.LN2*this.DB/Math.log(u))}function U0(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ce(u){if(u==null&&(u=10),this.signum()==0||u<2||u>36)return"0";var l=this.chunkSize(u),g=Math.pow(u,l),R=b(g),M=c(),U=c(),$="";for(this.divRemTo(R,M,U);M.signum()>0;)$=(g+U.intValue()).toString(u).substr(1)+$,M.divRemTo(R,M,U);return U.intValue().toString(u)+$}function rt(u,l){this.fromInt(0),l==null&&(l=10);for(var g=this.chunkSize(l),R=Math.pow(l,g),M=!1,U=0,$=0,K=0;K<u.length;++K){var x0=E(u,K);if(x0<0){u.charAt(K)=="-"&&this.signum()==0&&(M=!0);continue}$=l*$+x0,++U>=g&&(this.dMultiply(R),this.dAddOffset($,0),U=0,$=0)}U>0&&(this.dMultiply(Math.pow(l,U)),this.dAddOffset($,0)),M&&i.ZERO.subTo(this,this)}function V0(u,l,g){if(typeof l=="number")if(u<2)this.fromInt(1);else for(this.fromNumber(u,g),this.testBit(u-1)||this.bitwiseTo(i.ONE.shiftLeft(u-1),_e,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(l);)this.dAddOffset(2,0),this.bitLength()>u&&this.subTo(i.ONE.shiftLeft(u-1),this);else{var R=new Array,M=u&7;R.length=(u>>3)+1,l.nextBytes(R),M>0?R[0]&=(1<<M)-1:R[0]=0,this.fromString(R,256)}}function fe(){var u=this.t,l=new Array;l[0]=this.s;var g=this.DB-u*this.DB%8,R,M=0;if(u-- >0)for(g<this.DB&&(R=this[u]>>g)!=(this.s&this.DM)>>g&&(l[M++]=R|this.s<<this.DB-g);u>=0;)g<8?(R=(this[u]&(1<<g)-1)<<8-g,R|=this[--u]>>(g+=this.DB-8)):(R=this[u]>>(g-=8)&255,g<=0&&(g+=this.DB,--u)),R&128&&(R|=-256),M==0&&(this.s&128)!=(R&128)&&++M,(M>0||R!=this.s)&&(l[M++]=R);return l}function Wt(u){return this.compareTo(u)==0}function nt(u){return this.compareTo(u)<0?this:u}function at(u){return this.compareTo(u)>0?this:u}function G0(u,l,g){var R,M,U=Math.min(u.t,this.t);for(R=0;R<U;++R)g[R]=l(this[R],u[R]);if(u.t<this.t){for(M=u.s&this.DM,R=U;R<this.t;++R)g[R]=l(this[R],M);g.t=this.t}else{for(M=this.s&this.DM,R=U;R<u.t;++R)g[R]=l(M,u[R]);g.t=u.t}g.s=l(this.s,u.s),g.clamp()}function de(u,l){return u&l}function jt(u){var l=c();return this.bitwiseTo(u,de,l),l}function _e(u,l){return u|l}function it(u){var l=c();return this.bitwiseTo(u,_e,l),l}function ot(u,l){return u^l}function Xt(u){var l=c();return this.bitwiseTo(u,ot,l),l}function Ke(u,l){return u&~l}function Vt(u){var l=c();return this.bitwiseTo(u,Ke,l),l}function st(){for(var u=c(),l=0;l<this.t;++l)u[l]=this.DM&~this[l];return u.t=this.t,u.s=~this.s,u}function Gt(u){var l=c();return u<0?this.rShiftTo(-u,l):this.lShiftTo(u,l),l}function xt(u){var l=c();return u<0?this.lShiftTo(-u,l):this.rShiftTo(u,l),l}function Zt(u){if(u==0)return-1;var l=0;return u&65535||(u>>=16,l+=16),u&255||(u>>=8,l+=8),u&15||(u>>=4,l+=4),u&3||(u>>=2,l+=2),u&1||++l,l}function Yt(){for(var u=0;u<this.t;++u)if(this[u]!=0)return u*this.DB+Zt(this[u]);return this.s<0?this.t*this.DB:-1}function Qt(u){for(var l=0;u!=0;)u&=u-1,++l;return l}function ct(){for(var u=0,l=this.s&this.DM,g=0;g<this.t;++g)u+=Qt(this[g]^l);return u}function Jt(u){var l=Math.floor(u/this.DB);return l>=this.t?this.s!=0:(this[l]&1<<u%this.DB)!=0}function er(u,l){var g=i.ONE.shiftLeft(u);return this.bitwiseTo(g,l,g),g}function ft(u){return this.changeBit(u,_e)}function tr(u){return this.changeBit(u,Ke)}function dt(u){return this.changeBit(u,ot)}function g0(u,l){for(var g=0,R=0,M=Math.min(u.t,this.t);g<M;)R+=this[g]+u[g],l[g++]=R&this.DM,R>>=this.DB;if(u.t<this.t){for(R+=u.s;g<this.t;)R+=this[g],l[g++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;g<u.t;)R+=u[g],l[g++]=R&this.DM,R>>=this.DB;R+=u.s}l.s=R<0?-1:0,R>0?l[g++]=R:R<-1&&(l[g++]=this.DV+R),l.t=g,l.clamp()}function z0(u){var l=c();return this.addTo(u,l),l}function ut(u){var l=c();return this.subTo(u,l),l}function rr(u){var l=c();return this.multiplyTo(u,l),l}function ho(){var u=c();return this.squareTo(u),u}function lo(u){var l=c();return this.divRemTo(u,l,null),l}function po(u){var l=c();return this.divRemTo(u,null,l),l}function bo(u){var l=c(),g=c();return this.divRemTo(u,l,g),new Array(l,g)}function vo(u){this[this.t]=this.am(0,u-1,this,0,0,this.t),++this.t,this.clamp()}function yo(u,l){if(u!=0){for(;this.t<=l;)this[this.t++]=0;for(this[l]+=u;this[l]>=this.DV;)this[l]-=this.DV,++l>=this.t&&(this[this.t++]=0),++this[l]}}function We(){}function Sn(u){return u}function go(u,l,g){u.multiplyTo(l,g)}function mo(u,l){u.squareTo(l)}We.prototype.convert=Sn,We.prototype.revert=Sn,We.prototype.mulTo=go,We.prototype.sqrTo=mo;function Bo(u){return this.exp(u,new We)}function Co(u,l,g){var R=Math.min(this.t+u.t,l);for(g.s=0,g.t=R;R>0;)g[--R]=0;var M;for(M=g.t-this.t;R<M;++R)g[R+this.t]=this.am(0,u[R],g,R,0,this.t);for(M=Math.min(u.t,l);R<M;++R)this.am(0,u[R],g,R,0,l-R);g.clamp()}function _o(u,l,g){--l;var R=g.t=this.t+u.t-l;for(g.s=0;--R>=0;)g[R]=0;for(R=Math.max(l-this.t,0);R<u.t;++R)g[this.t+R-l]=this.am(l-R,u[R],g,0,0,this.t+R-l);g.clamp(),g.drShiftTo(1,g)}function ue(u){this.r2=c(),this.q3=c(),i.ONE.dlShiftTo(2*u.t,this.r2),this.mu=this.r2.divide(u),this.m=u}function Eo(u){if(u.s<0||u.t>2*this.m.t)return u.mod(this.m);if(u.compareTo(this.m)<0)return u;var l=c();return u.copyTo(l),this.reduce(l),l}function Fo(u){return u}function Ao(u){for(u.drShiftTo(this.m.t-1,this.r2),u.t>this.m.t+1&&(u.t=this.m.t+1,u.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);u.compareTo(this.r2)<0;)u.dAddOffset(1,this.m.t+1);for(u.subTo(this.r2,u);u.compareTo(this.m)>=0;)u.subTo(this.m,u)}function Do(u,l){u.squareTo(l),this.reduce(l)}function wo(u,l,g){u.multiplyTo(l,g),this.reduce(g)}ue.prototype.convert=Eo,ue.prototype.revert=Fo,ue.prototype.reduce=Ao,ue.prototype.mulTo=wo,ue.prototype.sqrTo=Do;function So(u,l){var g=u.bitLength(),R,M=b(1),U;if(g<=0)return M;g<18?R=1:g<48?R=3:g<144?R=4:g<768?R=5:R=6,g<8?U=new w(l):l.isEven()?U=new ue(l):U=new s0(l);var $=new Array,K=3,x0=R-1,u0=(1<<R)-1;if($[1]=U.convert(this),R>1){var S0=c();for(U.sqrTo($[1],S0);K<=u0;)$[K]=c(),U.mulTo(S0,$[K-2],$[K]),K+=2}var D0=u.t-1,K0,lt=!0,I0=c(),q0;for(g=A(u[D0])-1;D0>=0;){for(g>=x0?K0=u[D0]>>g-x0&u0:(K0=(u[D0]&(1<<g+1)-1)<<x0-g,D0>0&&(K0|=u[D0-1]>>this.DB+g-x0)),K=R;!(K0&1);)K0>>=1,--K;if((g-=K)<0&&(g+=this.DB,--D0),lt)$[K0].copyTo(M),lt=!1;else{for(;K>1;)U.sqrTo(M,I0),U.sqrTo(I0,M),K-=2;K>0?U.sqrTo(M,I0):(q0=M,M=I0,I0=q0),U.mulTo(I0,$[K0],M)}for(;D0>=0&&!(u[D0]&1<<g);)U.sqrTo(M,I0),q0=M,M=I0,I0=q0,--g<0&&(g=this.DB-1,--D0)}return U.revert(M)}function To(u){var l=this.s<0?this.negate():this.clone(),g=u.s<0?u.negate():u.clone();if(l.compareTo(g)<0){var R=l;l=g,g=R}var M=l.getLowestSetBit(),U=g.getLowestSetBit();if(U<0)return l;for(M<U&&(U=M),U>0&&(l.rShiftTo(U,l),g.rShiftTo(U,g));l.signum()>0;)(M=l.getLowestSetBit())>0&&l.rShiftTo(M,l),(M=g.getLowestSetBit())>0&&g.rShiftTo(M,g),l.compareTo(g)>=0?(l.subTo(g,l),l.rShiftTo(1,l)):(g.subTo(l,g),g.rShiftTo(1,g));return U>0&&g.lShiftTo(U,g),g}function ko(u){if(u<=0)return 0;var l=this.DV%u,g=this.s<0?u-1:0;if(this.t>0)if(l==0)g=this[0]%u;else for(var R=this.t-1;R>=0;--R)g=(l*g+this[R])%u;return g}function Ro(u){var l=u.isEven();if(this.isEven()&&l||u.signum()==0)return i.ZERO;for(var g=u.clone(),R=this.clone(),M=b(1),U=b(0),$=b(0),K=b(1);g.signum()!=0;){for(;g.isEven();)g.rShiftTo(1,g),l?((!M.isEven()||!U.isEven())&&(M.addTo(this,M),U.subTo(u,U)),M.rShiftTo(1,M)):U.isEven()||U.subTo(u,U),U.rShiftTo(1,U);for(;R.isEven();)R.rShiftTo(1,R),l?((!$.isEven()||!K.isEven())&&($.addTo(this,$),K.subTo(u,K)),$.rShiftTo(1,$)):K.isEven()||K.subTo(u,K),K.rShiftTo(1,K);g.compareTo(R)>=0?(g.subTo(R,g),l&&M.subTo($,M),U.subTo(K,U)):(R.subTo(g,R),l&&$.subTo(M,$),K.subTo(U,K))}if(R.compareTo(i.ONE)!=0)return i.ZERO;if(K.compareTo(u)>=0)return K.subtract(u);if(K.signum()<0)K.addTo(u,K);else return K;return K.signum()<0?K.add(u):K}var m0=[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],Po=(1<<26)/m0[m0.length-1];function Io(u){var l,g=this.abs();if(g.t==1&&g[0]<=m0[m0.length-1]){for(l=0;l<m0.length;++l)if(g[0]==m0[l])return!0;return!1}if(g.isEven())return!1;for(l=1;l<m0.length;){for(var R=m0[l],M=l+1;M<m0.length&&R<Po;)R*=m0[M++];for(R=g.modInt(R);l<M;)if(R%m0[l++]==0)return!1}return g.millerRabin(u)}function qo(u){var l=this.subtract(i.ONE),g=l.getLowestSetBit();if(g<=0)return!1;var R=l.shiftRight(g);u=u+1>>1,u>m0.length&&(u=m0.length);for(var M=c(),U=0;U<u;++U){M.fromInt(m0[Math.floor(Math.random()*m0.length)]);var $=M.modPow(R,this);if($.compareTo(i.ONE)!=0&&$.compareTo(l)!=0){for(var K=1;K++<g&&$.compareTo(l)!=0;)if($=$.modPowInt(2,this),$.compareTo(i.ONE)==0)return!1;if($.compareTo(l)!=0)return!1}}return!0}i.prototype.chunkSize=_0,i.prototype.toRadix=Ce,i.prototype.fromRadix=rt,i.prototype.fromNumber=V0,i.prototype.bitwiseTo=G0,i.prototype.changeBit=er,i.prototype.addTo=g0,i.prototype.dMultiply=vo,i.prototype.dAddOffset=yo,i.prototype.multiplyLowerTo=Co,i.prototype.multiplyUpperTo=_o,i.prototype.modInt=ko,i.prototype.millerRabin=qo,i.prototype.clone=xe,i.prototype.intValue=$e,i.prototype.byteValue=ce,i.prototype.shortValue=F0,i.prototype.signum=U0,i.prototype.toByteArray=fe,i.prototype.equals=Wt,i.prototype.min=nt,i.prototype.max=at,i.prototype.and=jt,i.prototype.or=it,i.prototype.xor=Xt,i.prototype.andNot=Vt,i.prototype.not=st,i.prototype.shiftLeft=Gt,i.prototype.shiftRight=xt,i.prototype.getLowestSetBit=Yt,i.prototype.bitCount=ct,i.prototype.testBit=Jt,i.prototype.setBit=ft,i.prototype.clearBit=tr,i.prototype.flipBit=dt,i.prototype.add=z0,i.prototype.subtract=ut,i.prototype.multiply=rr,i.prototype.divide=lo,i.prototype.remainder=po,i.prototype.divideAndRemainder=bo,i.prototype.modPow=So,i.prototype.modInverse=Ro,i.prototype.pow=Bo,i.prototype.gcd=To,i.prototype.isProbablePrime=Io,i.prototype.square=ho,i.prototype.Barrett=ue;var ht,A0,d0;function Oo(u){A0[d0++]^=u&255,A0[d0++]^=u>>8&255,A0[d0++]^=u>>16&255,A0[d0++]^=u>>24&255,d0>=ar&&(d0-=ar)}function Tn(){Oo(new Date().getTime())}if(A0==null){A0=new Array,d0=0;var P0;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var kn=new Uint8Array(32);for(window.crypto.getRandomValues(kn),P0=0;P0<32;++P0)A0[d0++]=kn[P0]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Rn=window.crypto.random(32);for(P0=0;P0<Rn.length;++P0)A0[d0++]=Rn.charCodeAt(P0)&255}}for(;d0<ar;)P0=Math.floor(65536*Math.random()),A0[d0++]=P0>>>8,A0[d0++]=P0&255;d0=0,Tn()}function Ho(){if(ht==null){for(Tn(),ht=zo(),ht.init(A0),d0=0;d0<A0.length;++d0)A0[d0]=0;d0=0}return ht.next()}function No(u){var l;for(l=0;l<u.length;++l)u[l]=Ho()}function Pn(){}Pn.prototype.nextBytes=No;function nr(){this.i=0,this.j=0,this.S=new Array}function Mo(u){var l,g,R;for(l=0;l<256;++l)this.S[l]=l;for(g=0,l=0;l<256;++l)g=g+this.S[l]+u[l%u.length]&255,R=this.S[l],this.S[l]=this.S[g],this.S[g]=R;this.i=0,this.j=0}function Uo(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]}nr.prototype.init=Mo,nr.prototype.next=Uo;function zo(){return new nr}var ar=256;e.exports={default:i,BigInteger:i,SecureRandom:Pn}}).call(G)})(Si);var Ut=Si.exports;const{BigInteger:qe}=Ut;function Gx(e){let t=e.toString(16);if(t[0]!=="-")t.length%2===1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substr(1);let r=t.length;r%2===1?r+=1:t.match(/^[0-7]/)||(r+=2);let n="";for(let a=0;a<r;a++)n+="f";n=new qe(n,16),t=n.xor(e).add(qe.ONE),t=t.toString(16).replace(/^-/,"")}return t}class Ti{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const t=this.v.length/2;let r=t.toString(16);return r.length%2===1&&(r="0"+r),t<128?r:(128+r.length/2).toString(16)+r}getValue(){return""}}class Sa extends Ti{constructor(t){super(),this.t="02",t&&(this.v=Gx(t))}getValue(){return this.v}}class Zx extends Ti{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}}function ki(e,t){return+e[t+2]<8?1:+e.substr(t+2,2)&128}function Ta(e,t){const r=ki(e,t),n=e.substr(t+2,r*2);return n?(+n[0]<8?new qe(n,16):new qe(n.substr(2),16)).intValue():-1}function Wr(e,t){const r=ki(e,t);return t+(r+1)*2}var Yx={encodeDer(e,t){const r=new Sa(e),n=new Sa(t);return new Zx([r,n]).getEncodedHex()},decodeDer(e){const t=Wr(e,0),r=Wr(e,t),n=Ta(e,t),a=e.substr(r,n*2),i=r+a.length,c=Wr(e,i),f=Ta(e,i),p=e.substr(c,f*2),o=new qe(a,16),x=new qe(p,16);return{r:o,s:x}}};const{BigInteger:B0}=Ut,ka=new B0("2"),Ra=new B0("3");class Q0{constructor(t,r){this.x=r,this.q=t}equals(t){return t===this?!0:this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new Q0(this.q,this.x.negate().mod(this.q))}add(t){return new Q0(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new Q0(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new Q0(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new Q0(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new Q0(this.q,this.x.square().mod(this.q))}}class pe{constructor(t,r,n,a){this.curve=t,this.x=r,this.y=n,this.z=a==null?B0.ONE:a,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(t){return t===this?!0:this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(B0.ZERO)?t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(B0.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(B0.ZERO)&&!this.y.toBigInteger().equals(B0.ZERO)}negate(){return new pe(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const r=this.x.toBigInteger(),n=this.y.toBigInteger(),a=this.z,i=t.x.toBigInteger(),c=t.y.toBigInteger(),f=t.z,p=this.curve.q,o=r.multiply(f).mod(p),x=i.multiply(a).mod(p),h=o.subtract(x),s=n.multiply(f).mod(p),d=c.multiply(a).mod(p),v=s.subtract(d);if(B0.ZERO.equals(h))return B0.ZERO.equals(v)?this.twice():this.curve.infinity;const m=o.add(x),C=a.multiply(f).mod(p),E=h.square().mod(p),y=h.multiply(E).mod(p),B=C.multiply(v.square()).subtract(m.multiply(E)).mod(p),b=h.multiply(B).mod(p),F=v.multiply(E.multiply(o).subtract(B)).subtract(s.multiply(y)).mod(p),D=y.multiply(C).mod(p);return new pe(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(F),D)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=this.z,a=this.curve.q,i=this.curve.a.toBigInteger(),c=t.square().multiply(Ra).add(i.multiply(n.square())).mod(a),f=r.shiftLeft(1).multiply(n).mod(a),p=r.square().mod(a),o=p.multiply(t).multiply(n).mod(a),x=f.square().mod(a),h=c.square().subtract(o.shiftLeft(3)).mod(a),s=f.multiply(h).mod(a),d=c.multiply(o.shiftLeft(2).subtract(h)).subtract(x.shiftLeft(1).multiply(p)).mod(a),v=f.multiply(x).mod(a);return new pe(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(d),v)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const r=t.multiply(Ra),n=this.negate();let a=this;for(let i=r.bitLength()-2;i>0;i--){a=a.twice();const c=r.testBit(i),f=t.testBit(i);c!==f&&(a=a.add(c?this:n))}return a}}let Qx=class{constructor(t,r,n){this.q=t,this.a=this.fromBigInteger(r),this.b=this.fromBigInteger(n),this.infinity=new pe(this,null,null)}equals(t){return t===this?!0:this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new Q0(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const r=this.fromBigInteger(new B0(t.substr(2),16));let n=this.fromBigInteger(r.multiply(r.square()).add(r.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new B0("4")).add(B0.ONE),this.q));return n.toBigInteger().mod(ka).equals(new B0(t.substr(0,2),16).subtract(ka))||(n=n.negate()),new pe(this,r,n);case 4:case 6:case 7:const a=(t.length-2)/2,i=t.substr(2,a),c=t.substr(a+2,a);return new pe(this,this.fromBigInteger(new B0(i,16)),this.fromBigInteger(new B0(c,16)));default:return null}}};var Jx={ECCurveFp:Qx};const{BigInteger:M0,SecureRandom:ec}=Ut,{ECCurveFp:tc}=Jx,rc=new ec,{curve:ke,G:nc,n:Pa}=Ri();function ac(){return ke}function Ri(){const e=new M0("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new M0("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),r=new M0("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new tc(e,t,r),c=n.decodePointHex("04"+"32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7"+"BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),f=new M0("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:n,G:c,n:f}}function ic(e,t,r){const a=(e?new M0(e,t,r):new M0(Pa.bitLength(),rc)).mod(Pa.subtract(M0.ONE)).add(M0.ONE),i=Ve(a.toString(16),64),c=nc.multiply(a),f=Ve(c.getX().toBigInteger().toString(16),64),p=Ve(c.getY().toBigInteger().toString(16),64),o="04"+f+p;return{privateKey:i,publicKey:o}}function oc(e){if(e.length!==130)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,r=e.substr(2,t),n=new M0(e.substr(t+2,t),16);let a="03";return n.mod(new M0("2")).equals(M0.ZERO)&&(a="02"),a+r}function sc(e){e=unescape(encodeURIComponent(e));const t=e.length,r=[];for(let a=0;a<t;a++)r[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;const n=[];for(let a=0;a<t;a++){const i=r[a>>>2]>>>24-a%4*8&255;n.push((i>>>4).toString(16)),n.push((i&15).toString(16))}return n.join("")}function Ve(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function xc(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function cc(e){const t=[];let r=0;for(let n=0;n<e.length*2;n+=2)t[n>>>3]|=parseInt(e[r],10)<<24-n%8*4,r++;try{const n=[];for(let a=0;a<e.length;a++){const i=t[a>>>2]>>>24-a%4*8&255;n.push(String.fromCharCode(i))}return decodeURIComponent(escape(n.join("")))}catch(n){throw new Error("Malformed UTF-8 data")}}function fc(e){const t=[];let r=e.length;r%2!==0&&(e=Ve(e,r+1)),r=e.length;for(let n=0;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function dc(e){const t=ke.decodePointHex(e);if(!t)return!1;const r=t.getX();return t.getY().square().equals(r.multiply(r.square()).add(r.multiply(ke.a)).add(ke.b))}function uc(e,t){const r=ke.decodePointHex(e);if(!r)return!1;const n=ke.decodePointHex(t);return n?r.equals(n):!1}var hc={getGlobalCurve:ac,generateEcparam:Ri,generateKeyPairHex:ic,compressPublicKeyHex:oc,utf8ToHex:sc,leftPad:Ve,arrayToHex:xc,arrayToUtf8:cc,hexToArray:fc,verifyPublicKey:dc,comparePublicKeyHex:uc};const O0=new Uint32Array(68),jr=new Uint32Array(64);function T0(e,t){const r=t&31;return e<<r|e>>>32-r}function Ia(e,t){const r=[];for(let n=e.length-1;n>=0;n--)r[n]=(e[n]^t[n])&255;return r}function lc(e){return e^T0(e,9)^T0(e,17)}function pc(e){return e^T0(e,15)^T0(e,23)}function wt(e){let t=e.length*8,r=t%512;r=r>=448?512-r%448-1:448-r-1;const n=new Array((r-7)/8),a=new Array(8);for(let x=0,h=n.length;x<h;x++)n[x]=0;for(let x=0,h=a.length;x<h;x++)a[x]=0;t=t.toString(2);for(let x=7;x>=0;x--)if(t.length>8){const h=t.length-8;a[x]=parseInt(t.substr(h),2),t=t.substr(0,h)}else t.length>0&&(a[x]=parseInt(t,2),t="");const i=new Uint8Array([...e,128,...n,...a]),c=new DataView(i.buffer,0),f=i.length/64,p=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let x=0;x<f;x++){O0.fill(0),jr.fill(0);const h=16*x;for(let A=0;A<16;A++)O0[A]=c.getUint32((h+A)*4,!1);for(let A=16;A<68;A++)O0[A]=pc(O0[A-16]^O0[A-9]^T0(O0[A-3],15))^T0(O0[A-13],7)^O0[A-6];for(let A=0;A<64;A++)jr[A]=O0[A]^O0[A+4];const s=2043430169,d=2055708042;let v=p[0],m=p[1],C=p[2],E=p[3],y=p[4],B=p[5],b=p[6],F=p[7],D,T,P,H,S;for(let A=0;A<64;A++)S=A>=0&&A<=15?s:d,D=T0(T0(v,12)+y+T0(S,A),7),T=D^T0(v,12),P=(A>=0&&A<=15?v^m^C:v&m|v&C|m&C)+E+T+jr[A],H=(A>=0&&A<=15?y^B^b:y&B|~y&b)+F+D+O0[A],E=C,C=T0(m,9),m=v,v=P,F=b,b=T0(B,19),B=y,y=lc(H);p[0]^=v,p[1]^=m,p[2]^=C,p[3]^=E,p[4]^=y,p[5]^=B,p[6]^=b,p[7]^=F}const o=[];for(let x=0,h=p.length;x<h;x++){const s=p[x];o.push((s&4278190080)>>>24,(s&16711680)>>>16,(s&65280)>>>8,s&255)}return o}const Ze=64,Pi=new Uint8Array(Ze),Ii=new Uint8Array(Ze);for(let e=0;e<Ze;e++)Pi[e]=54,Ii[e]=92;function bc(e,t){for(t.length>Ze&&(t=wt(t));t.length<Ze;)t.push(0);const r=Ia(t,Pi),n=Ia(t,Ii),a=wt([...r,...e]);return wt([...n,...a])}var qi={sm3:wt,hmac:bc};const{BigInteger:w0}=Ut,{encodeDer:vc,decodeDer:yc}=Yx,Z=hc,Oe=qi.sm3,{G:le,curve:Oi,n:De}=Z.generateEcparam(),Hi=0;function gc(e,t,r=1){e=typeof e=="string"?Z.hexToArray(Z.utf8ToHex(e)):Array.prototype.slice.call(e),t=Z.getGlobalCurve().decodePointHex(t);const n=Z.generateKeyPairHex(),a=new w0(n.privateKey,16);let i=n.publicKey;i.length>128&&(i=i.substr(i.length-128));const c=t.multiply(a),f=Z.hexToArray(Z.leftPad(c.getX().toBigInteger().toRadix(16),64)),p=Z.hexToArray(Z.leftPad(c.getY().toBigInteger().toRadix(16),64)),o=Z.arrayToHex(Oe([].concat(f,e,p)));let x=1,h=0,s=[];const d=[].concat(f,p),v=()=>{s=Oe([...d,x>>24&255,x>>16&255,x>>8&255,x&255]),x++,h=0};v();for(let C=0,E=e.length;C<E;C++)h===s.length&&v(),e[C]^=s[h++]&255;const m=Z.arrayToHex(e);return r===Hi?i+m+o:i+o+m}function mc(e,t,r=1,{output:n="string"}={}){t=new w0(t,16);let a=e.substr(128,64),i=e.substr(192);r===Hi&&(a=e.substr(e.length-64),i=e.substr(128,e.length-128-64));const c=Z.hexToArray(i),p=Z.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),o=Z.hexToArray(Z.leftPad(p.getX().toBigInteger().toRadix(16),64)),x=Z.hexToArray(Z.leftPad(p.getY().toBigInteger().toRadix(16),64));let h=1,s=0,d=[];const v=[].concat(o,x),m=()=>{d=Oe([...v,h>>24&255,h>>16&255,h>>8&255,h&255]),h++,s=0};m();for(let E=0,y=c.length;E<y;E++)s===d.length&&m(),c[E]^=d[s++]&255;return Z.arrayToHex(Oe([].concat(o,c,x)))===a.toLowerCase()?n==="array"?c:Z.arrayToUtf8(c):n==="array"?[]:""}function Bc(e,t,{pointPool:r,der:n,hash:a,publicKey:i,userId:c}={}){let f=typeof e=="string"?Z.utf8ToHex(e):Z.arrayToHex(e);a&&(i=i||Mi(t),f=Ni(f,i,c));const p=new w0(t,16),o=new w0(f,16);let x=null,h=null,s=null;do{do{let d;r&&r.length?d=r.pop():d=Ui(),x=d.k,h=o.add(d.x1).mod(De)}while(h.equals(w0.ZERO)||h.add(x).equals(De));s=p.add(w0.ONE).modInverse(De).multiply(x.subtract(h.multiply(p))).mod(De)}while(s.equals(w0.ZERO));return n?vc(h,s):Z.leftPad(h.toString(16),64)+Z.leftPad(s.toString(16),64)}function Cc(e,t,r,{der:n,hash:a,userId:i}={}){let c=typeof e=="string"?Z.utf8ToHex(e):Z.arrayToHex(e);a&&(c=Ni(c,r,i));let f,p;if(n){const v=yc(t);f=v.r,p=v.s}else f=new w0(t.substring(0,64),16),p=new w0(t.substring(64),16);const o=Oi.decodePointHex(r),x=new w0(c,16),h=f.add(p).mod(De);if(h.equals(w0.ZERO))return!1;const s=le.multiply(p).add(o.multiply(h)),d=x.add(s.getX().toBigInteger()).mod(De);return f.equals(d)}function Ni(e,t,r="1234567812345678"){r=Z.utf8ToHex(r);const n=Z.leftPad(le.curve.a.toBigInteger().toRadix(16),64),a=Z.leftPad(le.curve.b.toBigInteger().toRadix(16),64),i=Z.leftPad(le.getX().toBigInteger().toRadix(16),64),c=Z.leftPad(le.getY().toBigInteger().toRadix(16),64);let f,p;if(t.length===128)f=t.substr(0,64),p=t.substr(64,64);else{const s=le.curve.decodePointHex(t);f=Z.leftPad(s.getX().toBigInteger().toRadix(16),64),p=Z.leftPad(s.getY().toBigInteger().toRadix(16),64)}const o=Z.hexToArray(r+n+a+i+c+f+p),x=r.length*4;o.unshift(x&255),o.unshift(x>>8&255);const h=Oe(o);return Z.arrayToHex(Oe(h.concat(Z.hexToArray(e))))}function Mi(e){const t=le.multiply(new w0(e,16)),r=Z.leftPad(t.getX().toBigInteger().toString(16),64),n=Z.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+r+n}function Ui(){const e=Z.generateKeyPairHex(),t=Oi.decodePointHex(e.publicKey);return e.k=new w0(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var _c={generateKeyPairHex:Z.generateKeyPairHex,compressPublicKeyHex:Z.compressPublicKeyHex,comparePublicKeyHex:Z.comparePublicKeyHex,doEncrypt:gc,doDecrypt:mc,doSignature:Bc,doVerifySignature:Cc,getPublicKeyFromPrivateKey:Mi,getPoint:Ui,verifyPublicKey:Z.verifyPublicKey};const{sm3:Ec,hmac:Fc}=qi;function Ac(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function qa(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function Dc(e){const t=[];let r=e.length;r%2!==0&&(e=Ac(e,r+1)),r=e.length;for(let n=0;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function wc(e){const t=[];for(let r=0,n=e.length;r<n;r++){const a=e.codePointAt(r);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)r++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}var Sc=function(e,t){if(e=typeof e=="string"?wc(e):Array.prototype.slice.call(e),t){if((t.mode||"hmac")!=="hmac")throw new Error("invalid mode");let n=t.key;if(!n)throw new Error("invalid key");return n=typeof n=="string"?Dc(n):Array.prototype.slice.call(n),qa(Fc(e,n))}return qa(Ec(e))};const Y0=0,Tc=32,he=16,gt=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],mt=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Xr(e){const t=[];for(let r=0,n=e.length;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function kc(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function Rc(e){const t=[];for(let r=0,n=e.length;r<n;r++){const a=e.codePointAt(r);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)r++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}function Pc(e){const t=[];for(let r=0,n=e.length;r<n;r++)e[r]>=240&&e[r]<=247?(t.push(String.fromCodePoint(((e[r]&7)<<18)+((e[r+1]&63)<<12)+((e[r+2]&63)<<6)+(e[r+3]&63))),r+=3):e[r]>=224&&e[r]<=239?(t.push(String.fromCodePoint(((e[r]&15)<<12)+((e[r+1]&63)<<6)+(e[r+2]&63))),r+=2):e[r]>=192&&e[r]<=223?(t.push(String.fromCodePoint(((e[r]&31)<<6)+(e[r+1]&63))),r++):t.push(String.fromCodePoint(e[r]));return t.join("")}function we(e,t){const r=t&31;return e<<r|e>>>32-r}function te(e){return(gt[e>>>24&255]&255)<<24|(gt[e>>>16&255]&255)<<16|(gt[e>>>8&255]&255)<<8|gt[e&255]&255}function Bt(e){return e^we(e,2)^we(e,10)^we(e,18)^we(e,24)}function Ct(e){return e^we(e,13)^we(e,23)}function Ic(e,t,r){const n=new Array(4),a=new Array(4);for(let i=0;i<4;i++)a[0]=e[4*i]&255,a[1]=e[4*i+1]&255,a[2]=e[4*i+2]&255,a[3]=e[4*i+3]&255,n[i]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];for(let i=0,c;i<32;i+=4)c=n[1]^n[2]^n[3]^r[i+0],n[0]^=Bt(te(c)),c=n[2]^n[3]^n[0]^r[i+1],n[1]^=Bt(te(c)),c=n[3]^n[0]^n[1]^r[i+2],n[2]^=Bt(te(c)),c=n[0]^n[1]^n[2]^r[i+3],n[3]^=Bt(te(c));for(let i=0;i<16;i+=4)t[i]=n[3-i/4]>>>24&255,t[i+1]=n[3-i/4]>>>16&255,t[i+2]=n[3-i/4]>>>8&255,t[i+3]=n[3-i/4]&255}function qc(e,t,r){const n=new Array(4),a=new Array(4);for(let i=0;i<4;i++)a[0]=e[0+4*i]&255,a[1]=e[1+4*i]&255,a[2]=e[2+4*i]&255,a[3]=e[3+4*i]&255,n[i]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(let i=0,c;i<32;i+=4)c=n[1]^n[2]^n[3]^mt[i+0],t[i+0]=n[0]^=Ct(te(c)),c=n[2]^n[3]^n[0]^mt[i+1],t[i+1]=n[1]^=Ct(te(c)),c=n[3]^n[0]^n[1]^mt[i+2],t[i+2]=n[2]^=Ct(te(c)),c=n[0]^n[1]^n[2]^mt[i+3],t[i+3]=n[3]^=Ct(te(c));if(r===Y0)for(let i=0,c;i<16;i++)c=t[i],t[i]=t[31-i],t[31-i]=c}function Oa(e,t,r,{padding:n="pkcs#7",mode:a,iv:i=[],output:c="string"}={}){if(a==="cbc"&&(typeof i=="string"&&(i=Xr(i)),i.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=Xr(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?r!==Y0?e=Rc(e):e=Xr(e):e=[...e],(n==="pkcs#5"||n==="pkcs#7")&&r!==Y0){const s=he-e.length%he;for(let d=0;d<s;d++)e.push(s)}const f=new Array(Tc);qc(t,f,r);const p=[];let o=i,x=e.length,h=0;for(;x>=he;){const s=e.slice(h,h+16),d=new Array(16);if(a==="cbc")for(let v=0;v<he;v++)r!==Y0&&(s[v]^=o[v]);Ic(s,d,f);for(let v=0;v<he;v++)a==="cbc"&&r===Y0&&(d[v]^=o[v]),p[h+v]=d[v];a==="cbc"&&(r!==Y0?o=d:o=s),x-=he,h+=he}if((n==="pkcs#5"||n==="pkcs#7")&&r===Y0){const s=p.length,d=p[s-1];for(let v=1;v<=d;v++)if(p[s-v]!==d)throw new Error("padding is invalid");p.splice(s-d,d)}return c!=="array"?r!==Y0?kc(p):Pc(p):p}var Oc={encrypt(e,t,r){return Oa(e,t,1,r)},decrypt(e,t,r){return Oa(e,t,0,r)}},Ha={sm2:_c,sm3:Sc,sm4:Oc};const Hc=["appId","signatureMethod","signatureNonce","timestamp","viewerToken","sign","encryptResponseType"],Nc=j0("MDQ1QjgxNTVFOTc0N0MyODNBQ0Y4NDI4OTVEMzA0OEU2Q0E5NDNDQzQ1NEFGQTZBOUE0NTJCNTkwM0NDMzBGQ0UyNzhBNkY4OEY2MDJFREY4MDNEQUI0MEJENDVFMzVGNjYwNjc2QkY2OEZEN0NDQkUwRjZBRDMyMzg4MTM2Q0QwRA=="),Mc=j0("MDBCMzE5NjE4QjRCMUJBRUI4Q0M2NzY1RDg5MDNDMDVBMEIxNkQ5RDlGQ0QxNjMyNzFCQjZGMUI4OEY2NTdBMjhF");var It;(function(e){e[e.C1C3C2=1]="C1C3C2",e[e.C1C2C3=0]="C1C2C3"})(It||(It={}));function Na(e,t){const r=/^04/.test(e);return r&&!t?e.substring(2):!r&&t?`04${e}`:e}class Uc{constructor(t){V(this,"__platformPublicKey");V(this,"__userPrivateKey");V(this,"__ignoreEncryptFields");V(this,"__useSM2");V(this,"__encryptPostSM2");var r,n;this.__platformPublicKey=t.platformPublicKey,this.__userPrivateKey=t.userPrivateKey,this.__ignoreEncryptFields=[...Hc],t.includeIgnoreEncryptFields&&this.__ignoreEncryptFields.push(...t.includeIgnoreEncryptFields),this.__useSM2=(r=t.useSM2)!=null?r:!0,this.__encryptPostSM2=(n=t.encryptPostSM2)!=null?n:!0}usePlugin(t){const{useSM2:r=this.__useSM2}=t;return r}interceptIncludeParams(){return{encryptResponseType:2}}interceptEncryptRequest(t){const r=this.__handleParams(t),n=this.__handleData(t),a=this.__handleHeaders(t);return W0(a0({},t),{params:r,data:n,headers:a})}interceptDecryptResponse(t,r){const n=t.data;if(!n.encryption||typeof n.data!="string")return t;const a=n.data;return n.data=this.__decryptTextSM2(a,r),t}__handleHeaders(t){var a;const r=t.headers||{},{encryptPostSM2:n=this.__encryptPostSM2}=t;return((a=t.method)==null?void 0:a.toLocaleUpperCase())==="POST"&&n&&(r["x-e-type"]=2),r}__handleParams(t){var a;const{encryptPostSM2:r=this.__encryptPostSM2}=t,n=t.params||{};return((a=t.method)==null?void 0:a.toLocaleUpperCase())!=="POST"||!r?n:this.__encryptObjectSM2(n,t,"xurlparam")}__handleData(t){var i;const r=t.data||{};if(((i=t.method)==null?void 0:i.toLocaleUpperCase())!=="POST")return r;let n=r;const{encryptPostSM2:a=this.__encryptPostSM2}=t;return a&&(typeof r=="string"?n=this.__encryptTextSM2(r,t):t.requestType==="json"?n=this.__encryptTextSM2(JSON.stringify(t.data||{}),t):n=this.__encryptObjectSM2(r,t,"xparam")),n}__encryptObjectSM2(t,r,n){const a=Object.keys(t);if(a.length===0)return t;const i={},c={};a.forEach(p=>{this.__ignoreEncryptFields.includes(p)?i[p]=t[p]:c[p]=t[p]});const f=a0({},i);if(Object.keys(c).length){const p=this.__encryptTextSM2(JSON.stringify(c),r);f[n]=p}return f}__encryptTextSM2(t,r){const n=this.__getPublicKey(r);return Na(Ha.sm2.doEncrypt(t,n,It.C1C2C3),!0)}__decryptTextSM2(t,r){const n=this.__getPrivateKey(r);let a="";try{a=Ha.sm2.doDecrypt(Na(t,!1),n,It.C1C2C3)}catch(c){console.error("decryptTextSM2 decrypt error",c,{encryptedText:t})}let i=a;try{i=JSON.parse(i)}catch(c){}return i}__getPrivateKey(t){return"appId"in(t.params||{})?this.__userPrivateKey:Mc}__getPublicKey(t){return"appId"in(t.params||{})?this.__platformPublicKey:Nc}}class zc extends ti{constructor(t){var i,c,f,p;const r=[],{authorizeMethod:n=Xe.Token}=t.config;n===Xe.Token&&r.push(new ri({getTokenInfo:()=>Q(this,null,function*(){const{getChannelToken:o,getViewerToken:x}=t.config;let h;if(o){const s=yield o();if(!s)return;h=s.channelToken}if(x){const s=yield x();if(!s)return;h=s.viewerToken}if(h)return{token:h}})})),n===Xe.Sign&&r.push(new Lx({appId:(i=t.config.appSignSecretKey)==null?void 0:i.appId,appSecret:(c=t.config.appSignSecretKey)==null?void 0:c.appSecret,signatureNonce:t.config.signatureNonce,signatureMethod:t.config.signatureMethod,getAppSign:t.config.getAppSign}));const a=t.config.securityMode;a===Pt.AES&&r.push(new Vx({appId:(f=t.config.appSignSecretKey)==null?void 0:f.appId,appSecret:(p=t.config.appSignSecretKey)==null?void 0:p.appSecret})),a===Pt.SM2&&t.config.sm2Key&&r.push(new Uc({platformPublicKey:t.config.sm2Key.platformPublicKey,userPrivateKey:t.config.sm2Key.userPrivateKey})),super({baseUrl:Ai(vn(t.config.domainInfo).polyvApiDomain,"https"),requestPlugins:[...r,new Cx({getBusinessData:()=>Q(this,null,function*(){const[o,x]=yield Promise.all([t.getUserInfo(),t.getChannelInfo()]);return{channelId:x.channelId,viewerId:o.userId,unionId:o.unionId}})}),new Ci({decryptKeys:{sign:"polyvInteractSdk",iv:"1111000011101101"}}),new ni({successCode:200})]}),this._plvSocket=t}getTokenFieldByUserType(){return Q(this,null,function*(){const t=this._plvSocket.getUserInfo();let r="viewerToken";return this._plvSocket.isSpecialUserType(t.userType)&&(r="channelToken"),r})}}var H0=(e=>(e.ConnectSuccess="ConnectSuccess",e.ReconnectSuccess="ReconnectSuccess",e.ConnectFailed="ConnectFailed",e.Disconnect="Disconnect",e.LoginSuccess="LoginSuccess",e.LoginFailed="LoginFailed",e))(H0||{}),L0=(e=>(e.Student="student",e.Slice="slice",e.Viewer="viewer",e.Teacher="teacher",e.Assistant="assistant",e.Manager="manager",e.Guest="guest",e.UserTagsMonitor="userTagsMonitor",e.Attendee="attendee",e.Listener="listener",e.Host="host",e.Dummy="dummy",e))(L0||{}),Re=(e=>(e.TokenExpired="TokenExpired",e.SocketConnectError="SocketConnectError",e.SocketConnectTimeout="SocketConnectTimeout",e))(Re||{});class Lc{constructor(){this.__eventStore={}}__addOnEvent(t,r,n,a){if(!r||!n)return;let i=this.__eventStore[r];i||(i=[]),i.push({type:t,handler:n,callbackHandler:n.bind(a)}),this.__eventStore[r]=i}on(t,r,n=this){this.__addOnEvent("normal",t,r,n)}once(t,r,n=this){this.__addOnEvent("once",t,r,n)}off(t,r){let n=this.__eventStore[t];n&&(n=n.filter(a=>a.handler!==r),this.__eventStore[t]=n)}emit(t,r,n){const a=this.__eventStore[t];a&&a.forEach(i=>{const{type:c,handler:f,callbackHandler:p}=i;typeof p=="function"&&p(r,n),c==="once"&&this.off(t,f)})}destroy(){this.__eventStore={}}}var rn={exports:{}},$c=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Kc=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],zi=function(t){var r=t,n=t.indexOf("["),a=t.indexOf("]");n!=-1&&a!=-1&&(t=t.substring(0,n)+t.substring(n,a).replace(/:/g,";")+t.substring(a,t.length));for(var i=$c.exec(t||""),c={},f=14;f--;)c[Kc[f]]=i[f]||"";return n!=-1&&a!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=Wc(c,c.path),c.queryKey=jc(c,c.query),c};function Wc(e,t){var r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&n.splice(0,1),t.substr(t.length-1,1)=="/"&&n.splice(n.length-1,1),n}function jc(e,t){var r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,a,i){a&&(r[a]=i)}),r}var nn={exports:{}},an={exports:{}},Ye=1e3,Qe=Ye*60,Je=Qe*60,et=Je*24,Xc=et*365.25,Vc=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Gc(e);if(r==="number"&&isNaN(e)===!1)return t.long?Yc(e):Zc(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gc(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Xc;case"days":case"day":case"d":return r*et;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Je;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ye;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Zc(e){return e>=et?Math.round(e/et)+"d":e>=Je?Math.round(e/Je)+"h":e>=Qe?Math.round(e/Qe)+"m":e>=Ye?Math.round(e/Ye)+"s":e+"ms"}function Yc(e){return _t(e,et,"day")||_t(e,Je,"hour")||_t(e,Qe,"minute")||_t(e,Ye,"second")||e+" ms"}function _t(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}(function(e,t){t=e.exports=n.debug=n.default=n,t.coerce=p,t.disable=c,t.enable=i,t.enabled=f,t.humanize=Vc,t.instances=[],t.names=[],t.skips=[],t.formatters={};function r(o){var x=0,h;for(h in o)x=(x<<5)-x+o.charCodeAt(h),x|=0;return t.colors[Math.abs(x)%t.colors.length]}function n(o){var x;function h(){if(h.enabled){var s=h,d=+new Date,v=d-(x||d);s.diff=v,s.prev=x,s.curr=d,x=d;for(var m=new Array(arguments.length),C=0;C<m.length;C++)m[C]=arguments[C];m[0]=t.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var E=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(B,b){if(B==="%%")return B;E++;var F=t.formatters[b];if(typeof F=="function"){var D=m[E];B=F.call(s,D),m.splice(E,1),E--}return B}),t.formatArgs.call(s,m);var y=h.log||t.log||console.log.bind(console);y.apply(s,m)}}return h.namespace=o,h.enabled=t.enabled(o),h.useColors=t.useColors(),h.color=r(o),h.destroy=a,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function a(){var o=t.instances.indexOf(this);return o!==-1?(t.instances.splice(o,1),!0):!1}function i(o){t.save(o),t.names=[],t.skips=[];var x,h=(typeof o=="string"?o:"").split(/[\s,]+/),s=h.length;for(x=0;x<s;x++)h[x]&&(o=h[x].replace(/\*/g,".*?"),o[0]==="-"?t.skips.push(new RegExp("^"+o.substr(1)+"$")):t.names.push(new RegExp("^"+o+"$")));for(x=0;x<t.instances.length;x++){var d=t.instances[x];d.enabled=t.enabled(d.namespace)}}function c(){t.enable("")}function f(o){if(o[o.length-1]==="*")return!0;var x,h;for(x=0,h=t.skips.length;x<h;x++)if(t.skips[x].test(o))return!1;for(x=0,h=t.names.length;x<h;x++)if(t.names[x].test(o))return!0;return!1}function p(o){return o instanceof Error?o.stack||o.message:o}})(an,an.exports);var Qc=an.exports;(function(e,t){t=e.exports=Qc,t.log=a,t.formatArgs=n,t.save=i,t.load=c,t.useColors=r,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:f(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(p){try{return JSON.stringify(p)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}};function n(p){var o=this.useColors;if(p[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+p[0]+(o?"%c ":" ")+"+"+t.humanize(this.diff),!!o){var x="color: "+this.color;p.splice(1,0,x,"color: inherit");var h=0,s=0;p[0].replace(/%[a-zA-Z%]/g,function(d){d!=="%%"&&(h++,d==="%c"&&(s=h))}),p.splice(s,0,x)}}function a(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(p){try{p==null?t.storage.removeItem("debug"):t.storage.debug=p}catch(o){}}function c(){var p;try{p=t.storage.debug}catch(o){}return!p&&typeof process!="undefined"&&"env"in process&&(p=process.env.DEBUG),p}t.enable(c());function f(){try{return window.localStorage}catch(p){}}})(nn,nn.exports);var X0=nn.exports,Jc=zi,Ma=X0("socket.io-client:url"),ef=tf;function tf(e,t){var r=e;t=t||typeof location!="undefined"&&location,e==null&&(e=t.protocol+"//"+t.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=t.protocol+e:e=t.host+e),/^(https?|wss?):\/\//.test(e)||(Ma("protocol-less url %s",e),typeof t!="undefined"?e=t.protocol+"//"+e:e="https://"+e),Ma("parse %s",e),r=Jc(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var n=r.host.indexOf(":")!==-1,a=n?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port,r.href=r.protocol+"://"+a+(t&&t.port===r.port?"":":"+r.port),r}var zt={},Li={exports:{}};(function(e){e.exports=t;function t(n){if(n)return r(n)}function r(n){for(var a in t.prototype)n[a]=t.prototype[a];return n}t.prototype.on=t.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this},t.prototype.once=function(n,a){function i(){this.off(n,i),a.apply(this,arguments)}return i.fn=a,this.on(n,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(n,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var c,f=0;f<i.length;f++)if(c=i[f],c===a||c.fn===a){i.splice(f,1);break}return i.length===0&&delete this._callbacks["$"+n],this},t.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),i=this._callbacks["$"+n],c=1;c<arguments.length;c++)a[c-1]=arguments[c];if(i){i=i.slice(0);for(var c=0,f=i.length;c<f;++c)i[c].apply(this,a)}return this},t.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},t.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(Li);var Ne=Li.exports,Lt={},rf={}.toString,yn=Array.isArray||function(e){return rf.call(e)=="[object Array]"},$i=sf,nf=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",af=typeof ArrayBuffer=="function",of=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function sf(e){return nf&&Buffer.isBuffer(e)||af&&(e instanceof ArrayBuffer||of(e))}var gn=yn,Ki=$i,Wi=Object.prototype.toString,xf=typeof Blob=="function"||typeof Blob!="undefined"&&Wi.call(Blob)==="[object BlobConstructor]",cf=typeof File=="function"||typeof File!="undefined"&&Wi.call(File)==="[object FileConstructor]";Lt.deconstructPacket=function(e){var t=[],r=e.data,n=e;return n.data=on(r,t),n.attachments=t.length,{packet:n,buffers:t}};function on(e,t){if(!e)return e;if(Ki(e)){var r={_placeholder:!0,num:t.length};return t.push(e),r}else if(gn(e)){for(var n=new Array(e.length),a=0;a<e.length;a++)n[a]=on(e[a],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){var n={};for(var i in e)n[i]=on(e[i],t);return n}return e}Lt.reconstructPacket=function(e,t){return e.data=sn(e.data,t),e.attachments=void 0,e};function sn(e,t){if(!e)return e;if(e&&e._placeholder===!0){var r=typeof e.num=="number"&&e.num>=0&&e.num<t.length;if(r)return t[e.num];throw new Error("illegal attachments")}else if(gn(e))for(var n=0;n<e.length;n++)e[n]=sn(e[n],t);else if(typeof e=="object")for(var a in e)e[a]=sn(e[a],t);return e}Lt.removeBlobs=function(e,t){function r(i,c,f){if(!i)return i;if(xf&&i instanceof Blob||cf&&i instanceof File){n++;var p=new FileReader;p.onload=function(){f?f[c]=this.result:a=this.result,--n||t(a)},p.readAsArrayBuffer(i)}else if(gn(i))for(var o=0;o<i.length;o++)r(i[o],o,i);else if(typeof i=="object"&&!Ki(i))for(var x in i)r(i[x],x,i)}var n=0,a=e;r(a),n||t(a)};(function(e){var t=X0("socket.io-parser"),r=Ne,n=Lt,a=yn,i=$i;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=c,e.Decoder=h;function c(){}var f=e.ERROR+'"encode error"';c.prototype.encode=function(E,y){if(t("encoding packet %j",E),e.BINARY_EVENT===E.type||e.BINARY_ACK===E.type)x(E,y);else{var B=p(E);y([B])}};function p(E){var y=""+E.type;if((e.BINARY_EVENT===E.type||e.BINARY_ACK===E.type)&&(y+=E.attachments+"-"),E.nsp&&E.nsp!=="/"&&(y+=E.nsp+","),E.id!=null&&(y+=E.id),E.data!=null){var B=o(E.data);if(B!==!1)y+=B;else return f}return t("encoded %j as %s",E,y),y}function o(E){try{return JSON.stringify(E)}catch(y){return!1}}function x(E,y){function B(b){var F=n.deconstructPacket(b),D=p(F.packet),T=F.buffers;T.unshift(D),y(T)}n.removeBlobs(E,B)}function h(){this.reconstructor=null}r(h.prototype),h.prototype.add=function(E){var y;if(typeof E=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");y=d(E),e.BINARY_EVENT===y.type||e.BINARY_ACK===y.type?(this.reconstructor=new m(y),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",y)):this.emit("decoded",y)}else if(i(E)||E.base64)if(this.reconstructor)y=this.reconstructor.takeBinaryData(E),y&&(this.reconstructor=null,this.emit("decoded",y));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+E)};function s(E,y){switch(E){case 0:return typeof y=="object";case 1:return y===void 0;case 4:return typeof y=="string"||typeof y=="object";case 2:case 5:return a(y)&&(typeof y[0]=="string"||typeof y[0]=="number");case 3:case 6:return a(y)}}function d(E){var y=0,B={type:Number(E.charAt(0))};if(e.types[B.type]==null)return C("unknown packet type "+B.type);if(e.BINARY_EVENT===B.type||e.BINARY_ACK===B.type){for(var b=y+1;E.charAt(++y)!=="-"&&y!=E.length;);var F=E.substring(b,y);if(F!=Number(F)||E.charAt(y)!=="-")throw new Error("Illegal attachments");B.attachments=Number(F)}if(E.charAt(y+1)==="/"){for(var b=y+1;++y;){var D=E.charAt(y);if(D===","||y===E.length)break}B.nsp=E.substring(b,y)}else B.nsp="/";var T=E.charAt(y+1);if(T!==""&&Number(T)==T){for(var b=y+1;++y;){var D=E.charAt(y);if(D==null||Number(D)!=D){--y;break}if(y===E.length)break}B.id=Number(E.substring(b,y+1))}if(E.charAt(++y)){var P=v(E.substr(y));if(s(B.type,P))B.data=P;else throw new Error("invalid payload")}return t("decoded %s as %j",E,B),B}function v(E){try{return JSON.parse(E)}catch(y){return!1}}h.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function m(E){this.reconPack=E,this.buffers=[]}m.prototype.takeBinaryData=function(E){if(this.buffers.push(E),this.buffers.length===this.reconPack.attachments){var y=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),y}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function C(E){return{type:e.ERROR,data:"parser error: "+E}}})(zt);var mn={exports:{}},$t={},xn={exports:{}};try{xn.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){xn.exports=!1}var ff=xn.exports,Bn=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}(),df=ff,uf=Bn,Cn=function(e){var t=e.xdomain,r=e.xscheme,n=e.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!t||df))return new XMLHttpRequest}catch(a){}try{if(typeof XDomainRequest!="undefined"&&!r&&n)return new XDomainRequest}catch(a){}if(!t)try{return new uf[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(a){}},_n={exports:{}},ge={},hf=Object.keys||function(t){var r=[],n=Object.prototype.hasOwnProperty;for(var a in t)n.call(t,a)&&r.push(a);return r},lf=yn,ji=Object.prototype.toString,pf=typeof Blob=="function"||typeof Blob!="undefined"&&ji.call(Blob)==="[object BlobConstructor]",bf=typeof File=="function"||typeof File!="undefined"&&ji.call(File)==="[object FileConstructor]",Xi=St;function St(e){if(!e||typeof e!="object")return!1;if(lf(e)){for(var t=0,r=e.length;t<r;t++)if(St(e[t]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||pf&&e instanceof Blob||bf&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return St(e.toJSON(),!0);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&St(e[n]))return!0;return!1}var vf=function(e,t,r){var n=e.byteLength;if(t=t||0,r=r||n,e.slice)return e.slice(t,r);if(t<0&&(t+=n),r<0&&(r+=n),r>n&&(r=n),t>=n||t>=r||n===0)return new ArrayBuffer(0);for(var a=new Uint8Array(e),i=new Uint8Array(r-t),c=t,f=0;c<r;c++,f++)i[f]=a[c];return i.buffer},yf=gf;function gf(e,t,r){var n=!1;return r=r||mf,a.count=e,e===0?t():a;function a(i,c){if(a.count<=0)throw new Error("after called too many times");--a.count,i?(n=!0,t(i),t=r):a.count===0&&!n&&t(null,c)}}function mf(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var ee=String.fromCharCode;function Vi(e){for(var t=[],r=0,n=e.length,a,i;r<n;)a=e.charCodeAt(r++),a>=55296&&a<=56319&&r<n?(i=e.charCodeAt(r++),(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)):t.push(a);return t}function Bf(e){for(var t=e.length,r=-1,n,a="";++r<t;)n=e[r],n>65535&&(n-=65536,a+=ee(n>>>10&1023|55296),n=56320|n&1023),a+=ee(n);return a}function Gi(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Vr(e,t){return ee(e>>t&63|128)}function Cf(e,t){if(!(e&4294967168))return ee(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=ee(e>>18&7|240),r+=Vr(e,12),r+=Vr(e,6)):(Gi(e,t)||(e=65533),r=ee(e>>12&15|224),r+=Vr(e,6)):r=ee(e>>6&31|192),r+=ee(e&63|128),r}function _f(e,t){t=t||{};for(var r=t.strict!==!1,n=Vi(e),a=n.length,i=-1,c,f="";++i<a;)c=n[i],f+=Cf(c,r);return f}function Ee(){if(re>=Ot)throw Error("Invalid byte index");var e=qt[re]&255;if(re++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function Ef(e){var t,r,n,a,i;if(re>Ot)throw Error("Invalid byte index");if(re==Ot)return!1;if(t=qt[re]&255,re++,!(t&128))return t;if((t&224)==192){if(r=Ee(),i=(t&31)<<6|r,i>=128)return i;throw Error("Invalid continuation byte")}if((t&240)==224){if(r=Ee(),n=Ee(),i=(t&15)<<12|r<<6|n,i>=2048)return Gi(i,e)?i:65533;throw Error("Invalid continuation byte")}if((t&248)==240&&(r=Ee(),n=Ee(),a=Ee(),i=(t&7)<<18|r<<12|n<<6|a,i>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}var qt,Ot,re;function Ff(e,t){t=t||{};var r=t.strict!==!1;qt=Vi(e),Ot=qt.length,re=0;for(var n=[],a;(a=Ef(r))!==!1;)n.push(a);return Bf(n)}var Af={version:"2.1.2",encode:_f,decode:Ff},Et={},Ua;function Df(){return Ua||(Ua=1,function(e){Et.encode=function(t){var r=new Uint8Array(t),n,a=r.length,i="";for(n=0;n<a;n+=3)i+=e[r[n]>>2],i+=e[(r[n]&3)<<4|r[n+1]>>4],i+=e[(r[n+1]&15)<<2|r[n+2]>>6],i+=e[r[n+2]&63];return a%3===2?i=i.substring(0,i.length-1)+"=":a%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Et.decode=function(t){var r=t.length*.75,n=t.length,a,i=0,c,f,p,o;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);var x=new ArrayBuffer(r),h=new Uint8Array(x);for(a=0;a<n;a+=4)c=e.indexOf(t[a]),f=e.indexOf(t[a+1]),p=e.indexOf(t[a+2]),o=e.indexOf(t[a+3]),h[i++]=c<<2|f>>4,h[i++]=(f&15)<<4|p>>2,h[i++]=(p&3)<<6|o&63;return x}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),Et}var Gr,za;function wf(){if(za)return Gr;za=1;var e=typeof e!="undefined"?e:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,t=function(){try{var f=new Blob(["hi"]);return f.size===2}catch(p){return!1}}(),r=t&&function(){try{var f=new Blob([new Uint8Array([1,2])]);return f.size===2}catch(p){return!1}}(),n=e&&e.prototype.append&&e.prototype.getBlob;function a(f){return f.map(function(p){if(p.buffer instanceof ArrayBuffer){var o=p.buffer;if(p.byteLength!==o.byteLength){var x=new Uint8Array(p.byteLength);x.set(new Uint8Array(o,p.byteOffset,p.byteLength)),o=x.buffer}return o}return p})}function i(f,p){p=p||{};var o=new e;return a(f).forEach(function(x){o.append(x)}),p.type?o.getBlob(p.type):o.getBlob()}function c(f,p){return new Blob(a(f),p||{})}return typeof Blob!="undefined"&&(i.prototype=Blob.prototype,c.prototype=Blob.prototype),Gr=function(){return t?r?Blob:c:n?i:void 0}(),Gr}(function(e){var t=hf,r=Xi,n=vf,a=yf,i=Af,c;typeof ArrayBuffer!="undefined"&&(c=Df());var f=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),p=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),o=f||p;e.protocol=3;var x=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},h=t(x),s={type:"error",data:"parser error"},d=wf();e.encodePacket=function(b,F,D,T){typeof F=="function"&&(T=F,F=!1),typeof D=="function"&&(T=D,D=null);var P=b.data===void 0?void 0:b.data.buffer||b.data;if(typeof ArrayBuffer!="undefined"&&P instanceof ArrayBuffer)return m(b,F,T);if(typeof d!="undefined"&&P instanceof d)return E(b,F,T);if(P&&P.base64)return v(b,T);var H=x[b.type];return b.data!==void 0&&(H+=D?i.encode(String(b.data),{strict:!1}):String(b.data)),T(""+H)};function v(b,F){var D="b"+e.packets[b.type]+b.data.data;return F(D)}function m(b,F,D){if(!F)return e.encodeBase64Packet(b,D);var T=b.data,P=new Uint8Array(T),H=new Uint8Array(1+T.byteLength);H[0]=x[b.type];for(var S=0;S<P.length;S++)H[S+1]=P[S];return D(H.buffer)}function C(b,F,D){if(!F)return e.encodeBase64Packet(b,D);var T=new FileReader;return T.onload=function(){e.encodePacket({type:b.type,data:T.result},F,!0,D)},T.readAsArrayBuffer(b.data)}function E(b,F,D){if(!F)return e.encodeBase64Packet(b,D);if(o)return C(b,F,D);var T=new Uint8Array(1);T[0]=x[b.type];var P=new d([T.buffer,b.data]);return D(P)}e.encodeBase64Packet=function(b,F){var D="b"+e.packets[b.type];if(typeof d!="undefined"&&b.data instanceof d){var T=new FileReader;return T.onload=function(){var q=T.result.split(",")[1];F(D+q)},T.readAsDataURL(b.data)}var P;try{P=String.fromCharCode.apply(null,new Uint8Array(b.data))}catch(q){for(var H=new Uint8Array(b.data),S=new Array(H.length),A=0;A<H.length;A++)S[A]=H[A];P=String.fromCharCode.apply(null,S)}return D+=btoa(P),F(D)},e.decodePacket=function(b,F,D){if(b===void 0)return s;if(typeof b=="string"){if(b.charAt(0)==="b")return e.decodeBase64Packet(b.substr(1),F);if(D&&(b=y(b),b===!1))return s;var P=b.charAt(0);return Number(P)!=P||!h[P]?s:b.length>1?{type:h[P],data:b.substring(1)}:{type:h[P]}}var T=new Uint8Array(b),P=T[0],H=n(b,1);return d&&F==="blob"&&(H=new d([H])),{type:h[P],data:H}};function y(b){try{b=i.decode(b,{strict:!1})}catch(F){return!1}return b}e.decodeBase64Packet=function(b,F){var D=h[b.charAt(0)];if(!c)return{type:D,data:{base64:!0,data:b.substr(1)}};var T=c.decode(b.substr(1));return F==="blob"&&d&&(T=new d([T])),{type:D,data:T}},e.encodePayload=function(b,F,D){typeof F=="function"&&(D=F,F=null);var T=r(b);if(F&&T)return d&&!o?e.encodePayloadAsBlob(b,D):e.encodePayloadAsArrayBuffer(b,D);if(!b.length)return D("0:");function P(S){return S.length+":"+S}function H(S,A){e.encodePacket(S,T?F:!1,!1,function(q){A(null,P(q))})}B(b,H,function(S,A){return D(A.join(""))})};function B(b,F,D){for(var T=new Array(b.length),P=a(b.length,D),H=function(A,q,N){F(q,function(z,L){T[A]=L,N(z,T)})},S=0;S<b.length;S++)H(S,b[S],P)}e.decodePayload=function(b,F,D){if(typeof b!="string")return e.decodePayloadAsBinary(b,F,D);typeof F=="function"&&(D=F,F=null);var T;if(b==="")return D(s,0,1);for(var P="",H,S,A=0,q=b.length;A<q;A++){var N=b.charAt(A);if(N!==":"){P+=N;continue}if(P===""||P!=(H=Number(P))||(S=b.substr(A+1,H),P!=S.length))return D(s,0,1);if(S.length){if(T=e.decodePacket(S,F,!1),s.type===T.type&&s.data===T.data)return D(s,0,1);var z=D(T,A+H,q);if(z===!1)return}A+=H,P=""}if(P!=="")return D(s,0,1)},e.encodePayloadAsArrayBuffer=function(b,F){if(!b.length)return F(new ArrayBuffer(0));function D(T,P){e.encodePacket(T,!0,!0,function(H){return P(null,H)})}B(b,D,function(T,P){var H=P.reduce(function(q,N){var z;return typeof N=="string"?z=N.length:z=N.byteLength,q+z.toString().length+z+2},0),S=new Uint8Array(H),A=0;return P.forEach(function(q){var N=typeof q=="string",z=q;if(N){for(var Y=new Uint8Array(q.length),L=0;L<q.length;L++)Y[L]=q.charCodeAt(L);z=Y.buffer}N?S[A++]=0:S[A++]=1;for(var X=z.byteLength.toString(),L=0;L<X.length;L++)S[A++]=parseInt(X[L]);S[A++]=255;for(var Y=new Uint8Array(z),L=0;L<Y.length;L++)S[A++]=Y[L]}),F(S.buffer)})},e.encodePayloadAsBlob=function(b,F){function D(T,P){e.encodePacket(T,!0,!0,function(H){var S=new Uint8Array(1);if(S[0]=1,typeof H=="string"){for(var A=new Uint8Array(H.length),q=0;q<H.length;q++)A[q]=H.charCodeAt(q);H=A.buffer,S[0]=0}for(var N=H instanceof ArrayBuffer?H.byteLength:H.size,z=N.toString(),L=new Uint8Array(z.length+1),q=0;q<z.length;q++)L[q]=parseInt(z[q]);if(L[z.length]=255,d){var X=new d([S.buffer,L.buffer,H]);P(null,X)}})}B(b,D,function(T,P){return F(new d(P))})},e.decodePayloadAsBinary=function(b,F,D){typeof F=="function"&&(D=F,F=null);for(var T=b,P=[];T.byteLength>0;){for(var H=new Uint8Array(T),S=H[0]===0,A="",q=1;H[q]!==255;q++){if(A.length>310)return D(s,0,1);A+=H[q]}T=n(T,2+A.length),A=parseInt(A);var N=n(T,0,A);if(S)try{N=String.fromCharCode.apply(null,new Uint8Array(N))}catch(X){var z=new Uint8Array(N);N="";for(var q=0;q<z.length;q++)N+=String.fromCharCode(z[q])}P.push(N),T=n(T,A)}var L=P.length;P.forEach(function(X,Y){D(e.decodePacket(X,F,!0),Y,L)})}})(ge);var Zr,La;function En(){if(La)return Zr;La=1;var e=ge,t=Ne;Zr=r;function r(n){this.path=n.path,this.hostname=n.hostname,this.port=n.port,this.secure=n.secure,this.query=n.query,this.timestampParam=n.timestampParam,this.timestampRequests=n.timestampRequests,this.readyState="",this.agent=n.agent||!1,this.socket=n.socket,this.enablesXDR=n.enablesXDR,this.withCredentials=n.withCredentials,this.pfx=n.pfx,this.key=n.key,this.passphrase=n.passphrase,this.cert=n.cert,this.ca=n.ca,this.ciphers=n.ciphers,this.rejectUnauthorized=n.rejectUnauthorized,this.forceNode=n.forceNode,this.isReactNative=n.isReactNative,this.extraHeaders=n.extraHeaders,this.localAddress=n.localAddress}return t(r.prototype),r.prototype.onError=function(n,a){var i=new Error(n);return i.type="TransportError",i.description=a,this.emit("error",i),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(n){if(this.readyState==="open")this.write(n);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(n){var a=e.decodePacket(n,this.socket.binaryType);this.onPacket(a)},r.prototype.onPacket=function(n){this.emit("packet",n)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Zr}var Me={};Me.encode=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t};Me.decode=function(e){for(var t={},r=e.split("&"),n=0,a=r.length;n<a;n++){var i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t};var Kt=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},Zi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ht=64,Yi={},$a=0,ne=0,Ka;function cn(e){var t="";do t=Zi[e%Ht]+t,e=Math.floor(e/Ht);while(e>0);return t}function Sf(e){var t=0;for(ne=0;ne<e.length;ne++)t=t*Ht+Yi[e.charAt(ne)];return t}function Fn(){var e=cn(+new Date);return e!==Ka?($a=0,Ka=e):e+"."+cn($a++)}for(;ne<Ht;ne++)Yi[Zi[ne]]=ne;Fn.encode=cn;Fn.decode=Sf;var Qi=Fn,Ji=En(),Tf=Me,eo=ge,kf=Kt,Rf=Qi,N0=X0("engine.io-client:polling"),to=$0,Pf=function(){var e=Cn,t=new e({xdomain:!1});return t.responseType!=null}();function $0(e){var t=e&&e.forceBase64;(!Pf||t)&&(this.supportsBinary=!1),Ji.call(this,e)}kf($0,Ji);$0.prototype.name="polling";$0.prototype.doOpen=function(){this.poll()};$0.prototype.pause=function(e){var t=this;this.readyState="pausing";function r(){N0("paused"),t.readyState="paused",e()}if(this.polling||!this.writable){var n=0;this.polling&&(N0("we are currently polling - waiting to pause"),n++,this.once("pollComplete",function(){N0("pre-pause polling complete"),--n||r()})),this.writable||(N0("we are currently writing - waiting to pause"),n++,this.once("drain",function(){N0("pre-pause writing complete"),--n||r()}))}else r()};$0.prototype.poll=function(){N0("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};$0.prototype.onData=function(e){var t=this;N0("polling got data %s",e);var r=function(n,a,i){if(t.readyState==="opening"&&n.type==="open"&&t.onOpen(),n.type==="close")return t.onClose(),!1;t.onPacket(n)};eo.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():N0('ignoring poll - transport state "%s"',this.readyState))};$0.prototype.doClose=function(){var e=this;function t(){N0("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(N0("transport open - closing"),t()):(N0("transport not open - deferring close"),this.once("open",t))};$0.prototype.write=function(e){var t=this;this.writable=!1;var r=function(){t.writable=!0,t.emit("drain")};eo.encodePayload(e,this.supportsBinary,function(n){t.doWrite(n,r)})};$0.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=Rf()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=Tf.encode(e),this.port&&(t==="https"&&Number(this.port)!==443||t==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var n=this.hostname.indexOf(":")!==-1;return t+"://"+(n?"["+this.hostname+"]":this.hostname)+r+this.path+e};var If=Cn,ro=to,qf=Ne,Of=Kt,fn=X0("engine.io-client:polling-xhr"),Hf=Bn;_n.exports=Ue;_n.exports.Request=f0;function Wa(){}function Ue(e){if(ro.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location!="undefined"){var t=location.protocol==="https:",r=location.port;r||(r=t?443:80),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}}Of(Ue,ro);Ue.prototype.supportsBinary=!0;Ue.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new f0(e)};Ue.prototype.doWrite=function(e,t){var r=typeof e!="string"&&e!==void 0,n=this.request({method:"POST",data:e,isBinary:r}),a=this;n.on("success",t),n.on("error",function(i){a.onError("xhr post error",i)}),this.sendXhr=n};Ue.prototype.doPoll=function(){fn("xhr poll");var e=this.request(),t=this;e.on("data",function(r){t.onData(r)}),e.on("error",function(r){t.onError("xhr poll error",r)}),this.pollXhr=e};function f0(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}qf(f0.prototype);f0.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new If(e),r=this;try{fn("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(var n in this.extraHeaders)this.extraHeaders.hasOwnProperty(n)&&t.setRequestHeader(n,this.extraHeaders[n])}}catch(a){}if(this.method==="POST")try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(a){}try{t.setRequestHeader("Accept","*/*")}catch(a){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(t.readyState===2)try{var a=t.getResponseHeader("Content-Type");(r.supportsBinary&&a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8")&&(t.responseType="arraybuffer")}catch(i){}t.readyState===4&&(t.status===200||t.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof t.status=="number"?t.status:0)},0))},fn("xhr data %s",this.data),t.send(this.data)}catch(a){setTimeout(function(){r.onError(a)},0);return}typeof document!="undefined"&&(this.index=f0.requestsCount++,f0.requests[this.index]=this)};f0.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};f0.prototype.onData=function(e){this.emit("data",e),this.onSuccess()};f0.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)};f0.prototype.cleanup=function(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Wa:this.xhr.onreadystatechange=Wa,e)try{this.xhr.abort()}catch(t){}typeof document!="undefined"&&delete f0.requests[this.index],this.xhr=null}};f0.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(r){}t==="application/octet-stream"||t==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)};f0.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};f0.prototype.abort=function(){this.cleanup()};f0.requestsCount=0;f0.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",ja);else if(typeof addEventListener=="function"){var Nf="onpagehide"in Hf?"pagehide":"unload";addEventListener(Nf,ja,!1)}}function ja(){for(var e in f0.requests)f0.requests.hasOwnProperty(e)&&f0.requests[e].abort()}var Mf=_n.exports,An=to,Uf=Kt,Xa=Bn,zf=ze,Lf=/\n/g,$f=/\\n/g,Ft;function Kf(){}function ze(e){An.call(this,e),this.query=this.query||{},Ft||(Ft=Xa.___eio=Xa.___eio||[]),this.index=Ft.length;var t=this;Ft.push(function(r){t.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){t.script&&(t.script.onerror=Kf)},!1)}Uf(ze,An);ze.prototype.supportsBinary=!1;ze.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),An.prototype.doClose.call(this)};ze.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(a){e.onError("jsonp poll error",a)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t;var n=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);n&&setTimeout(function(){var a=document.createElement("iframe");document.body.appendChild(a),document.body.removeChild(a)},100)};ze.prototype.doWrite=function(e,t){var r=this;if(!this.form){var n=document.createElement("form"),a=document.createElement("textarea"),i=this.iframeId="eio_iframe_"+this.index,c;n.className="socketio",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",n.target=i,n.method="POST",n.setAttribute("accept-charset","utf-8"),a.name="d",n.appendChild(a),document.body.appendChild(n),this.form=n,this.area=a}this.form.action=this.uri();function f(){p(),t()}function p(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(x){r.onError("jsonp polling iframe removal error",x)}try{var o='<iframe src="javascript:0" name="'+r.iframeId+'">';c=document.createElement(o)}catch(x){c=document.createElement("iframe"),c.name=r.iframeId,c.src="javascript:0"}c.id=r.iframeId,r.form.appendChild(c),r.iframe=c}p(),e=e.replace($f,`\\
|
|
21
|
-
`),this.area.value=e.replace(Lf,"\\n");try{this.form.submit()}catch(o){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&f()}:this.iframe.onload=f};var Dn=En(),Wf=ge,jf=Me,Xf=Kt,Vf=Qi,Gf=X0("engine.io-client:websocket"),Nt,wn;typeof WebSocket!="undefined"?Nt=WebSocket:typeof self!="undefined"&&(Nt=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{wn=oi}catch(e){}var Pe=Nt||wn,Zf=R0;function R0(e){var t=e&&e.forceBase64;t&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=Nt&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(Pe=wn),Dn.call(this,e)}Xf(R0,Dn);R0.prototype.name="websocket";R0.prototype.supportsBinary=!0;R0.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,r={};this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new Pe(e,t):new Pe(e):new Pe(e,t,r)}catch(n){return this.emit("error",n)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};R0.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}};R0.prototype.write=function(e){var t=this;this.writable=!1;for(var r=e.length,n=0,a=r;n<a;n++)(function(c){Wf.encodePacket(c,t.supportsBinary,function(f){if(!t.usingBrowserWebSocket){var p={};if(c.options&&(p.compress=c.options.compress),t.perMessageDeflate){var o=typeof f=="string"?Buffer.byteLength(f):f.length;o<t.perMessageDeflate.threshold&&(p.compress=!1)}}try{t.usingBrowserWebSocket?t.ws.send(f):t.ws.send(f,p)}catch(x){Gf("websocket closed before onclose event")}--r||i()})})(e[n]);function i(){t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0)}};R0.prototype.onClose=function(){Dn.prototype.onClose.call(this)};R0.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};R0.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",r="";this.port&&(t==="wss"&&Number(this.port)!==443||t==="ws"&&Number(this.port)!==80)&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=Vf()),this.supportsBinary||(e.b64=1),e=jf.encode(e),e.length&&(e="?"+e);var n=this.hostname.indexOf(":")!==-1;return t+"://"+(n?"["+this.hostname+"]":this.hostname)+r+this.path+e};R0.prototype.check=function(){return!!Pe&&!("__initialize"in Pe&&this.name===R0.prototype.name)};var Yf=Cn,Qf=Mf,Jf=zf,e1=Zf;$t.polling=t1;$t.websocket=e1;function t1(e){var t,r=!1,n=!1,a=e.jsonp!==!1;if(typeof location!="undefined"){var i=location.protocol==="https:",c=location.port;c||(c=i?443:80),r=e.hostname!==location.hostname||c!==e.port,n=e.secure!==i}if(e.xdomain=r,e.xscheme=n,t=new Yf(e),"open"in t&&!e.forceJSONP)return new Qf(e);if(!a)throw new Error("JSONP disabled");return new Jf(e)}var r1=[].indexOf,no=function(e,t){if(r1)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1},n1=$t,a1=Ne,c0=X0("engine.io-client:socket"),i1=no,ao=ge,Va=zi,o1=Me,s1=J;function J(e,t){if(!(this instanceof J))return new J(e,t);t=t||{},e&&typeof e=="object"&&(t=e,e=null),e?(e=Va(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Va(t.host).host),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=t.query||{},typeof this.query=="string"&&(this.query=o1.decode(this.query)),this.upgrade=t.upgrade!==!1,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=t.jsonp!==!1,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=t.withCredentials!==!1,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=t.perMessageDeflate!==!1?t.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=t.rejectUnauthorized===void 0?!0:t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}J.priorWebsocketSuccess=!1;a1(J.prototype);J.protocol=ao.protocol;J.Socket=J;J.Transport=En();J.transports=$t;J.parser=ge;J.prototype.createTransport=function(e){c0('creating transport "%s"',e);var t=x1(this.query);t.EIO=ao.protocol,t.transport=e;var r=this.transportOptions[e]||{};this.id&&(t.sid=this.id);var n=new n1[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative});return n};function x1(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}J.prototype.open=function(){var e;if(this.rememberUpgrade&&J.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var t=this;setTimeout(function(){t.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(r){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)};J.prototype.setTransport=function(e){c0("setting transport %s",e.name);var t=this;this.transport&&(c0("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(r){t.onPacket(r)}).on("error",function(r){t.onError(r)}).on("close",function(){t.onClose("transport close")})};J.prototype.probe=function(e){c0('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,n=this;J.priorWebsocketSuccess=!1;function a(){if(n.onlyBinaryUpgrades){var h=!this.supportsBinary&&n.transport.supportsBinary;r=r||h}r||(c0('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(s){if(!r)if(s.type==="pong"&&s.data==="probe"){if(c0('probe transport "%s" pong',e),n.upgrading=!0,n.emit("upgrading",t),!t)return;J.priorWebsocketSuccess=t.name==="websocket",c0('pausing current transport "%s"',n.transport.name),n.transport.pause(function(){r||n.readyState!=="closed"&&(c0("changing transport and sending upgrade packet"),x(),n.setTransport(t),t.send([{type:"upgrade"}]),n.emit("upgrade",t),t=null,n.upgrading=!1,n.flush())})}else{c0('probe transport "%s" failed',e);var d=new Error("probe error");d.transport=t.name,n.emit("upgradeError",d)}}))}function i(){r||(r=!0,x(),t.close(),t=null)}function c(h){var s=new Error("probe error: "+h);s.transport=t.name,i(),c0('probe transport "%s" failed because of error: %s',e,h),n.emit("upgradeError",s)}function f(){c("transport closed")}function p(){c("socket closed")}function o(h){t&&h.name!==t.name&&(c0('"%s" works - aborting "%s"',h.name,t.name),i())}function x(){t.removeListener("open",a),t.removeListener("error",c),t.removeListener("close",f),n.removeListener("close",p),n.removeListener("upgrading",o)}t.once("open",a),t.once("error",c),t.once("close",f),this.once("close",p),this.once("upgrading",o),t.open()};J.prototype.onOpen=function(){if(c0("socket open"),this.readyState="open",J.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){c0("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}};J.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(c0('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else c0('packet received with socket readyState "%s"',this.readyState)};J.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};J.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){t.readyState!=="closed"&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)};J.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){c0("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)};J.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})};J.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};J.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(c0("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};J.prototype.write=J.prototype.send=function(e,t,r){return this.sendPacket("message",e,t,r),this};J.prototype.sendPacket=function(e,t,r,n){if(typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=null),!(this.readyState==="closing"||this.readyState==="closed")){r=r||{},r.compress=r.compress!==!1;var a={type:e,data:t,options:r};this.emit("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),this.flush()}};J.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}function t(){e.onClose("forced close"),c0("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),t()}function n(){e.once("upgrade",r),e.once("upgradeError",r)}return this};J.prototype.onError=function(e){c0("socket error %j",e),J.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)};J.prototype.onClose=function(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){c0('socket close with reason: "%s"',e);var r=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),r.writeBuffer=[],r.prevBufferLen=0}};J.prototype.filterUpgrades=function(e){for(var t=[],r=0,n=e.length;r<n;r++)~i1(this.transports,e[r])&&t.push(e[r]);return t};mn.exports=s1;mn.exports.parser=ge;var c1=mn.exports,io={exports:{}},f1=d1;function d1(e,t){var r=[];t=t||0;for(var n=t||0;n<e.length;n++)r[n-t]=e[n];return r}var oo=u1;function u1(e,t,r){return e.on(t,r),{destroy:function(){e.removeListener(t,r)}}}var Ga=[].slice,so=function(e,t){if(typeof t=="string"&&(t=e[t]),typeof t!="function")throw new Error("bind() requires a function");var r=Ga.call(arguments,2);return function(){return t.apply(e,r.concat(Ga.call(arguments)))}};(function(e,t){var r=zt,n=Ne,a=f1,i=oo,c=so,f=X0("socket.io-client:socket"),p=Me,o=Xi;e.exports=s;var x={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=n.prototype.emit;function s(d,v,m){this.io=d,this.nsp=v,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},m&&m.query&&(this.query=m.query),this.io.autoConnect&&this.open()}n(s.prototype),s.prototype.subEvents=function(){if(!this.subs){var d=this.io;this.subs=[i(d,"open",c(this,"onopen")),i(d,"packet",c(this,"onpacket")),i(d,"close",c(this,"onclose"))]}},s.prototype.open=s.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},s.prototype.send=function(){var d=a(arguments);return d.unshift("message"),this.emit.apply(this,d),this},s.prototype.emit=function(d){if(x.hasOwnProperty(d))return h.apply(this,arguments),this;var v=a(arguments),m={type:(this.flags.binary!==void 0?this.flags.binary:o(v))?r.BINARY_EVENT:r.EVENT,data:v};return m.options={},m.options.compress=!this.flags||this.flags.compress!==!1,typeof v[v.length-1]=="function"&&(f("emitting packet with ack id %d",this.ids),this.acks[this.ids]=v.pop(),m.id=this.ids++),this.connected?this.packet(m):this.sendBuffer.push(m),this.flags={},this},s.prototype.packet=function(d){d.nsp=this.nsp,this.io.packet(d)},s.prototype.onopen=function(){if(f("transport is open - connecting"),this.nsp!=="/")if(this.query){var d=typeof this.query=="object"?p.encode(this.query):this.query;f("sending connect packet with query %s",d),this.packet({type:r.CONNECT,query:d})}else this.packet({type:r.CONNECT})},s.prototype.onclose=function(d){f("close (%s)",d),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",d)},s.prototype.onpacket=function(d){var v=d.nsp===this.nsp,m=d.type===r.ERROR&&d.nsp==="/";if(!(!v&&!m))switch(d.type){case r.CONNECT:this.onconnect();break;case r.EVENT:this.onevent(d);break;case r.BINARY_EVENT:this.onevent(d);break;case r.ACK:this.onack(d);break;case r.BINARY_ACK:this.onack(d);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",d.data);break}},s.prototype.onevent=function(d){var v=d.data||[];f("emitting event %j",v),d.id!=null&&(f("attaching ack callback to event"),v.push(this.ack(d.id))),this.connected?h.apply(this,v):this.receiveBuffer.push(v)},s.prototype.ack=function(d){var v=this,m=!1;return function(){if(!m){m=!0;var C=a(arguments);f("sending ack %j",C),v.packet({type:o(C)?r.BINARY_ACK:r.ACK,id:d,data:C})}}},s.prototype.onack=function(d){var v=this.acks[d.id];typeof v=="function"?(f("calling ack %s with %j",d.id,d.data),v.apply(this,d.data),delete this.acks[d.id]):f("bad ack %s",d.id)},s.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},s.prototype.emitBuffered=function(){var d;for(d=0;d<this.receiveBuffer.length;d++)h.apply(this,this.receiveBuffer[d]);for(this.receiveBuffer=[],d=0;d<this.sendBuffer.length;d++)this.packet(this.sendBuffer[d]);this.sendBuffer=[]},s.prototype.ondisconnect=function(){f("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},s.prototype.destroy=function(){if(this.subs){for(var d=0;d<this.subs.length;d++)this.subs[d].destroy();this.subs=null}this.io.destroy(this)},s.prototype.close=s.prototype.disconnect=function(){return this.connected&&(f("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},s.prototype.compress=function(d){return this.flags.compress=d,this},s.prototype.binary=function(d){return this.flags.binary=d,this}})(io);var xo=io.exports,h1=Le;function Le(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Le.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};Le.prototype.reset=function(){this.attempts=0};Le.prototype.setMin=function(e){this.ms=e};Le.prototype.setMax=function(e){this.max=e};Le.prototype.setJitter=function(e){this.jitter=e};var l1=c1,p1=xo,b1=Ne,v1=zt,J0=oo,Fe=so,v0=X0("socket.io-client:manager"),co=no,y1=h1,fo=Object.prototype.hasOwnProperty,Za=i0;function i0(e,t){if(!(this instanceof i0))return new i0(e,t);e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new y1({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=t.parser||v1;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=t.autoConnect!==!1,this.autoConnect&&this.open()}i0.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)fo.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)};i0.prototype.updateSocketIds=function(){for(var e in this.nsps)fo.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))};i0.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id};b1(i0.prototype);i0.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection};i0.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts};i0.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay};i0.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor};i0.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax};i0.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout};i0.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};i0.prototype.open=i0.prototype.connect=function(e,t){if(v0("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;v0("opening %s",this.uri),this.engine=l1(this.uri,this.opts);var r=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var a=J0(r,"open",function(){n.onopen(),e&&e()}),i=J0(r,"error",function(p){if(v0("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",p),e){var o=new Error("Connection error");o.data=p,e(o)}else n.maybeReconnectOnOpen()});if(this._timeout!==!1){var c=this._timeout;v0("connect attempt will timeout after %d",c),c===0&&a.destroy();var f=setTimeout(function(){v0("connect attempt timed out after %d",c),a.destroy(),r.close(),r.emit("error","timeout"),n.emitAll("connect_timeout",c)},c);this.subs.push({destroy:function(){clearTimeout(f)}})}return this.subs.push(a),this.subs.push(i),this};i0.prototype.onopen=function(){v0("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(J0(e,"data",Fe(this,"ondata"))),this.subs.push(J0(e,"ping",Fe(this,"onping"))),this.subs.push(J0(e,"pong",Fe(this,"onpong"))),this.subs.push(J0(e,"error",Fe(this,"onerror"))),this.subs.push(J0(e,"close",Fe(this,"onclose"))),this.subs.push(J0(this.decoder,"decoded",Fe(this,"ondecoded")))};i0.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};i0.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};i0.prototype.ondata=function(e){this.decoder.add(e)};i0.prototype.ondecoded=function(e){this.emit("packet",e)};i0.prototype.onerror=function(e){v0("error",e),this.emitAll("error",e)};i0.prototype.socket=function(e,t){var r=this.nsps[e];if(!r){r=new p1(this,e,t),this.nsps[e]=r;var n=this;r.on("connecting",a),r.on("connect",function(){r.id=n.generateId(e)}),this.autoConnect&&a()}function a(){~co(n.connecting,r)||n.connecting.push(r)}return r};i0.prototype.destroy=function(e){var t=co(this.connecting,e);~t&&this.connecting.splice(t,1),!this.connecting.length&&this.close()};i0.prototype.packet=function(e){v0("writing packet %j",e);var t=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(r){for(var n=0;n<r.length;n++)t.engine.write(r[n],e.options);t.encoding=!1,t.processPacketQueue()}))};i0.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}};i0.prototype.cleanup=function(){v0("cleanup");for(var e=this.subs.length,t=0;t<e;t++){var r=this.subs.shift();r.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};i0.prototype.close=i0.prototype.disconnect=function(){v0("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};i0.prototype.onclose=function(e){v0("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()};i0.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)v0("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();v0("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var r=setTimeout(function(){e.skipReconnect||(v0("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(n){n?(v0("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",n.data)):(v0("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(r)}})}};i0.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)};(function(e,t){var r=ef,n=zt,a=Za,i=X0("socket.io-client");e.exports=t=f;var c=t.managers={};function f(p,o){typeof p=="object"&&(o=p,p=void 0),o=o||{};var x=r(p),h=x.source,s=x.id,d=x.path,v=c[s]&&d in c[s].nsps,m=o.forceNew||o["force new connection"]||o.multiplex===!1||v,C;return m?(i("ignoring socket cache for %s",h),C=a(h,o)):(c[s]||(i("new io instance for %s",h),c[s]=a(h,o)),C=c[s]),x.query&&!o.query&&(o.query=x.query),C.socket(x.path,o)}t.protocol=n.protocol,t.connect=f,t.Manager=Za,t.Socket=xo})(rn,rn.exports);var g1=rn.exports;const m1=tt(g1),B1=Object.prototype.hasOwnProperty;function Ya(e,t){return B1.call(e,t)}function C1(){return Ya(window,"WebSocket")||Ya(window,"MozWebSocket")}const uo=["message","product","lottery","questionnaire","coupon","activityLottery","testQuestion","emotion","speak","customMessage","motivation"];class _1{constructor(){V(this,"__defaultEventKey","DEFAULT_EVENT");V(this,"__allEventKey","ALL_EVENT");V(this,"__appSocketEventStore",{});V(this,"__socketListens",{});for(const t of uo)this.__socketListens[t]=this.__createSocketHandle(t)}__createSocketHandle(t){return r=>{try{if(r instanceof ArrayBuffer)return;const n=JSON.parse(r);if(n){const a=c=>{for(const f in this.__appSocketEventStore){const p=`${t}.${c}`;f.includes(p)&&this.__appSocketEventStore[f].forEach(x=>{x(n)})}},i=n.EVENT||this.__defaultEventKey;a(i),a(this.__allEventKey)}}catch(n){console.warn(n)}}}listenSocketEvent(t){return Q(this,null,function*(){for(const r in this.__socketListens){const n=this.__socketListens[r];if(!n)return;t.on(r,n)}})}addSocketHandles(t,r,n){const a=(i,c)=>{const f=`${t}.${n}.${i}`;this.__appSocketEventStore[f]||(this.__appSocketEventStore[f]=[]),this.__appSocketEventStore[f].push(c)};if(typeof r=="function"){a(this.__allEventKey,r);return}for(const i in r)a(i,r[i])}}class E1{constructor(t){V(this,"eventEmitter",new Lc);V(this,"__eventStore",new _1);V(this,"__socket");this.config=t}_afterConnect(){}getToken(){return Promise.resolve(this.config.token)}getChannelInfo(){return Promise.resolve(this.config.channelInfo)}getUserInfo(){return typeof this.config.userInfo=="function"?this.config.userInfo():this.config.userInfo}getSocket(t=!0){if(t&&!this.__socket)throw new Error("Socket 连接未初始化");return this.__socket}_initSocket(){return new Promise(t=>{Q(this,null,function*(){const r=vn(this.config.domainInfo).chatWsDomain,n=[2e3,3e3,4e3,5e3],a=yield this.getToken();this.config.customSocket?this.__socket=this.config.customSocket:this.__socket=m1(Sx(r),{query:{token:a,version:this.config.socketVersion||"3.0"},transports:[C1()?"websocket":"polling"],reconnectionDelay:n[Math.floor(Math.random()*n.length)],randomizationFactor:Math.random()}),this.__bindConnectEvent(),this.__eventStore.listenSocketEvent(this.__socket),t()})})}_connectSocket(){return new Promise(t=>{const r=this.getSocket(),n=()=>{t()};r.disconnected&&(r.once("connect",n),r.connect()),r.connected&&n()})}__bindConnectEvent(){const t=this.getSocket(),r={connect:()=>{this._afterConnect(),this.eventEmitter.emit(H0.ConnectSuccess)},disconnect:()=>{this.eventEmitter.emit(H0.Disconnect)},reconnect:()=>{this.eventEmitter.emit(H0.ReconnectSuccess)},error:()=>{this.eventEmitter.emit(H0.ConnectFailed,{reason:Re.SocketConnectError})},connect_error:()=>{this.eventEmitter.emit(H0.ConnectFailed,{reason:Re.SocketConnectError})},connect_timeout:()=>{this.eventEmitter.emit(H0.ConnectFailed,{reason:Re.SocketConnectTimeout})}};for(const n in r)t.on(n,r[n])}emitSocket(t,r="message",n){return new Promise((a,i)=>{Q(this,null,function*(){const{checkCode:c=!0,directCallback:f=!1}=n||{},p=this.getSocket(),o=(...x)=>{if(f){a(x);return}const h=x[0];let s=h;if(h instanceof ArrayBuffer)return;let d=h;if(typeof h=="string")try{d=JSON.parse(h)}catch(v){}if(typeof h=="object"&&(d=h),d&&typeof d.code=="number"&&c)if(d.code===200)s=d.data;else{i(d);return}else s=d;a(s)};p==null||p.emit(r,JSON.stringify(t),o)})})}addSocketHandles(t,r,n="message"){this.__eventStore.addSocketHandles(t,r,n)}disconnect(){return new Promise(t=>{const r=this.getSocket();if(r.disconnected){t();return}r.once("disconnect",()=>{t()}),r.disconnect()})}}class F1 extends E1{constructor(r){super(r);V(this,"ConnectFailReason",Re);V(this,"SocketUserType",L0);V(this,"PolyvSocketEvent",H0);V(this,"chatApi",new Ix(this));V(this,"polyvApi",new zc(this))}setup(){return Q(this,null,function*(){yield this._initSocket(),this.config.customSocket||(yield this._connectSocket())})}_afterConnect(){const{autoLogin:r=!0}=this.config;r&&this.loginSocket()}loginSocket(){return Q(this,null,function*(){const r=this.getUserInfo(),n=yield this.getChannelInfo(),a=this.config.statisticsParams,i={EVENT:"LOGIN",values:[r.nick,r.pic,r.userId],channelId:String(n.channelId),roomId:String(n.channelId),type:r.userType};n.sessionId&&(i.sessionId=n.sessionId),(a!=null&&a.param4||r.wxUnionId)&&(i.param4=a==null?void 0:a.param4),a!=null&&a.param5&&(i.param5=a.param5),r.actor&&(i.actor=r.actor);const f=(yield this.emitSocket(i,"message",{directCallback:!0}))[0];String(f)[0]==="2"?this.eventEmitter.emit(H0.LoginSuccess,{code:f}):this.eventEmitter.emit(H0.LoginFailed,{code:f})})}isSpecialUserType(r,n){return r===L0.Dummy?!!n&&["主讲","讲师","嘉宾","助教","管理员"].includes(n):[L0.Teacher,L0.Manager,L0.Guest,L0.Assistant,L0.Attendee,L0.UserTagsMonitor].includes(r)}isCurrentUser(r){return this.getUserInfo().userId===r}}exports.ConnectFailReason=Re;exports.PolyvSocket=F1;exports.PolyvSocketEvent=H0;exports.RequestAuthorizeMethod=Xe;exports.SecurityMode=Pt;exports.SocketUserType=L0;exports.socketEventTypes=uo;console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20251023.2]","[buildTime: 2025-10-22 01:22:16]");
|
|
20
|
+
*/var Sc=function(t){return t!=null&&(To(t)||Dc(t)||!!t._isBuffer)};function To(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Dc(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&To(t.slice(0,0))}(function(){var t=Fc,n=Fi.utf8,e=Sc,r=Fi.bin,i=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=r.stringToBytes(o):o=n.stringToBytes(o):e(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var c=t.bytesToWords(o),h=o.length*8,a=1732584193,f=-271733879,p=-1732584194,x=271733878,u=0;u<c.length;u++)c[u]=(c[u]<<8|c[u]>>>24)&16711935|(c[u]<<24|c[u]>>>8)&4278255360;c[h>>>5]|=128<<h%32,c[(h+64>>>9<<4)+14]=h;for(var b=i._ff,m=i._gg,E=i._hh,A=i._ii,u=0;u<c.length;u+=16){var g=a,v=f,d=p,_=x;a=b(a,f,p,x,c[u+0],7,-680876936),x=b(x,a,f,p,c[u+1],12,-389564586),p=b(p,x,a,f,c[u+2],17,606105819),f=b(f,p,x,a,c[u+3],22,-1044525330),a=b(a,f,p,x,c[u+4],7,-176418897),x=b(x,a,f,p,c[u+5],12,1200080426),p=b(p,x,a,f,c[u+6],17,-1473231341),f=b(f,p,x,a,c[u+7],22,-45705983),a=b(a,f,p,x,c[u+8],7,1770035416),x=b(x,a,f,p,c[u+9],12,-1958414417),p=b(p,x,a,f,c[u+10],17,-42063),f=b(f,p,x,a,c[u+11],22,-1990404162),a=b(a,f,p,x,c[u+12],7,1804603682),x=b(x,a,f,p,c[u+13],12,-40341101),p=b(p,x,a,f,c[u+14],17,-1502002290),f=b(f,p,x,a,c[u+15],22,1236535329),a=m(a,f,p,x,c[u+1],5,-165796510),x=m(x,a,f,p,c[u+6],9,-1069501632),p=m(p,x,a,f,c[u+11],14,643717713),f=m(f,p,x,a,c[u+0],20,-373897302),a=m(a,f,p,x,c[u+5],5,-701558691),x=m(x,a,f,p,c[u+10],9,38016083),p=m(p,x,a,f,c[u+15],14,-660478335),f=m(f,p,x,a,c[u+4],20,-405537848),a=m(a,f,p,x,c[u+9],5,568446438),x=m(x,a,f,p,c[u+14],9,-1019803690),p=m(p,x,a,f,c[u+3],14,-187363961),f=m(f,p,x,a,c[u+8],20,1163531501),a=m(a,f,p,x,c[u+13],5,-1444681467),x=m(x,a,f,p,c[u+2],9,-51403784),p=m(p,x,a,f,c[u+7],14,1735328473),f=m(f,p,x,a,c[u+12],20,-1926607734),a=E(a,f,p,x,c[u+5],4,-378558),x=E(x,a,f,p,c[u+8],11,-2022574463),p=E(p,x,a,f,c[u+11],16,1839030562),f=E(f,p,x,a,c[u+14],23,-35309556),a=E(a,f,p,x,c[u+1],4,-1530992060),x=E(x,a,f,p,c[u+4],11,1272893353),p=E(p,x,a,f,c[u+7],16,-155497632),f=E(f,p,x,a,c[u+10],23,-1094730640),a=E(a,f,p,x,c[u+13],4,681279174),x=E(x,a,f,p,c[u+0],11,-358537222),p=E(p,x,a,f,c[u+3],16,-722521979),f=E(f,p,x,a,c[u+6],23,76029189),a=E(a,f,p,x,c[u+9],4,-640364487),x=E(x,a,f,p,c[u+12],11,-421815835),p=E(p,x,a,f,c[u+15],16,530742520),f=E(f,p,x,a,c[u+2],23,-995338651),a=A(a,f,p,x,c[u+0],6,-198630844),x=A(x,a,f,p,c[u+7],10,1126891415),p=A(p,x,a,f,c[u+14],15,-1416354905),f=A(f,p,x,a,c[u+5],21,-57434055),a=A(a,f,p,x,c[u+12],6,1700485571),x=A(x,a,f,p,c[u+3],10,-1894986606),p=A(p,x,a,f,c[u+10],15,-1051523),f=A(f,p,x,a,c[u+1],21,-2054922799),a=A(a,f,p,x,c[u+8],6,1873313359),x=A(x,a,f,p,c[u+15],10,-30611744),p=A(p,x,a,f,c[u+6],15,-1560198380),f=A(f,p,x,a,c[u+13],21,1309151649),a=A(a,f,p,x,c[u+4],6,-145523070),x=A(x,a,f,p,c[u+11],10,-1120210379),p=A(p,x,a,f,c[u+2],15,718787259),f=A(f,p,x,a,c[u+9],21,-343485551),a=a+g>>>0,f=f+v>>>0,p=p+d>>>0,x=x+_>>>0}return t.endian([a,f,p,x])};i._ff=function(o,s,c,h,a,f,p){var x=o+(s&c|~s&h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._gg=function(o,s,c,h,a,f,p){var x=o+(s&h|c&~h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._hh=function(o,s,c,h,a,f,p){var x=o+(s^c^h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._ii=function(o,s,c,h,a,f,p){var x=o+(c^(s|~h))+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._blocksize=16,i._digestsize=16,So.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var c=t.wordsToBytes(i(o,s));return s&&s.asBytes?c:s&&s.asString?r.bytesToString(c):t.bytesToHex(c)}})();var Tc=So.exports;const $0=A0(Tc);var ko={exports:{}},Lr={exports:{}},Si;function kc(){return Si||(Si=1,function(t){(function(n){var e={bytesToHex:function(o){return r(o)},hexToBytes:function(o){if(o.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return o.indexOf("0x")===0&&(o=o.slice(2)),o.match(/../g).map(function(s){return parseInt(s,16)})}};function r(o){return o.map(function(s){return i(s.toString(16),2)}).join("")}function i(o,s){return o.length>s?o:Array(s-o.length+1).join("0")+o}t.exports?t.exports=e:n.convertHex=e})(ke)}(Lr)),Lr.exports}var Wr={exports:{}},Di;function Rc(){return Di||(Di=1,function(t){(function(n){var e={bytesToString:function(r){return r.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(r){return r.split("").map(function(i){return i.charCodeAt(0)})}};e.UTF8={bytesToString:function(r){return decodeURIComponent(escape(e.bytesToString(r)))},stringToBytes:function(r){return e.stringToBytes(unescape(encodeURIComponent(r)))}},t.exports?t.exports=e:n.convertString=e})(ke)}(Wr)),Wr.exports}(function(t){(function(n){var e={};t.exports?(e.bytesToHex=kc().bytesToHex,e.convertString=Rc(),t.exports=h):(e.bytesToHex=n.convertHex.bytesToHex,e.convertString=n.convertString,n.sha256=h);var r=[];(function(){function a(u){for(var b=Math.sqrt(u),m=2;m<=b;m++)if(!(u%m))return!1;return!0}function f(u){return(u-(u|0))*4294967296|0}for(var p=2,x=0;x<64;)a(p)&&(r[x]=f(Math.pow(p,1/3)),x++),p++})();var i=function(a){for(var f=[],p=0,x=0;p<a.length;p++,x+=8)f[x>>>5]|=a[p]<<24-x%32;return f},o=function(a){for(var f=[],p=0;p<a.length*32;p+=8)f.push(a[p>>>5]>>>24-p%32&255);return f},s=[],c=function(a,f,p){for(var x=a[0],u=a[1],b=a[2],m=a[3],E=a[4],A=a[5],g=a[6],v=a[7],d=0;d<64;d++){if(d<16)s[d]=f[p+d]|0;else{var _=s[d-15],B=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,C=s[d-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;s[d]=B+s[d-7]+S+s[d-16]}var k=E&A^~E&g,F=x&u^x&b^u&b,D=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),O=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),M=v+O+k+r[d]+s[d],U=D+F;v=g,g=A,A=E,E=m+M|0,m=b,b=u,u=x,x=M+U|0}a[0]=a[0]+x|0,a[1]=a[1]+u|0,a[2]=a[2]+b|0,a[3]=a[3]+m|0,a[4]=a[4]+E|0,a[5]=a[5]+A|0,a[6]=a[6]+g|0,a[7]=a[7]+v|0};function h(a,f){a.constructor===String&&(a=e.convertString.UTF8.stringToBytes(a));var p=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],x=i(a),u=a.length*8;x[u>>5]|=128<<24-u%32,x[(u+64>>9<<4)+15]=u;for(var b=0;b<x.length;b+=16)c(p,x,b);var m=o(p);return f&&f.asBytes?m:f&&f.asString?e.convertString.bytesToString(m):e.bytesToHex(m)}h.x2=function(a,f){return h(h(a,{asBytes:!0}),f)}})(ke)})(ko);var Ic=ko.exports;const Ro=A0(Ic);function Pc(t,n,e){const r=Object.keys(t).filter(o=>o!=="sign").sort();let i="";return r.forEach(o=>{let s=t[o];typeof s=="object"&&(s=JSON.stringify(s)),i+=o+s}),e||(e=String(t.signatureMethod).toLowerCase()==="sha256"?"sha256":"md5"),(e==="sha256"?Ro:$0)(n+i+n).toString().toUpperCase()}class Oc extends oo{constructor(n){super({baseUrl:io(yn(n.config.domainInfo).chatApiDomain,"https"),requestPlugins:[new ao({getTokenInfo:()=>De(this,null,function*(){const e=yield n.connect.getToken();if(!e)return;let r=$t.Params,i="token";const o=n.getUserInfo();return n.isSpecialUserType(o.userType)&&(r=$t.Header,i="authorization"),{token:e,tokenField:i,tokenMode:r}})}),new Jr({globalParams:e=>De(this,null,function*(){const{appendChannelId:r=!0,appendAccountId:i=!1,appendUserId:o=!0}=e,s={};if(r||i){const c=yield n.channel.getChannelInfo();r&&(s.channelId=c.channelId),i&&(s.accountId=c.accountId)}if(o){const c=n.getUserInfo();s.userId=c.userId}return s})}),new so({successCode:200}),new Jr({globalParams:e=>De(this,null,function*(){const{appendSign:r=!1}=e;if(r)return{sign:yield this.getRoomSign()};const{appendChatSign:i=!1}=e;if(i){const o=e.params||{};return{sign:yield this.getChatSign(o)}}return{}})}),new Fo({getDecryptInfo:e=>{const r=e.params||{};return{decryptKeys:{sign:Pc(r,"polyvChatClient"),iv:""},decryptPosition:e0.WholeResponse}}})]}),this._plvSocket=n}getRoomSign(){return De(this,null,function*(){const n=yield this._plvSocket.channel.getChannelInfo();return $0(`polyv_room_sign${n.channelId}`)})}getChatSign(n){return De(this,null,function*(){let e=Object.keys(n).sort((i,o)=>{i=i.toLocaleLowerCase(),o=o.toLocaleLowerCase();for(let s=0;s<i.length&&s<o.length;s++){const c=i.charCodeAt(s)-o.charCodeAt(s);if(c!==0)return c}return i.length>o.length?1:-1}).reduce((i,o)=>{let s=n[o];return!s&&s!==0?i:(typeof s=="object"&&(s=JSON.stringify(s)),`${i}${o}${s}`)},"");return $0("polyvChatSign"+e+"polyvChatSign").toLocaleUpperCase()})}}var b0=(t=>(t.Token="token",t.Sign="sign",t))(b0||{}),a0=(t=>(t.None="none",t.AES="aes",t.SM2="sm2",t))(a0||{});let k0;const qc=new Uint8Array(16);function Mc(){if(!k0&&(k0=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!k0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k0(qc)}const ot=[];for(let t=0;t<256;++t)ot.push((t+256).toString(16).slice(1));function Nc(t,n=0){return ot[t[n+0]]+ot[t[n+1]]+ot[t[n+2]]+ot[t[n+3]]+"-"+ot[t[n+4]]+ot[t[n+5]]+"-"+ot[t[n+6]]+ot[t[n+7]]+"-"+ot[t[n+8]]+ot[t[n+9]]+"-"+ot[t[n+10]]+ot[t[n+11]]+ot[t[n+12]]+ot[t[n+13]]+ot[t[n+14]]+ot[t[n+15]]}const Hc=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ti={randomUUID:Hc};function Uc(t,n,e){if(Ti.randomUUID&&!t)return Ti.randomUUID();t=t||{};const r=t.random||(t.rng||Mc)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Nc(r)}exports.SignatureMethod=void 0;(function(t){t.MD5="MD5",t.SHA256="SHA256"})(exports.SignatureMethod||(exports.SignatureMethod={}));function zc(t){let n="";const e=Object.keys(t).sort();for(const r of e)t[r]&&(n+=`${r}${t[r]}`);return n}function jc(t,n,e=exports.SignatureMethod.MD5){const r=zc(t),i=n+r+n;return(e===exports.SignatureMethod.MD5?$0(i):Ro(i)).toUpperCase()}class Lc{constructor(n){ye(this,"__config");ye(this,"__appId");ye(this,"__appSecret");ye(this,"__signatureNonce");ye(this,"__signatureMethod");ye(this,"__getAppSign");var e,r;this.__config=n,this.__appId=n.appId||"",this.__appSecret=n.appSecret||"",this.__signatureNonce=(e=n.signatureNonce)!=null?e:!1,this.__signatureMethod=(r=n.signatureMethod)!=null?r:exports.SignatureMethod.MD5,this.__getAppSign=n.getAppSign}usePlugin(n){const{useAppSign:e=!0}=n;return e}interceptIncludeParams(n){const{signatureNonce:e=this.__signatureNonce,signatureMethod:r=this.__signatureMethod}=n,i={};return e&&(i.signatureNonce=Uc()),r&&(i.signatureMethod=r),i}interceptAuthorizeRequest(n){return De(this,null,function*(){const e=ze({},n.params||{}),r=yield this.__getAppSignData(e,n);return r?(e.appId=r.appId,e.timestamp=r.timestamp,e.sign=r.sign,r.signatureMethod&&(e.signatureMethod=r.signatureMethod)):console.error("AuthorizeAppSignRequestPlugin error, signData is undefined"),St(ze({},n),{params:e})})}__getAppSignData(n,e){return De(this,null,function*(){const{signatureMethod:r=this.__signatureMethod}=e;if(this.__getAppSign)return yield this.__getAppSign({params:n,signatureMethod:r});if(this.__appId&&this.__appSecret){const i=Date.now(),o=St(ze({},n),{appId:this.__appId,timestamp:i}),s=jc(o,this.__appSecret,r);return{appId:this.__appId,timestamp:i,sign:s,signatureMethod:r}}})}}const Wc=Dt("S0xmTzdabmZRQzhqSXZFWA=="),$c=Dt("VlRSZTdTbWRsbFJzSjdDYg=="),Kc=Dt("UG9seXZBcGlSZXNwb25zZQ=="),Vc=Dt("UG9seXZMaXZlRW5jcnlwdA==");function Xc(t,n){const{sign:e,iv:r}=n,i=bt.enc.Utf8.parse(e),o=bt.enc.Utf8.parse(t);return bt.AES.encrypt(o,i,{iv:bt.enc.Utf8.parse(r),mode:bt.mode.CBC,padding:bt.pad.Pkcs7}).toString()}class Gc{constructor(n={}){ye(this,"__config");ye(this,"__encryptPostAES");var e;this.__config=n,this.__encryptPostAES=(e=n.encryptPostAES)!=null?e:!0}usePlugin(n){const{useAES:e=!0}=n;return e}interceptIncludeParams(){return{encryptResponseType:1}}interceptEncryptRequest(n){const e=this.__handleData(n),r=this.__handleHeaders(n);return St(ze({},n),{data:e,headers:r})}interceptDecryptResponse(n){const e=n.data;if(!e.encryption||typeof e.data!="string")return n;const r=e.data,i=this.__getDecryptKeyInfo();return e.data=tn(r,i,o0.Base64),n}__handleHeaders(n){var i;const e=n.headers||{},{encryptPostAES:r=this.__encryptPostAES}=n;return((i=n.method)==null?void 0:i.toLocaleUpperCase())==="POST"&&r&&(e["x-e-type"]=1),e}__handleData(n){var o;const e=n.data||{};if(((o=n.method)==null?void 0:o.toLocaleUpperCase())!=="POST")return e;let r=e;const{encryptPostAES:i=this.__encryptPostAES}=n;if(i){n.requestType="json";let s="";typeof e=="string"?s=e:typeof e=="object"&&(s=JSON.stringify(e));const c=this.__getEncryptKeyInfo(n);r=Xc(s,c)}return r}__getDecryptKeyInfo(){return{sign:Kc,iv:Vc}}__getEncryptKeyInfo(n){const e=n.params||{};let r=Wc;return"appId"in e&&e.appId===this.__config.appId&&this.__config.appSecret&&(r=this.__config.appSecret),{sign:r,iv:$c}}}var Io={exports:{}};(function(t,n){(function(){var e,r=0xdeadbeefcafe,i=(r&16777215)==15715070;function o(R,I,q){R!=null&&(typeof R=="number"?this.fromNumber(R,I,q):I==null&&typeof R!="string"?this.fromString(R,256):this.fromString(R,I))}function s(){return new o(null)}function c(R,I,q,$,re,ae){for(;--ae>=0;){var xe=I*this[R++]+q[$]+re;re=Math.floor(xe/67108864),q[$++]=xe&67108863}return re}function h(R,I,q,$,re,ae){for(var xe=I&32767,de=I>>15;--ae>=0;){var Xe=this[R]&32767,nt=this[R++]>>15,lt=de*Xe+nt*xe;Xe=xe*Xe+((lt&32767)<<15)+q[$]+(re&1073741823),re=(Xe>>>30)+(lt>>>15)+de*nt+(re>>>30),q[$++]=Xe&1073741823}return re}function a(R,I,q,$,re,ae){for(var xe=I&16383,de=I>>14;--ae>=0;){var Xe=this[R]&16383,nt=this[R++]>>14,lt=de*Xe+nt*xe;Xe=xe*Xe+((lt&16383)<<14)+q[$]+re,re=(Xe>>28)+(lt>>14)+de*nt,q[$++]=Xe&268435455}return re}var f=typeof navigator!="undefined";f&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,e=30):f&&i&&navigator.appName!="Netscape"?(o.prototype.am=c,e=26):(o.prototype.am=a,e=28),o.prototype.DB=e,o.prototype.DM=(1<<e)-1,o.prototype.DV=1<<e;var p=52;o.prototype.FV=Math.pow(2,p),o.prototype.F1=p-e,o.prototype.F2=2*e-p;var x="0123456789abcdefghijklmnopqrstuvwxyz",u=new Array,b,m;for(b=48,m=0;m<=9;++m)u[b++]=m;for(b=97,m=10;m<36;++m)u[b++]=m;for(b=65,m=10;m<36;++m)u[b++]=m;function E(R){return x.charAt(R)}function A(R,I){var q=u[R.charCodeAt(I)];return q==null?-1:q}function g(R){for(var I=this.t-1;I>=0;--I)R[I]=this[I];R.t=this.t,R.s=this.s}function v(R){this.t=1,this.s=R<0?-1:0,R>0?this[0]=R:R<-1?this[0]=R+this.DV:this.t=0}function d(R){var I=s();return I.fromInt(R),I}function _(R,I){var q;if(I==16)q=4;else if(I==8)q=3;else if(I==256)q=8;else if(I==2)q=1;else if(I==32)q=5;else if(I==4)q=2;else{this.fromRadix(R,I);return}this.t=0,this.s=0;for(var $=R.length,re=!1,ae=0;--$>=0;){var xe=q==8?R[$]&255:A(R,$);if(xe<0){R.charAt($)=="-"&&(re=!0);continue}re=!1,ae==0?this[this.t++]=xe:ae+q>this.DB?(this[this.t-1]|=(xe&(1<<this.DB-ae)-1)<<ae,this[this.t++]=xe>>this.DB-ae):this[this.t-1]|=xe<<ae,ae+=q,ae>=this.DB&&(ae-=this.DB)}q==8&&R[0]&128&&(this.s=-1,ae>0&&(this[this.t-1]|=(1<<this.DB-ae)-1<<ae)),this.clamp(),re&&o.ZERO.subTo(this,this)}function B(){for(var R=this.s&this.DM;this.t>0&&this[this.t-1]==R;)--this.t}function C(R){if(this.s<0)return"-"+this.negate().toString(R);var I;if(R==16)I=4;else if(R==8)I=3;else if(R==2)I=1;else if(R==32)I=5;else if(R==4)I=2;else return this.toRadix(R);var q=(1<<I)-1,$,re=!1,ae="",xe=this.t,de=this.DB-xe*this.DB%I;if(xe-- >0)for(de<this.DB&&($=this[xe]>>de)>0&&(re=!0,ae=E($));xe>=0;)de<I?($=(this[xe]&(1<<de)-1)<<I-de,$|=this[--xe]>>(de+=this.DB-I)):($=this[xe]>>(de-=I)&q,de<=0&&(de+=this.DB,--xe)),$>0&&(re=!0),re&&(ae+=E($));return re?ae:"0"}function S(){var R=s();return o.ZERO.subTo(this,R),R}function k(){return this.s<0?this.negate():this}function F(R){var I=this.s-R.s;if(I!=0)return I;var q=this.t;if(I=q-R.t,I!=0)return this.s<0?-I:I;for(;--q>=0;)if((I=this[q]-R[q])!=0)return I;return 0}function D(R){var I=1,q;return(q=R>>>16)!=0&&(R=q,I+=16),(q=R>>8)!=0&&(R=q,I+=8),(q=R>>4)!=0&&(R=q,I+=4),(q=R>>2)!=0&&(R=q,I+=2),(q=R>>1)!=0&&(R=q,I+=1),I}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function M(R,I){var q;for(q=this.t-1;q>=0;--q)I[q+R]=this[q];for(q=R-1;q>=0;--q)I[q]=0;I.t=this.t+R,I.s=this.s}function U(R,I){for(var q=R;q<this.t;++q)I[q-R]=this[q];I.t=Math.max(this.t-R,0),I.s=this.s}function z(R,I){var q=R%this.DB,$=this.DB-q,re=(1<<$)-1,ae=Math.floor(R/this.DB),xe=this.s<<q&this.DM,de;for(de=this.t-1;de>=0;--de)I[de+ae+1]=this[de]>>$|xe,xe=(this[de]&re)<<q;for(de=ae-1;de>=0;--de)I[de]=0;I[ae]=xe,I.t=this.t+ae+1,I.s=this.s,I.clamp()}function j(R,I){I.s=this.s;var q=Math.floor(R/this.DB);if(q>=this.t){I.t=0;return}var $=R%this.DB,re=this.DB-$,ae=(1<<$)-1;I[0]=this[q]>>$;for(var xe=q+1;xe<this.t;++xe)I[xe-q-1]|=(this[xe]&ae)<<re,I[xe-q]=this[xe]>>$;$>0&&(I[this.t-q-1]|=(this.s&ae)<<re),I.t=this.t-q,I.clamp()}function W(R,I){for(var q=0,$=0,re=Math.min(R.t,this.t);q<re;)$+=this[q]-R[q],I[q++]=$&this.DM,$>>=this.DB;if(R.t<this.t){for($-=R.s;q<this.t;)$+=this[q],I[q++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;q<R.t;)$-=R[q],I[q++]=$&this.DM,$>>=this.DB;$-=R.s}I.s=$<0?-1:0,$<-1?I[q++]=this.DV+$:$>0&&(I[q++]=$),I.t=q,I.clamp()}function Q(R,I){var q=this.abs(),$=R.abs(),re=q.t;for(I.t=re+$.t;--re>=0;)I[re]=0;for(re=0;re<$.t;++re)I[re+q.t]=q.am(0,$[re],I,re,0,q.t);I.s=0,I.clamp(),this.s!=R.s&&o.ZERO.subTo(I,I)}function Z(R){for(var I=this.abs(),q=R.t=2*I.t;--q>=0;)R[q]=0;for(q=0;q<I.t-1;++q){var $=I.am(q,I[q],R,2*q,0,1);(R[q+I.t]+=I.am(q+1,2*I[q],R,2*q+1,$,I.t-q-1))>=I.DV&&(R[q+I.t]-=I.DV,R[q+I.t+1]=1)}R.t>0&&(R[R.t-1]+=I.am(q,I[q],R,2*q,0,1)),R.s=0,R.clamp()}function te(R,I,q){var $=R.abs();if(!($.t<=0)){var re=this.abs();if(re.t<$.t){I!=null&&I.fromInt(0),q!=null&&this.copyTo(q);return}q==null&&(q=s());var ae=s(),xe=this.s,de=R.s,Xe=this.DB-D($[$.t-1]);Xe>0?($.lShiftTo(Xe,ae),re.lShiftTo(Xe,q)):($.copyTo(ae),re.copyTo(q));var nt=ae.t,lt=ae[nt-1];if(lt!=0){var dt=lt*(1<<this.F1)+(nt>1?ae[nt-2]>>this.F2:0),Ft=this.FV/dt,F0=(1<<this.F1)/dt,mt=1<<this.F2,Et=q.t,S0=Et-nt,kt=I==null?s():I;for(ae.dlShiftTo(S0,kt),q.compareTo(kt)>=0&&(q[q.t++]=1,q.subTo(kt,q)),o.ONE.dlShiftTo(nt,kt),kt.subTo(ae,ae);ae.t<nt;)ae[ae.t++]=0;for(;--S0>=0;){var or=q[--Et]==lt?this.DM:Math.floor(q[Et]*Ft+(q[Et-1]+mt)*F0);if((q[Et]+=ae.am(0,or,q,S0,0,nt))<or)for(ae.dlShiftTo(S0,kt),q.subTo(kt,q);q[Et]<--or;)q.subTo(kt,q)}I!=null&&(q.drShiftTo(nt,I),xe!=de&&o.ZERO.subTo(I,I)),q.t=nt,q.clamp(),Xe>0&&q.rShiftTo(Xe,q),xe<0&&o.ZERO.subTo(q,q)}}}function P(R){var I=s();return this.abs().divRemTo(R,null,I),this.s<0&&I.compareTo(o.ZERO)>0&&R.subTo(I,I),I}function l(R){this.m=R}function y(R){return R.s<0||R.compareTo(this.m)>=0?R.mod(this.m):R}function w(R){return R}function T(R){R.divRemTo(this.m,null,R)}function N(R,I,q){R.multiplyTo(I,q),this.reduce(q)}function X(R,I){R.squareTo(I),this.reduce(I)}l.prototype.convert=y,l.prototype.revert=w,l.prototype.reduce=T,l.prototype.mulTo=N,l.prototype.sqrTo=X;function V(){if(this.t<1)return 0;var R=this[0];if(!(R&1))return 0;var I=R&3;return I=I*(2-(R&15)*I)&15,I=I*(2-(R&255)*I)&255,I=I*(2-((R&65535)*I&65535))&65535,I=I*(2-R*I%this.DV)%this.DV,I>0?this.DV-I:-I}function Y(R){this.m=R,this.mp=R.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<R.DB-15)-1,this.mt2=2*R.t}function ie(R){var I=s();return R.abs().dlShiftTo(this.m.t,I),I.divRemTo(this.m,null,I),R.s<0&&I.compareTo(o.ZERO)>0&&this.m.subTo(I,I),I}function ue(R){var I=s();return R.copyTo(I),this.reduce(I),I}function Ee(R){for(;R.t<=this.mt2;)R[R.t++]=0;for(var I=0;I<this.m.t;++I){var q=R[I]&32767,$=q*this.mpl+((q*this.mph+(R[I]>>15)*this.mpl&this.um)<<15)&R.DM;for(q=I+this.m.t,R[q]+=this.m.am(0,$,R,I,0,this.m.t);R[q]>=R.DV;)R[q]-=R.DV,R[++q]++}R.clamp(),R.drShiftTo(this.m.t,R),R.compareTo(this.m)>=0&&R.subTo(this.m,R)}function we(R,I){R.squareTo(I),this.reduce(I)}function ve(R,I,q){R.multiplyTo(I,q),this.reduce(q)}Y.prototype.convert=ie,Y.prototype.revert=ue,Y.prototype.reduce=Ee,Y.prototype.mulTo=ve,Y.prototype.sqrTo=we;function Be(){return(this.t>0?this[0]&1:this.s)==0}function qe(R,I){if(R>4294967295||R<1)return o.ONE;var q=s(),$=s(),re=I.convert(this),ae=D(R)-1;for(re.copyTo(q);--ae>=0;)if(I.sqrTo(q,$),(R&1<<ae)>0)I.mulTo($,re,q);else{var xe=q;q=$,$=xe}return I.revert(q)}function Re(R,I){var q;return R<256||I.isEven()?q=new l(I):q=new Y(I),this.exp(R,q)}o.prototype.copyTo=g,o.prototype.fromInt=v,o.prototype.fromString=_,o.prototype.clamp=B,o.prototype.dlShiftTo=M,o.prototype.drShiftTo=U,o.prototype.lShiftTo=z,o.prototype.rShiftTo=j,o.prototype.subTo=W,o.prototype.multiplyTo=Q,o.prototype.squareTo=Z,o.prototype.divRemTo=te,o.prototype.invDigit=V,o.prototype.isEven=Be,o.prototype.exp=qe,o.prototype.toString=C,o.prototype.negate=S,o.prototype.abs=k,o.prototype.compareTo=F,o.prototype.bitLength=O,o.prototype.mod=P,o.prototype.modPowInt=Re,o.ZERO=d(0),o.ONE=d(1);function We(){var R=s();return this.copyTo(R),R}function J(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ce(){return this.t==0?this.s:this[0]<<24>>24}function le(){return this.t==0?this.s:this[0]<<16>>16}function me(R){return Math.floor(Math.LN2*this.DB/Math.log(R))}function ge(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ve(R){if(R==null&&(R=10),this.signum()==0||R<2||R>36)return"0";var I=this.chunkSize(R),q=Math.pow(R,I),$=d(q),re=s(),ae=s(),xe="";for(this.divRemTo($,re,ae);re.signum()>0;)xe=(q+ae.intValue()).toString(R).substr(1)+xe,re.divRemTo($,re,ae);return ae.intValue().toString(R)+xe}function Oe(R,I){this.fromInt(0),I==null&&(I=10);for(var q=this.chunkSize(I),$=Math.pow(I,q),re=!1,ae=0,xe=0,de=0;de<R.length;++de){var Xe=A(R,de);if(Xe<0){R.charAt(de)=="-"&&this.signum()==0&&(re=!0);continue}xe=I*xe+Xe,++ae>=q&&(this.dMultiply($),this.dAddOffset(xe,0),ae=0,xe=0)}ae>0&&(this.dMultiply(Math.pow(I,ae)),this.dAddOffset(xe,0)),re&&o.ZERO.subTo(this,this)}function Te(R,I,q){if(typeof I=="number")if(R<2)this.fromInt(1);else for(this.fromNumber(R,q),this.testBit(R-1)||this.bitwiseTo(o.ONE.shiftLeft(R-1),be,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(I);)this.dAddOffset(2,0),this.bitLength()>R&&this.subTo(o.ONE.shiftLeft(R-1),this);else{var $=new Array,re=R&7;$.length=(R>>3)+1,I.nextBytes($),re>0?$[0]&=(1<<re)-1:$[0]=0,this.fromString($,256)}}function Ae(){var R=this.t,I=new Array;I[0]=this.s;var q=this.DB-R*this.DB%8,$,re=0;if(R-- >0)for(q<this.DB&&($=this[R]>>q)!=(this.s&this.DM)>>q&&(I[re++]=$|this.s<<this.DB-q);R>=0;)q<8?($=(this[R]&(1<<q)-1)<<8-q,$|=this[--R]>>(q+=this.DB-8)):($=this[R]>>(q-=8)&255,q<=0&&(q+=this.DB,--R)),$&128&&($|=-256),re==0&&(this.s&128)!=($&128)&&++re,(re>0||$!=this.s)&&(I[re++]=$);return I}function Ue(R){return this.compareTo(R)==0}function Ge(R){return this.compareTo(R)<0?this:R}function $e(R){return this.compareTo(R)>0?this:R}function ee(R,I,q){var $,re,ae=Math.min(R.t,this.t);for($=0;$<ae;++$)q[$]=I(this[$],R[$]);if(R.t<this.t){for(re=R.s&this.DM,$=ae;$<this.t;++$)q[$]=I(this[$],re);q.t=this.t}else{for(re=this.s&this.DM,$=ae;$<R.t;++$)q[$]=I(re,R[$]);q.t=R.t}q.s=I(this.s,R.s),q.clamp()}function oe(R,I){return R&I}function he(R){var I=s();return this.bitwiseTo(R,oe,I),I}function be(R,I){return R|I}function Ce(R){var I=s();return this.bitwiseTo(R,be,I),I}function He(R,I){return R^I}function Ke(R){var I=s();return this.bitwiseTo(R,He,I),I}function Ye(R,I){return R&~I}function Ze(R){var I=s();return this.bitwiseTo(R,Ye,I),I}function fe(){for(var R=s(),I=0;I<this.t;++I)R[I]=this.DM&~this[I];return R.t=this.t,R.s=~this.s,R}function H(R){var I=s();return R<0?this.rShiftTo(-R,I):this.lShiftTo(R,I),I}function L(R){var I=s();return R<0?this.lShiftTo(-R,I):this.rShiftTo(R,I),I}function K(R){if(R==0)return-1;var I=0;return R&65535||(R>>=16,I+=16),R&255||(R>>=8,I+=8),R&15||(R>>=4,I+=4),R&3||(R>>=2,I+=2),R&1||++I,I}function G(){for(var R=0;R<this.t;++R)if(this[R]!=0)return R*this.DB+K(this[R]);return this.s<0?this.t*this.DB:-1}function se(R){for(var I=0;R!=0;)R&=R-1,++I;return I}function ne(){for(var R=0,I=this.s&this.DM,q=0;q<this.t;++q)R+=se(this[q]^I);return R}function pe(R){var I=Math.floor(R/this.DB);return I>=this.t?this.s!=0:(this[I]&1<<R%this.DB)!=0}function _e(R,I){var q=o.ONE.shiftLeft(R);return this.bitwiseTo(q,I,q),q}function Fe(R){return this.changeBit(R,be)}function Se(R){return this.changeBit(R,Ye)}function Le(R){return this.changeBit(R,He)}function Pe(R,I){for(var q=0,$=0,re=Math.min(R.t,this.t);q<re;)$+=this[q]+R[q],I[q++]=$&this.DM,$>>=this.DB;if(R.t<this.t){for($+=R.s;q<this.t;)$+=this[q],I[q++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;q<R.t;)$+=R[q],I[q++]=$&this.DM,$>>=this.DB;$+=R.s}I.s=$<0?-1:0,$>0?I[q++]=$:$<-1&&(I[q++]=this.DV+$),I.t=q,I.clamp()}function Qe(R){var I=s();return this.addTo(R,I),I}function et(R){var I=s();return this.subTo(R,I),I}function xt(R){var I=s();return this.multiplyTo(R,I),I}function va(){var R=s();return this.squareTo(R),R}function ba(R){var I=s();return this.divRemTo(R,I,null),I}function ya(R){var I=s();return this.divRemTo(R,null,I),I}function ga(R){var I=s(),q=s();return this.divRemTo(R,I,q),new Array(I,q)}function ma(R){this[this.t]=this.am(0,R-1,this,0,0,this.t),++this.t,this.clamp()}function Ea(R,I){if(R!=0){for(;this.t<=I;)this[this.t++]=0;for(this[I]+=R;this[I]>=this.DV;)this[I]-=this.DV,++I>=this.t&&(this[this.t++]=0),++this[I]}}function p0(){}function kn(R){return R}function _a(R,I,q){R.multiplyTo(I,q)}function wa(R,I){R.squareTo(I)}p0.prototype.convert=kn,p0.prototype.revert=kn,p0.prototype.mulTo=_a,p0.prototype.sqrTo=wa;function Ba(R){return this.exp(R,new p0)}function Aa(R,I,q){var $=Math.min(this.t+R.t,I);for(q.s=0,q.t=$;$>0;)q[--$]=0;var re;for(re=q.t-this.t;$<re;++$)q[$+this.t]=this.am(0,R[$],q,$,0,this.t);for(re=Math.min(R.t,I);$<re;++$)this.am(0,R[$],q,$,0,I-$);q.clamp()}function Ca(R,I,q){--I;var $=q.t=this.t+R.t-I;for(q.s=0;--$>=0;)q[$]=0;for($=Math.max(I-this.t,0);$<R.t;++$)q[this.t+$-I]=this.am(I-$,R[$],q,0,0,this.t+$-I);q.clamp(),q.drShiftTo(1,q)}function zt(R){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*R.t,this.r2),this.mu=this.r2.divide(R),this.m=R}function Fa(R){if(R.s<0||R.t>2*this.m.t)return R.mod(this.m);if(R.compareTo(this.m)<0)return R;var I=s();return R.copyTo(I),this.reduce(I),I}function Sa(R){return R}function Da(R){for(R.drShiftTo(this.m.t-1,this.r2),R.t>this.m.t+1&&(R.t=this.m.t+1,R.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);R.compareTo(this.r2)<0;)R.dAddOffset(1,this.m.t+1);for(R.subTo(this.r2,R);R.compareTo(this.m)>=0;)R.subTo(this.m,R)}function Ta(R,I){R.squareTo(I),this.reduce(I)}function ka(R,I,q){R.multiplyTo(I,q),this.reduce(q)}zt.prototype.convert=Fa,zt.prototype.revert=Sa,zt.prototype.reduce=Da,zt.prototype.mulTo=ka,zt.prototype.sqrTo=Ta;function Ra(R,I){var q=R.bitLength(),$,re=d(1),ae;if(q<=0)return re;q<18?$=1:q<48?$=3:q<144?$=4:q<768?$=5:$=6,q<8?ae=new l(I):I.isEven()?ae=new zt(I):ae=new Y(I);var xe=new Array,de=3,Xe=$-1,nt=(1<<$)-1;if(xe[1]=ae.convert(this),$>1){var lt=s();for(ae.sqrTo(xe[1],lt);de<=nt;)xe[de]=s(),ae.mulTo(lt,xe[de-2],xe[de]),de+=2}var dt=R.t-1,Ft,F0=!0,mt=s(),Et;for(q=D(R[dt])-1;dt>=0;){for(q>=Xe?Ft=R[dt]>>q-Xe&nt:(Ft=(R[dt]&(1<<q+1)-1)<<Xe-q,dt>0&&(Ft|=R[dt-1]>>this.DB+q-Xe)),de=$;!(Ft&1);)Ft>>=1,--de;if((q-=de)<0&&(q+=this.DB,--dt),F0)xe[Ft].copyTo(re),F0=!1;else{for(;de>1;)ae.sqrTo(re,mt),ae.sqrTo(mt,re),de-=2;de>0?ae.sqrTo(re,mt):(Et=re,re=mt,mt=Et),ae.mulTo(mt,xe[Ft],re)}for(;dt>=0&&!(R[dt]&1<<q);)ae.sqrTo(re,mt),Et=re,re=mt,mt=Et,--q<0&&(q=this.DB-1,--dt)}return ae.revert(re)}function Ia(R){var I=this.s<0?this.negate():this.clone(),q=R.s<0?R.negate():R.clone();if(I.compareTo(q)<0){var $=I;I=q,q=$}var re=I.getLowestSetBit(),ae=q.getLowestSetBit();if(ae<0)return I;for(re<ae&&(ae=re),ae>0&&(I.rShiftTo(ae,I),q.rShiftTo(ae,q));I.signum()>0;)(re=I.getLowestSetBit())>0&&I.rShiftTo(re,I),(re=q.getLowestSetBit())>0&&q.rShiftTo(re,q),I.compareTo(q)>=0?(I.subTo(q,I),I.rShiftTo(1,I)):(q.subTo(I,q),q.rShiftTo(1,q));return ae>0&&q.lShiftTo(ae,q),q}function Pa(R){if(R<=0)return 0;var I=this.DV%R,q=this.s<0?R-1:0;if(this.t>0)if(I==0)q=this[0]%R;else for(var $=this.t-1;$>=0;--$)q=(I*q+this[$])%R;return q}function Oa(R){var I=R.isEven();if(this.isEven()&&I||R.signum()==0)return o.ZERO;for(var q=R.clone(),$=this.clone(),re=d(1),ae=d(0),xe=d(0),de=d(1);q.signum()!=0;){for(;q.isEven();)q.rShiftTo(1,q),I?((!re.isEven()||!ae.isEven())&&(re.addTo(this,re),ae.subTo(R,ae)),re.rShiftTo(1,re)):ae.isEven()||ae.subTo(R,ae),ae.rShiftTo(1,ae);for(;$.isEven();)$.rShiftTo(1,$),I?((!xe.isEven()||!de.isEven())&&(xe.addTo(this,xe),de.subTo(R,de)),xe.rShiftTo(1,xe)):de.isEven()||de.subTo(R,de),de.rShiftTo(1,de);q.compareTo($)>=0?(q.subTo($,q),I&&re.subTo(xe,re),ae.subTo(de,ae)):($.subTo(q,$),I&&xe.subTo(re,xe),de.subTo(ae,de))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(de.compareTo(R)>=0)return de.subtract(R);if(de.signum()<0)de.addTo(R,de);else return de;return de.signum()<0?de.add(R):de}var ct=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],qa=(1<<26)/ct[ct.length-1];function Ma(R){var I,q=this.abs();if(q.t==1&&q[0]<=ct[ct.length-1]){for(I=0;I<ct.length;++I)if(q[0]==ct[I])return!0;return!1}if(q.isEven())return!1;for(I=1;I<ct.length;){for(var $=ct[I],re=I+1;re<ct.length&&$<qa;)$*=ct[re++];for($=q.modInt($);I<re;)if($%ct[I++]==0)return!1}return q.millerRabin(R)}function Na(R){var I=this.subtract(o.ONE),q=I.getLowestSetBit();if(q<=0)return!1;var $=I.shiftRight(q);R=R+1>>1,R>ct.length&&(R=ct.length);for(var re=s(),ae=0;ae<R;++ae){re.fromInt(ct[Math.floor(Math.random()*ct.length)]);var xe=re.modPow($,this);if(xe.compareTo(o.ONE)!=0&&xe.compareTo(I)!=0){for(var de=1;de++<q&&xe.compareTo(I)!=0;)if(xe=xe.modPowInt(2,this),xe.compareTo(o.ONE)==0)return!1;if(xe.compareTo(I)!=0)return!1}}return!0}o.prototype.chunkSize=me,o.prototype.toRadix=Ve,o.prototype.fromRadix=Oe,o.prototype.fromNumber=Te,o.prototype.bitwiseTo=ee,o.prototype.changeBit=_e,o.prototype.addTo=Pe,o.prototype.dMultiply=ma,o.prototype.dAddOffset=Ea,o.prototype.multiplyLowerTo=Aa,o.prototype.multiplyUpperTo=Ca,o.prototype.modInt=Pa,o.prototype.millerRabin=Na,o.prototype.clone=We,o.prototype.intValue=J,o.prototype.byteValue=ce,o.prototype.shortValue=le,o.prototype.signum=ge,o.prototype.toByteArray=Ae,o.prototype.equals=Ue,o.prototype.min=Ge,o.prototype.max=$e,o.prototype.and=he,o.prototype.or=Ce,o.prototype.xor=Ke,o.prototype.andNot=Ze,o.prototype.not=fe,o.prototype.shiftLeft=H,o.prototype.shiftRight=L,o.prototype.getLowestSetBit=G,o.prototype.bitCount=ne,o.prototype.testBit=pe,o.prototype.setBit=Fe,o.prototype.clearBit=Se,o.prototype.flipBit=Le,o.prototype.add=Qe,o.prototype.subtract=et,o.prototype.multiply=xt,o.prototype.divide=ba,o.prototype.remainder=ya,o.prototype.divideAndRemainder=ga,o.prototype.modPow=Ra,o.prototype.modInverse=Oa,o.prototype.pow=Ba,o.prototype.gcd=Ia,o.prototype.isProbablePrime=Ma,o.prototype.square=va,o.prototype.Barrett=zt;var C0,ut,rt;function Ha(R){ut[rt++]^=R&255,ut[rt++]^=R>>8&255,ut[rt++]^=R>>16&255,ut[rt++]^=R>>24&255,rt>=ir&&(rt-=ir)}function Rn(){Ha(new Date().getTime())}if(ut==null){ut=new Array,rt=0;var gt;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var In=new Uint8Array(32);for(window.crypto.getRandomValues(In),gt=0;gt<32;++gt)ut[rt++]=In[gt]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Pn=window.crypto.random(32);for(gt=0;gt<Pn.length;++gt)ut[rt++]=Pn.charCodeAt(gt)&255}}for(;rt<ir;)gt=Math.floor(65536*Math.random()),ut[rt++]=gt>>>8,ut[rt++]=gt&255;rt=0,Rn()}function Ua(){if(C0==null){for(Rn(),C0=Wa(),C0.init(ut),rt=0;rt<ut.length;++rt)ut[rt]=0;rt=0}return C0.next()}function za(R){var I;for(I=0;I<R.length;++I)R[I]=Ua()}function On(){}On.prototype.nextBytes=za;function nr(){this.i=0,this.j=0,this.S=new Array}function ja(R){var I,q,$;for(I=0;I<256;++I)this.S[I]=I;for(q=0,I=0;I<256;++I)q=q+this.S[I]+R[I%R.length]&255,$=this.S[I],this.S[I]=this.S[q],this.S[q]=$;this.i=0,this.j=0}function La(){var R;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,R=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=R,this.S[R+this.S[this.i]&255]}nr.prototype.init=ja,nr.prototype.next=La;function Wa(){return new nr}var ir=256;t.exports={default:o,BigInteger:o,SecureRandom:On}}).call(ke)})(Io);var Q0=Io.exports;const{BigInteger:s0}=Q0;function Yc(t){let n=t.toString(16);if(n[0]!=="-")n.length%2===1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{n=n.substr(1);let e=n.length;e%2===1?e+=1:n.match(/^[0-7]/)||(e+=2);let r="";for(let i=0;i<e;i++)r+="f";r=new s0(r,16),n=r.xor(t).add(s0.ONE),n=n.toString(16).replace(/^-/,"")}return n}class Po{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const n=this.v.length/2;let e=n.toString(16);return e.length%2===1&&(e="0"+e),n<128?e:(128+e.length/2).toString(16)+e}getValue(){return""}}class ki extends Po{constructor(n){super(),this.t="02",n&&(this.v=Yc(n))}getValue(){return this.v}}class Zc extends Po{constructor(n){super(),this.t="30",this.asn1Array=n}getValue(){return this.v=this.asn1Array.map(n=>n.getEncodedHex()).join(""),this.v}}function Oo(t,n){return+t[n+2]<8?1:+t.substr(n+2,2)&128}function Ri(t,n){const e=Oo(t,n),r=t.substr(n+2,e*2);return r?(+r[0]<8?new s0(r,16):new s0(r.substr(2),16)).intValue():-1}function $r(t,n){const e=Oo(t,n);return n+(e+1)*2}var Qc={encodeDer(t,n){const e=new ki(t),r=new ki(n);return new Zc([e,r]).getEncodedHex()},decodeDer(t){const n=$r(t,0),e=$r(t,n),r=Ri(t,n),i=t.substr(e,r*2),o=e+i.length,s=$r(t,o),c=Ri(t,o),h=t.substr(s,c*2),a=new s0(i,16),f=new s0(h,16);return{r:a,s:f}}};const{BigInteger:ft}=Q0,Ii=new ft("2"),Pi=new ft("3");class It{constructor(n,e){this.x=e,this.q=n}equals(n){return n===this?!0:this.q.equals(n.q)&&this.x.equals(n.x)}toBigInteger(){return this.x}negate(){return new It(this.q,this.x.negate().mod(this.q))}add(n){return new It(this.q,this.x.add(n.toBigInteger()).mod(this.q))}subtract(n){return new It(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))}multiply(n){return new It(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))}divide(n){return new It(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new It(this.q,this.x.square().mod(this.q))}}class Wt{constructor(n,e,r,i){this.curve=n,this.x=e,this.y=r,this.z=i==null?ft.ONE:i,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(n){return n===this?!0:this.isInfinity()?n.isInfinity():n.isInfinity()?this.isInfinity():n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(ft.ZERO)?n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(ft.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(ft.ZERO)&&!this.y.toBigInteger().equals(ft.ZERO)}negate(){return new Wt(this.curve,this.x,this.y.negate(),this.z)}add(n){if(this.isInfinity())return n;if(n.isInfinity())return this;const e=this.x.toBigInteger(),r=this.y.toBigInteger(),i=this.z,o=n.x.toBigInteger(),s=n.y.toBigInteger(),c=n.z,h=this.curve.q,a=e.multiply(c).mod(h),f=o.multiply(i).mod(h),p=a.subtract(f),x=r.multiply(c).mod(h),u=s.multiply(i).mod(h),b=x.subtract(u);if(ft.ZERO.equals(p))return ft.ZERO.equals(b)?this.twice():this.curve.infinity;const m=a.add(f),E=i.multiply(c).mod(h),A=p.square().mod(h),g=p.multiply(A).mod(h),v=E.multiply(b.square()).subtract(m.multiply(A)).mod(h),d=p.multiply(v).mod(h),_=b.multiply(A.multiply(a).subtract(v)).subtract(x.multiply(g)).mod(h),B=g.multiply(E).mod(h);return new Wt(this.curve,this.curve.fromBigInteger(d),this.curve.fromBigInteger(_),B)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const n=this.x.toBigInteger(),e=this.y.toBigInteger(),r=this.z,i=this.curve.q,o=this.curve.a.toBigInteger(),s=n.square().multiply(Pi).add(o.multiply(r.square())).mod(i),c=e.shiftLeft(1).multiply(r).mod(i),h=e.square().mod(i),a=h.multiply(n).multiply(r).mod(i),f=c.square().mod(i),p=s.square().subtract(a.shiftLeft(3)).mod(i),x=c.multiply(p).mod(i),u=s.multiply(a.shiftLeft(2).subtract(p)).subtract(f.shiftLeft(1).multiply(h)).mod(i),b=c.multiply(f).mod(i);return new Wt(this.curve,this.curve.fromBigInteger(x),this.curve.fromBigInteger(u),b)}multiply(n){if(this.isInfinity())return this;if(!n.signum())return this.curve.infinity;const e=n.multiply(Pi),r=this.negate();let i=this;for(let o=e.bitLength()-2;o>0;o--){i=i.twice();const s=e.testBit(o),c=n.testBit(o);s!==c&&(i=i.add(s?this:r))}return i}}let Jc=class{constructor(n,e,r){this.q=n,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new Wt(this,null,null)}equals(n){return n===this?!0:this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)}fromBigInteger(n){return new It(this.q,n)}decodePointHex(n){switch(parseInt(n.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const e=this.fromBigInteger(new ft(n.substr(2),16));let r=this.fromBigInteger(e.multiply(e.square()).add(e.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new ft("4")).add(ft.ONE),this.q));return r.toBigInteger().mod(Ii).equals(new ft(n.substr(0,2),16).subtract(Ii))||(r=r.negate()),new Wt(this,e,r);case 4:case 6:case 7:const i=(n.length-2)/2,o=n.substr(2,i),s=n.substr(i+2,i);return new Wt(this,this.fromBigInteger(new ft(o,16)),this.fromBigInteger(new ft(s,16)));default:return null}}};var ef={ECCurveFp:Jc};const{BigInteger:Bt,SecureRandom:tf}=Q0,{ECCurveFp:rf}=ef,nf=new tf,{curve:r0,G:of,n:Oi}=qo();function af(){return r0}function qo(){const t=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),n=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),e=new Bt("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new rf(t,n,e),s=r.decodePointHex("04"+"32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7"+"BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),c=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:s,n:c}}function sf(t,n,e){const i=(t?new Bt(t,n,e):new Bt(Oi.bitLength(),nf)).mod(Oi.subtract(Bt.ONE)).add(Bt.ONE),o=y0(i.toString(16),64),s=of.multiply(i),c=y0(s.getX().toBigInteger().toString(16),64),h=y0(s.getY().toBigInteger().toString(16),64),a="04"+c+h;return{privateKey:o,publicKey:a}}function cf(t){if(t.length!==130)throw new Error("Invalid public key to compress");const n=(t.length-2)/2,e=t.substr(2,n),r=new Bt(t.substr(n+2,n),16);let i="03";return r.mod(new Bt("2")).equals(Bt.ZERO)&&(i="02"),i+e}function ff(t){t=unescape(encodeURIComponent(t));const n=t.length,e=[];for(let i=0;i<n;i++)e[i>>>2]|=(t.charCodeAt(i)&255)<<24-i%4*8;const r=[];for(let i=0;i<n;i++){const o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function y0(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t}function xf(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function uf(t){const n=[];let e=0;for(let r=0;r<t.length*2;r+=2)n[r>>>3]|=parseInt(t[e],10)<<24-r%8*4,e++;try{const r=[];for(let i=0;i<t.length;i++){const o=n[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return decodeURIComponent(escape(r.join("")))}catch(r){throw new Error("Malformed UTF-8 data")}}function df(t){const n=[];let e=t.length;e%2!==0&&(t=y0(t,e+1)),e=t.length;for(let r=0;r<e;r+=2)n.push(parseInt(t.substr(r,2),16));return n}function hf(t){const n=r0.decodePointHex(t);if(!n)return!1;const e=n.getX();return n.getY().square().equals(e.multiply(e.square()).add(e.multiply(r0.a)).add(r0.b))}function lf(t,n){const e=r0.decodePointHex(t);if(!e)return!1;const r=r0.decodePointHex(n);return r?e.equals(r):!1}var pf={getGlobalCurve:af,generateEcparam:qo,generateKeyPairHex:sf,compressPublicKeyHex:cf,utf8ToHex:ff,leftPad:y0,arrayToHex:xf,arrayToUtf8:uf,hexToArray:df,verifyPublicKey:hf,comparePublicKeyHex:lf};const _t=new Uint32Array(68),Kr=new Uint32Array(64);function pt(t,n){const e=n&31;return t<<e|t>>>32-e}function qi(t,n){const e=[];for(let r=t.length-1;r>=0;r--)e[r]=(t[r]^n[r])&255;return e}function vf(t){return t^pt(t,9)^pt(t,17)}function bf(t){return t^pt(t,15)^pt(t,23)}function z0(t){let n=t.length*8,e=n%512;e=e>=448?512-e%448-1:448-e-1;const r=new Array((e-7)/8),i=new Array(8);for(let f=0,p=r.length;f<p;f++)r[f]=0;for(let f=0,p=i.length;f<p;f++)i[f]=0;n=n.toString(2);for(let f=7;f>=0;f--)if(n.length>8){const p=n.length-8;i[f]=parseInt(n.substr(p),2),n=n.substr(0,p)}else n.length>0&&(i[f]=parseInt(n,2),n="");const o=new Uint8Array([...t,128,...r,...i]),s=new DataView(o.buffer,0),c=o.length/64,h=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let f=0;f<c;f++){_t.fill(0),Kr.fill(0);const p=16*f;for(let D=0;D<16;D++)_t[D]=s.getUint32((p+D)*4,!1);for(let D=16;D<68;D++)_t[D]=bf(_t[D-16]^_t[D-9]^pt(_t[D-3],15))^pt(_t[D-13],7)^_t[D-6];for(let D=0;D<64;D++)Kr[D]=_t[D]^_t[D+4];const x=2043430169,u=2055708042;let b=h[0],m=h[1],E=h[2],A=h[3],g=h[4],v=h[5],d=h[6],_=h[7],B,C,S,k,F;for(let D=0;D<64;D++)F=D>=0&&D<=15?x:u,B=pt(pt(b,12)+g+pt(F,D),7),C=B^pt(b,12),S=(D>=0&&D<=15?b^m^E:b&m|b&E|m&E)+A+C+Kr[D],k=(D>=0&&D<=15?g^v^d:g&v|~g&d)+_+B+_t[D],A=E,E=pt(m,9),m=b,b=S,_=d,d=pt(v,19),v=g,g=vf(k);h[0]^=b,h[1]^=m,h[2]^=E,h[3]^=A,h[4]^=g,h[5]^=v,h[6]^=d,h[7]^=_}const a=[];for(let f=0,p=h.length;f<p;f++){const x=h[f];a.push((x&4278190080)>>>24,(x&16711680)>>>16,(x&65280)>>>8,x&255)}return a}const m0=64,Mo=new Uint8Array(m0),No=new Uint8Array(m0);for(let t=0;t<m0;t++)Mo[t]=54,No[t]=92;function yf(t,n){for(n.length>m0&&(n=z0(n));n.length<m0;)n.push(0);const e=qi(n,Mo),r=qi(n,No),i=z0([...e,...t]);return z0([...r,...i])}var Ho={sm3:z0,hmac:yf};const{BigInteger:ht}=Q0,{encodeDer:gf,decodeDer:mf}=Qc,Ie=pf,c0=Ho.sm3,{G:Lt,curve:Uo,n:Qt}=Ie.generateEcparam(),zo=0;function Ef(t,n,e=1){t=typeof t=="string"?Ie.hexToArray(Ie.utf8ToHex(t)):Array.prototype.slice.call(t),n=Ie.getGlobalCurve().decodePointHex(n);const r=Ie.generateKeyPairHex(),i=new ht(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const s=n.multiply(i),c=Ie.hexToArray(Ie.leftPad(s.getX().toBigInteger().toRadix(16),64)),h=Ie.hexToArray(Ie.leftPad(s.getY().toBigInteger().toRadix(16),64)),a=Ie.arrayToHex(c0([].concat(c,t,h)));let f=1,p=0,x=[];const u=[].concat(c,h),b=()=>{x=c0([...u,f>>24&255,f>>16&255,f>>8&255,f&255]),f++,p=0};b();for(let E=0,A=t.length;E<A;E++)p===x.length&&b(),t[E]^=x[p++]&255;const m=Ie.arrayToHex(t);return e===zo?o+m+a:o+a+m}function _f(t,n,e=1,{output:r="string"}={}){n=new ht(n,16);let i=t.substr(128,64),o=t.substr(192);e===zo&&(i=t.substr(t.length-64),o=t.substr(128,t.length-128-64));const s=Ie.hexToArray(o),h=Ie.getGlobalCurve().decodePointHex("04"+t.substr(0,128)).multiply(n),a=Ie.hexToArray(Ie.leftPad(h.getX().toBigInteger().toRadix(16),64)),f=Ie.hexToArray(Ie.leftPad(h.getY().toBigInteger().toRadix(16),64));let p=1,x=0,u=[];const b=[].concat(a,f),m=()=>{u=c0([...b,p>>24&255,p>>16&255,p>>8&255,p&255]),p++,x=0};m();for(let A=0,g=s.length;A<g;A++)x===u.length&&m(),s[A]^=u[x++]&255;return Ie.arrayToHex(c0([].concat(a,s,f)))===i.toLowerCase()?r==="array"?s:Ie.arrayToUtf8(s):r==="array"?[]:""}function wf(t,n,{pointPool:e,der:r,hash:i,publicKey:o,userId:s}={}){let c=typeof t=="string"?Ie.utf8ToHex(t):Ie.arrayToHex(t);i&&(o=o||Lo(n),c=jo(c,o,s));const h=new ht(n,16),a=new ht(c,16);let f=null,p=null,x=null;do{do{let u;e&&e.length?u=e.pop():u=Wo(),f=u.k,p=a.add(u.x1).mod(Qt)}while(p.equals(ht.ZERO)||p.add(f).equals(Qt));x=h.add(ht.ONE).modInverse(Qt).multiply(f.subtract(p.multiply(h))).mod(Qt)}while(x.equals(ht.ZERO));return r?gf(p,x):Ie.leftPad(p.toString(16),64)+Ie.leftPad(x.toString(16),64)}function Bf(t,n,e,{der:r,hash:i,userId:o}={}){let s=typeof t=="string"?Ie.utf8ToHex(t):Ie.arrayToHex(t);i&&(s=jo(s,e,o));let c,h;if(r){const b=mf(n);c=b.r,h=b.s}else c=new ht(n.substring(0,64),16),h=new ht(n.substring(64),16);const a=Uo.decodePointHex(e),f=new ht(s,16),p=c.add(h).mod(Qt);if(p.equals(ht.ZERO))return!1;const x=Lt.multiply(h).add(a.multiply(p)),u=f.add(x.getX().toBigInteger()).mod(Qt);return c.equals(u)}function jo(t,n,e="1234567812345678"){e=Ie.utf8ToHex(e);const r=Ie.leftPad(Lt.curve.a.toBigInteger().toRadix(16),64),i=Ie.leftPad(Lt.curve.b.toBigInteger().toRadix(16),64),o=Ie.leftPad(Lt.getX().toBigInteger().toRadix(16),64),s=Ie.leftPad(Lt.getY().toBigInteger().toRadix(16),64);let c,h;if(n.length===128)c=n.substr(0,64),h=n.substr(64,64);else{const x=Lt.curve.decodePointHex(n);c=Ie.leftPad(x.getX().toBigInteger().toRadix(16),64),h=Ie.leftPad(x.getY().toBigInteger().toRadix(16),64)}const a=Ie.hexToArray(e+r+i+o+s+c+h),f=e.length*4;a.unshift(f&255),a.unshift(f>>8&255);const p=c0(a);return Ie.arrayToHex(c0(p.concat(Ie.hexToArray(t))))}function Lo(t){const n=Lt.multiply(new ht(t,16)),e=Ie.leftPad(n.getX().toBigInteger().toString(16),64),r=Ie.leftPad(n.getY().toBigInteger().toString(16),64);return"04"+e+r}function Wo(){const t=Ie.generateKeyPairHex(),n=Uo.decodePointHex(t.publicKey);return t.k=new ht(t.privateKey,16),t.x1=n.getX().toBigInteger(),t}var Af={generateKeyPairHex:Ie.generateKeyPairHex,compressPublicKeyHex:Ie.compressPublicKeyHex,comparePublicKeyHex:Ie.comparePublicKeyHex,doEncrypt:Ef,doDecrypt:_f,doSignature:wf,doVerifySignature:Bf,getPublicKeyFromPrivateKey:Lo,getPoint:Wo,verifyPublicKey:Ie.verifyPublicKey};const{sm3:Cf,hmac:Ff}=Ho;function Sf(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t}function Mi(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function Df(t){const n=[];let e=t.length;e%2!==0&&(t=Sf(t,e+1)),e=t.length;for(let r=0;r<e;r+=2)n.push(parseInt(t.substr(r,2),16));return n}function Tf(t){const n=[];for(let e=0,r=t.length;e<r;e++){const i=t.codePointAt(e);if(i<=127)n.push(i);else if(i<=2047)n.push(192|i>>>6),n.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)n.push(224|i>>>12),n.push(128|i>>>6&63),n.push(128|i&63);else if(i>=65536&&i<=1114111)e++,n.push(240|i>>>18&28),n.push(128|i>>>12&63),n.push(128|i>>>6&63),n.push(128|i&63);else throw n.push(i),new Error("input is not supported")}return n}var kf=function(t,n){if(t=typeof t=="string"?Tf(t):Array.prototype.slice.call(t),n){if((n.mode||"hmac")!=="hmac")throw new Error("invalid mode");let r=n.key;if(!r)throw new Error("invalid key");return r=typeof r=="string"?Df(r):Array.prototype.slice.call(r),Mi(Ff(t,r))}return Mi(Cf(t))};const Rt=0,Rf=32,jt=16,R0=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],I0=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Vr(t){const n=[];for(let e=0,r=t.length;e<r;e+=2)n.push(parseInt(t.substr(e,2),16));return n}function If(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function Pf(t){const n=[];for(let e=0,r=t.length;e<r;e++){const i=t.codePointAt(e);if(i<=127)n.push(i);else if(i<=2047)n.push(192|i>>>6),n.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)n.push(224|i>>>12),n.push(128|i>>>6&63),n.push(128|i&63);else if(i>=65536&&i<=1114111)e++,n.push(240|i>>>18&28),n.push(128|i>>>12&63),n.push(128|i>>>6&63),n.push(128|i&63);else throw n.push(i),new Error("input is not supported")}return n}function Of(t){const n=[];for(let e=0,r=t.length;e<r;e++)t[e]>=240&&t[e]<=247?(n.push(String.fromCodePoint(((t[e]&7)<<18)+((t[e+1]&63)<<12)+((t[e+2]&63)<<6)+(t[e+3]&63))),e+=3):t[e]>=224&&t[e]<=239?(n.push(String.fromCodePoint(((t[e]&15)<<12)+((t[e+1]&63)<<6)+(t[e+2]&63))),e+=2):t[e]>=192&&t[e]<=223?(n.push(String.fromCodePoint(((t[e]&31)<<6)+(t[e+1]&63))),e++):n.push(String.fromCodePoint(t[e]));return n.join("")}function Jt(t,n){const e=n&31;return t<<e|t>>>32-e}function qt(t){return(R0[t>>>24&255]&255)<<24|(R0[t>>>16&255]&255)<<16|(R0[t>>>8&255]&255)<<8|R0[t&255]&255}function P0(t){return t^Jt(t,2)^Jt(t,10)^Jt(t,18)^Jt(t,24)}function O0(t){return t^Jt(t,13)^Jt(t,23)}function qf(t,n,e){const r=new Array(4),i=new Array(4);for(let o=0;o<4;o++)i[0]=t[4*o]&255,i[1]=t[4*o+1]&255,i[2]=t[4*o+2]&255,i[3]=t[4*o+3]&255,r[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];for(let o=0,s;o<32;o+=4)s=r[1]^r[2]^r[3]^e[o+0],r[0]^=P0(qt(s)),s=r[2]^r[3]^r[0]^e[o+1],r[1]^=P0(qt(s)),s=r[3]^r[0]^r[1]^e[o+2],r[2]^=P0(qt(s)),s=r[0]^r[1]^r[2]^e[o+3],r[3]^=P0(qt(s));for(let o=0;o<16;o+=4)n[o]=r[3-o/4]>>>24&255,n[o+1]=r[3-o/4]>>>16&255,n[o+2]=r[3-o/4]>>>8&255,n[o+3]=r[3-o/4]&255}function Mf(t,n,e){const r=new Array(4),i=new Array(4);for(let o=0;o<4;o++)i[0]=t[0+4*o]&255,i[1]=t[1+4*o]&255,i[2]=t[2+4*o]&255,i[3]=t[3+4*o]&255,r[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let o=0,s;o<32;o+=4)s=r[1]^r[2]^r[3]^I0[o+0],n[o+0]=r[0]^=O0(qt(s)),s=r[2]^r[3]^r[0]^I0[o+1],n[o+1]=r[1]^=O0(qt(s)),s=r[3]^r[0]^r[1]^I0[o+2],n[o+2]=r[2]^=O0(qt(s)),s=r[0]^r[1]^r[2]^I0[o+3],n[o+3]=r[3]^=O0(qt(s));if(e===Rt)for(let o=0,s;o<16;o++)s=n[o],n[o]=n[31-o],n[31-o]=s}function Ni(t,n,e,{padding:r="pkcs#7",mode:i,iv:o=[],output:s="string"}={}){if(i==="cbc"&&(typeof o=="string"&&(o=Vr(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof n=="string"&&(n=Vr(n)),n.length!==128/8)throw new Error("key is invalid");if(typeof t=="string"?e!==Rt?t=Pf(t):t=Vr(t):t=[...t],(r==="pkcs#5"||r==="pkcs#7")&&e!==Rt){const x=jt-t.length%jt;for(let u=0;u<x;u++)t.push(x)}const c=new Array(Rf);Mf(n,c,e);const h=[];let a=o,f=t.length,p=0;for(;f>=jt;){const x=t.slice(p,p+16),u=new Array(16);if(i==="cbc")for(let b=0;b<jt;b++)e!==Rt&&(x[b]^=a[b]);qf(x,u,c);for(let b=0;b<jt;b++)i==="cbc"&&e===Rt&&(u[b]^=a[b]),h[p+b]=u[b];i==="cbc"&&(e!==Rt?a=u:a=x),f-=jt,p+=jt}if((r==="pkcs#5"||r==="pkcs#7")&&e===Rt){const x=h.length,u=h[x-1];for(let b=1;b<=u;b++)if(h[x-b]!==u)throw new Error("padding is invalid");h.splice(x-u,u)}return s!=="array"?e!==Rt?If(h):Of(h):h}var Nf={encrypt(t,n,e){return Ni(t,n,1,e)},decrypt(t,n,e){return Ni(t,n,0,e)}},Hi={sm2:Af,sm3:kf,sm4:Nf};const Hf=["appId","signatureMethod","signatureNonce","timestamp","viewerToken","sign","encryptResponseType"],Uf=Dt("MDQ1QjgxNTVFOTc0N0MyODNBQ0Y4NDI4OTVEMzA0OEU2Q0E5NDNDQzQ1NEFGQTZBOUE0NTJCNTkwM0NDMzBGQ0UyNzhBNkY4OEY2MDJFREY4MDNEQUI0MEJENDVFMzVGNjYwNjc2QkY2OEZEN0NDQkUwRjZBRDMyMzg4MTM2Q0QwRA=="),zf=Dt("MDBCMzE5NjE4QjRCMUJBRUI4Q0M2NzY1RDg5MDNDMDVBMEIxNkQ5RDlGQ0QxNjMyNzFCQjZGMUI4OEY2NTdBMjhF");var K0;(function(t){t[t.C1C3C2=1]="C1C3C2",t[t.C1C2C3=0]="C1C2C3"})(K0||(K0={}));function Ui(t,n){const e=/^04/.test(t);return e&&!n?t.substring(2):!e&&n?`04${t}`:t}class jf{constructor(n){ye(this,"__platformPublicKey");ye(this,"__userPrivateKey");ye(this,"__ignoreEncryptFields");ye(this,"__useSM2");ye(this,"__encryptPostSM2");var e,r;this.__platformPublicKey=n.platformPublicKey,this.__userPrivateKey=n.userPrivateKey,this.__ignoreEncryptFields=[...Hf],n.includeIgnoreEncryptFields&&this.__ignoreEncryptFields.push(...n.includeIgnoreEncryptFields),this.__useSM2=(e=n.useSM2)!=null?e:!0,this.__encryptPostSM2=(r=n.encryptPostSM2)!=null?r:!0}usePlugin(n){const{useSM2:e=this.__useSM2}=n;return e}interceptIncludeParams(){return{encryptResponseType:2}}interceptEncryptRequest(n){const e=this.__handleParams(n),r=this.__handleData(n),i=this.__handleHeaders(n);return St(ze({},n),{params:e,data:r,headers:i})}interceptDecryptResponse(n,e){const r=n.data;if(!r.encryption||typeof r.data!="string")return n;const i=r.data;return r.data=this.__decryptTextSM2(i,e),n}__handleHeaders(n){var i;const e=n.headers||{},{encryptPostSM2:r=this.__encryptPostSM2}=n;return((i=n.method)==null?void 0:i.toLocaleUpperCase())==="POST"&&r&&(e["x-e-type"]=2),e}__handleParams(n){var i;const{encryptPostSM2:e=this.__encryptPostSM2}=n,r=n.params||{};return((i=n.method)==null?void 0:i.toLocaleUpperCase())!=="POST"||!e?r:this.__encryptObjectSM2(r,n,"xurlparam")}__handleData(n){var o;const e=n.data||{};if(((o=n.method)==null?void 0:o.toLocaleUpperCase())!=="POST")return e;let r=e;const{encryptPostSM2:i=this.__encryptPostSM2}=n;return i&&(typeof e=="string"?r=this.__encryptTextSM2(e,n):n.requestType==="json"?r=this.__encryptTextSM2(JSON.stringify(n.data||{}),n):r=this.__encryptObjectSM2(e,n,"xparam")),r}__encryptObjectSM2(n,e,r){const i=Object.keys(n);if(i.length===0)return n;const o={},s={};i.forEach(h=>{this.__ignoreEncryptFields.includes(h)?o[h]=n[h]:s[h]=n[h]});const c=ze({},o);if(Object.keys(s).length){const h=this.__encryptTextSM2(JSON.stringify(s),e);c[r]=h}return c}__encryptTextSM2(n,e){const r=this.__getPublicKey(e);return Ui(Hi.sm2.doEncrypt(n,r,K0.C1C2C3),!0)}__decryptTextSM2(n,e){const r=this.__getPrivateKey(e);let i="";try{i=Hi.sm2.doDecrypt(Ui(n,!1),r,K0.C1C2C3)}catch(s){console.error("decryptTextSM2 decrypt error",s,{encryptedText:n})}let o=i;try{o=JSON.parse(o)}catch(s){}return o}__getPrivateKey(n){return"appId"in(n.params||{})?this.__userPrivateKey:zf}__getPublicKey(n){return"appId"in(n.params||{})?this.__platformPublicKey:Uf}}class Lf extends oo{constructor(n){var o,s,c,h;const e=[],{authorizeMethod:r=b0.Token}=n.config;r===b0.Token&&e.push(new ao({getTokenInfo:()=>De(this,null,function*(){const{getChannelToken:a,getViewerToken:f}=n.config;let p;if(a){const x=yield a();if(!x)return;p=x.channelToken}if(f){const x=yield f();if(!x)return;p=x.viewerToken}if(p)return{token:p}})})),r===b0.Sign&&e.push(new Lc({appId:(o=n.config.appSignSecretKey)==null?void 0:o.appId,appSecret:(s=n.config.appSignSecretKey)==null?void 0:s.appSecret,signatureNonce:n.config.signatureNonce,signatureMethod:n.config.signatureMethod,getAppSign:n.config.getAppSign}));const i=n.config.securityMode;i===a0.AES&&e.push(new Gc({appId:(c=n.config.appSignSecretKey)==null?void 0:c.appId,appSecret:(h=n.config.appSignSecretKey)==null?void 0:h.appSecret})),i===a0.SM2&&n.config.sm2Key&&e.push(new jf({platformPublicKey:n.config.sm2Key.platformPublicKey,userPrivateKey:n.config.sm2Key.userPrivateKey})),super({baseUrl:io(yn(n.config.domainInfo).polyvApiDomain,"https"),requestPlugins:[...e,new Ac({getBusinessData:()=>De(this,null,function*(){const a=n.getUserInfo();return{channelId:(yield n.channel.getChannelInfo()).channelId,viewerId:a.userId,unionId:a.unionId}})}),new Fo({decryptKeys:{sign:"polyvInteractSdk",iv:"1111000011101101"}}),new so({successCode:200})]}),this._plvSocket=n}getTokenFieldByUserType(){return De(this,null,function*(){const n=this._plvSocket.getUserInfo();let e="viewerToken";return this._plvSocket.isSpecialUserType(n.userType)&&(e="channelToken"),e})}}var vt=(t=>(t.ConnectSuccess="ConnectSuccess",t.ReconnectSuccess="ReconnectSuccess",t.ConnectFailed="ConnectFailed",t.Disconnect="Disconnect",t.LoginSuccess="LoginSuccess",t.LoginFailed="LoginFailed",t.SessionUpdate="SessionUpdate",t))(vt||{});class gn{constructor(n){this._plvSocket=n}setup(n){return De(this,null,function*(){})}}const Wf="polyv-socket";class $f extends gn{constructor(e){var r;super(e);ye(this,"__channelId");ye(this,"__sessionId");ye(this,"__accountId");ye(this,"__inTargetSession",!1);ye(this,"__teacherInfo");ye(this,"__onTeacherInfo",e=>{this.__teacherInfo||(this.__teacherInfo={userId:e.data.userId,nick:e.data.nick,pic:e.data.pic,actor:e.data.actor})});this.__channelId=e.config.channelInfo.channelId,this.__sessionId=e.config.channelInfo.sessionId,this.__inTargetSession=(r=e.config.channelInfo.inTargetSession)!=null?r:!1,this.__accountId=e.config.channelInfo.accountId,e.config.teacherInfo&&(this.__teacherInfo=e.config.teacherInfo),e.addSocketHandles(Wf,{O_TEACHER_INFO:this.__onTeacherInfo})}getTeacherInfo(){return this.__teacherInfo}getChannelInfo(){return Promise.resolve({channelId:this.__channelId,sessionId:this.__sessionId,inTargetSession:this.__inTargetSession,accountId:this.__accountId})}updateSession(e){typeof e.sessionId=="string"&&(this.__sessionId=e.sessionId),typeof e.inTargetSession=="boolean"&&(this.__inTargetSession=e.inTargetSession),this._plvSocket.eventEmitter.emit(vt.SessionUpdate,{})}}const Kf=Object.prototype.hasOwnProperty;function zi(t,n){return Kf.call(t,n)}function Vf(){return zi(window,"WebSocket")||zi(window,"MozWebSocket")}const $o=["message","product","lottery","questionnaire","coupon","activityLottery","testQuestion","emotion","speak","customMessage","motivation","fakeLikes"];class Xf{constructor(){ye(this,"__defaultEventKey","DEFAULT_EVENT");ye(this,"__allEventKey","ALL_EVENT");ye(this,"__appSocketEventStore",{});ye(this,"__socketListens",{});for(const n of $o)this.__socketListens[n]=this.__createSocketHandle(n)}__createSocketHandle(n){return e=>{try{if(e instanceof ArrayBuffer)return;const r=JSON.parse(e);if(r){const i=s=>{for(const c in this.__appSocketEventStore){const h=`${n}.${s}`;c.includes(h)&&this.__appSocketEventStore[c].forEach(f=>{f(r)})}},o=r.EVENT||this.__defaultEventKey;i(o),i(this.__allEventKey)}}catch(r){console.warn(r)}}}listenSocketEvent(n){return De(this,null,function*(){for(const e in this.__socketListens){const r=this.__socketListens[e];if(!r)return;n.on(e,r)}})}addSocketHandles(n,e,r){const i=(o,s)=>{const c=`${n}.${r}.${o}`;this.__appSocketEventStore[c]||(this.__appSocketEventStore[c]=[]),this.__appSocketEventStore[c].push(s)};if(typeof e=="function"){i(this.__allEventKey,e);return}for(const o in e)i(o,e[o])}clearSocketHandles(n){for(const e in this.__appSocketEventStore){const[r]=e.split(".");r===n&&delete this.__appSocketEventStore[e]}}}var At=(t=>(t.Student="student",t.Slice="slice",t.Viewer="viewer",t.Teacher="teacher",t.Assistant="assistant",t.Manager="manager",t.Guest="guest",t.UserTagsMonitor="userTagsMonitor",t.Attendee="attendee",t.Listener="listener",t.Host="host",t.Dummy="dummy",t))(At||{}),n0=(t=>(t.TokenExpired="TokenExpired",t.SocketConnectError="SocketConnectError",t.SocketConnectTimeout="SocketConnectTimeout",t))(n0||{}),nn={exports:{}},Gf=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yf=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],Ko=function(n){var e=n,r=n.indexOf("["),i=n.indexOf("]");r!=-1&&i!=-1&&(n=n.substring(0,r)+n.substring(r,i).replace(/:/g,";")+n.substring(i,n.length));for(var o=Gf.exec(n||""),s={},c=14;c--;)s[Yf[c]]=o[c]||"";return r!=-1&&i!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Zf(s,s.path),s.queryKey=Qf(s,s.query),s};function Zf(t,n){var e=/\/{2,9}/g,r=n.replace(e,"/").split("/");return(n.substr(0,1)=="/"||n.length===0)&&r.splice(0,1),n.substr(n.length-1,1)=="/"&&r.splice(r.length-1,1),r}function Qf(t,n){var e={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(e[i]=o)}),e}var on={exports:{}},an={exports:{}},E0=1e3,_0=E0*60,w0=_0*60,B0=w0*24,Jf=B0*365.25,ex=function(t,n){n=n||{};var e=typeof t;if(e==="string"&&t.length>0)return tx(t);if(e==="number"&&isNaN(t)===!1)return n.long?nx(t):rx(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function tx(t){if(t=String(t),!(t.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var e=parseFloat(n[1]),r=(n[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return e*Jf;case"days":case"day":case"d":return e*B0;case"hours":case"hour":case"hrs":case"hr":case"h":return e*w0;case"minutes":case"minute":case"mins":case"min":case"m":return e*_0;case"seconds":case"second":case"secs":case"sec":case"s":return e*E0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function rx(t){return t>=B0?Math.round(t/B0)+"d":t>=w0?Math.round(t/w0)+"h":t>=_0?Math.round(t/_0)+"m":t>=E0?Math.round(t/E0)+"s":t+"ms"}function nx(t){return q0(t,B0,"day")||q0(t,w0,"hour")||q0(t,_0,"minute")||q0(t,E0,"second")||t+" ms"}function q0(t,n,e){if(!(t<n))return t<n*1.5?Math.floor(t/n)+" "+e:Math.ceil(t/n)+" "+e+"s"}(function(t,n){n=t.exports=r.debug=r.default=r,n.coerce=h,n.disable=s,n.enable=o,n.enabled=c,n.humanize=ex,n.instances=[],n.names=[],n.skips=[],n.formatters={};function e(a){var f=0,p;for(p in a)f=(f<<5)-f+a.charCodeAt(p),f|=0;return n.colors[Math.abs(f)%n.colors.length]}function r(a){var f;function p(){if(p.enabled){var x=p,u=+new Date,b=u-(f||u);x.diff=b,x.prev=f,x.curr=u,f=u;for(var m=new Array(arguments.length),E=0;E<m.length;E++)m[E]=arguments[E];m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var A=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(v,d){if(v==="%%")return v;A++;var _=n.formatters[d];if(typeof _=="function"){var B=m[A];v=_.call(x,B),m.splice(A,1),A--}return v}),n.formatArgs.call(x,m);var g=p.log||n.log||console.log.bind(console);g.apply(x,m)}}return p.namespace=a,p.enabled=n.enabled(a),p.useColors=n.useColors(),p.color=e(a),p.destroy=i,typeof n.init=="function"&&n.init(p),n.instances.push(p),p}function i(){var a=n.instances.indexOf(this);return a!==-1?(n.instances.splice(a,1),!0):!1}function o(a){n.save(a),n.names=[],n.skips=[];var f,p=(typeof a=="string"?a:"").split(/[\s,]+/),x=p.length;for(f=0;f<x;f++)p[f]&&(a=p[f].replace(/\*/g,".*?"),a[0]==="-"?n.skips.push(new RegExp("^"+a.substr(1)+"$")):n.names.push(new RegExp("^"+a+"$")));for(f=0;f<n.instances.length;f++){var u=n.instances[f];u.enabled=n.enabled(u.namespace)}}function s(){n.enable("")}function c(a){if(a[a.length-1]==="*")return!0;var f,p;for(f=0,p=n.skips.length;f<p;f++)if(n.skips[f].test(a))return!1;for(f=0,p=n.names.length;f<p;f++)if(n.names[f].test(a))return!0;return!1}function h(a){return a instanceof Error?a.stack||a.message:a}})(an,an.exports);var ix=an.exports;(function(t,n){n=t.exports=ix,n.log=i,n.formatArgs=r,n.save=o,n.load=s,n.useColors=e,n.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:c(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function e(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(h){try{return JSON.stringify(h)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function r(h){var a=this.useColors;if(h[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+h[0]+(a?"%c ":" ")+"+"+n.humanize(this.diff),!!a){var f="color: "+this.color;h.splice(1,0,f,"color: inherit");var p=0,x=0;h[0].replace(/%[a-zA-Z%]/g,function(u){u!=="%%"&&(p++,u==="%c"&&(x=p))}),h.splice(x,0,f)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(h){try{h==null?n.storage.removeItem("debug"):n.storage.debug=h}catch(a){}}function s(){var h;try{h=n.storage.debug}catch(a){}return!h&&typeof process!="undefined"&&"env"in process&&(h=process.env.DEBUG),h}n.enable(s());function c(){try{return window.localStorage}catch(h){}}})(on,on.exports);var Tt=on.exports,ox=Ko,ji=Tt("socket.io-client:url"),ax=sx;function sx(t,n){var e=t;n=n||typeof location!="undefined"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(ji("protocol-less url %s",t),typeof n!="undefined"?t=n.protocol+"//"+t:t="https://"+t),ji("parse %s",t),e=ox(t)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";var r=e.host.indexOf(":")!==-1,i=r?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+i+":"+e.port,e.href=e.protocol+"://"+i+(n&&n.port===e.port?"":":"+e.port),e}var J0={},Vo={exports:{}};(function(t){t.exports=n;function n(r){if(r)return e(r)}function e(r){for(var i in n.prototype)r[i]=n.prototype[i];return r}n.prototype.on=n.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this},n.prototype.once=function(r,i){function o(){this.off(r,o),i.apply(this,arguments)}return o.fn=i,this.on(r,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+r];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,c=0;c<o.length;c++)if(s=o[c],s===i||s.fn===i){o.splice(c,1);break}return o.length===0&&delete this._callbacks["$"+r],this},n.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),o=this._callbacks["$"+r],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(o){o=o.slice(0);for(var s=0,c=o.length;s<c;++s)o[s].apply(this,i)}return this},n.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},n.prototype.hasListeners=function(r){return!!this.listeners(r).length}})(Vo);var x0=Vo.exports,er={},cx={}.toString,mn=Array.isArray||function(t){return cx.call(t)=="[object Array]"},Xo=dx,fx=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",xx=typeof ArrayBuffer=="function",ux=function(t){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer};function dx(t){return fx&&Buffer.isBuffer(t)||xx&&(t instanceof ArrayBuffer||ux(t))}var En=mn,Go=Xo,Yo=Object.prototype.toString,hx=typeof Blob=="function"||typeof Blob!="undefined"&&Yo.call(Blob)==="[object BlobConstructor]",lx=typeof File=="function"||typeof File!="undefined"&&Yo.call(File)==="[object FileConstructor]";er.deconstructPacket=function(t){var n=[],e=t.data,r=t;return r.data=sn(e,n),r.attachments=n.length,{packet:r,buffers:n}};function sn(t,n){if(!t)return t;if(Go(t)){var e={_placeholder:!0,num:n.length};return n.push(t),e}else if(En(t)){for(var r=new Array(t.length),i=0;i<t.length;i++)r[i]=sn(t[i],n);return r}else if(typeof t=="object"&&!(t instanceof Date)){var r={};for(var o in t)r[o]=sn(t[o],n);return r}return t}er.reconstructPacket=function(t,n){return t.data=cn(t.data,n),t.attachments=void 0,t};function cn(t,n){if(!t)return t;if(t&&t._placeholder===!0){var e=typeof t.num=="number"&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw new Error("illegal attachments")}else if(En(t))for(var r=0;r<t.length;r++)t[r]=cn(t[r],n);else if(typeof t=="object")for(var i in t)t[i]=cn(t[i],n);return t}er.removeBlobs=function(t,n){function e(o,s,c){if(!o)return o;if(hx&&o instanceof Blob||lx&&o instanceof File){r++;var h=new FileReader;h.onload=function(){c?c[s]=this.result:i=this.result,--r||n(i)},h.readAsArrayBuffer(o)}else if(En(o))for(var a=0;a<o.length;a++)e(o[a],a,o);else if(typeof o=="object"&&!Go(o))for(var f in o)e(o[f],f,o)}var r=0,i=t;e(i),r||n(i)};(function(t){var n=Tt("socket.io-parser"),e=x0,r=er,i=mn,o=Xo;t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=s,t.Decoder=p;function s(){}var c=t.ERROR+'"encode error"';s.prototype.encode=function(A,g){if(n("encoding packet %j",A),t.BINARY_EVENT===A.type||t.BINARY_ACK===A.type)f(A,g);else{var v=h(A);g([v])}};function h(A){var g=""+A.type;if((t.BINARY_EVENT===A.type||t.BINARY_ACK===A.type)&&(g+=A.attachments+"-"),A.nsp&&A.nsp!=="/"&&(g+=A.nsp+","),A.id!=null&&(g+=A.id),A.data!=null){var v=a(A.data);if(v!==!1)g+=v;else return c}return n("encoded %j as %s",A,g),g}function a(A){try{return JSON.stringify(A)}catch(g){return!1}}function f(A,g){function v(d){var _=r.deconstructPacket(d),B=h(_.packet),C=_.buffers;C.unshift(B),g(C)}r.removeBlobs(A,v)}function p(){this.reconstructor=null}e(p.prototype),p.prototype.add=function(A){var g;if(typeof A=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");g=u(A),t.BINARY_EVENT===g.type||t.BINARY_ACK===g.type?(this.reconstructor=new m(g),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",g)):this.emit("decoded",g)}else if(o(A)||A.base64)if(this.reconstructor)g=this.reconstructor.takeBinaryData(A),g&&(this.reconstructor=null,this.emit("decoded",g));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+A)};function x(A,g){switch(A){case 0:return typeof g=="object";case 1:return g===void 0;case 4:return typeof g=="string"||typeof g=="object";case 2:case 5:return i(g)&&(typeof g[0]=="string"||typeof g[0]=="number");case 3:case 6:return i(g)}}function u(A){var g=0,v={type:Number(A.charAt(0))};if(t.types[v.type]==null)return E("unknown packet type "+v.type);if(t.BINARY_EVENT===v.type||t.BINARY_ACK===v.type){for(var d=g+1;A.charAt(++g)!=="-"&&g!=A.length;);var _=A.substring(d,g);if(_!=Number(_)||A.charAt(g)!=="-")throw new Error("Illegal attachments");v.attachments=Number(_)}if(A.charAt(g+1)==="/"){for(var d=g+1;++g;){var B=A.charAt(g);if(B===","||g===A.length)break}v.nsp=A.substring(d,g)}else v.nsp="/";var C=A.charAt(g+1);if(C!==""&&Number(C)==C){for(var d=g+1;++g;){var B=A.charAt(g);if(B==null||Number(B)!=B){--g;break}if(g===A.length)break}v.id=Number(A.substring(d,g+1))}if(A.charAt(++g)){var S=b(A.substr(g));if(x(v.type,S))v.data=S;else throw new Error("invalid payload")}return n("decoded %s as %j",A,v),v}function b(A){try{return JSON.parse(A)}catch(g){return!1}}p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function m(A){this.reconPack=A,this.buffers=[]}m.prototype.takeBinaryData=function(A){if(this.buffers.push(A),this.buffers.length===this.reconPack.attachments){var g=r.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),g}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function E(A){return{type:t.ERROR,data:"parser error: "+A}}})(J0);var _n={exports:{}},tr={},fn={exports:{}};try{fn.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(t){fn.exports=!1}var px=fn.exports,wn=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}(),vx=px,bx=wn,Bn=function(t){var n=t.xdomain,e=t.xscheme,r=t.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!n||vx))return new XMLHttpRequest}catch(i){}try{if(typeof XDomainRequest!="undefined"&&!e&&r)return new XDomainRequest}catch(i){}if(!n)try{return new bx[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(i){}},An={exports:{}},Xt={},yx=Object.keys||function(n){var e=[],r=Object.prototype.hasOwnProperty;for(var i in n)r.call(n,i)&&e.push(i);return e},gx=mn,Zo=Object.prototype.toString,mx=typeof Blob=="function"||typeof Blob!="undefined"&&Zo.call(Blob)==="[object BlobConstructor]",Ex=typeof File=="function"||typeof File!="undefined"&&Zo.call(File)==="[object FileConstructor]",Qo=j0;function j0(t){if(!t||typeof t!="object")return!1;if(gx(t)){for(var n=0,e=t.length;n<e;n++)if(j0(t[n]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(t)||typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||mx&&t instanceof Blob||Ex&&t instanceof File)return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return j0(t.toJSON(),!0);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&j0(t[r]))return!0;return!1}var _x=function(t,n,e){var r=t.byteLength;if(n=n||0,e=e||r,t.slice)return t.slice(n,e);if(n<0&&(n+=r),e<0&&(e+=r),e>r&&(e=r),n>=r||n>=e||r===0)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(e-n),s=n,c=0;s<e;s++,c++)o[c]=i[s];return o.buffer},wx=Bx;function Bx(t,n,e){var r=!1;return e=e||Ax,i.count=t,t===0?n():i;function i(o,s){if(i.count<=0)throw new Error("after called too many times");--i.count,o?(r=!0,n(o),n=e):i.count===0&&!r&&n(null,s)}}function Ax(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Ot=String.fromCharCode;function Jo(t){for(var n=[],e=0,r=t.length,i,o;e<r;)i=t.charCodeAt(e++),i>=55296&&i<=56319&&e<r?(o=t.charCodeAt(e++),(o&64512)==56320?n.push(((i&1023)<<10)+(o&1023)+65536):(n.push(i),e--)):n.push(i);return n}function Cx(t){for(var n=t.length,e=-1,r,i="";++e<n;)r=t[e],r>65535&&(r-=65536,i+=Ot(r>>>10&1023|55296),r=56320|r&1023),i+=Ot(r);return i}function ea(t,n){if(t>=55296&&t<=57343){if(n)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Xr(t,n){return Ot(t>>n&63|128)}function Fx(t,n){if(!(t&4294967168))return Ot(t);var e="";return t&4294965248?t&4294901760?t&4292870144||(e=Ot(t>>18&7|240),e+=Xr(t,12),e+=Xr(t,6)):(ea(t,n)||(t=65533),e=Ot(t>>12&15|224),e+=Xr(t,6)):e=Ot(t>>6&31|192),e+=Ot(t&63|128),e}function Sx(t,n){n=n||{};for(var e=n.strict!==!1,r=Jo(t),i=r.length,o=-1,s,c="";++o<i;)s=r[o],c+=Fx(s,e);return c}function Gt(){if(Mt>=X0)throw Error("Invalid byte index");var t=V0[Mt]&255;if(Mt++,(t&192)==128)return t&63;throw Error("Invalid continuation byte")}function Dx(t){var n,e,r,i,o;if(Mt>X0)throw Error("Invalid byte index");if(Mt==X0)return!1;if(n=V0[Mt]&255,Mt++,!(n&128))return n;if((n&224)==192){if(e=Gt(),o=(n&31)<<6|e,o>=128)return o;throw Error("Invalid continuation byte")}if((n&240)==224){if(e=Gt(),r=Gt(),o=(n&15)<<12|e<<6|r,o>=2048)return ea(o,t)?o:65533;throw Error("Invalid continuation byte")}if((n&248)==240&&(e=Gt(),r=Gt(),i=Gt(),o=(n&7)<<18|e<<12|r<<6|i,o>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}var V0,X0,Mt;function Tx(t,n){n=n||{};var e=n.strict!==!1;V0=Jo(t),X0=V0.length,Mt=0;for(var r=[],i;(i=Dx(e))!==!1;)r.push(i);return Cx(r)}var kx={version:"2.1.2",encode:Sx,decode:Tx},M0={},Li;function Rx(){return Li||(Li=1,function(t){M0.encode=function(n){var e=new Uint8Array(n),r,i=e.length,o="";for(r=0;r<i;r+=3)o+=t[e[r]>>2],o+=t[(e[r]&3)<<4|e[r+1]>>4],o+=t[(e[r+1]&15)<<2|e[r+2]>>6],o+=t[e[r+2]&63];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},M0.decode=function(n){var e=n.length*.75,r=n.length,i,o=0,s,c,h,a;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var f=new ArrayBuffer(e),p=new Uint8Array(f);for(i=0;i<r;i+=4)s=t.indexOf(n[i]),c=t.indexOf(n[i+1]),h=t.indexOf(n[i+2]),a=t.indexOf(n[i+3]),p[o++]=s<<2|c>>4,p[o++]=(c&15)<<4|h>>2,p[o++]=(h&3)<<6|a&63;return f}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),M0}var Gr,Wi;function Ix(){if(Wi)return Gr;Wi=1;var t=typeof t!="undefined"?t:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,n=function(){try{var c=new Blob(["hi"]);return c.size===2}catch(h){return!1}}(),e=n&&function(){try{var c=new Blob([new Uint8Array([1,2])]);return c.size===2}catch(h){return!1}}(),r=t&&t.prototype.append&&t.prototype.getBlob;function i(c){return c.map(function(h){if(h.buffer instanceof ArrayBuffer){var a=h.buffer;if(h.byteLength!==a.byteLength){var f=new Uint8Array(h.byteLength);f.set(new Uint8Array(a,h.byteOffset,h.byteLength)),a=f.buffer}return a}return h})}function o(c,h){h=h||{};var a=new t;return i(c).forEach(function(f){a.append(f)}),h.type?a.getBlob(h.type):a.getBlob()}function s(c,h){return new Blob(i(c),h||{})}return typeof Blob!="undefined"&&(o.prototype=Blob.prototype,s.prototype=Blob.prototype),Gr=function(){return n?e?Blob:s:r?o:void 0}(),Gr}(function(t){var n=yx,e=Qo,r=_x,i=wx,o=kx,s;typeof ArrayBuffer!="undefined"&&(s=Rx());var c=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),h=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),a=c||h;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=n(f),x={type:"error",data:"parser error"},u=Ix();t.encodePacket=function(d,_,B,C){typeof _=="function"&&(C=_,_=!1),typeof B=="function"&&(C=B,B=null);var S=d.data===void 0?void 0:d.data.buffer||d.data;if(typeof ArrayBuffer!="undefined"&&S instanceof ArrayBuffer)return m(d,_,C);if(typeof u!="undefined"&&S instanceof u)return A(d,_,C);if(S&&S.base64)return b(d,C);var k=f[d.type];return d.data!==void 0&&(k+=B?o.encode(String(d.data),{strict:!1}):String(d.data)),C(""+k)};function b(d,_){var B="b"+t.packets[d.type]+d.data.data;return _(B)}function m(d,_,B){if(!_)return t.encodeBase64Packet(d,B);var C=d.data,S=new Uint8Array(C),k=new Uint8Array(1+C.byteLength);k[0]=f[d.type];for(var F=0;F<S.length;F++)k[F+1]=S[F];return B(k.buffer)}function E(d,_,B){if(!_)return t.encodeBase64Packet(d,B);var C=new FileReader;return C.onload=function(){t.encodePacket({type:d.type,data:C.result},_,!0,B)},C.readAsArrayBuffer(d.data)}function A(d,_,B){if(!_)return t.encodeBase64Packet(d,B);if(a)return E(d,_,B);var C=new Uint8Array(1);C[0]=f[d.type];var S=new u([C.buffer,d.data]);return B(S)}t.encodeBase64Packet=function(d,_){var B="b"+t.packets[d.type];if(typeof u!="undefined"&&d.data instanceof u){var C=new FileReader;return C.onload=function(){var O=C.result.split(",")[1];_(B+O)},C.readAsDataURL(d.data)}var S;try{S=String.fromCharCode.apply(null,new Uint8Array(d.data))}catch(O){for(var k=new Uint8Array(d.data),F=new Array(k.length),D=0;D<k.length;D++)F[D]=k[D];S=String.fromCharCode.apply(null,F)}return B+=btoa(S),_(B)},t.decodePacket=function(d,_,B){if(d===void 0)return x;if(typeof d=="string"){if(d.charAt(0)==="b")return t.decodeBase64Packet(d.substr(1),_);if(B&&(d=g(d),d===!1))return x;var S=d.charAt(0);return Number(S)!=S||!p[S]?x:d.length>1?{type:p[S],data:d.substring(1)}:{type:p[S]}}var C=new Uint8Array(d),S=C[0],k=r(d,1);return u&&_==="blob"&&(k=new u([k])),{type:p[S],data:k}};function g(d){try{d=o.decode(d,{strict:!1})}catch(_){return!1}return d}t.decodeBase64Packet=function(d,_){var B=p[d.charAt(0)];if(!s)return{type:B,data:{base64:!0,data:d.substr(1)}};var C=s.decode(d.substr(1));return _==="blob"&&u&&(C=new u([C])),{type:B,data:C}},t.encodePayload=function(d,_,B){typeof _=="function"&&(B=_,_=null);var C=e(d);if(_&&C)return u&&!a?t.encodePayloadAsBlob(d,B):t.encodePayloadAsArrayBuffer(d,B);if(!d.length)return B("0:");function S(F){return F.length+":"+F}function k(F,D){t.encodePacket(F,C?_:!1,!1,function(O){D(null,S(O))})}v(d,k,function(F,D){return B(D.join(""))})};function v(d,_,B){for(var C=new Array(d.length),S=i(d.length,B),k=function(D,O,M){_(O,function(U,z){C[D]=z,M(U,C)})},F=0;F<d.length;F++)k(F,d[F],S)}t.decodePayload=function(d,_,B){if(typeof d!="string")return t.decodePayloadAsBinary(d,_,B);typeof _=="function"&&(B=_,_=null);var C;if(d==="")return B(x,0,1);for(var S="",k,F,D=0,O=d.length;D<O;D++){var M=d.charAt(D);if(M!==":"){S+=M;continue}if(S===""||S!=(k=Number(S))||(F=d.substr(D+1,k),S!=F.length))return B(x,0,1);if(F.length){if(C=t.decodePacket(F,_,!1),x.type===C.type&&x.data===C.data)return B(x,0,1);var U=B(C,D+k,O);if(U===!1)return}D+=k,S=""}if(S!=="")return B(x,0,1)},t.encodePayloadAsArrayBuffer=function(d,_){if(!d.length)return _(new ArrayBuffer(0));function B(C,S){t.encodePacket(C,!0,!0,function(k){return S(null,k)})}v(d,B,function(C,S){var k=S.reduce(function(O,M){var U;return typeof M=="string"?U=M.length:U=M.byteLength,O+U.toString().length+U+2},0),F=new Uint8Array(k),D=0;return S.forEach(function(O){var M=typeof O=="string",U=O;if(M){for(var W=new Uint8Array(O.length),z=0;z<O.length;z++)W[z]=O.charCodeAt(z);U=W.buffer}M?F[D++]=0:F[D++]=1;for(var j=U.byteLength.toString(),z=0;z<j.length;z++)F[D++]=parseInt(j[z]);F[D++]=255;for(var W=new Uint8Array(U),z=0;z<W.length;z++)F[D++]=W[z]}),_(F.buffer)})},t.encodePayloadAsBlob=function(d,_){function B(C,S){t.encodePacket(C,!0,!0,function(k){var F=new Uint8Array(1);if(F[0]=1,typeof k=="string"){for(var D=new Uint8Array(k.length),O=0;O<k.length;O++)D[O]=k.charCodeAt(O);k=D.buffer,F[0]=0}for(var M=k instanceof ArrayBuffer?k.byteLength:k.size,U=M.toString(),z=new Uint8Array(U.length+1),O=0;O<U.length;O++)z[O]=parseInt(U[O]);if(z[U.length]=255,u){var j=new u([F.buffer,z.buffer,k]);S(null,j)}})}v(d,B,function(C,S){return _(new u(S))})},t.decodePayloadAsBinary=function(d,_,B){typeof _=="function"&&(B=_,_=null);for(var C=d,S=[];C.byteLength>0;){for(var k=new Uint8Array(C),F=k[0]===0,D="",O=1;k[O]!==255;O++){if(D.length>310)return B(x,0,1);D+=k[O]}C=r(C,2+D.length),D=parseInt(D);var M=r(C,0,D);if(F)try{M=String.fromCharCode.apply(null,new Uint8Array(M))}catch(j){var U=new Uint8Array(M);M="";for(var O=0;O<U.length;O++)M+=String.fromCharCode(U[O])}S.push(M),C=r(C,D)}var z=S.length;S.forEach(function(j,W){B(t.decodePacket(j,_,!0),W,z)})}})(Xt);var Yr,$i;function Cn(){if($i)return Yr;$i=1;var t=Xt,n=x0;Yr=e;function e(r){this.path=r.path,this.hostname=r.hostname,this.port=r.port,this.secure=r.secure,this.query=r.query,this.timestampParam=r.timestampParam,this.timestampRequests=r.timestampRequests,this.readyState="",this.agent=r.agent||!1,this.socket=r.socket,this.enablesXDR=r.enablesXDR,this.withCredentials=r.withCredentials,this.pfx=r.pfx,this.key=r.key,this.passphrase=r.passphrase,this.cert=r.cert,this.ca=r.ca,this.ciphers=r.ciphers,this.rejectUnauthorized=r.rejectUnauthorized,this.forceNode=r.forceNode,this.isReactNative=r.isReactNative,this.extraHeaders=r.extraHeaders,this.localAddress=r.localAddress}return n(e.prototype),e.prototype.onError=function(r,i){var o=new Error(r);return o.type="TransportError",o.description=i,this.emit("error",o),this},e.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},e.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},e.prototype.send=function(r){if(this.readyState==="open")this.write(r);else throw new Error("Transport not open")},e.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},e.prototype.onData=function(r){var i=t.decodePacket(r,this.socket.binaryType);this.onPacket(i)},e.prototype.onPacket=function(r){this.emit("packet",r)},e.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Yr}var u0={};u0.encode=function(t){var n="";for(var e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n};u0.decode=function(t){for(var n={},e=t.split("&"),r=0,i=e.length;r<i;r++){var o=e[r].split("=");n[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return n};var rr=function(t,n){var e=function(){};e.prototype=n.prototype,t.prototype=new e,t.prototype.constructor=t},ta="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),G0=64,ra={},Ki=0,Nt=0,Vi;function xn(t){var n="";do n=ta[t%G0]+n,t=Math.floor(t/G0);while(t>0);return n}function Px(t){var n=0;for(Nt=0;Nt<t.length;Nt++)n=n*G0+ra[t.charAt(Nt)];return n}function Fn(){var t=xn(+new Date);return t!==Vi?(Ki=0,Vi=t):t+"."+xn(Ki++)}for(;Nt<G0;Nt++)ra[ta[Nt]]=Nt;Fn.encode=xn;Fn.decode=Px;var na=Fn,ia=Cn(),Ox=u0,oa=Xt,qx=rr,Mx=na,wt=Tt("engine.io-client:polling"),aa=Ct,Nx=function(){var t=Bn,n=new t({xdomain:!1});return n.responseType!=null}();function Ct(t){var n=t&&t.forceBase64;(!Nx||n)&&(this.supportsBinary=!1),ia.call(this,t)}qx(Ct,ia);Ct.prototype.name="polling";Ct.prototype.doOpen=function(){this.poll()};Ct.prototype.pause=function(t){var n=this;this.readyState="pausing";function e(){wt("paused"),n.readyState="paused",t()}if(this.polling||!this.writable){var r=0;this.polling&&(wt("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){wt("pre-pause polling complete"),--r||e()})),this.writable||(wt("we are currently writing - waiting to pause"),r++,this.once("drain",function(){wt("pre-pause writing complete"),--r||e()}))}else e()};Ct.prototype.poll=function(){wt("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};Ct.prototype.onData=function(t){var n=this;wt("polling got data %s",t);var e=function(r,i,o){if(n.readyState==="opening"&&r.type==="open"&&n.onOpen(),r.type==="close")return n.onClose(),!1;n.onPacket(r)};oa.decodePayload(t,this.socket.binaryType,e),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():wt('ignoring poll - transport state "%s"',this.readyState))};Ct.prototype.doClose=function(){var t=this;function n(){wt("writing close packet"),t.write([{type:"close"}])}this.readyState==="open"?(wt("transport open - closing"),n()):(wt("transport not open - deferring close"),this.once("open",n))};Ct.prototype.write=function(t){var n=this;this.writable=!1;var e=function(){n.writable=!0,n.emit("drain")};oa.encodePayload(t,this.supportsBinary,function(r){n.doWrite(r,e)})};Ct.prototype.uri=function(){var t=this.query||{},n=this.secure?"https":"http",e="";this.timestampRequests!==!1&&(t[this.timestampParam]=Mx()),!this.supportsBinary&&!t.sid&&(t.b64=1),t=Ox.encode(t),this.port&&(n==="https"&&Number(this.port)!==443||n==="http"&&Number(this.port)!==80)&&(e=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.hostname+"]":this.hostname)+e+this.path+t};var Hx=Bn,sa=aa,Ux=x0,zx=rr,un=Tt("engine.io-client:polling-xhr"),jx=wn;An.exports=d0;An.exports.Request=tt;function Xi(){}function d0(t){if(sa.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,typeof location!="undefined"){var n=location.protocol==="https:",e=location.port;e||(e=n?443:80),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||e!==t.port,this.xs=t.secure!==n}}zx(d0,sa);d0.prototype.supportsBinary=!0;d0.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new tt(t)};d0.prototype.doWrite=function(t,n){var e=typeof t!="string"&&t!==void 0,r=this.request({method:"POST",data:t,isBinary:e}),i=this;r.on("success",n),r.on("error",function(o){i.onError("xhr post error",o)}),this.sendXhr=r};d0.prototype.doPoll=function(){un("xhr poll");var t=this.request(),n=this;t.on("data",function(e){n.onData(e)}),t.on("error",function(e){n.onError("xhr poll error",e)}),this.pollXhr=t};function tt(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}Ux(tt.prototype);tt.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new Hx(t),e=this;try{un("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var r in this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.extraHeaders[r])}}catch(i){}if(this.method==="POST")try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.withCredentials),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){e.onLoad()},n.onerror=function(){e.onError(n.responseText)}):n.onreadystatechange=function(){if(n.readyState===2)try{var i=n.getResponseHeader("Content-Type");(e.supportsBinary&&i==="application/octet-stream"||i==="application/octet-stream; charset=UTF-8")&&(n.responseType="arraybuffer")}catch(o){}n.readyState===4&&(n.status===200||n.status===1223?e.onLoad():setTimeout(function(){e.onError(typeof n.status=="number"?n.status:0)},0))},un("xhr data %s",this.data),n.send(this.data)}catch(i){setTimeout(function(){e.onError(i)},0);return}typeof document!="undefined"&&(this.index=tt.requestsCount++,tt.requests[this.index]=this)};tt.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};tt.prototype.onData=function(t){this.emit("data",t),this.onSuccess()};tt.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)};tt.prototype.cleanup=function(t){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Xi:this.xhr.onreadystatechange=Xi,t)try{this.xhr.abort()}catch(n){}typeof document!="undefined"&&delete tt.requests[this.index],this.xhr=null}};tt.prototype.onLoad=function(){var t;try{var n;try{n=this.xhr.getResponseHeader("Content-Type")}catch(e){}n==="application/octet-stream"||n==="application/octet-stream; charset=UTF-8"?t=this.xhr.response||this.xhr.responseText:t=this.xhr.responseText}catch(e){this.onError(e)}t!=null&&this.onData(t)};tt.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};tt.prototype.abort=function(){this.cleanup()};tt.requestsCount=0;tt.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Gi);else if(typeof addEventListener=="function"){var Lx="onpagehide"in jx?"pagehide":"unload";addEventListener(Lx,Gi,!1)}}function Gi(){for(var t in tt.requests)tt.requests.hasOwnProperty(t)&&tt.requests[t].abort()}var Wx=An.exports,Sn=aa,$x=rr,Yi=wn,Kx=h0,Vx=/\n/g,Xx=/\\n/g,N0;function Gx(){}function h0(t){Sn.call(this,t),this.query=this.query||{},N0||(N0=Yi.___eio=Yi.___eio||[]),this.index=N0.length;var n=this;N0.push(function(e){n.onData(e)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=Gx)},!1)}$x(h0,Sn);h0.prototype.supportsBinary=!1;h0.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),Sn.prototype.doClose.call(this)};h0.prototype.doPoll=function(){var t=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(i){t.onError("jsonp poll error",i)};var e=document.getElementsByTagName("script")[0];e?e.parentNode.insertBefore(n,e):(document.head||document.body).appendChild(n),this.script=n;var r=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var i=document.createElement("iframe");document.body.appendChild(i),document.body.removeChild(i)},100)};h0.prototype.doWrite=function(t,n){var e=this;if(!this.form){var r=document.createElement("form"),i=document.createElement("textarea"),o=this.iframeId="eio_iframe_"+this.index,s;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=o,r.method="POST",r.setAttribute("accept-charset","utf-8"),i.name="d",r.appendChild(i),document.body.appendChild(r),this.form=r,this.area=i}this.form.action=this.uri();function c(){h(),n()}function h(){if(e.iframe)try{e.form.removeChild(e.iframe)}catch(f){e.onError("jsonp polling iframe removal error",f)}try{var a='<iframe src="javascript:0" name="'+e.iframeId+'">';s=document.createElement(a)}catch(f){s=document.createElement("iframe"),s.name=e.iframeId,s.src="javascript:0"}s.id=e.iframeId,e.form.appendChild(s),e.iframe=s}h(),t=t.replace(Xx,`\\
|
|
21
|
+
`),this.area.value=t.replace(Vx,"\\n");try{this.form.submit()}catch(a){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){e.iframe.readyState==="complete"&&c()}:this.iframe.onload=c};var Dn=Cn(),Yx=Xt,Zx=u0,Qx=rr,Jx=na,eu=Tt("engine.io-client:websocket"),Y0,Tn;typeof WebSocket!="undefined"?Y0=WebSocket:typeof self!="undefined"&&(Y0=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{Tn=xo}catch(t){}var i0=Y0||Tn,tu=yt;function yt(t){var n=t&&t.forceBase64;n&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=Y0&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(i0=Tn),Dn.call(this,t)}Qx(yt,Dn);yt.prototype.name="websocket";yt.prototype.supportsBinary=!0;yt.prototype.doOpen=function(){if(this.check()){var t=this.uri(),n=this.protocols,e={};this.isReactNative||(e.agent=this.agent,e.perMessageDeflate=this.perMessageDeflate,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(e.headers=this.extraHeaders),this.localAddress&&(e.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new i0(t,n):new i0(t):new i0(t,n,e)}catch(r){return this.emit("error",r)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};yt.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(n){t.onData(n.data)},this.ws.onerror=function(n){t.onError("websocket error",n)}};yt.prototype.write=function(t){var n=this;this.writable=!1;for(var e=t.length,r=0,i=e;r<i;r++)(function(s){Yx.encodePacket(s,n.supportsBinary,function(c){if(!n.usingBrowserWebSocket){var h={};if(s.options&&(h.compress=s.options.compress),n.perMessageDeflate){var a=typeof c=="string"?Buffer.byteLength(c):c.length;a<n.perMessageDeflate.threshold&&(h.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(c):n.ws.send(c,h)}catch(f){eu("websocket closed before onclose event")}--e||o()})})(t[r]);function o(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}};yt.prototype.onClose=function(){Dn.prototype.onClose.call(this)};yt.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};yt.prototype.uri=function(){var t=this.query||{},n=this.secure?"wss":"ws",e="";this.port&&(n==="wss"&&Number(this.port)!==443||n==="ws"&&Number(this.port)!==80)&&(e=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=Jx()),this.supportsBinary||(t.b64=1),t=Zx.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.hostname+"]":this.hostname)+e+this.path+t};yt.prototype.check=function(){return!!i0&&!("__initialize"in i0&&this.name===yt.prototype.name)};var ru=Bn,nu=Wx,iu=Kx,ou=tu;tr.polling=au;tr.websocket=ou;function au(t){var n,e=!1,r=!1,i=t.jsonp!==!1;if(typeof location!="undefined"){var o=location.protocol==="https:",s=location.port;s||(s=o?443:80),e=t.hostname!==location.hostname||s!==t.port,r=t.secure!==o}if(t.xdomain=e,t.xscheme=r,n=new ru(t),"open"in n&&!t.forceJSONP)return new nu(t);if(!i)throw new Error("JSONP disabled");return new iu(t)}var su=[].indexOf,ca=function(t,n){if(su)return t.indexOf(n);for(var e=0;e<t.length;++e)if(t[e]===n)return e;return-1},cu=tr,fu=x0,Je=Tt("engine.io-client:socket"),xu=ca,fa=Xt,Zi=Ko,uu=u0,du=Me;function Me(t,n){if(!(this instanceof Me))return new Me(t,n);n=n||{},t&&typeof t=="object"&&(n=t,t=null),t?(t=Zi(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Zi(n.host).host),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=n.query||{},typeof this.query=="string"&&(this.query=uu.decode(this.query)),this.upgrade=n.upgrade!==!1,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=n.jsonp!==!1,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=n.withCredentials!==!1,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=n.perMessageDeflate!==!1?n.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||void 0,this.key=n.key||void 0,this.passphrase=n.passphrase||void 0,this.cert=n.cert||void 0,this.ca=n.ca||void 0,this.ciphers=n.ciphers||void 0,this.rejectUnauthorized=n.rejectUnauthorized===void 0?!0:n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Me.priorWebsocketSuccess=!1;fu(Me.prototype);Me.protocol=fa.protocol;Me.Socket=Me;Me.Transport=Cn();Me.transports=tr;Me.parser=Xt;Me.prototype.createTransport=function(t){Je('creating transport "%s"',t);var n=hu(this.query);n.EIO=fa.protocol,n.transport=t;var e=this.transportOptions[t]||{};this.id&&(n.sid=this.id);var r=new cu[t]({query:n,socket:this,agent:e.agent||this.agent,hostname:e.hostname||this.hostname,port:e.port||this.port,secure:e.secure||this.secure,path:e.path||this.path,forceJSONP:e.forceJSONP||this.forceJSONP,jsonp:e.jsonp||this.jsonp,forceBase64:e.forceBase64||this.forceBase64,enablesXDR:e.enablesXDR||this.enablesXDR,withCredentials:e.withCredentials||this.withCredentials,timestampRequests:e.timestampRequests||this.timestampRequests,timestampParam:e.timestampParam||this.timestampParam,policyPort:e.policyPort||this.policyPort,pfx:e.pfx||this.pfx,key:e.key||this.key,passphrase:e.passphrase||this.passphrase,cert:e.cert||this.cert,ca:e.ca||this.ca,ciphers:e.ciphers||this.ciphers,rejectUnauthorized:e.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:e.perMessageDeflate||this.perMessageDeflate,extraHeaders:e.extraHeaders||this.extraHeaders,forceNode:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0,isReactNative:this.isReactNative});return r};function hu(t){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}Me.prototype.open=function(){var t;if(this.rememberUpgrade&&Me.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){var n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(e){this.transports.shift(),this.open();return}t.open(),this.setTransport(t)};Me.prototype.setTransport=function(t){Je("setting transport %s",t.name);var n=this;this.transport&&(Je("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){n.onDrain()}).on("packet",function(e){n.onPacket(e)}).on("error",function(e){n.onError(e)}).on("close",function(){n.onClose("transport close")})};Me.prototype.probe=function(t){Je('probing transport "%s"',t);var n=this.createTransport(t,{probe:1}),e=!1,r=this;Me.priorWebsocketSuccess=!1;function i(){if(r.onlyBinaryUpgrades){var p=!this.supportsBinary&&r.transport.supportsBinary;e=e||p}e||(Je('probe transport "%s" opened',t),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(x){if(!e)if(x.type==="pong"&&x.data==="probe"){if(Je('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",n),!n)return;Me.priorWebsocketSuccess=n.name==="websocket",Je('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){e||r.readyState!=="closed"&&(Je("changing transport and sending upgrade packet"),f(),r.setTransport(n),n.send([{type:"upgrade"}]),r.emit("upgrade",n),n=null,r.upgrading=!1,r.flush())})}else{Je('probe transport "%s" failed',t);var u=new Error("probe error");u.transport=n.name,r.emit("upgradeError",u)}}))}function o(){e||(e=!0,f(),n.close(),n=null)}function s(p){var x=new Error("probe error: "+p);x.transport=n.name,o(),Je('probe transport "%s" failed because of error: %s',t,p),r.emit("upgradeError",x)}function c(){s("transport closed")}function h(){s("socket closed")}function a(p){n&&p.name!==n.name&&(Je('"%s" works - aborting "%s"',p.name,n.name),o())}function f(){n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",c),r.removeListener("close",h),r.removeListener("upgrading",a)}n.once("open",i),n.once("error",s),n.once("close",c),this.once("close",h),this.once("upgrading",a),n.open()};Me.prototype.onOpen=function(){if(Je("socket open"),this.readyState="open",Me.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Je("starting upgrade probes");for(var t=0,n=this.upgrades.length;t<n;t++)this.probe(this.upgrades[t])}};Me.prototype.onPacket=function(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Je('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emit("data",t.data),this.emit("message",t.data);break}else Je('packet received with socket readyState "%s"',this.readyState)};Me.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};Me.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout(function(){n.readyState!=="closed"&&n.onClose("ping timeout")},t||n.pingInterval+n.pingTimeout)};Me.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){Je("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)};Me.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})};Me.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};Me.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Je("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};Me.prototype.write=Me.prototype.send=function(t,n,e){return this.sendPacket("message",t,n,e),this};Me.prototype.sendPacket=function(t,n,e,r){if(typeof n=="function"&&(r=n,n=void 0),typeof e=="function"&&(r=e,e=null),!(this.readyState==="closing"||this.readyState==="closed")){e=e||{},e.compress=e.compress!==!1;var i={type:t,data:n,options:e};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}};Me.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():n()}):this.upgrading?r():n()}function n(){t.onClose("forced close"),Je("socket closing - telling transport to close"),t.transport.close()}function e(){t.removeListener("upgrade",e),t.removeListener("upgradeError",e),n()}function r(){t.once("upgrade",e),t.once("upgradeError",e)}return this};Me.prototype.onError=function(t){Je("socket error %j",t),Me.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)};Me.prototype.onClose=function(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Je('socket close with reason: "%s"',t);var e=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,n),e.writeBuffer=[],e.prevBufferLen=0}};Me.prototype.filterUpgrades=function(t){for(var n=[],e=0,r=t.length;e<r;e++)~xu(this.transports,t[e])&&n.push(t[e]);return n};_n.exports=du;_n.exports.parser=Xt;var lu=_n.exports,xa={exports:{}},pu=vu;function vu(t,n){var e=[];n=n||0;for(var r=n||0;r<t.length;r++)e[r-n]=t[r];return e}var ua=bu;function bu(t,n,e){return t.on(n,e),{destroy:function(){t.removeListener(n,e)}}}var Qi=[].slice,da=function(t,n){if(typeof n=="string"&&(n=t[n]),typeof n!="function")throw new Error("bind() requires a function");var e=Qi.call(arguments,2);return function(){return n.apply(t,e.concat(Qi.call(arguments)))}};(function(t,n){var e=J0,r=x0,i=pu,o=ua,s=da,c=Tt("socket.io-client:socket"),h=u0,a=Qo;t.exports=x;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=r.prototype.emit;function x(u,b,m){this.io=u,this.nsp=b,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},m&&m.query&&(this.query=m.query),this.io.autoConnect&&this.open()}r(x.prototype),x.prototype.subEvents=function(){if(!this.subs){var u=this.io;this.subs=[o(u,"open",s(this,"onopen")),o(u,"packet",s(this,"onpacket")),o(u,"close",s(this,"onclose"))]}},x.prototype.open=x.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},x.prototype.send=function(){var u=i(arguments);return u.unshift("message"),this.emit.apply(this,u),this},x.prototype.emit=function(u){if(f.hasOwnProperty(u))return p.apply(this,arguments),this;var b=i(arguments),m={type:(this.flags.binary!==void 0?this.flags.binary:a(b))?e.BINARY_EVENT:e.EVENT,data:b};return m.options={},m.options.compress=!this.flags||this.flags.compress!==!1,typeof b[b.length-1]=="function"&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=b.pop(),m.id=this.ids++),this.connected?this.packet(m):this.sendBuffer.push(m),this.flags={},this},x.prototype.packet=function(u){u.nsp=this.nsp,this.io.packet(u)},x.prototype.onopen=function(){if(c("transport is open - connecting"),this.nsp!=="/")if(this.query){var u=typeof this.query=="object"?h.encode(this.query):this.query;c("sending connect packet with query %s",u),this.packet({type:e.CONNECT,query:u})}else this.packet({type:e.CONNECT})},x.prototype.onclose=function(u){c("close (%s)",u),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",u)},x.prototype.onpacket=function(u){var b=u.nsp===this.nsp,m=u.type===e.ERROR&&u.nsp==="/";if(!(!b&&!m))switch(u.type){case e.CONNECT:this.onconnect();break;case e.EVENT:this.onevent(u);break;case e.BINARY_EVENT:this.onevent(u);break;case e.ACK:this.onack(u);break;case e.BINARY_ACK:this.onack(u);break;case e.DISCONNECT:this.ondisconnect();break;case e.ERROR:this.emit("error",u.data);break}},x.prototype.onevent=function(u){var b=u.data||[];c("emitting event %j",b),u.id!=null&&(c("attaching ack callback to event"),b.push(this.ack(u.id))),this.connected?p.apply(this,b):this.receiveBuffer.push(b)},x.prototype.ack=function(u){var b=this,m=!1;return function(){if(!m){m=!0;var E=i(arguments);c("sending ack %j",E),b.packet({type:a(E)?e.BINARY_ACK:e.ACK,id:u,data:E})}}},x.prototype.onack=function(u){var b=this.acks[u.id];typeof b=="function"?(c("calling ack %s with %j",u.id,u.data),b.apply(this,u.data),delete this.acks[u.id]):c("bad ack %s",u.id)},x.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},x.prototype.emitBuffered=function(){var u;for(u=0;u<this.receiveBuffer.length;u++)p.apply(this,this.receiveBuffer[u]);for(this.receiveBuffer=[],u=0;u<this.sendBuffer.length;u++)this.packet(this.sendBuffer[u]);this.sendBuffer=[]},x.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},x.prototype.destroy=function(){if(this.subs){for(var u=0;u<this.subs.length;u++)this.subs[u].destroy();this.subs=null}this.io.destroy(this)},x.prototype.close=x.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:e.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},x.prototype.compress=function(u){return this.flags.compress=u,this},x.prototype.binary=function(u){return this.flags.binary=u,this}})(xa);var ha=xa.exports,yu=l0;function l0(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}l0.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+e:t-e}return Math.min(t,this.max)|0};l0.prototype.reset=function(){this.attempts=0};l0.prototype.setMin=function(t){this.ms=t};l0.prototype.setMax=function(t){this.max=t};l0.prototype.setJitter=function(t){this.jitter=t};var gu=lu,mu=ha,Eu=x0,_u=J0,Pt=ua,Yt=da,st=Tt("socket.io-client:manager"),la=ca,wu=yu,pa=Object.prototype.hasOwnProperty,Ji=je;function je(t,n){if(!(this instanceof je))return new je(t,n);t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new wu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var e=n.parser||_u;this.encoder=new e.Encoder,this.decoder=new e.Decoder,this.autoConnect=n.autoConnect!==!1,this.autoConnect&&this.open()}je.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)pa.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)};je.prototype.updateSocketIds=function(){for(var t in this.nsps)pa.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))};je.prototype.generateId=function(t){return(t==="/"?"":t+"#")+this.engine.id};Eu(je.prototype);je.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection};je.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts};je.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay};je.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor};je.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax};je.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout};je.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};je.prototype.open=je.prototype.connect=function(t,n){if(st("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;st("opening %s",this.uri),this.engine=gu(this.uri,this.opts);var e=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=Pt(e,"open",function(){r.onopen(),t&&t()}),o=Pt(e,"error",function(h){if(st("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",h),t){var a=new Error("Connection error");a.data=h,t(a)}else r.maybeReconnectOnOpen()});if(this._timeout!==!1){var s=this._timeout;st("connect attempt will timeout after %d",s),s===0&&i.destroy();var c=setTimeout(function(){st("connect attempt timed out after %d",s),i.destroy(),e.close(),e.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(o),this};je.prototype.onopen=function(){st("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(Pt(t,"data",Yt(this,"ondata"))),this.subs.push(Pt(t,"ping",Yt(this,"onping"))),this.subs.push(Pt(t,"pong",Yt(this,"onpong"))),this.subs.push(Pt(t,"error",Yt(this,"onerror"))),this.subs.push(Pt(t,"close",Yt(this,"onclose"))),this.subs.push(Pt(this.decoder,"decoded",Yt(this,"ondecoded")))};je.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};je.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};je.prototype.ondata=function(t){this.decoder.add(t)};je.prototype.ondecoded=function(t){this.emit("packet",t)};je.prototype.onerror=function(t){st("error",t),this.emitAll("error",t)};je.prototype.socket=function(t,n){var e=this.nsps[t];if(!e){e=new mu(this,t,n),this.nsps[t]=e;var r=this;e.on("connecting",i),e.on("connect",function(){e.id=r.generateId(t)}),this.autoConnect&&i()}function i(){~la(r.connecting,e)||r.connecting.push(e)}return e};je.prototype.destroy=function(t){var n=la(this.connecting,t);~n&&this.connecting.splice(n,1),!this.connecting.length&&this.close()};je.prototype.packet=function(t){st("writing packet %j",t);var n=this;t.query&&t.type===0&&(t.nsp+="?"+t.query),n.encoding?n.packetBuffer.push(t):(n.encoding=!0,this.encoder.encode(t,function(e){for(var r=0;r<e.length;r++)n.engine.write(e[r],t.options);n.encoding=!1,n.processPacketQueue()}))};je.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}};je.prototype.cleanup=function(){st("cleanup");for(var t=this.subs.length,n=0;n<t;n++){var e=this.subs.shift();e.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};je.prototype.close=je.prototype.disconnect=function(){st("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};je.prototype.onclose=function(t){st("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()};je.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)st("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();st("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var e=setTimeout(function(){t.skipReconnect||(st("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),!t.skipReconnect&&t.open(function(r){r?(st("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",r.data)):(st("reconnect success"),t.onreconnect())}))},n);this.subs.push({destroy:function(){clearTimeout(e)}})}};je.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)};(function(t,n){var e=ax,r=J0,i=Ji,o=Tt("socket.io-client");t.exports=n=c;var s=n.managers={};function c(h,a){typeof h=="object"&&(a=h,h=void 0),a=a||{};var f=e(h),p=f.source,x=f.id,u=f.path,b=s[x]&&u in s[x].nsps,m=a.forceNew||a["force new connection"]||a.multiplex===!1||b,E;return m?(o("ignoring socket cache for %s",p),E=i(p,a)):(s[x]||(o("new io instance for %s",p),s[x]=i(p,a)),E=s[x]),f.query&&!a.query&&(a.query=f.query),E.socket(f.path,a)}n.protocol=r.protocol,n.connect=c,n.Manager=Ji,n.Socket=ha})(nn,nn.exports);var Bu=nn.exports;const Au=A0(Bu);class Cu extends gn{constructor(e){super(e);ye(this,"customSocket");ye(this,"__eventStore",new Xf);ye(this,"__socket");this.customSocket=e.config.customSocket}setup(e){return De(this,null,function*(){e.customSocket&&(this.customSocket=e.customSocket),yield this.__initSocket(),this.customSocket||(yield this.__connectSocket())})}getToken(){return Promise.resolve(this._plvSocket.config.token)}getSocket(e=!0){if(e&&!this.__socket)throw new Error("Socket 连接未初始化");return this.__socket}__initSocket(){return new Promise(e=>{De(this,null,function*(){if(this.customSocket)this.__socket=this.customSocket;else{const r=yn(this._plvSocket.config.domainInfo).chatWsDomain,i=[2e3,3e3,4e3,5e3],o=yield this.getToken();this.__socket=Au(ws(r),{query:{token:o,version:this._plvSocket.config.socketVersion||"3.0"},transports:[Vf()?"websocket":"polling"],reconnectionDelay:i[Math.floor(Math.random()*i.length)],randomizationFactor:Math.random()})}this.__bindConnectEvent(),this.__eventStore.listenSocketEvent(this.__socket),e()})})}__connectSocket(){return new Promise(e=>{const r=this.getSocket(),i=()=>{e()};r.disconnected&&(r.once("connect",i),r.connect()),r.connected&&i()})}__loginSocket(){return De(this,null,function*(){const e=this._plvSocket.getUserInfo(),r=yield this._plvSocket.channel.getChannelInfo(),i=this._plvSocket.config.statisticsParams,o={EVENT:"LOGIN",values:[e.nick,e.pic,e.userId],channelId:String(r.channelId),roomId:String(r.channelId),type:e.userType};r.sessionId&&(o.sessionId=r.sessionId),(i!=null&&i.param4||e.wxUnionId)&&(o.param4=i==null?void 0:i.param4),i!=null&&i.param5&&(o.param5=i.param5),e.actor&&(o.actor=e.actor);const c=(yield this.emitSocket(o,"message",{directCallback:!0}))[0];String(c)[0]==="2"?this._plvSocket.eventEmitter.emit(vt.LoginSuccess,{code:c}):this._plvSocket.eventEmitter.emit(vt.LoginFailed,{code:c})})}__bindConnectEvent(){const e=this.getSocket(),r={connect:()=>{const{autoLogin:i=!0}=this._plvSocket.config;i&&this.__loginSocket(),this._plvSocket.eventEmitter.emit(vt.ConnectSuccess)},disconnect:()=>{this._plvSocket.eventEmitter.emit(vt.Disconnect)},reconnect:()=>{this._plvSocket.eventEmitter.emit(vt.ReconnectSuccess)},error:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectError})},connect_error:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectError})},connect_timeout:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectTimeout})}};for(const i in r)e.on(i,r[i])}emitSocket(e,r="message",i){return new Promise((o,s)=>{De(this,null,function*(){const{checkCode:c=!0,directCallback:h=!1}=i||{},a=this.getSocket(),f=(...p)=>{if(h){o(p);return}const x=p[0];let u=x;if(x instanceof ArrayBuffer)return;let b=x;if(typeof x=="string")try{b=JSON.parse(x)}catch(m){}if(typeof x=="object"&&(b=x),b&&typeof b.code=="number"&&c)if(b.code===200)u=b.data;else{s(b);return}else u=b;o(u)};a==null||a.emit(r,JSON.stringify(e),f)})})}addSocketHandles(e,r,i="message"){this.__eventStore.addSocketHandles(e,r,i)}clearSocketHandles(e){this.__eventStore.clearSocketHandles(e)}disconnect(){return new Promise(e=>{const r=this.getSocket(!1);if(!r){e();return}if(r.disconnected){e();return}r.once("disconnect",()=>{e()}),r.disconnect()})}}var Zr=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,o){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(1&i&&(r=e(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)e.d(o,s,function(c){return r[c]}.bind(null,s));return o},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="",e(e.s=253)}([function(t,n,e){(function(r){var i=function(o){return o&&o.Math==Math&&o};t.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof r=="object"&&r)||function(){return this}()||Function("return this")()}).call(this,e(118))},function(t,n){t.exports=function(e){try{return!!e()}catch(r){return!0}}},function(t,n,e){var r=e(53),i=Function.prototype,o=i.bind,s=i.call,c=r&&o.bind(s,s);t.exports=r?function(h){return h&&c(h)}:function(h){return h&&function(){return s.apply(h,arguments)}}},function(t,n,e){var r,i,o,s=e(155),c=e(13),h=e(0),a=e(6),f=e(7),p=e(9),x=e(46),u=e(58),b=e(18),m=e(17),E=e(10).f,A=e(22),g=e(66),v=e(38),d=e(4),_=e(54),B=h.Int8Array,C=B&&B.prototype,S=h.Uint8ClampedArray,k=S&&S.prototype,F=B&&g(B),D=C&&g(C),O=Object.prototype,M=h.TypeError,U=d("toStringTag"),z=_("TYPED_ARRAY_TAG"),j=_("TYPED_ARRAY_CONSTRUCTOR"),W=s&&!!v&&x(h.opera)!=="Opera",Q=!1,Z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},P=function(l){if(!f(l))return!1;var y=x(l);return p(Z,y)||p(te,y)};for(r in Z)(o=(i=h[r])&&i.prototype)?b(o,j,i):W=!1;for(r in te)(o=(i=h[r])&&i.prototype)&&b(o,j,i);if((!W||!a(F)||F===Function.prototype)&&(F=function(){throw M("Incorrect invocation")},W))for(r in Z)h[r]&&v(h[r],F);if((!W||!D||D===O)&&(D=F.prototype,W))for(r in Z)h[r]&&v(h[r].prototype,D);if(W&&g(k)!==D&&v(k,D),c&&!p(D,U))for(r in Q=!0,E(D,U,{get:function(){return f(this)?this[z]:void 0}}),Z)h[r]&&b(h[r],z,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_CONSTRUCTOR:j,TYPED_ARRAY_TAG:Q&&z,aTypedArray:function(l){if(P(l))return l;throw M("Target is not a typed array")},aTypedArrayConstructor:function(l){if(a(l)&&(!v||A(F,l)))return l;throw M(u(l)+" is not a typed array constructor")},exportTypedArrayMethod:function(l,y,w,T){if(c){if(w)for(var N in Z){var X=h[N];if(X&&p(X.prototype,l))try{delete X.prototype[l]}catch(V){try{X.prototype[l]=y}catch(Y){}}}D[l]&&!w||m(D,l,w?y:W&&C[l]||y,T)}},exportTypedArrayStaticMethod:function(l,y,w){var T,N;if(c){if(v){if(w){for(T in Z)if((N=h[T])&&p(N,l))try{delete N[l]}catch(X){}}if(F[l]&&!w)return;try{return m(F,l,w?y:W&&F[l]||y)}catch(X){}}for(T in Z)!(N=h[T])||N[l]&&!w||m(N,l,y)}},isView:function(l){if(!f(l))return!1;var y=x(l);return y==="DataView"||p(Z,y)||p(te,y)},isTypedArray:P,TypedArray:F,TypedArrayPrototype:D}},function(t,n,e){var r=e(0),i=e(72),o=e(9),s=e(54),c=e(94),h=e(119),a=i("wks"),f=r.Symbol,p=f&&f.for,x=h?f:f&&f.withoutSetter||s;t.exports=function(u){if(!o(a,u)||!c&&typeof a[u]!="string"){var b="Symbol."+u;c&&o(f,u)?a[u]=f[u]:a[u]=h&&p?p(b):x(b)}return a[u]}},function(t,n,e){var r=e(0),i=e(47).f,o=e(18),s=e(17),c=e(93),h=e(127),a=e(60);t.exports=function(f,p){var x,u,b,m,E,A=f.target,g=f.global,v=f.stat;if(x=g?r:v?r[A]||c(A,{}):(r[A]||{}).prototype)for(u in p){if(m=p[u],b=f.noTargetGet?(E=i(x,u))&&E.value:x[u],!a(g?u:A+(v?".":"#")+u,f.forced)&&b!==void 0){if(typeof m==typeof b)continue;h(m,b)}(f.sham||b&&b.sham)&&o(m,"sham",!0),s(x,u,m,f)}}},function(t,n){t.exports=function(e){return typeof e=="function"}},function(t,n,e){var r=e(6);t.exports=function(i){return typeof i=="object"?i!==null:r(i)}},function(t,n,e){var r=e(0),i=e(7),o=r.String,s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not an object")}},function(t,n,e){var r=e(2),i=e(14),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(s,c){return o(i(s),c)}},function(t,n,e){var r=e(0),i=e(13),o=e(120),s=e(121),c=e(8),h=e(56),a=r.TypeError,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor;n.f=i?s?function(x,u,b){if(c(x),u=h(u),c(b),typeof x=="function"&&u==="prototype"&&"value"in b&&"writable"in b&&!b.writable){var m=p(x,u);m&&m.writable&&(x[u]=b.value,b={configurable:"configurable"in b?b.configurable:m.configurable,enumerable:"enumerable"in b?b.enumerable:m.enumerable,writable:!1})}return f(x,u,b)}:f:function(x,u,b){if(c(x),u=h(u),c(b),o)try{return f(x,u,b)}catch(m){}if("get"in b||"set"in b)throw a("Accessors not supported");return"value"in b&&(x[u]=b.value),x}},function(t,n,e){var r=e(53),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,n,e){var r=e(91),i=e(17),o=e(167);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,n,e){var r=e(1);t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(t,n,e){var r=e(0),i=e(36),o=r.Object;t.exports=function(s){return o(i(s))}},function(t,n,e){var r=e(29);t.exports=function(i){return r(i.length)}},function(t,n,e){var r=e(5),i=e(78);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,n,e){var r=e(0),i=e(6),o=e(9),s=e(18),c=e(93),h=e(74),a=e(23),f=e(45).CONFIGURABLE,p=a.get,x=a.enforce,u=String(String).split("String");(t.exports=function(b,m,E,A){var g,v=!!A&&!!A.unsafe,d=!!A&&!!A.enumerable,_=!!A&&!!A.noTargetGet,B=A&&A.name!==void 0?A.name:m;i(E)&&(String(B).slice(0,7)==="Symbol("&&(B="["+String(B).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(E,"name")||f&&E.name!==B)&&s(E,"name",B),(g=x(E)).source||(g.source=u.join(typeof B=="string"?B:""))),b!==r?(v?!_&&b[m]&&(d=!0):delete b[m],d?b[m]=E:s(b,m,E)):d?b[m]=E:c(m,E)})(Function.prototype,"toString",function(){return i(this)&&p(this).source||h(this)})},function(t,n,e){var r=e(13),i=e(10),o=e(44);t.exports=r?function(s,c,h){return i.f(s,c,o(1,h))}:function(s,c,h){return s[c]=h,s}},function(t,n,e){var r=e(0),i=e(46),o=r.String;t.exports=function(s){if(i(s)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o(s)}},function(t,n,e){var r=e(2),i=e(45).PROPER,o=e(17),s=e(8),c=e(22),h=e(19),a=e(1),f=e(98),p=RegExp.prototype,x=p.toString,u=r(f),b=a(function(){return x.call({source:"a",flags:"b"})!="/a/b"}),m=i&&x.name!="toString";(b||m)&&o(RegExp.prototype,"toString",function(){var E=s(this),A=h(E.source),g=E.flags;return"/"+A+"/"+h(g===void 0&&c(p,E)&&!("flags"in p)?u(E):g)},{unsafe:!0})},function(t,n,e){var r=e(40),i=e(2),o=e(77),s=e(14),c=e(15),h=e(108),a=i([].push),f=function(p){var x=p==1,u=p==2,b=p==3,m=p==4,E=p==6,A=p==7,g=p==5||E;return function(v,d,_,B){for(var C,S,k=s(v),F=o(k),D=r(d,_),O=c(F),M=0,U=B||h,z=x?U(v,O):u||A?U(v,0):void 0;O>M;M++)if((g||M in F)&&(S=D(C=F[M],M,k),p))if(x)z[M]=S;else if(S)switch(p){case 3:return!0;case 5:return C;case 6:return M;case 2:a(z,C)}else switch(p){case 4:return!1;case 7:a(z,C)}return E?-1:b||m?m:z}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,n,e){var r=e(2);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r,i,o,s=e(166),c=e(0),h=e(2),a=e(7),f=e(18),p=e(9),x=e(92),u=e(75),b=e(59),m=c.TypeError,E=c.WeakMap;if(s||x.state){var A=x.state||(x.state=new E),g=h(A.get),v=h(A.has),d=h(A.set);r=function(B,C){if(v(A,B))throw new m("Object already initialized");return C.facade=B,d(A,B,C),C},i=function(B){return g(A,B)||{}},o=function(B){return v(A,B)}}else{var _=u("state");b[_]=!0,r=function(B,C){if(p(B,_))throw new m("Object already initialized");return C.facade=B,f(B,_,C),C},i=function(B){return p(B,_)?B[_]:{}},o=function(B){return p(B,_)}}t.exports={set:r,get:i,has:o,enforce:function(B){return o(B)?i(B):r(B,{})},getterFor:function(B){return function(C){var S;if(!a(C)||(S=i(C)).type!==B)throw m("Incompatible receiver, "+B+" required");return S}}}},function(t,n,e){var r=e(77),i=e(36);t.exports=function(o){return r(i(o))}},function(t,n,e){(function(r){var i;t.exports=(i=i||function(o,s){var c;if(typeof window!="undefined"&&window.crypto&&(c=window.crypto),typeof self!="undefined"&&self.crypto&&(c=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window!="undefined"&&window.msCrypto&&(c=window.msCrypto),!c&&r!==void 0&&r.crypto&&(c=r.crypto),!c)try{c=e(197)}catch(d){}var h=function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch(d){}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch(d){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function d(){}return function(_){var B;return d.prototype=_,B=new d,d.prototype=null,B}}(),f={},p=f.lib={},x=p.Base={extend:function(d){var _=a(this);return d&&_.mixIn(d),_.hasOwnProperty("init")&&this.init!==_.init||(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var _ in d)d.hasOwnProperty(_)&&(this[_]=d[_]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},u=p.WordArray=x.extend({init:function(d,_){d=this.words=d||[],this.sigBytes=_!=null?_:4*d.length},toString:function(d){return(d||m).stringify(this)},concat:function(d){var _=this.words,B=d.words,C=this.sigBytes,S=d.sigBytes;if(this.clamp(),C%4)for(var k=0;k<S;k++){var F=B[k>>>2]>>>24-k%4*8&255;_[C+k>>>2]|=F<<24-(C+k)%4*8}else for(var D=0;D<S;D+=4)_[C+D>>>2]=B[D>>>2];return this.sigBytes+=S,this},clamp:function(){var d=this.words,_=this.sigBytes;d[_>>>2]&=4294967295<<32-_%4*8,d.length=o.ceil(_/4)},clone:function(){var d=x.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var _=[],B=0;B<d;B+=4)_.push(h());return new u.init(_,d)}}),b=f.enc={},m=b.Hex={stringify:function(d){for(var _=d.words,B=d.sigBytes,C=[],S=0;S<B;S++){var k=_[S>>>2]>>>24-S%4*8&255;C.push((k>>>4).toString(16)),C.push((15&k).toString(16))}return C.join("")},parse:function(d){for(var _=d.length,B=[],C=0;C<_;C+=2)B[C>>>3]|=parseInt(d.substr(C,2),16)<<24-C%8*4;return new u.init(B,_/2)}},E=b.Latin1={stringify:function(d){for(var _=d.words,B=d.sigBytes,C=[],S=0;S<B;S++){var k=_[S>>>2]>>>24-S%4*8&255;C.push(String.fromCharCode(k))}return C.join("")},parse:function(d){for(var _=d.length,B=[],C=0;C<_;C++)B[C>>>2]|=(255&d.charCodeAt(C))<<24-C%4*8;return new u.init(B,_)}},A=b.Utf8={stringify:function(d){try{return decodeURIComponent(escape(E.stringify(d)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(d){return E.parse(unescape(encodeURIComponent(d)))}},g=p.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=A.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var _,B=this._data,C=B.words,S=B.sigBytes,k=this.blockSize,F=S/(4*k),D=(F=d?o.ceil(F):o.max((0|F)-this._minBufferSize,0))*k,O=o.min(4*D,S);if(D){for(var M=0;M<D;M+=k)this._doProcessBlock(C,M);_=C.splice(0,D),B.sigBytes-=O}return new u.init(_,O)},clone:function(){var d=x.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0}),v=(p.Hasher=g.extend({cfg:x.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){return d&&this._append(d),this._doFinalize()},blockSize:16,_createHelper:function(d){return function(_,B){return new d.init(B).finalize(_)}},_createHmacHelper:function(d){return function(_,B){return new v.HMAC.init(d,B).finalize(_)}}}),f.algo={});return f}(Math),i)}).call(this,e(118))},function(t,n,e){var r=e(0),i=e(6),o=function(s){return i(s)?s:void 0};t.exports=function(s,c){return arguments.length<2?o(r[s]):r[s]&&r[s][c]}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(s,c){var h=r(s);return h<0?i(h+c,0):o(h,c)}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(i){var o=+i;return o!=o||o===0?0:(o>0?r:e)(o)}},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(o){return o>0?i(r(o),9007199254740991):0}},function(t,n,e){var r=e(13),i=e(45).EXISTS,o=e(2),s=e(10).f,c=Function.prototype,h=o(c.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=o(a.exec);r&&!i&&s(c,"name",{configurable:!0,get:function(){try{return f(a,h(this))[1]}catch(p){return""}}})},function(t,n,e){var r=e(0),i=e(6),o=e(58),s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not a function")}},function(t,n,e){var r=e(2),i=r({}.toString),o=r("".slice);t.exports=function(s){return o(i(s),8,-1)}},function(t,n,e){var r=e(123),i=e(97).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(o){return r(o,i)}},function(t,n,e){var r,i=e(8),o=e(129),s=e(97),c=e(59),h=e(130),a=e(73),f=e(75),p=f("IE_PROTO"),x=function(){},u=function(E){return"<script>"+E+"<\/script>"},b=function(E){E.write(u("")),E.close();var A=E.parentWindow.Object;return E=null,A},m=function(){try{r=new ActiveXObject("htmlfile")}catch(v){}var E,A;m=typeof document!="undefined"?document.domain&&r?b(r):((A=a("iframe")).style.display="none",h.appendChild(A),A.src="javascript:",(E=A.contentWindow.document).open(),E.write(u("document.F=Object")),E.close(),E.F):b(r);for(var g=s.length;g--;)delete m.prototype[s[g]];return m()};c[p]=!0,t.exports=Object.create||function(E,A){var g;return E!==null?(x.prototype=i(E),g=new x,x.prototype=null,g[p]=E):g=m(),A===void 0?g:o.f(g,A)}},function(t,n,e){var r=e(53),i=Function.prototype,o=i.apply,s=i.call;t.exports=typeof Reflect=="object"&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},function(t,n,e){var r=e(0).TypeError;t.exports=function(i){if(i==null)throw r("Can't call method on "+i);return i}},function(t,n,e){var r=e(26);t.exports=r("navigator","userAgent")||""},function(t,n,e){var r=e(2),i=e(8),o=e(168);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,c=!1,h={};try{(s=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),c=h instanceof Array}catch(a){}return function(a,f){return i(a),o(f),c?s(a,f):a.__proto__=f,a}}():void 0)},function(t,n,e){var r=e(5),i=e(134),o=e(1),s=e(7),c=e(106).onFreeze,h=Object.freeze;r({target:"Object",stat:!0,forced:o(function(){h(1)}),sham:!i},{freeze:function(a){return h&&s(a)?h(c(a)):a}})},function(t,n,e){var r=e(2),i=e(31),o=e(53),s=r(r.bind);t.exports=function(c,h){return i(c),h===void 0?c:o?s(c,h):function(){return c.apply(h,arguments)}}},function(t,n,e){var r=e(24),i=e(147),o=e(65),s=e(23),c=e(10).f,h=e(115),a=e(42),f=e(13),p=s.set,x=s.getterFor("Array Iterator");t.exports=h(Array,"Array",function(b,m){p(this,{type:"Array Iterator",target:r(b),index:0,kind:m})},function(){var b=x(this),m=b.target,E=b.kind,A=b.index++;return!m||A>=m.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:A,done:!1}:E=="values"?{value:m[A],done:!1}:{value:[A,m[A]],done:!1}},"values");var u=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!a&&f&&u.name!=="values")try{c(u,"name",{value:"values"})}catch(b){}},function(t,n){t.exports=!1},function(t,n,e){var r=e(31);t.exports=function(i,o){var s=i[o];return s==null?void 0:r(s)}},function(t,n){t.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(t,n,e){var r=e(13),i=e(9),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),h=c&&function(){}.name==="something",a=c&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:c,PROPER:h,CONFIGURABLE:a}},function(t,n,e){var r=e(0),i=e(91),o=e(6),s=e(32),c=e(4)("toStringTag"),h=r.Object,a=s(function(){return arguments}())=="Arguments";t.exports=i?s:function(f){var p,x,u;return f===void 0?"Undefined":f===null?"Null":typeof(x=function(b,m){try{return b[m]}catch(E){}}(p=h(f),c))=="string"?x:a?s(p):(u=s(p))=="Object"&&o(p.callee)?"Arguments":u}},function(t,n,e){var r=e(13),i=e(11),o=e(124),s=e(44),c=e(24),h=e(56),a=e(9),f=e(120),p=Object.getOwnPropertyDescriptor;n.f=r?p:function(x,u){if(x=c(x),u=h(u),f)try{return p(x,u)}catch(b){}if(a(x,u))return s(!i(o.f,x,u),x[u])}},function(t,n,e){var r=e(35),i=e(11),o=e(2),s=e(101),c=e(1),h=e(8),a=e(6),f=e(28),p=e(29),x=e(19),u=e(36),b=e(102),m=e(43),E=e(171),A=e(104),g=e(4)("replace"),v=Math.max,d=Math.min,_=o([].concat),B=o([].push),C=o("".indexOf),S=o("".slice),k="a".replace(/./,"$0")==="$0",F=!!/./[g]&&/./[g]("a","$0")==="";s("replace",function(D,O,M){var U=F?"$":"$0";return[function(z,j){var W=u(this),Q=z==null?void 0:m(z,g);return Q?i(Q,z,W,j):i(O,x(W),z,j)},function(z,j){var W=h(this),Q=x(z);if(typeof j=="string"&&C(j,U)===-1&&C(j,"$<")===-1){var Z=M(O,W,Q,j);if(Z.done)return Z.value}var te=a(j);te||(j=x(j));var P=W.global;if(P){var l=W.unicode;W.lastIndex=0}for(var y=[];;){var w=A(W,Q);if(w===null||(B(y,w),!P))break;x(w[0])===""&&(W.lastIndex=b(Q,p(W.lastIndex),l))}for(var T,N="",X=0,V=0;V<y.length;V++){for(var Y=x((w=y[V])[0]),ie=v(d(f(w.index),Q.length),0),ue=[],Ee=1;Ee<w.length;Ee++)B(ue,(T=w[Ee])===void 0?T:String(T));var we=w.groups;if(te){var ve=_([Y],ue,ie,Q);we!==void 0&&B(ve,we);var Be=x(r(j,void 0,ve))}else Be=E(Y,Q,ie,ue,we,j);ie>=X&&(N+=S(Q,X,ie)+Be,X=ie+Y.length)}return N+S(Q,X)}]},!!c(function(){var D=/./;return D.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(D,"$<a>")!=="7"})||!k||F)},function(t,n,e){var r=e(10).f,i=e(9),o=e(4)("toStringTag");t.exports=function(s,c,h){s&&!h&&(s=s.prototype),s&&!i(s,o)&&r(s,o,{configurable:!0,value:c})}},function(t,n,e){var r=e(2);t.exports=r([].slice)},function(t,n,e){var r=e(5),i=e(0),o=e(83),s=e(80),c=e(7),h=e(27),a=e(15),f=e(24),p=e(62),x=e(4),u=e(84),b=e(50),m=u("slice"),E=x("species"),A=i.Array,g=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(v,d){var _,B,C,S=f(this),k=a(S),F=h(v,k),D=h(d===void 0?k:d,k);if(o(S)&&(_=S.constructor,(s(_)&&(_===A||o(_.prototype))||c(_)&&(_=_[E])===null)&&(_=void 0),_===A||_===void 0))return b(S,F,D);for(B=new(_===void 0?A:_)(g(D-F,0)),C=0;F<D;F++,C++)F in S&&p(B,C,S[F]);return B.length=C,B}})},function(t,n,e){var r=e(5),i=e(2),o=e(77),s=e(24),c=e(109),h=i([].join),a=o!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:a||!f},{join:function(p){return h(s(this),p===void 0?",":p)}})},function(t,n,e){var r=e(1);t.exports=!r(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},function(t,n,e){var r=e(2),i=0,o=Math.random(),s=r(1 .toString);t.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+s(++i+o,36)}},function(t,n,e){var r,i,o=e(0),s=e(37),c=o.process,h=o.Deno,a=c&&c.versions||h&&h.version,f=a&&a.v8;f&&(i=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,n,e){var r=e(122),i=e(57);t.exports=function(o){var s=r(o,"string");return i(s)?s:s+""}},function(t,n,e){var r=e(0),i=e(26),o=e(6),s=e(22),c=e(119),h=r.Object;t.exports=c?function(a){return typeof a=="symbol"}:function(a){var f=i("Symbol");return o(f)&&s(f.prototype,h(a))}},function(t,n,e){var r=e(0).String;t.exports=function(i){try{return r(i)}catch(o){return"Object"}}},function(t,n){t.exports={}},function(t,n,e){var r=e(1),i=e(6),o=/#|\.prototype\./,s=function(p,x){var u=h[c(p)];return u==f||u!=a&&(i(x)?r(x):!!x)},c=s.normalize=function(p){return String(p).replace(o,".").toLowerCase()},h=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},function(t,n,e){var r=e(35),i=e(11),o=e(2),s=e(101),c=e(133),h=e(8),a=e(36),f=e(79),p=e(102),x=e(29),u=e(19),b=e(43),m=e(81),E=e(104),A=e(78),g=e(99),v=e(1),d=g.UNSUPPORTED_Y,_=Math.min,B=[].push,C=o(/./.exec),S=o(B),k=o("".slice);s("split",function(F,D,O){var M;return M="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(U,z){var j=u(a(this)),W=z===void 0?4294967295:z>>>0;if(W===0)return[];if(U===void 0)return[j];if(!c(U))return i(D,j,U,W);for(var Q,Z,te,P=[],l=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(U.sticky?"y":""),y=0,w=new RegExp(U.source,l+"g");(Q=i(A,w,j))&&!((Z=w.lastIndex)>y&&(S(P,k(j,y,Q.index)),Q.length>1&&Q.index<j.length&&r(B,P,m(Q,1)),te=Q[0].length,y=Z,P.length>=W));)w.lastIndex===Q.index&&w.lastIndex++;return y===j.length?!te&&C(w,"")||S(P,""):S(P,k(j,y)),P.length>W?m(P,0,W):P}:"0".split(void 0,0).length?function(U,z){return U===void 0&&z===0?[]:i(D,this,U,z)}:D,[function(U,z){var j=a(this),W=U==null?void 0:b(U,F);return W?i(W,U,j,z):i(M,u(j),U,z)},function(U,z){var j=h(this),W=u(U),Q=O(M,j,W,z,M!==D);if(Q.done)return Q.value;var Z=f(j,RegExp),te=j.unicode,P=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(d?"g":"y"),l=new Z(d?"^(?:"+j.source+")":j,P),y=z===void 0?4294967295:z>>>0;if(y===0)return[];if(W.length===0)return E(l,W)===null?[W]:[];for(var w=0,T=0,N=[];T<W.length;){l.lastIndex=d?0:T;var X,V=E(l,d?k(W,T):W);if(V===null||(X=_(x(l.lastIndex+(d?T:0)),W.length))===w)T=p(W,T,te);else{if(S(N,k(W,w,T)),N.length===y)return N;for(var Y=1;Y<=V.length-1;Y++)if(S(N,V[Y]),N.length===y)return N;T=w=X}}return S(N,k(W,w)),N}]},!!v(function(){var F=/(?:)/,D=F.exec;F.exec=function(){return D.apply(this,arguments)};var O="ab".split(F);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),d)},function(t,n,e){var r=e(56),i=e(10),o=e(44);t.exports=function(s,c,h){var a=r(c);a in s?i.f(s,a,o(0,h)):s[a]=h}},function(t,n,e){var r=e(0),i=e(137),o=e(138),s=e(177),c=e(18),h=function(f){if(f&&f.forEach!==s)try{c(f,"forEach",s)}catch(p){f.forEach=s}};for(var a in i)i[a]&&h(r[a]&&r[a].prototype);h(o)},function(t,n,e){var r=e(0),i=e(22),o=r.TypeError;t.exports=function(s,c){if(i(c,s))return s;throw o("Incorrect invocation")}},function(t,n){t.exports={}},function(t,n,e){var r=e(0),i=e(9),o=e(6),s=e(14),c=e(75),h=e(145),a=c("IE_PROTO"),f=r.Object,p=f.prototype;t.exports=h?f.getPrototypeOf:function(x){var u=s(x);if(i(u,a))return u[a];var b=u.constructor;return o(b)&&u instanceof b?b.prototype:u instanceof f?p:null}},function(t,n,e){var r=e(103).charAt,i=e(19),o=e(23),s=e(115),c=o.set,h=o.getterFor("String Iterator");s(String,"String",function(a){c(this,{type:"String Iterator",string:i(a),index:0})},function(){var a,f=h(this),p=f.string,x=f.index;return x>=p.length?{value:void 0,done:!0}:(a=r(p,x),f.index+=a.length,{value:a,done:!1})})},function(t,n,e){var r=e(0),i=e(137),o=e(138),s=e(41),c=e(18),h=e(4),a=h("iterator"),f=h("toStringTag"),p=s.values,x=function(b,m){if(b){if(b[a]!==p)try{c(b,a,p)}catch(A){b[a]=p}if(b[f]||c(b,f,m),i[m]){for(var E in s)if(b[E]!==s[E])try{c(b,E,s[E])}catch(A){b[E]=s[E]}}}};for(var u in i)x(r[u]&&r[u].prototype,u);x(o,"DOMTokenList")},function(t,n,e){var r=e(5),i=e(0),o=e(26),s=e(35),c=e(11),h=e(2),a=e(42),f=e(13),p=e(94),x=e(1),u=e(9),b=e(83),m=e(6),E=e(7),A=e(22),g=e(57),v=e(8),d=e(14),_=e(24),B=e(56),C=e(19),S=e(44),k=e(34),F=e(100),D=e(33),O=e(135),M=e(128),U=e(47),z=e(10),j=e(129),W=e(124),Q=e(50),Z=e(17),te=e(72),P=e(75),l=e(59),y=e(54),w=e(4),T=e(149),N=e(150),X=e(49),V=e(23),Y=e(21).forEach,ie=P("hidden"),ue=w("toPrimitive"),Ee=V.set,we=V.getterFor("Symbol"),ve=Object.prototype,Be=i.Symbol,qe=Be&&Be.prototype,Re=i.TypeError,We=i.QObject,J=o("JSON","stringify"),ce=U.f,le=z.f,me=O.f,ge=W.f,Ve=h([].push),Oe=te("symbols"),Te=te("op-symbols"),Ae=te("string-to-symbol-registry"),Ue=te("symbol-to-string-registry"),Ge=te("wks"),$e=!We||!We.prototype||!We.prototype.findChild,ee=f&&x(function(){return k(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(fe,H,L){var K=ce(ve,H);K&&delete ve[H],le(fe,H,L),K&&fe!==ve&&le(ve,H,K)}:le,oe=function(fe,H){var L=Oe[fe]=k(qe);return Ee(L,{type:"Symbol",tag:fe,description:H}),f||(L.description=H),L},he=function(fe,H,L){fe===ve&&he(Te,H,L),v(fe);var K=B(H);return v(L),u(Oe,K)?(L.enumerable?(u(fe,ie)&&fe[ie][K]&&(fe[ie][K]=!1),L=k(L,{enumerable:S(0,!1)})):(u(fe,ie)||le(fe,ie,S(1,{})),fe[ie][K]=!0),ee(fe,K,L)):le(fe,K,L)},be=function(fe,H){v(fe);var L=_(H),K=F(L).concat(Ye(L));return Y(K,function(G){f&&!c(Ce,L,G)||he(fe,G,L[G])}),fe},Ce=function(fe){var H=B(fe),L=c(ge,this,H);return!(this===ve&&u(Oe,H)&&!u(Te,H))&&(!(L||!u(this,H)||!u(Oe,H)||u(this,ie)&&this[ie][H])||L)},He=function(fe,H){var L=_(fe),K=B(H);if(L!==ve||!u(Oe,K)||u(Te,K)){var G=ce(L,K);return!G||!u(Oe,K)||u(L,ie)&&L[ie][K]||(G.enumerable=!0),G}},Ke=function(fe){var H=me(_(fe)),L=[];return Y(H,function(K){u(Oe,K)||u(l,K)||Ve(L,K)}),L},Ye=function(fe){var H=fe===ve,L=me(H?Te:_(fe)),K=[];return Y(L,function(G){!u(Oe,G)||H&&!u(ve,G)||Ve(K,Oe[G])}),K};if(p||(Z(qe=(Be=function(){if(A(qe,this))throw Re("Symbol is not a constructor");var fe=arguments.length&&arguments[0]!==void 0?C(arguments[0]):void 0,H=y(fe),L=function(K){this===ve&&c(L,Te,K),u(this,ie)&&u(this[ie],H)&&(this[ie][H]=!1),ee(this,H,S(1,K))};return f&&$e&&ee(ve,H,{configurable:!0,set:L}),oe(H,fe)}).prototype,"toString",function(){return we(this).tag}),Z(Be,"withoutSetter",function(fe){return oe(y(fe),fe)}),W.f=Ce,z.f=he,j.f=be,U.f=He,D.f=O.f=Ke,M.f=Ye,T.f=function(fe){return oe(w(fe),fe)},f&&(le(qe,"description",{configurable:!0,get:function(){return we(this).description}}),a||Z(ve,"propertyIsEnumerable",Ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:Be}),Y(F(Ge),function(fe){N(fe)}),r({target:"Symbol",stat:!0,forced:!p},{for:function(fe){var H=C(fe);if(u(Ae,H))return Ae[H];var L=Be(H);return Ae[H]=L,Ue[L]=H,L},keyFor:function(fe){if(!g(fe))throw Re(fe+" is not a symbol");if(u(Ue,fe))return Ue[fe]},useSetter:function(){$e=!0},useSimple:function(){$e=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!f},{create:function(fe,H){return H===void 0?k(fe):be(k(fe),H)},defineProperty:he,defineProperties:be,getOwnPropertyDescriptor:He}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:Ke,getOwnPropertySymbols:Ye}),r({target:"Object",stat:!0,forced:x(function(){M.f(1)})},{getOwnPropertySymbols:function(fe){return M.f(d(fe))}}),J&&r({target:"JSON",stat:!0,forced:!p||x(function(){var fe=Be();return J([fe])!="[null]"||J({a:fe})!="{}"||J(Object(fe))!="{}"})},{stringify:function(fe,H,L){var K=Q(arguments),G=H;if((E(H)||fe!==void 0)&&!g(fe))return b(H)||(H=function(se,ne){if(m(G)&&(ne=c(G,this,se,ne)),!g(ne))return ne}),K[1]=H,s(J,null,K)}}),!qe[ue]){var Ze=qe.valueOf;Z(qe,ue,function(fe){return c(Ze,this)})}X(Be,"Symbol"),l[ie]=!0},function(t,n,e){var r=e(5),i=e(13),o=e(0),s=e(2),c=e(9),h=e(6),a=e(22),f=e(19),p=e(10).f,x=e(127),u=o.Symbol,b=u&&u.prototype;if(i&&h(u)&&(!("description"in b)||u().description!==void 0)){var m={},E=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:f(arguments[0]),S=a(b,this)?new u(C):C===void 0?u():u(C);return C===""&&(m[S]=!0),S};x(E,u),E.prototype=b,b.constructor=E;var A=String(u("test"))=="Symbol(test)",g=s(b.toString),v=s(b.valueOf),d=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),B=s("".slice);p(b,"description",{configurable:!0,get:function(){var C=v(this),S=g(C);if(c(m,C))return"";var k=A?B(S,7,-1):_(S,d,"$1");return k===""?void 0:k}}),r({global:!0,forced:!0},{Symbol:E})}},function(t,n,e){e(150)("iterator")},function(t,n,e){var r=e(42),i=e(92);(t.exports=function(o,s){return i[o]||(i[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,n,e){var r=e(0),i=e(7),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(c){return s?o.createElement(c):{}}},function(t,n,e){var r=e(2),i=e(6),o=e(92),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(c){return s(c)}),t.exports=o.inspectSource},function(t,n,e){var r=e(72),i=e(54),o=r("keys");t.exports=function(s){return o[s]||(o[s]=i(s))}},function(t,n,e){var r=e(6),i=e(7),o=e(38);t.exports=function(s,c,h){var a,f;return o&&r(a=c.constructor)&&a!==h&&i(f=a.prototype)&&f!==h.prototype&&o(s,f),s}},function(t,n,e){var r=e(0),i=e(2),o=e(1),s=e(32),c=r.Object,h=i("".split);t.exports=o(function(){return!c("z").propertyIsEnumerable(0)})?function(a){return s(a)=="String"?h(a,""):c(a)}:c},function(t,n,e){var r,i,o=e(11),s=e(2),c=e(19),h=e(98),a=e(99),f=e(72),p=e(34),x=e(23).get,u=e(131),b=e(132),m=f("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,A=E,g=s("".charAt),v=s("".indexOf),d=s("".replace),_=s("".slice),B=(i=/b*/g,o(E,r=/a/,"a"),o(E,i,"a"),r.lastIndex!==0||i.lastIndex!==0),C=a.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0;(B||S||C||u||b)&&(A=function(k){var F,D,O,M,U,z,j,W=this,Q=x(W),Z=c(k),te=Q.raw;if(te)return te.lastIndex=W.lastIndex,F=o(A,te,Z),W.lastIndex=te.lastIndex,F;var P=Q.groups,l=C&&W.sticky,y=o(h,W),w=W.source,T=0,N=Z;if(l&&(y=d(y,"y",""),v(y,"g")===-1&&(y+="g"),N=_(Z,W.lastIndex),W.lastIndex>0&&(!W.multiline||W.multiline&&g(Z,W.lastIndex-1)!==`
|
|
22
|
+
`)&&(w="(?: "+w+")",N=" "+N,T++),D=new RegExp("^(?:"+w+")",y)),S&&(D=new RegExp("^"+w+"$(?!\\s)",y)),B&&(O=W.lastIndex),M=o(E,l?D:W,N),l?M?(M.input=_(M.input,T),M[0]=_(M[0],T),M.index=W.lastIndex,W.lastIndex+=M[0].length):W.lastIndex=0:B&&M&&(W.lastIndex=W.global?M.index+M[0].length:O),S&&M&&M.length>1&&o(m,M[0],D,function(){for(U=1;U<arguments.length-2;U++)arguments[U]===void 0&&(M[U]=void 0)}),M&&P)for(M.groups=z=p(null),U=0;U<P.length;U++)z[(j=P[U])[0]]=M[j[1]];return M}),t.exports=A},function(t,n,e){var r=e(8),i=e(105),o=e(4)("species");t.exports=function(s,c){var h,a=r(s).constructor;return a===void 0||(h=r(a)[o])==null?c:i(h)}},function(t,n,e){var r=e(2),i=e(1),o=e(6),s=e(46),c=e(26),h=e(74),a=function(){},f=[],p=c("Reflect","construct"),x=/^\s*(?:class|function)\b/,u=r(x.exec),b=!x.exec(a),m=function(A){if(!o(A))return!1;try{return p(a,f,A),!0}catch(g){return!1}},E=function(A){if(!o(A))return!1;switch(s(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!u(x,h(A))}catch(g){return!0}};E.sham=!0,t.exports=!p||i(function(){var A;return m(m.call)||!m(Object)||!m(function(){A=!0})||A})?E:m},function(t,n,e){var r=e(0),i=e(27),o=e(15),s=e(62),c=r.Array,h=Math.max;t.exports=function(a,f,p){for(var x=o(a),u=i(f,x),b=i(p===void 0?x:p,x),m=c(h(b-u,0)),E=0;u<b;u++,E++)s(m,E,a[u]);return m.length=E,m}},function(t,n,e){var r=e(26),i=e(10),o=e(4),s=e(13),c=o("species");t.exports=function(h){var a=r(h),f=i.f;s&&a&&!a[c]&&f(a,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(32);t.exports=Array.isArray||function(i){return r(i)=="Array"}},function(t,n,e){var r=e(1),i=e(4),o=e(55),s=i("species");t.exports=function(c){return o>=51||!r(function(){var h=[];return(h.constructor={})[s]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},function(t,n,e){var r=e(46),i=e(43),o=e(65),s=e(4)("iterator");t.exports=function(c){if(c!=null)return i(c,s)||i(c,"@@iterator")||o[r(c)]}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(c){}t.exports=function(c,h){if(!h&&!i)return!1;var a=!1;try{var f={};f[r]=function(){return{next:function(){return{done:a=!0}}}},c(f)}catch(p){}return a}},function(t,n,e){(function(){var r;function i(l,y,w){l!=null&&(typeof l=="number"?this.fromNumber(l,y,w):y==null&&typeof l!="string"?this.fromString(l,256):this.fromString(l,y))}function o(){return new i(null)}var s=typeof navigator!="undefined";s&&navigator.appName=="Microsoft Internet Explorer"?(i.prototype.am=function(l,y,w,T,N,X){for(var V=32767&y,Y=y>>15;--X>=0;){var ie=32767&this[l],ue=this[l++]>>15,Ee=Y*ie+ue*V;N=((ie=V*ie+((32767&Ee)<<15)+w[T]+(1073741823&N))>>>30)+(Ee>>>15)+Y*ue+(N>>>30),w[T++]=1073741823&ie}return N},r=30):s&&navigator.appName!="Netscape"?(i.prototype.am=function(l,y,w,T,N,X){for(;--X>=0;){var V=y*this[l++]+w[T]+N;N=Math.floor(V/67108864),w[T++]=67108863&V}return N},r=26):(i.prototype.am=function(l,y,w,T,N,X){for(var V=16383&y,Y=y>>14;--X>=0;){var ie=16383&this[l],ue=this[l++]>>14,Ee=Y*ie+ue*V;N=((ie=V*ie+((16383&Ee)<<14)+w[T]+N)>>28)+(Ee>>14)+Y*ue,w[T++]=268435455&ie}return N},r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r,i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52;var c,h,a=new Array;for(c=48,h=0;h<=9;++h)a[c++]=h;for(c=97,h=10;h<36;++h)a[c++]=h;for(c=65,h=10;h<36;++h)a[c++]=h;function f(l){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(l)}function p(l,y){var w=a[l.charCodeAt(y)];return w==null?-1:w}function x(l){var y=o();return y.fromInt(l),y}function u(l){var y,w=1;return(y=l>>>16)!=0&&(l=y,w+=16),(y=l>>8)!=0&&(l=y,w+=8),(y=l>>4)!=0&&(l=y,w+=4),(y=l>>2)!=0&&(l=y,w+=2),(y=l>>1)!=0&&(l=y,w+=1),w}function b(l){this.m=l}function m(l){this.m=l,this.mp=l.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<l.DB-15)-1,this.mt2=2*l.t}function E(l,y){return l&y}function A(l,y){return l|y}function g(l,y){return l^y}function v(l,y){return l&~y}function d(l){if(l==0)return-1;var y=0;return!(65535&l)&&(l>>=16,y+=16),!(255&l)&&(l>>=8,y+=8),!(15&l)&&(l>>=4,y+=4),!(3&l)&&(l>>=2,y+=2),!(1&l)&&++y,y}function _(l){for(var y=0;l!=0;)l&=l-1,++y;return y}function B(){}function C(l){return l}function S(l){this.r2=o(),this.q3=o(),i.ONE.dlShiftTo(2*l.t,this.r2),this.mu=this.r2.divide(l),this.m=l}b.prototype.convert=function(l){return l.s<0||l.compareTo(this.m)>=0?l.mod(this.m):l},b.prototype.revert=function(l){return l},b.prototype.reduce=function(l){l.divRemTo(this.m,null,l)},b.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w),this.reduce(w)},b.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)},m.prototype.convert=function(l){var y=o();return l.abs().dlShiftTo(this.m.t,y),y.divRemTo(this.m,null,y),l.s<0&&y.compareTo(i.ZERO)>0&&this.m.subTo(y,y),y},m.prototype.revert=function(l){var y=o();return l.copyTo(y),this.reduce(y),y},m.prototype.reduce=function(l){for(;l.t<=this.mt2;)l[l.t++]=0;for(var y=0;y<this.m.t;++y){var w=32767&l[y],T=w*this.mpl+((w*this.mph+(l[y]>>15)*this.mpl&this.um)<<15)&l.DM;for(l[w=y+this.m.t]+=this.m.am(0,T,l,y,0,this.m.t);l[w]>=l.DV;)l[w]-=l.DV,l[++w]++}l.clamp(),l.drShiftTo(this.m.t,l),l.compareTo(this.m)>=0&&l.subTo(this.m,l)},m.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w),this.reduce(w)},m.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)},i.prototype.copyTo=function(l){for(var y=this.t-1;y>=0;--y)l[y]=this[y];l.t=this.t,l.s=this.s},i.prototype.fromInt=function(l){this.t=1,this.s=l<0?-1:0,l>0?this[0]=l:l<-1?this[0]=l+this.DV:this.t=0},i.prototype.fromString=function(l,y){var w;if(y==16)w=4;else if(y==8)w=3;else if(y==256)w=8;else if(y==2)w=1;else if(y==32)w=5;else{if(y!=4)return void this.fromRadix(l,y);w=2}this.t=0,this.s=0;for(var T=l.length,N=!1,X=0;--T>=0;){var V=w==8?255&l[T]:p(l,T);V<0?l.charAt(T)=="-"&&(N=!0):(N=!1,X==0?this[this.t++]=V:X+w>this.DB?(this[this.t-1]|=(V&(1<<this.DB-X)-1)<<X,this[this.t++]=V>>this.DB-X):this[this.t-1]|=V<<X,(X+=w)>=this.DB&&(X-=this.DB))}w==8&&128&l[0]&&(this.s=-1,X>0&&(this[this.t-1]|=(1<<this.DB-X)-1<<X)),this.clamp(),N&&i.ZERO.subTo(this,this)},i.prototype.clamp=function(){for(var l=this.s&this.DM;this.t>0&&this[this.t-1]==l;)--this.t},i.prototype.dlShiftTo=function(l,y){var w;for(w=this.t-1;w>=0;--w)y[w+l]=this[w];for(w=l-1;w>=0;--w)y[w]=0;y.t=this.t+l,y.s=this.s},i.prototype.drShiftTo=function(l,y){for(var w=l;w<this.t;++w)y[w-l]=this[w];y.t=Math.max(this.t-l,0),y.s=this.s},i.prototype.lShiftTo=function(l,y){var w,T=l%this.DB,N=this.DB-T,X=(1<<N)-1,V=Math.floor(l/this.DB),Y=this.s<<T&this.DM;for(w=this.t-1;w>=0;--w)y[w+V+1]=this[w]>>N|Y,Y=(this[w]&X)<<T;for(w=V-1;w>=0;--w)y[w]=0;y[V]=Y,y.t=this.t+V+1,y.s=this.s,y.clamp()},i.prototype.rShiftTo=function(l,y){y.s=this.s;var w=Math.floor(l/this.DB);if(w>=this.t)y.t=0;else{var T=l%this.DB,N=this.DB-T,X=(1<<T)-1;y[0]=this[w]>>T;for(var V=w+1;V<this.t;++V)y[V-w-1]|=(this[V]&X)<<N,y[V-w]=this[V]>>T;T>0&&(y[this.t-w-1]|=(this.s&X)<<N),y.t=this.t-w,y.clamp()}},i.prototype.subTo=function(l,y){for(var w=0,T=0,N=Math.min(l.t,this.t);w<N;)T+=this[w]-l[w],y[w++]=T&this.DM,T>>=this.DB;if(l.t<this.t){for(T-=l.s;w<this.t;)T+=this[w],y[w++]=T&this.DM,T>>=this.DB;T+=this.s}else{for(T+=this.s;w<l.t;)T-=l[w],y[w++]=T&this.DM,T>>=this.DB;T-=l.s}y.s=T<0?-1:0,T<-1?y[w++]=this.DV+T:T>0&&(y[w++]=T),y.t=w,y.clamp()},i.prototype.multiplyTo=function(l,y){var w=this.abs(),T=l.abs(),N=w.t;for(y.t=N+T.t;--N>=0;)y[N]=0;for(N=0;N<T.t;++N)y[N+w.t]=w.am(0,T[N],y,N,0,w.t);y.s=0,y.clamp(),this.s!=l.s&&i.ZERO.subTo(y,y)},i.prototype.squareTo=function(l){for(var y=this.abs(),w=l.t=2*y.t;--w>=0;)l[w]=0;for(w=0;w<y.t-1;++w){var T=y.am(w,y[w],l,2*w,0,1);(l[w+y.t]+=y.am(w+1,2*y[w],l,2*w+1,T,y.t-w-1))>=y.DV&&(l[w+y.t]-=y.DV,l[w+y.t+1]=1)}l.t>0&&(l[l.t-1]+=y.am(w,y[w],l,2*w,0,1)),l.s=0,l.clamp()},i.prototype.divRemTo=function(l,y,w){var T=l.abs();if(!(T.t<=0)){var N=this.abs();if(N.t<T.t)return y!=null&&y.fromInt(0),void(w!=null&&this.copyTo(w));w==null&&(w=o());var X=o(),V=this.s,Y=l.s,ie=this.DB-u(T[T.t-1]);ie>0?(T.lShiftTo(ie,X),N.lShiftTo(ie,w)):(T.copyTo(X),N.copyTo(w));var ue=X.t,Ee=X[ue-1];if(Ee!=0){var we=Ee*(1<<this.F1)+(ue>1?X[ue-2]>>this.F2:0),ve=this.FV/we,Be=(1<<this.F1)/we,qe=1<<this.F2,Re=w.t,We=Re-ue,J=y==null?o():y;for(X.dlShiftTo(We,J),w.compareTo(J)>=0&&(w[w.t++]=1,w.subTo(J,w)),i.ONE.dlShiftTo(ue,J),J.subTo(X,X);X.t<ue;)X[X.t++]=0;for(;--We>=0;){var ce=w[--Re]==Ee?this.DM:Math.floor(w[Re]*ve+(w[Re-1]+qe)*Be);if((w[Re]+=X.am(0,ce,w,We,0,ue))<ce)for(X.dlShiftTo(We,J),w.subTo(J,w);w[Re]<--ce;)w.subTo(J,w)}y!=null&&(w.drShiftTo(ue,y),V!=Y&&i.ZERO.subTo(y,y)),w.t=ue,w.clamp(),ie>0&&w.rShiftTo(ie,w),V<0&&i.ZERO.subTo(w,w)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var l=this[0];if(!(1&l))return 0;var y=3&l;return(y=(y=(y=(y=y*(2-(15&l)*y)&15)*(2-(255&l)*y)&255)*(2-((65535&l)*y&65535))&65535)*(2-l*y%this.DV)%this.DV)>0?this.DV-y:-y},i.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},i.prototype.exp=function(l,y){if(l>4294967295||l<1)return i.ONE;var w=o(),T=o(),N=y.convert(this),X=u(l)-1;for(N.copyTo(w);--X>=0;)if(y.sqrTo(w,T),(l&1<<X)>0)y.mulTo(T,N,w);else{var V=w;w=T,T=V}return y.revert(w)},i.prototype.toString=function(l){if(this.s<0)return"-"+this.negate().toString(l);var y;if(l==16)y=4;else if(l==8)y=3;else if(l==2)y=1;else if(l==32)y=5;else{if(l!=4)return this.toRadix(l);y=2}var w,T=(1<<y)-1,N=!1,X="",V=this.t,Y=this.DB-V*this.DB%y;if(V-- >0)for(Y<this.DB&&(w=this[V]>>Y)>0&&(N=!0,X=f(w));V>=0;)Y<y?(w=(this[V]&(1<<Y)-1)<<y-Y,w|=this[--V]>>(Y+=this.DB-y)):(w=this[V]>>(Y-=y)&T,Y<=0&&(Y+=this.DB,--V)),w>0&&(N=!0),N&&(X+=f(w));return N?X:"0"},i.prototype.negate=function(){var l=o();return i.ZERO.subTo(this,l),l},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(l){var y=this.s-l.s;if(y!=0)return y;var w=this.t;if((y=w-l.t)!=0)return this.s<0?-y:y;for(;--w>=0;)if((y=this[w]-l[w])!=0)return y;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(l){var y=o();return this.abs().divRemTo(l,null,y),this.s<0&&y.compareTo(i.ZERO)>0&&l.subTo(y,y),y},i.prototype.modPowInt=function(l,y){var w;return w=l<256||y.isEven()?new b(y):new m(y),this.exp(l,w)},i.ZERO=x(0),i.ONE=x(1),B.prototype.convert=C,B.prototype.revert=C,B.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w)},B.prototype.sqrTo=function(l,y){l.squareTo(y)},S.prototype.convert=function(l){if(l.s<0||l.t>2*this.m.t)return l.mod(this.m);if(l.compareTo(this.m)<0)return l;var y=o();return l.copyTo(y),this.reduce(y),y},S.prototype.revert=function(l){return l},S.prototype.reduce=function(l){for(l.drShiftTo(this.m.t-1,this.r2),l.t>this.m.t+1&&(l.t=this.m.t+1,l.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);l.compareTo(this.r2)<0;)l.dAddOffset(1,this.m.t+1);for(l.subTo(this.r2,l);l.compareTo(this.m)>=0;)l.subTo(this.m,l)},S.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w),this.reduce(w)},S.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)};var k,F,D,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],M=(1<<26)/O[O.length-1];function U(){var l;l=new Date().getTime(),F[D++]^=255&l,F[D++]^=l>>8&255,F[D++]^=l>>16&255,F[D++]^=l>>24&255,D>=P&&(D-=P)}if(i.prototype.chunkSize=function(l){return Math.floor(Math.LN2*this.DB/Math.log(l))},i.prototype.toRadix=function(l){if(l==null&&(l=10),this.signum()==0||l<2||l>36)return"0";var y=this.chunkSize(l),w=Math.pow(l,y),T=x(w),N=o(),X=o(),V="";for(this.divRemTo(T,N,X);N.signum()>0;)V=(w+X.intValue()).toString(l).substr(1)+V,N.divRemTo(T,N,X);return X.intValue().toString(l)+V},i.prototype.fromRadix=function(l,y){this.fromInt(0),y==null&&(y=10);for(var w=this.chunkSize(y),T=Math.pow(y,w),N=!1,X=0,V=0,Y=0;Y<l.length;++Y){var ie=p(l,Y);ie<0?l.charAt(Y)=="-"&&this.signum()==0&&(N=!0):(V=y*V+ie,++X>=w&&(this.dMultiply(T),this.dAddOffset(V,0),X=0,V=0))}X>0&&(this.dMultiply(Math.pow(y,X)),this.dAddOffset(V,0)),N&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(l,y,w){if(typeof y=="number")if(l<2)this.fromInt(1);else for(this.fromNumber(l,w),this.testBit(l-1)||this.bitwiseTo(i.ONE.shiftLeft(l-1),A,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(y);)this.dAddOffset(2,0),this.bitLength()>l&&this.subTo(i.ONE.shiftLeft(l-1),this);else{var T=new Array,N=7&l;T.length=1+(l>>3),y.nextBytes(T),N>0?T[0]&=(1<<N)-1:T[0]=0,this.fromString(T,256)}},i.prototype.bitwiseTo=function(l,y,w){var T,N,X=Math.min(l.t,this.t);for(T=0;T<X;++T)w[T]=y(this[T],l[T]);if(l.t<this.t){for(N=l.s&this.DM,T=X;T<this.t;++T)w[T]=y(this[T],N);w.t=this.t}else{for(N=this.s&this.DM,T=X;T<l.t;++T)w[T]=y(N,l[T]);w.t=l.t}w.s=y(this.s,l.s),w.clamp()},i.prototype.changeBit=function(l,y){var w=i.ONE.shiftLeft(l);return this.bitwiseTo(w,y,w),w},i.prototype.addTo=function(l,y){for(var w=0,T=0,N=Math.min(l.t,this.t);w<N;)T+=this[w]+l[w],y[w++]=T&this.DM,T>>=this.DB;if(l.t<this.t){for(T+=l.s;w<this.t;)T+=this[w],y[w++]=T&this.DM,T>>=this.DB;T+=this.s}else{for(T+=this.s;w<l.t;)T+=l[w],y[w++]=T&this.DM,T>>=this.DB;T+=l.s}y.s=T<0?-1:0,T>0?y[w++]=T:T<-1&&(y[w++]=this.DV+T),y.t=w,y.clamp()},i.prototype.dMultiply=function(l){this[this.t]=this.am(0,l-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(l,y){if(l!=0){for(;this.t<=y;)this[this.t++]=0;for(this[y]+=l;this[y]>=this.DV;)this[y]-=this.DV,++y>=this.t&&(this[this.t++]=0),++this[y]}},i.prototype.multiplyLowerTo=function(l,y,w){var T,N=Math.min(this.t+l.t,y);for(w.s=0,w.t=N;N>0;)w[--N]=0;for(T=w.t-this.t;N<T;++N)w[N+this.t]=this.am(0,l[N],w,N,0,this.t);for(T=Math.min(l.t,y);N<T;++N)this.am(0,l[N],w,N,0,y-N);w.clamp()},i.prototype.multiplyUpperTo=function(l,y,w){--y;var T=w.t=this.t+l.t-y;for(w.s=0;--T>=0;)w[T]=0;for(T=Math.max(y-this.t,0);T<l.t;++T)w[this.t+T-y]=this.am(y-T,l[T],w,0,0,this.t+T-y);w.clamp(),w.drShiftTo(1,w)},i.prototype.modInt=function(l){if(l<=0)return 0;var y=this.DV%l,w=this.s<0?l-1:0;if(this.t>0)if(y==0)w=this[0]%l;else for(var T=this.t-1;T>=0;--T)w=(y*w+this[T])%l;return w},i.prototype.millerRabin=function(l){var y=this.subtract(i.ONE),w=y.getLowestSetBit();if(w<=0)return!1;var T=y.shiftRight(w);(l=l+1>>1)>O.length&&(l=O.length);for(var N=o(),X=0;X<l;++X){N.fromInt(O[Math.floor(Math.random()*O.length)]);var V=N.modPow(T,this);if(V.compareTo(i.ONE)!=0&&V.compareTo(y)!=0){for(var Y=1;Y++<w&&V.compareTo(y)!=0;)if((V=V.modPowInt(2,this)).compareTo(i.ONE)==0)return!1;if(V.compareTo(y)!=0)return!1}}return!0},i.prototype.clone=function(){var l=o();return this.copyTo(l),l},i.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},i.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var l=this.t,y=new Array;y[0]=this.s;var w,T=this.DB-l*this.DB%8,N=0;if(l-- >0)for(T<this.DB&&(w=this[l]>>T)!=(this.s&this.DM)>>T&&(y[N++]=w|this.s<<this.DB-T);l>=0;)T<8?(w=(this[l]&(1<<T)-1)<<8-T,w|=this[--l]>>(T+=this.DB-8)):(w=this[l]>>(T-=8)&255,T<=0&&(T+=this.DB,--l)),128&w&&(w|=-256),N==0&&(128&this.s)!=(128&w)&&++N,(N>0||w!=this.s)&&(y[N++]=w);return y},i.prototype.equals=function(l){return this.compareTo(l)==0},i.prototype.min=function(l){return this.compareTo(l)<0?this:l},i.prototype.max=function(l){return this.compareTo(l)>0?this:l},i.prototype.and=function(l){var y=o();return this.bitwiseTo(l,E,y),y},i.prototype.or=function(l){var y=o();return this.bitwiseTo(l,A,y),y},i.prototype.xor=function(l){var y=o();return this.bitwiseTo(l,g,y),y},i.prototype.andNot=function(l){var y=o();return this.bitwiseTo(l,v,y),y},i.prototype.not=function(){for(var l=o(),y=0;y<this.t;++y)l[y]=this.DM&~this[y];return l.t=this.t,l.s=~this.s,l},i.prototype.shiftLeft=function(l){var y=o();return l<0?this.rShiftTo(-l,y):this.lShiftTo(l,y),y},i.prototype.shiftRight=function(l){var y=o();return l<0?this.lShiftTo(-l,y):this.rShiftTo(l,y),y},i.prototype.getLowestSetBit=function(){for(var l=0;l<this.t;++l)if(this[l]!=0)return l*this.DB+d(this[l]);return this.s<0?this.t*this.DB:-1},i.prototype.bitCount=function(){for(var l=0,y=this.s&this.DM,w=0;w<this.t;++w)l+=_(this[w]^y);return l},i.prototype.testBit=function(l){var y=Math.floor(l/this.DB);return y>=this.t?this.s!=0:(this[y]&1<<l%this.DB)!=0},i.prototype.setBit=function(l){return this.changeBit(l,A)},i.prototype.clearBit=function(l){return this.changeBit(l,v)},i.prototype.flipBit=function(l){return this.changeBit(l,g)},i.prototype.add=function(l){var y=o();return this.addTo(l,y),y},i.prototype.subtract=function(l){var y=o();return this.subTo(l,y),y},i.prototype.multiply=function(l){var y=o();return this.multiplyTo(l,y),y},i.prototype.divide=function(l){var y=o();return this.divRemTo(l,y,null),y},i.prototype.remainder=function(l){var y=o();return this.divRemTo(l,null,y),y},i.prototype.divideAndRemainder=function(l){var y=o(),w=o();return this.divRemTo(l,y,w),new Array(y,w)},i.prototype.modPow=function(l,y){var w,T,N=l.bitLength(),X=x(1);if(N<=0)return X;w=N<18?1:N<48?3:N<144?4:N<768?5:6,T=N<8?new b(y):y.isEven()?new S(y):new m(y);var V=new Array,Y=3,ie=w-1,ue=(1<<w)-1;if(V[1]=T.convert(this),w>1){var Ee=o();for(T.sqrTo(V[1],Ee);Y<=ue;)V[Y]=o(),T.mulTo(Ee,V[Y-2],V[Y]),Y+=2}var we,ve,Be=l.t-1,qe=!0,Re=o();for(N=u(l[Be])-1;Be>=0;){for(N>=ie?we=l[Be]>>N-ie&ue:(we=(l[Be]&(1<<N+1)-1)<<ie-N,Be>0&&(we|=l[Be-1]>>this.DB+N-ie)),Y=w;!(1&we);)we>>=1,--Y;if((N-=Y)<0&&(N+=this.DB,--Be),qe)V[we].copyTo(X),qe=!1;else{for(;Y>1;)T.sqrTo(X,Re),T.sqrTo(Re,X),Y-=2;Y>0?T.sqrTo(X,Re):(ve=X,X=Re,Re=ve),T.mulTo(Re,V[we],X)}for(;Be>=0&&!(l[Be]&1<<N);)T.sqrTo(X,Re),ve=X,X=Re,Re=ve,--N<0&&(N=this.DB-1,--Be)}return T.revert(X)},i.prototype.modInverse=function(l){var y=l.isEven();if(this.isEven()&&y||l.signum()==0)return i.ZERO;for(var w=l.clone(),T=this.clone(),N=x(1),X=x(0),V=x(0),Y=x(1);w.signum()!=0;){for(;w.isEven();)w.rShiftTo(1,w),y?(N.isEven()&&X.isEven()||(N.addTo(this,N),X.subTo(l,X)),N.rShiftTo(1,N)):X.isEven()||X.subTo(l,X),X.rShiftTo(1,X);for(;T.isEven();)T.rShiftTo(1,T),y?(V.isEven()&&Y.isEven()||(V.addTo(this,V),Y.subTo(l,Y)),V.rShiftTo(1,V)):Y.isEven()||Y.subTo(l,Y),Y.rShiftTo(1,Y);w.compareTo(T)>=0?(w.subTo(T,w),y&&N.subTo(V,N),X.subTo(Y,X)):(T.subTo(w,T),y&&V.subTo(N,V),Y.subTo(X,Y))}return T.compareTo(i.ONE)!=0?i.ZERO:Y.compareTo(l)>=0?Y.subtract(l):Y.signum()<0?(Y.addTo(l,Y),Y.signum()<0?Y.add(l):Y):Y},i.prototype.pow=function(l){return this.exp(l,new B)},i.prototype.gcd=function(l){var y=this.s<0?this.negate():this.clone(),w=l.s<0?l.negate():l.clone();if(y.compareTo(w)<0){var T=y;y=w,w=T}var N=y.getLowestSetBit(),X=w.getLowestSetBit();if(X<0)return y;for(N<X&&(X=N),X>0&&(y.rShiftTo(X,y),w.rShiftTo(X,w));y.signum()>0;)(N=y.getLowestSetBit())>0&&y.rShiftTo(N,y),(N=w.getLowestSetBit())>0&&w.rShiftTo(N,w),y.compareTo(w)>=0?(y.subTo(w,y),y.rShiftTo(1,y)):(w.subTo(y,w),w.rShiftTo(1,w));return X>0&&w.lShiftTo(X,w),w},i.prototype.isProbablePrime=function(l){var y,w=this.abs();if(w.t==1&&w[0]<=O[O.length-1]){for(y=0;y<O.length;++y)if(w[0]==O[y])return!0;return!1}if(w.isEven())return!1;for(y=1;y<O.length;){for(var T=O[y],N=y+1;N<O.length&&T<M;)T*=O[N++];for(T=w.modInt(T);y<N;)if(T%O[y++]==0)return!1}return w.millerRabin(l)},i.prototype.square=function(){var l=o();return this.squareTo(l),l},i.prototype.Barrett=S,F==null){var z;if(F=new Array,D=0,typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var j=new Uint8Array(32);for(window.crypto.getRandomValues(j),z=0;z<32;++z)F[D++]=j[z]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var W=window.crypto.random(32);for(z=0;z<W.length;++z)F[D++]=255&W.charCodeAt(z)}}for(;D<P;)z=Math.floor(65536*Math.random()),F[D++]=z>>>8,F[D++]=255&z;D=0,U()}function Q(){if(k==null){for(U(),(k=new te).init(F),D=0;D<F.length;++D)F[D]=0;D=0}return k.next()}function Z(){}function te(){this.i=0,this.j=0,this.S=new Array}Z.prototype.nextBytes=function(l){var y;for(y=0;y<l.length;++y)l[y]=Q()},te.prototype.init=function(l){var y,w,T;for(y=0;y<256;++y)this.S[y]=y;for(w=0,y=0;y<256;++y)w=w+this.S[y]+l[y%l.length]&255,T=this.S[y],this.S[y]=this.S[w],this.S[w]=T;this.i=0,this.j=0},te.prototype.next=function(){var l;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,l=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=l,this.S[l+this.S[this.i]&255]};var P=256;t.exports={default:i,BigInteger:i,SecureRandom:Z}}).call(this)},function(t,n,e){var r=e(5),i=e(21).map;r({target:"Array",proto:!0,forced:!e(84)("map")},{map:function(o){return i(this,o,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(3),i=e(79),o=r.TYPED_ARRAY_CONSTRUCTOR,s=r.aTypedArrayConstructor;t.exports=function(c){return s(i(c,c[o]))}},function(t,n,e){var r;t.exports=(r=e(25),r.enc.Utf8)},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports=String(r)==="[object z]"},function(t,n,e){var r=e(0),i=e(93),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,n,e){var r=e(0),i=Object.defineProperty;t.exports=function(o,s){try{i(r,o,{value:s,configurable:!0,writable:!0})}catch(c){r[o]=s}return s}},function(t,n,e){var r=e(55),i=e(1);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,n,e){var r=e(13),i=e(0),o=e(2),s=e(60),c=e(17),h=e(9),a=e(76),f=e(22),p=e(57),x=e(122),u=e(1),b=e(33).f,m=e(47).f,E=e(10).f,A=e(169),g=e(125).trim,v=i.Number,d=v.prototype,_=i.TypeError,B=o("".slice),C=o("".charCodeAt),S=function(U){var z=x(U,"number");return typeof z=="bigint"?z:k(z)},k=function(U){var z,j,W,Q,Z,te,P,l,y=x(U,"number");if(p(y))throw _("Cannot convert a Symbol value to a number");if(typeof y=="string"&&y.length>2){if(y=g(y),(z=C(y,0))===43||z===45){if((j=C(y,2))===88||j===120)return NaN}else if(z===48){switch(C(y,1)){case 66:case 98:W=2,Q=49;break;case 79:case 111:W=8,Q=55;break;default:return+y}for(te=(Z=B(y,2)).length,P=0;P<te;P++)if((l=C(Z,P))<48||l>Q)return NaN;return parseInt(Z,W)}}return+y};if(s("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var F,D=function(U){var z=arguments.length<1?0:v(S(U)),j=this;return f(d,j)&&u(function(){A(j)})?a(Object(z),j,D):z},O=r?b(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;O.length>M;M++)h(v,F=O[M])&&!h(D,F)&&E(D,F,m(v,F));D.prototype=d,d.constructor=D,c(i,"Number",D)}},function(t,n,e){var r=e(24),i=e(27),o=e(15),s=function(c){return function(h,a,f){var p,x=r(h),u=o(x),b=i(f,u);if(c&&a!=a){for(;u>b;)if((p=x[b++])!=p)return!0}else for(;u>b;b++)if((c||b in x)&&x[b]===a)return c||b||0;return!c&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(8);t.exports=function(){var i=r(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o}},function(t,n,e){var r=e(1),i=e(0).RegExp,o=r(function(){var h=i("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),s=o||r(function(){return!i("a","y").sticky}),c=o||r(function(){var h=i("^r","gy");return h.lastIndex=2,h.exec("str")!=null});t.exports={BROKEN_CARET:c,MISSED_STICKY:s,UNSUPPORTED_Y:o}},function(t,n,e){var r=e(123),i=e(97);t.exports=Object.keys||function(o){return r(o,i)}},function(t,n,e){e(16);var r=e(2),i=e(17),o=e(78),s=e(1),c=e(4),h=e(18),a=c("species"),f=RegExp.prototype;t.exports=function(p,x,u,b){var m=c(p),E=!s(function(){var d={};return d[m]=function(){return 7},""[p](d)!=7}),A=E&&!s(function(){var d=!1,_=/a/;return p==="split"&&((_={}).constructor={},_.constructor[a]=function(){return _},_.flags="",_[m]=/./[m]),_.exec=function(){return d=!0,null},_[m](""),!d});if(!E||!A||u){var g=r(/./[m]),v=x(m,""[p],function(d,_,B,C,S){var k=r(d),F=_.exec;return F===o||F===f.exec?E&&!S?{done:!0,value:g(_,B,C)}:{done:!0,value:k(B,_,C)}:{done:!1}});i(String.prototype,p,v[0]),i(f,m,v[1])}b&&h(f[m],"sham",!0)}},function(t,n,e){var r=e(103).charAt;t.exports=function(i,o,s){return o+(s?r(i,o).length:1)}},function(t,n,e){var r=e(2),i=e(28),o=e(19),s=e(36),c=r("".charAt),h=r("".charCodeAt),a=r("".slice),f=function(p){return function(x,u){var b,m,E=o(s(x)),A=i(u),g=E.length;return A<0||A>=g?p?"":void 0:(b=h(E,A))<55296||b>56319||A+1===g||(m=h(E,A+1))<56320||m>57343?p?c(E,A):b:p?a(E,A,A+2):m-56320+(b-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,n,e){var r=e(0),i=e(11),o=e(8),s=e(6),c=e(32),h=e(78),a=r.TypeError;t.exports=function(f,p){var x=f.exec;if(s(x)){var u=i(x,f,p);return u!==null&&o(u),u}if(c(f)==="RegExp")return i(h,f,p);throw a("RegExp#exec called on incompatible receiver")}},function(t,n,e){var r=e(0),i=e(80),o=e(58),s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not a constructor")}},function(t,n,e){var r=e(5),i=e(2),o=e(59),s=e(7),c=e(9),h=e(10).f,a=e(33),f=e(135),p=e(174),x=e(54),u=e(134),b=!1,m=x("meta"),E=0,A=function(v){h(v,m,{value:{objectID:"O"+E++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},b=!0;var v=a.f,d=i([].splice),_={};_[m]=1,v(_).length&&(a.f=function(B){for(var C=v(B),S=0,k=C.length;S<k;S++)if(C[S]===m){d(C,S,1);break}return C},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(v,d){if(!s(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!c(v,m)){if(!p(v))return"F";if(!d)return"E";A(v)}return v[m].objectID},getWeakData:function(v,d){if(!c(v,m)){if(!p(v))return!0;if(!d)return!1;A(v)}return v[m].weakData},onFreeze:function(v){return u&&b&&p(v)&&!c(v,m)&&A(v),v}};o[m]=!0},function(t,n,e){var r=e(5),i=e(0),o=e(1),s=e(83),c=e(7),h=e(14),a=e(15),f=e(62),p=e(108),x=e(84),u=e(4),b=e(55),m=u("isConcatSpreadable"),E=i.TypeError,A=b>=51||!o(function(){var d=[];return d[m]=!1,d.concat()[0]!==d}),g=x("concat"),v=function(d){if(!c(d))return!1;var _=d[m];return _!==void 0?!!_:s(d)};r({target:"Array",proto:!0,forced:!A||!g},{concat:function(d){var _,B,C,S,k,F=h(this),D=p(F,0),O=0;for(_=-1,C=arguments.length;_<C;_++)if(v(k=_===-1?F:arguments[_])){if(O+(S=a(k))>9007199254740991)throw E("Maximum allowed index exceeded");for(B=0;B<S;B++,O++)B in k&&f(D,O,k[B])}else{if(O>=9007199254740991)throw E("Maximum allowed index exceeded");f(D,O++,k)}return D.length=O,D}})},function(t,n,e){var r=e(176);t.exports=function(i,o){return new(r(i))(o===0?0:o)}},function(t,n,e){var r=e(1);t.exports=function(i,o){var s=[][i];return!!s&&r(function(){s.call(null,o||function(){return 1},1)})}},function(t,n,e){var r=e(17);t.exports=function(i,o,s){for(var c in o)r(i,c,o[c],s);return i}},function(t,n,e){var r=e(0),i=e(40),o=e(11),s=e(8),c=e(58),h=e(112),a=e(15),f=e(22),p=e(113),x=e(85),u=e(139),b=r.TypeError,m=function(A,g){this.stopped=A,this.result=g},E=m.prototype;t.exports=function(A,g,v){var d,_,B,C,S,k,F,D=v&&v.that,O=!(!v||!v.AS_ENTRIES),M=!(!v||!v.IS_ITERATOR),U=!(!v||!v.INTERRUPTED),z=i(g,D),j=function(Q){return d&&u(d,"normal",Q),new m(!0,Q)},W=function(Q){return O?(s(Q),U?z(Q[0],Q[1],j):z(Q[0],Q[1])):U?z(Q,j):z(Q)};if(M)d=A;else{if(!(_=x(A)))throw b(c(A)+" is not iterable");if(h(_)){for(B=0,C=a(A);C>B;B++)if((S=W(A[B]))&&f(E,S))return S;return new m(!1)}d=p(A,_)}for(k=d.next;!(F=o(k,d)).done;){try{S=W(F.value)}catch(Q){u(d,"throw",Q)}if(typeof S=="object"&&S&&f(E,S))return S}return new m(!1)}},function(t,n,e){var r=e(4),i=e(65),o=r("iterator"),s=Array.prototype;t.exports=function(c){return c!==void 0&&(i.Array===c||s[o]===c)}},function(t,n,e){var r=e(0),i=e(11),o=e(31),s=e(8),c=e(58),h=e(85),a=r.TypeError;t.exports=function(f,p){var x=arguments.length<2?h(f):p;if(o(x))return s(i(x,f));throw a(c(f)+" is not iterable")}},function(t,n,e){var r=e(32),i=e(0);t.exports=r(i.process)=="process"},function(t,n,e){var r=e(5),i=e(11),o=e(42),s=e(45),c=e(6),h=e(191),a=e(66),f=e(38),p=e(49),x=e(18),u=e(17),b=e(4),m=e(65),E=e(148),A=s.PROPER,g=s.CONFIGURABLE,v=E.IteratorPrototype,d=E.BUGGY_SAFARI_ITERATORS,_=b("iterator"),B=function(){return this};t.exports=function(C,S,k,F,D,O,M){h(k,S,F);var U,z,j,W=function(w){if(w===D&&l)return l;if(!d&&w in te)return te[w];switch(w){case"keys":case"values":case"entries":return function(){return new k(this,w)}}return function(){return new k(this)}},Q=S+" Iterator",Z=!1,te=C.prototype,P=te[_]||te["@@iterator"]||D&&te[D],l=!d&&P||W(D),y=S=="Array"&&te.entries||P;if(y&&(U=a(y.call(new C)))!==Object.prototype&&U.next&&(o||a(U)===v||(f?f(U,v):c(U[_])||u(U,_,B)),p(U,Q,!0,!0),o&&(m[Q]=B)),A&&D=="values"&&P&&P.name!=="values"&&(!o&&g?x(te,"name","values"):(Z=!0,l=function(){return i(P,this)})),D)if(z={values:W("values"),keys:O?l:W("keys"),entries:W("entries")},M)for(j in z)(d||Z||!(j in te))&&u(te,j,z[j]);else r({target:S,proto:!0,forced:d||Z},z);return o&&!M||te[_]===l||u(te,_,l,{name:D}),m[S]=l,z}},function(t,n,e){var r=e(5),i=e(203);r({target:"Array",stat:!0,forced:!e(86)(function(o){Array.from(o)})},{from:i})},function(t,n,e){var r=e(14),i=e(27),o=e(15);t.exports=function(s){for(var c=r(this),h=o(c),a=arguments.length,f=i(a>1?arguments[1]:void 0,h),p=a>2?arguments[2]:void 0,x=p===void 0?h:i(p,h);x>f;)c[f++]=s;return c}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){typeof window=="object"&&(e=window)}t.exports=e},function(t,n,e){var r=e(94);t.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(t,n,e){var r=e(13),i=e(1),o=e(73);t.exports=!r&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},function(t,n,e){var r=e(13),i=e(1);t.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},function(t,n,e){var r=e(0),i=e(11),o=e(7),s=e(57),c=e(43),h=e(165),a=e(4),f=r.TypeError,p=a("toPrimitive");t.exports=function(x,u){if(!o(x)||s(x))return x;var b,m=c(x,p);if(m){if(u===void 0&&(u="default"),b=i(m,x,u),!o(b)||s(b))return b;throw f("Can't convert object to primitive value")}return u===void 0&&(u="number"),h(x,u)}},function(t,n,e){var r=e(2),i=e(9),o=e(24),s=e(96).indexOf,c=e(59),h=r([].push);t.exports=function(a,f){var p,x=o(a),u=0,b=[];for(p in x)!i(c,p)&&i(x,p)&&h(b,p);for(;f.length>u;)i(x,p=f[u++])&&(~s(b,p)||h(b,p));return b}},function(t,n,e){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);n.f=o?function(s){var c=i(this,s);return!!c&&c.enumerable}:r},function(t,n,e){var r=e(2),i=e(36),o=e(19),s=e(126),c=r("".replace),h="["+s+"]",a=RegExp("^"+h+h+"*"),f=RegExp(h+h+"*$"),p=function(x){return function(u){var b=o(i(u));return 1&x&&(b=c(b,a,"")),2&x&&(b=c(b,f,"")),b}};t.exports={start:p(1),end:p(2),trim:p(3)}},function(t,n){t.exports=`
|
|
23
|
+
\v\f\r \u2028\u2029\uFEFF`},function(t,n,e){var r=e(9),i=e(170),o=e(47),s=e(10);t.exports=function(c,h,a){for(var f=i(h),p=s.f,x=o.f,u=0;u<f.length;u++){var b=f[u];r(c,b)||a&&r(a,b)||p(c,b,x(h,b))}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(13),i=e(121),o=e(10),s=e(8),c=e(24),h=e(100);n.f=r&&!i?Object.defineProperties:function(a,f){s(a);for(var p,x=c(f),u=h(f),b=u.length,m=0;b>m;)o.f(a,p=u[m++],x[p]);return a}},function(t,n,e){var r=e(26);t.exports=r("document","documentElement")},function(t,n,e){var r=e(1),i=e(0).RegExp;t.exports=r(function(){var o=i(".","s");return!(o.dotAll&&o.exec(`
|
|
24
|
+
`)&&o.flags==="s")})},function(t,n,e){var r=e(1),i=e(0).RegExp;t.exports=r(function(){var o=i("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},function(t,n,e){var r=e(7),i=e(32),o=e(4)("match");t.exports=function(s){var c;return r(s)&&((c=s[o])!==void 0?!!c:i(s)=="RegExp")}},function(t,n,e){var r=e(1);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,n,e){var r=e(32),i=e(24),o=e(33).f,s=e(81),c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(h){return c&&r(h)=="Window"?function(a){try{return o(a)}catch(f){return s(c)}}(h):o(i(h))}},function(t,n,e){var r=e(13),i=e(0),o=e(2),s=e(60),c=e(76),h=e(18),a=e(10).f,f=e(33).f,p=e(22),x=e(133),u=e(19),b=e(98),m=e(99),E=e(17),A=e(1),g=e(9),v=e(23).enforce,d=e(82),_=e(4),B=e(131),C=e(132),S=_("match"),k=i.RegExp,F=k.prototype,D=i.SyntaxError,O=o(b),M=o(F.exec),U=o("".charAt),z=o("".replace),j=o("".indexOf),W=o("".slice),Q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Z=/a/g,te=/a/g,P=new k(Z)!==Z,l=m.MISSED_STICKY,y=m.UNSUPPORTED_Y,w=r&&(!P||l||B||C||A(function(){return te[S]=!1,k(Z)!=Z||k(te)==te||k(Z,"i")!="/a/i"}));if(s("RegExp",w)){for(var T=function(Y,ie){var ue,Ee,we,ve,Be,qe,Re=p(F,this),We=x(Y),J=ie===void 0,ce=[],le=Y;if(!Re&&We&&J&&Y.constructor===T)return Y;if((We||p(F,Y))&&(Y=Y.source,J&&(ie="flags"in le?le.flags:O(le))),Y=Y===void 0?"":u(Y),ie=ie===void 0?"":u(ie),le=Y,B&&"dotAll"in Z&&(Ee=!!ie&&j(ie,"s")>-1)&&(ie=z(ie,/s/g,"")),ue=ie,l&&"sticky"in Z&&(we=!!ie&&j(ie,"y")>-1)&&y&&(ie=z(ie,/y/g,"")),C&&(Y=(ve=function(me){for(var ge,Ve=me.length,Oe=0,Te="",Ae=[],Ue={},Ge=!1,$e=!1,ee=0,oe="";Oe<=Ve;Oe++){if((ge=U(me,Oe))==="\\")ge+=U(me,++Oe);else if(ge==="]")Ge=!1;else if(!Ge)switch(!0){case ge==="[":Ge=!0;break;case ge==="(":M(Q,W(me,Oe+1))&&(Oe+=2,$e=!0),Te+=ge,ee++;continue;case(ge===">"&&$e):if(oe===""||g(Ue,oe))throw new D("Invalid capture group name");Ue[oe]=!0,Ae[Ae.length]=[oe,ee],$e=!1,oe="";continue}$e?oe+=ge:Te+=ge}return[Te,Ae]}(Y))[0],ce=ve[1]),Be=c(k(Y,ie),Re?this:F,T),(Ee||we||ce.length)&&(qe=v(Be),Ee&&(qe.dotAll=!0,qe.raw=T(function(me){for(var ge,Ve=me.length,Oe=0,Te="",Ae=!1;Oe<=Ve;Oe++)(ge=U(me,Oe))!=="\\"?Ae||ge!=="."?(ge==="["?Ae=!0:ge==="]"&&(Ae=!1),Te+=ge):Te+="[\\s\\S]":Te+=ge+U(me,++Oe);return Te}(Y),ue)),we&&(qe.sticky=!0),ce.length&&(qe.groups=ce)),Y!==le)try{h(Be,"source",le===""?"(?:)":le)}catch(me){}return Be},N=function(Y){Y in T||a(T,Y,{configurable:!0,get:function(){return k[Y]},set:function(ie){k[Y]=ie}})},X=f(k),V=0;X.length>V;)N(X[V++]);F.constructor=T,T.prototype=F,E(i,"RegExp",T)}d("RegExp")},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(73)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,n,e){var r=e(11),i=e(8),o=e(43);t.exports=function(s,c,h){var a,f;i(s);try{if(!(a=o(s,"return"))){if(c==="throw")throw h;return h}a=r(a,s)}catch(p){f=!0,a=p}if(c==="throw")throw h;if(f)throw a;return i(a),h}},function(t,n,e){var r,i,o,s,c=e(0),h=e(35),a=e(40),f=e(6),p=e(9),x=e(1),u=e(130),b=e(50),m=e(73),E=e(181),A=e(141),g=e(114),v=c.setImmediate,d=c.clearImmediate,_=c.process,B=c.Dispatch,C=c.Function,S=c.MessageChannel,k=c.String,F=0,D={};try{r=c.location}catch(j){}var O=function(j){if(p(D,j)){var W=D[j];delete D[j],W()}},M=function(j){return function(){O(j)}},U=function(j){O(j.data)},z=function(j){c.postMessage(k(j),r.protocol+"//"+r.host)};v&&d||(v=function(j){E(arguments.length,1);var W=f(j)?j:C(j),Q=b(arguments,1);return D[++F]=function(){h(W,void 0,Q)},i(F),F},d=function(j){delete D[j]},g?i=function(j){_.nextTick(M(j))}:B&&B.now?i=function(j){B.now(M(j))}:S&&!A?(s=(o=new S).port2,o.port1.onmessage=U,i=a(s.postMessage,s)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&r.protocol!=="file:"&&!x(z)?(i=z,c.addEventListener("message",U,!1)):i="onreadystatechange"in m("script")?function(j){u.appendChild(m("script")).onreadystatechange=function(){u.removeChild(this),O(j)}}:function(j){setTimeout(M(j),0)}),t.exports={set:v,clear:d}},function(t,n,e){var r=e(37);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,n,e){var r=e(31),i=function(o){var s,c;this.promise=new o(function(h,a){if(s!==void 0||c!==void 0)throw TypeError("Bad Promise constructor");s=h,c=a}),this.resolve=r(s),this.reject=r(c)};t.exports.f=function(o){return new i(o)}},function(t,n,e){e(5)({target:"Object",stat:!0},{setPrototypeOf:e(38)})},function(t,n,e){var r=e(5),i=e(1),o=e(14),s=e(66),c=e(145);r({target:"Object",stat:!0,forced:i(function(){s(1)}),sham:!c},{getPrototypeOf:function(h){return s(o(h))}})},function(t,n,e){var r=e(1);t.exports=!r(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},function(t,n,e){var r=e(5),i=e(26),o=e(35),s=e(190),c=e(105),h=e(8),a=e(7),f=e(34),p=e(1),x=i("Reflect","construct"),u=Object.prototype,b=[].push,m=p(function(){function g(){}return!(x(function(){},[],g)instanceof g)}),E=!p(function(){x(function(){})}),A=m||E;r({target:"Reflect",stat:!0,forced:A,sham:A},{construct:function(g,v){c(g),h(v);var d=arguments.length<3?g:c(arguments[2]);if(E&&!m)return x(g,v,d);if(g==d){switch(v.length){case 0:return new g;case 1:return new g(v[0]);case 2:return new g(v[0],v[1]);case 3:return new g(v[0],v[1],v[2]);case 4:return new g(v[0],v[1],v[2],v[3])}var _=[null];return o(b,_,v),new(o(s,g,_))}var B=d.prototype,C=f(a(B)?B:u),S=o(g,C,v);return a(S)?S:C}})},function(t,n,e){var r=e(4),i=e(34),o=e(10),s=r("unscopables"),c=Array.prototype;c[s]==null&&o.f(c,s,{configurable:!0,value:i(null)}),t.exports=function(h){c[s][h]=!0}},function(t,n,e){var r,i,o,s=e(1),c=e(6),h=e(34),a=e(66),f=e(17),p=e(4),x=e(42),u=p("iterator"),b=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):b=!0),r==null||s(function(){var m={};return r[u].call(m)!==m})?r={}:x&&(r=h(r)),c(r[u])||f(r,u,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:b}},function(t,n,e){var r=e(4);n.f=r},function(t,n,e){var r=e(195),i=e(9),o=e(149),s=e(10).f;t.exports=function(c){var h=r.Symbol||(r.Symbol={});i(h,c)||s(h,c,{value:o.f(c)})}},function(t,n,e){var r,i,o,s,c,h,a,f;t.exports=(f=e(25),e(200),e(201),i=(r=f).lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:h,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,x){for(var u,b=this.cfg,m=b.hasher.create(),E=s.create(),A=E.words,g=b.keySize,v=b.iterations;A.length<g;){u&&m.update(u),u=m.update(p).finalize(x),m.reset();for(var d=1;d<v;d++)u=m.finalize(u),m.reset();E.concat(u)}return E.sigBytes=4*g,E}}),r.EvpKDF=function(p,x,u){return a.create(u).compute(p,x)},f.EvpKDF)},function(t,n,e){var r,i,o,s,c,h,a,f,p,x,u,b,m,E,A,g,v,d,_;t.exports=(r=e(25),e(151),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,c=o.WordArray,h=o.BufferedBlockAlgorithm,a=i.enc,a.Utf8,f=a.Base64,p=i.algo.EvpKDF,x=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(B,C){return this.create(this._ENC_XFORM_MODE,B,C)},createDecryptor:function(B,C){return this.create(this._DEC_XFORM_MODE,B,C)},init:function(B,C,S){this.cfg=this.cfg.extend(S),this._xformMode=B,this._key=C,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){return B&&this._append(B),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(C){return typeof C=="string"?_:v}return function(C){return{encrypt:function(S,k,F){return B(k).encrypt(C,S,k,F)},decrypt:function(S,k,F){return B(k).decrypt(C,S,k,F)}}}}()}),o.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),u=i.mode={},b=o.BlockCipherMode=s.extend({createEncryptor:function(B,C){return this.Encryptor.create(B,C)},createDecryptor:function(B,C){return this.Decryptor.create(B,C)},init:function(B,C){this._cipher=B,this._iv=C}}),m=u.CBC=function(){var B=b.extend();function C(S,k,F){var D,O=this._iv;O?(D=O,this._iv=void 0):D=this._prevBlock;for(var M=0;M<F;M++)S[k+M]^=D[M]}return B.Encryptor=B.extend({processBlock:function(S,k){var F=this._cipher,D=F.blockSize;C.call(this,S,k,D),F.encryptBlock(S,k),this._prevBlock=S.slice(k,k+D)}}),B.Decryptor=B.extend({processBlock:function(S,k){var F=this._cipher,D=F.blockSize,O=S.slice(k,k+D);F.decryptBlock(S,k),C.call(this,S,k,D),this._prevBlock=O}}),B}(),E=(i.pad={}).Pkcs7={pad:function(B,C){for(var S=4*C,k=S-B.sigBytes%S,F=k<<24|k<<16|k<<8|k,D=[],O=0;O<k;O+=4)D.push(F);var M=c.create(D,k);B.concat(M)},unpad:function(B){var C=255&B.words[B.sigBytes-1>>>2];B.sigBytes-=C}},o.BlockCipher=x.extend({cfg:x.cfg.extend({mode:m,padding:E}),reset:function(){var B;x.reset.call(this);var C=this.cfg,S=C.iv,k=C.mode;this._xformMode==this._ENC_XFORM_MODE?B=k.createEncryptor:(B=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,S&&S.words):(this._mode=B.call(k,this,S&&S.words),this._mode.__creator=B)},_doProcessBlock:function(B,C){this._mode.processBlock(B,C)},_doFinalize:function(){var B,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),C.unpad(B)),B},blockSize:4}),A=o.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),g=(i.format={}).OpenSSL={stringify:function(B){var C=B.ciphertext,S=B.salt;return(S?c.create([1398893684,1701076831]).concat(S).concat(C):C).toString(f)},parse:function(B){var C,S=f.parse(B),k=S.words;return k[0]==1398893684&&k[1]==1701076831&&(C=c.create(k.slice(2,4)),k.splice(0,4),S.sigBytes-=16),A.create({ciphertext:S,salt:C})}},v=o.SerializableCipher=s.extend({cfg:s.extend({format:g}),encrypt:function(B,C,S,k){k=this.cfg.extend(k);var F=B.createEncryptor(S,k),D=F.finalize(C),O=F.cfg;return A.create({ciphertext:D,key:S,iv:O.iv,algorithm:B,mode:O.mode,padding:O.padding,blockSize:B.blockSize,formatter:k.format})},decrypt:function(B,C,S,k){return k=this.cfg.extend(k),C=this._parse(C,k.format),B.createDecryptor(S,k).finalize(C.ciphertext)},_parse:function(B,C){return typeof B=="string"?C.parse(B,this):B}}),d=(i.kdf={}).OpenSSL={execute:function(B,C,S,k){k||(k=c.random(8));var F=p.create({keySize:C+S}).compute(B,k),D=c.create(F.words.slice(C),4*S);return F.sigBytes=4*C,A.create({key:F,iv:D,salt:k})}},_=o.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:d}),encrypt:function(B,C,S,k){var F=(k=this.cfg.extend(k)).kdf.execute(S,B.keySize,B.ivSize);k.iv=F.iv;var D=v.encrypt.call(this,B,C,F.key,k);return D.mixIn(F),D},decrypt:function(B,C,S,k){k=this.cfg.extend(k),C=this._parse(C,k.format);var F=k.kdf.execute(S,B.keySize,B.ivSize,C.salt);return k.iv=F.iv,v.decrypt.call(this,B,C,F.key,k)}}))))},function(t,n,e){function r(b){return function(m){if(Array.isArray(m))return i(m)}(b)||function(m){if(typeof Symbol!="undefined"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(b)||function(m,E){if(m){if(typeof m=="string")return i(m,E);var A=Object.prototype.toString.call(m).slice(8,-1);if(A==="Object"&&m.constructor&&(A=m.constructor.name),A==="Map"||A==="Set")return Array.from(m);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return i(m,E)}}(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(b,m){(m==null||m>b.length)&&(m=b.length);for(var E=0,A=new Array(m);E<m;E++)A[E]=b[E];return A}e(41),e(209),e(12),e(211),e(216),e(218),e(219),e(220),e(223),e(224),e(225),e(226),e(227),e(228),e(229),e(230),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(244),e(245),e(246),e(20),e(247),e(107),e(248),e(69),e(70),e(71),e(67),e(68),e(116),e(51),e(30),e(16);var o=new Uint32Array(68),s=new Uint32Array(64);function c(b,m){var E=31&m;return b<<E|b>>>32-E}function h(b,m){for(var E=[],A=b.length-1;A>=0;A--)E[A]=255&(b[A]^m[A]);return E}function a(b){return b^c(b,9)^c(b,17)}function f(b){var m=8*b.length,E=m%512;E=E>=448?512-E%448-1:448-E-1;for(var A=new Array((E-7)/8),g=new Array(8),v=0,d=A.length;v<d;v++)A[v]=0;for(var _=0,B=g.length;_<B;_++)g[_]=0;m=m.toString(2);for(var C=7;C>=0;C--)if(m.length>8){var S=m.length-8;g[C]=parseInt(m.substr(S),2),m=m.substr(0,S)}else m.length>0&&(g[C]=parseInt(m,2),m="");for(var k,F=new Uint8Array([].concat(r(b),[128],A,g)),D=new DataView(F.buffer,0),O=F.length/64,M=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]),U=0;U<O;U++){o.fill(0),s.fill(0);for(var z=16*U,j=0;j<16;j++)o[j]=D.getUint32(4*(z+j),!1);for(var W=16;W<68;W++)o[W]=(k=o[W-16]^o[W-9]^c(o[W-3],15))^c(k,15)^c(k,23)^c(o[W-13],7)^o[W-6];for(var Q=0;Q<64;Q++)s[Q]=o[Q]^o[Q+4];for(var Z=M[0],te=M[1],P=M[2],l=M[3],y=M[4],w=M[5],T=M[6],N=M[7],X=void 0,V=void 0,Y=void 0,ie=void 0,ue=0;ue<64;ue++)ie=ue>=0&&ue<=15?2043430169:2055708042,V=(ue>=0&&ue<=15?Z^te^P:Z&te|Z&P|te&P)+l+((X=c(c(Z,12)+y+c(ie,ue),7))^c(Z,12))+s[ue],Y=(ue>=0&&ue<=15?y^w^T:y&w|~y&T)+N+X+o[ue],l=P,P=c(te,9),te=Z,Z=V,N=T,T=c(w,19),w=y,y=a(Y);M[0]^=Z,M[1]^=te,M[2]^=P,M[3]^=l,M[4]^=y,M[5]^=w,M[6]^=T,M[7]^=N}for(var Ee=[],we=0,ve=M.length;we<ve;we++){var Be=M[we];Ee.push((4278190080&Be)>>>24,(16711680&Be)>>>16,(65280&Be)>>>8,255&Be)}return Ee}for(var p=new Uint8Array(64),x=new Uint8Array(64),u=0;u<64;u++)p[u]=54,x[u]=92;t.exports={sm3:f,hmac:function(b,m){for(m.length>64&&(m=f(m));m.length<64;)m.push(0);var E=h(m,p),A=h(m,x),g=f([].concat(r(E),r(b)));return f([].concat(r(A),r(g)))}}},function(t,n,e){var r=e(0),i=e(2),o=e(13),s=e(155),c=e(45),h=e(18),a=e(110),f=e(1),p=e(64),x=e(28),u=e(29),b=e(156),m=e(210),E=e(66),A=e(38),g=e(33).f,v=e(10).f,d=e(117),_=e(81),B=e(49),C=e(23),S=c.PROPER,k=c.CONFIGURABLE,F=C.get,D=C.set,O=r.ArrayBuffer,M=O,U=M&&M.prototype,z=r.DataView,j=z&&z.prototype,W=Object.prototype,Q=r.Array,Z=r.RangeError,te=i(d),P=i([].reverse),l=m.pack,y=m.unpack,w=function(J){return[255&J]},T=function(J){return[255&J,J>>8&255]},N=function(J){return[255&J,J>>8&255,J>>16&255,J>>24&255]},X=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},V=function(J){return l(J,23,4)},Y=function(J){return l(J,52,8)},ie=function(J,ce){v(J.prototype,ce,{get:function(){return F(this)[ce]}})},ue=function(J,ce,le,me){var ge=b(le),Ve=F(J);if(ge+ce>Ve.byteLength)throw Z("Wrong index");var Oe=F(Ve.buffer).bytes,Te=ge+Ve.byteOffset,Ae=_(Oe,Te,Te+ce);return me?Ae:P(Ae)},Ee=function(J,ce,le,me,ge,Ve){var Oe=b(le),Te=F(J);if(Oe+ce>Te.byteLength)throw Z("Wrong index");for(var Ae=F(Te.buffer).bytes,Ue=Oe+Te.byteOffset,Ge=me(+ge),$e=0;$e<ce;$e++)Ae[Ue+$e]=Ge[Ve?$e:ce-$e-1]};if(s){var we=S&&O.name!=="ArrayBuffer";if(f(function(){O(1)})&&f(function(){new O(-1)})&&!f(function(){return new O,new O(1.5),new O(NaN),we&&!k}))we&&k&&h(O,"name","ArrayBuffer");else{(M=function(J){return p(this,U),new O(b(J))}).prototype=U;for(var ve,Be=g(O),qe=0;Be.length>qe;)(ve=Be[qe++])in M||h(M,ve,O[ve]);U.constructor=M}A&&E(j)!==W&&A(j,W);var Re=new z(new M(2)),We=i(j.setInt8);Re.setInt8(0,2147483648),Re.setInt8(1,2147483649),!Re.getInt8(0)&&Re.getInt8(1)||a(j,{setInt8:function(J,ce){We(this,J,ce<<24>>24)},setUint8:function(J,ce){We(this,J,ce<<24>>24)}},{unsafe:!0})}else U=(M=function(J){p(this,U);var ce=b(J);D(this,{bytes:te(Q(ce),0),byteLength:ce}),o||(this.byteLength=ce)}).prototype,j=(z=function(J,ce,le){p(this,j),p(J,U);var me=F(J).byteLength,ge=x(ce);if(ge<0||ge>me)throw Z("Wrong offset");if(ge+(le=le===void 0?me-ge:u(le))>me)throw Z("Wrong length");D(this,{buffer:J,byteLength:le,byteOffset:ge}),o||(this.buffer=J,this.byteLength=le,this.byteOffset=ge)}).prototype,o&&(ie(M,"byteLength"),ie(z,"buffer"),ie(z,"byteLength"),ie(z,"byteOffset")),a(j,{getInt8:function(J){return ue(this,1,J)[0]<<24>>24},getUint8:function(J){return ue(this,1,J)[0]},getInt16:function(J){var ce=ue(this,2,J,arguments.length>1?arguments[1]:void 0);return(ce[1]<<8|ce[0])<<16>>16},getUint16:function(J){var ce=ue(this,2,J,arguments.length>1?arguments[1]:void 0);return ce[1]<<8|ce[0]},getInt32:function(J){return X(ue(this,4,J,arguments.length>1?arguments[1]:void 0))},getUint32:function(J){return X(ue(this,4,J,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(J){return y(ue(this,4,J,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(J){return y(ue(this,8,J,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(J,ce){Ee(this,1,J,w,ce)},setUint8:function(J,ce){Ee(this,1,J,w,ce)},setInt16:function(J,ce){Ee(this,2,J,T,ce,arguments.length>2?arguments[2]:void 0)},setUint16:function(J,ce){Ee(this,2,J,T,ce,arguments.length>2?arguments[2]:void 0)},setInt32:function(J,ce){Ee(this,4,J,N,ce,arguments.length>2?arguments[2]:void 0)},setUint32:function(J,ce){Ee(this,4,J,N,ce,arguments.length>2?arguments[2]:void 0)},setFloat32:function(J,ce){Ee(this,4,J,V,ce,arguments.length>2?arguments[2]:void 0)},setFloat64:function(J,ce){Ee(this,8,J,Y,ce,arguments.length>2?arguments[2]:void 0)}});B(M,"ArrayBuffer"),B(z,"DataView"),t.exports={ArrayBuffer:M,DataView:z}},function(t,n){t.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(t,n,e){var r=e(0),i=e(28),o=e(29),s=r.RangeError;t.exports=function(c){if(c===void 0)return 0;var h=i(c),a=o(h);if(h!==a)throw s("Wrong length or index");return a}},function(t,n,e){var r=e(5),i=e(0),o=e(11),s=e(13),c=e(212),h=e(3),a=e(154),f=e(64),p=e(44),x=e(18),u=e(213),b=e(29),m=e(156),E=e(158),A=e(56),g=e(9),v=e(46),d=e(7),_=e(57),B=e(34),C=e(22),S=e(38),k=e(33).f,F=e(215),D=e(21).forEach,O=e(82),M=e(10),U=e(47),z=e(23),j=e(76),W=z.get,Q=z.set,Z=M.f,te=U.f,P=Math.round,l=i.RangeError,y=a.ArrayBuffer,w=y.prototype,T=a.DataView,N=h.NATIVE_ARRAY_BUFFER_VIEWS,X=h.TYPED_ARRAY_CONSTRUCTOR,V=h.TYPED_ARRAY_TAG,Y=h.TypedArray,ie=h.TypedArrayPrototype,ue=h.aTypedArrayConstructor,Ee=h.isTypedArray,we=function(J,ce){ue(J);for(var le=0,me=ce.length,ge=new J(me);me>le;)ge[le]=ce[le++];return ge},ve=function(J,ce){Z(J,ce,{get:function(){return W(this)[ce]}})},Be=function(J){var ce;return C(w,J)||(ce=v(J))=="ArrayBuffer"||ce=="SharedArrayBuffer"},qe=function(J,ce){return Ee(J)&&!_(ce)&&ce in J&&u(+ce)&&ce>=0},Re=function(J,ce){return ce=A(ce),qe(J,ce)?p(2,J[ce]):te(J,ce)},We=function(J,ce,le){return ce=A(ce),!(qe(J,ce)&&d(le)&&g(le,"value"))||g(le,"get")||g(le,"set")||le.configurable||g(le,"writable")&&!le.writable||g(le,"enumerable")&&!le.enumerable?Z(J,ce,le):(J[ce]=le.value,J)};s?(N||(U.f=Re,M.f=We,ve(ie,"buffer"),ve(ie,"byteOffset"),ve(ie,"byteLength"),ve(ie,"length")),r({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:Re,defineProperty:We}),t.exports=function(J,ce,le){var me=J.match(/\d+$/)[0]/8,ge=J+(le?"Clamped":"")+"Array",Ve="get"+J,Oe="set"+J,Te=i[ge],Ae=Te,Ue=Ae&&Ae.prototype,Ge={},$e=function(ee,oe){Z(ee,oe,{get:function(){return function(he,be){var Ce=W(he);return Ce.view[Ve](be*me+Ce.byteOffset,!0)}(this,oe)},set:function(he){return function(be,Ce,He){var Ke=W(be);le&&(He=(He=P(He))<0?0:He>255?255:255&He),Ke.view[Oe](Ce*me+Ke.byteOffset,He,!0)}(this,oe,he)},enumerable:!0})};N?c&&(Ae=ce(function(ee,oe,he,be){return f(ee,Ue),j(d(oe)?Be(oe)?be!==void 0?new Te(oe,E(he,me),be):he!==void 0?new Te(oe,E(he,me)):new Te(oe):Ee(oe)?we(Ae,oe):o(F,Ae,oe):new Te(m(oe)),ee,Ae)}),S&&S(Ae,Y),D(k(Te),function(ee){ee in Ae||x(Ae,ee,Te[ee])}),Ae.prototype=Ue):(Ae=ce(function(ee,oe,he,be){f(ee,Ue);var Ce,He,Ke,Ye=0,Ze=0;if(d(oe)){if(!Be(oe))return Ee(oe)?we(Ae,oe):o(F,Ae,oe);Ce=oe,Ze=E(he,me);var fe=oe.byteLength;if(be===void 0){if(fe%me||(He=fe-Ze)<0)throw l("Wrong length")}else if((He=b(be)*me)+Ze>fe)throw l("Wrong length");Ke=He/me}else Ke=m(oe),Ce=new y(He=Ke*me);for(Q(ee,{buffer:Ce,byteOffset:Ze,byteLength:He,length:Ke,view:new T(Ce)});Ye<Ke;)$e(ee,Ye++)}),S&&S(Ae,Y),Ue=Ae.prototype=B(ie)),Ue.constructor!==Ae&&x(Ue,"constructor",Ae),x(Ue,X,Ae),V&&x(Ue,V,ge),Ge[ge]=Ae,r({global:!0,forced:Ae!=Te,sham:!N},Ge),"BYTES_PER_ELEMENT"in Ae||x(Ae,"BYTES_PER_ELEMENT",me),"BYTES_PER_ELEMENT"in Ue||x(Ue,"BYTES_PER_ELEMENT",me),O(ge)}):t.exports=function(){}},function(t,n,e){var r=e(0),i=e(214),o=r.RangeError;t.exports=function(s,c){var h=i(s);if(h%c)throw o("Wrong offset");return h}},function(t,n,e){var r=e(0),i=e(31),o=e(14),s=e(77),c=e(15),h=r.TypeError,a=function(f){return function(p,x,u,b){i(x);var m=o(p),E=s(m),A=c(m),g=f?A-1:0,v=f?-1:1;if(u<2)for(;;){if(g in E){b=E[g],g+=v;break}if(g+=v,f?g<0:A<=g)throw h("Reduce of empty array with no initial value")}for(;f?g>=0:A>g;g+=v)g in E&&(b=x(b,E[g],g,m));return b}};t.exports={left:a(!1),right:a(!0)}},function(t,n,e){var r=e(5),i=e(103).codeAt;r({target:"String",proto:!0},{codePointAt:function(o){return i(this,o)}})},function(t,n,e){var r;t.exports=(r=e(25),e(198),e(199),e(151),e(152),function(){var i=r,o=i.lib.BlockCipher,s=i.algo,c=[],h=[],a=[],f=[],p=[],x=[],u=[],b=[],m=[],E=[];(function(){for(var v=[],d=0;d<256;d++)v[d]=d<128?d<<1:d<<1^283;var _=0,B=0;for(d=0;d<256;d++){var C=B^B<<1^B<<2^B<<3^B<<4;C=C>>>8^255&C^99,c[_]=C,h[C]=_;var S=v[_],k=v[S],F=v[k],D=257*v[C]^16843008*C;a[_]=D<<24|D>>>8,f[_]=D<<16|D>>>16,p[_]=D<<8|D>>>24,x[_]=D,D=16843009*F^65537*k^257*S^16843008*_,u[C]=D<<24|D>>>8,b[C]=D<<16|D>>>16,m[C]=D<<8|D>>>24,E[C]=D,_?(_=S^v[v[v[F^S]]],B^=v[v[B]]):_=B=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],g=s.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,d=v.words,_=v.sigBytes/4,B=4*((this._nRounds=_+6)+1),C=this._keySchedule=[],S=0;S<B;S++)S<_?C[S]=d[S]:(D=C[S-1],S%_?_>6&&S%_==4&&(D=c[D>>>24]<<24|c[D>>>16&255]<<16|c[D>>>8&255]<<8|c[255&D]):(D=c[(D=D<<8|D>>>24)>>>24]<<24|c[D>>>16&255]<<16|c[D>>>8&255]<<8|c[255&D],D^=A[S/_|0]<<24),C[S]=C[S-_]^D);for(var k=this._invKeySchedule=[],F=0;F<B;F++){if(S=B-F,F%4)var D=C[S];else D=C[S-4];k[F]=F<4||S<=4?D:u[c[D>>>24]]^b[c[D>>>16&255]]^m[c[D>>>8&255]]^E[c[255&D]]}}},encryptBlock:function(v,d){this._doCryptBlock(v,d,this._keySchedule,a,f,p,x,c)},decryptBlock:function(v,d){var _=v[d+1];v[d+1]=v[d+3],v[d+3]=_,this._doCryptBlock(v,d,this._invKeySchedule,u,b,m,E,h),_=v[d+1],v[d+1]=v[d+3],v[d+3]=_},_doCryptBlock:function(v,d,_,B,C,S,k,F){for(var D=this._nRounds,O=v[d]^_[0],M=v[d+1]^_[1],U=v[d+2]^_[2],z=v[d+3]^_[3],j=4,W=1;W<D;W++){var Q=B[O>>>24]^C[M>>>16&255]^S[U>>>8&255]^k[255&z]^_[j++],Z=B[M>>>24]^C[U>>>16&255]^S[z>>>8&255]^k[255&O]^_[j++],te=B[U>>>24]^C[z>>>16&255]^S[O>>>8&255]^k[255&M]^_[j++],P=B[z>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[255&U]^_[j++];O=Q,M=Z,U=te,z=P}Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[U>>>8&255]<<8|F[255&z])^_[j++],Z=(F[M>>>24]<<24|F[U>>>16&255]<<16|F[z>>>8&255]<<8|F[255&O])^_[j++],te=(F[U>>>24]<<24|F[z>>>16&255]<<16|F[O>>>8&255]<<8|F[255&M])^_[j++],P=(F[z>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[255&U])^_[j++],v[d]=Q,v[d+1]=Z,v[d+2]=te,v[d+3]=P},keySize:8});i.AES=o._createHelper(g)}(),r.AES)},function(t,n,e){var r;t.exports=(r=e(25),e(152),r.pad.Pkcs7)},function(t,n,e){var r;t.exports=(r=e(25),function(i){var o=r,s=o.lib,c=s.WordArray,h=s.Hasher,a=o.algo,f=[],p=[];(function(){function b(g){for(var v=i.sqrt(g),d=2;d<=v;d++)if(!(g%d))return!1;return!0}function m(g){return 4294967296*(g-(0|g))|0}for(var E=2,A=0;A<64;)b(E)&&(A<8&&(f[A]=m(i.pow(E,.5))),p[A]=m(i.pow(E,1/3)),A++),E++})();var x=[],u=a.SHA256=h.extend({_doReset:function(){this._hash=new c.init(f.slice(0))},_doProcessBlock:function(b,m){for(var E=this._hash.words,A=E[0],g=E[1],v=E[2],d=E[3],_=E[4],B=E[5],C=E[6],S=E[7],k=0;k<64;k++){if(k<16)x[k]=0|b[m+k];else{var F=x[k-15],D=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,O=x[k-2],M=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;x[k]=D+x[k-7]+M+x[k-16]}var U=A&g^A&v^g&v,z=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),j=S+((_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25))+(_&B^~_&C)+p[k]+x[k];S=C,C=B,B=_,_=d+j|0,d=v,v=g,g=A,A=j+(z+U)|0}E[0]=E[0]+A|0,E[1]=E[1]+g|0,E[2]=E[2]+v|0,E[3]=E[3]+d|0,E[4]=E[4]+_|0,E[5]=E[5]+B|0,E[6]=E[6]+C|0,E[7]=E[7]+S|0},_doFinalize:function(){var b=this._data,m=b.words,E=8*this._nDataBytes,A=8*b.sigBytes;return m[A>>>5]|=128<<24-A%32,m[14+(A+64>>>9<<4)]=i.floor(E/4294967296),m[15+(A+64>>>9<<4)]=E,b.sigBytes=4*m.length,this._process(),this._hash},clone:function(){var b=h.clone.call(this);return b._hash=this._hash.clone(),b}});o.SHA256=h._createHelper(u),o.HmacSHA256=h._createHmacHelper(u)}(Math),r.SHA256)},function(t,n,e){t.exports={sm2:e(202),sm3:e(249),sm4:e(250)}},function(t,n,e){var r=e(0),i=e(11),o=e(6),s=e(7),c=r.TypeError;t.exports=function(h,a){var f,p;if(a==="string"&&o(f=h.toString)&&!s(p=i(f,h))||o(f=h.valueOf)&&!s(p=i(f,h))||a!=="string"&&o(f=h.toString)&&!s(p=i(f,h)))return p;throw c("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),i=e(6),o=e(74),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},function(t,n,e){var r=e(91),i=e(46);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,n,e){var r=e(0),i=e(6),o=r.String,s=r.TypeError;t.exports=function(c){if(typeof c=="object"||i(c))return c;throw s("Can't set "+o(c)+" as a prototype")}},function(t,n,e){var r=e(2);t.exports=r(1 .valueOf)},function(t,n,e){var r=e(26),i=e(2),o=e(33),s=e(128),c=e(8),h=i([].concat);t.exports=r("Reflect","ownKeys")||function(a){var f=o.f(c(a)),p=s.f;return p?h(f,p(a)):f}},function(t,n,e){var r=e(2),i=e(14),o=Math.floor,s=r("".charAt),c=r("".replace),h=r("".slice),a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(p,x,u,b,m,E){var A=u+p.length,g=b.length,v=f;return m!==void 0&&(m=i(m),v=a),c(E,v,function(d,_){var B;switch(s(_,0)){case"$":return"$";case"&":return p;case"`":return h(x,0,u);case"'":return h(x,A);case"<":B=m[h(_,1,-1)];break;default:var C=+_;if(C===0)return d;if(C>g){var S=o(C/10);return S===0?d:S<=g?b[S-1]===void 0?s(_,1):b[S-1]+s(_,1):d}B=b[C-1]}return B===void 0?"":B})}},function(t,n,e){var r=e(5),i=e(125).trim;r({target:"String",proto:!0,forced:e(173)("trim")},{trim:function(){return i(this)}})},function(t,n,e){var r=e(45).PROPER,i=e(1),o=e(126);t.exports=function(s){return i(function(){return!!o[s]()||"
"[s]()!=="
"||r&&o[s].name!==s})}},function(t,n,e){var r=e(1),i=e(7),o=e(32),s=e(175),c=Object.isExtensible,h=r(function(){});t.exports=h||s?function(a){return!!i(a)&&(!s||o(a)!="ArrayBuffer")&&(!c||c(a))}:c},function(t,n,e){var r=e(1);t.exports=r(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}})},function(t,n,e){var r=e(0),i=e(83),o=e(80),s=e(7),c=e(4)("species"),h=r.Array;t.exports=function(a){var f;return i(a)&&(f=a.constructor,(o(f)&&(f===h||i(f.prototype))||s(f)&&(f=f[c])===null)&&(f=void 0)),f===void 0?h:f}},function(t,n,e){var r=e(21).forEach,i=e(109)("forEach");t.exports=i?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(5),i=e(14),o=e(100);r({target:"Object",stat:!0,forced:e(1)(function(){o(1)})},{keys:function(s){return o(i(s))}})},function(t,n,e){var r,i,o,s,c=e(5),h=e(42),a=e(0),f=e(26),p=e(11),x=e(180),u=e(17),b=e(110),m=e(38),E=e(49),A=e(82),g=e(31),v=e(6),d=e(7),_=e(64),B=e(74),C=e(111),S=e(86),k=e(79),F=e(140).set,D=e(182),O=e(185),M=e(186),U=e(142),z=e(187),j=e(188),W=e(23),Q=e(60),Z=e(4),te=e(189),P=e(114),l=e(55),y=Z("species"),w="Promise",T=W.getterFor(w),N=W.set,X=W.getterFor(w),V=x&&x.prototype,Y=x,ie=V,ue=a.TypeError,Ee=a.document,we=a.process,ve=U.f,Be=ve,qe=!!(Ee&&Ee.createEvent&&a.dispatchEvent),Re=v(a.PromiseRejectionEvent),We=!1,J=Q(w,function(){var ee=B(Y),oe=ee!==String(Y);if(!oe&&l===66||h&&!ie.finally)return!0;if(l>=51&&/native code/.test(ee))return!1;var he=new Y(function(Ce){Ce(1)}),be=function(Ce){Ce(function(){},function(){})};return(he.constructor={})[y]=be,!(We=he.then(function(){})instanceof be)||!oe&&te&&!Re}),ce=J||!S(function(ee){Y.all(ee).catch(function(){})}),le=function(ee){var oe;return!(!d(ee)||!v(oe=ee.then))&&oe},me=function(ee,oe){var he,be,Ce,He=oe.value,Ke=oe.state==1,Ye=Ke?ee.ok:ee.fail,Ze=ee.resolve,fe=ee.reject,H=ee.domain;try{Ye?(Ke||(oe.rejection===2&&Ae(oe),oe.rejection=1),Ye===!0?he=He:(H&&H.enter(),he=Ye(He),H&&(H.exit(),Ce=!0)),he===ee.promise?fe(ue("Promise-chain cycle")):(be=le(he))?p(be,he,Ze,fe):Ze(he)):fe(He)}catch(L){H&&!Ce&&H.exit(),fe(L)}},ge=function(ee,oe){ee.notified||(ee.notified=!0,D(function(){for(var he,be=ee.reactions;he=be.get();)me(he,ee);ee.notified=!1,oe&&!ee.rejection&&Oe(ee)}))},Ve=function(ee,oe,he){var be,Ce;qe?((be=Ee.createEvent("Event")).promise=oe,be.reason=he,be.initEvent(ee,!1,!0),a.dispatchEvent(be)):be={promise:oe,reason:he},!Re&&(Ce=a["on"+ee])?Ce(be):ee==="unhandledrejection"&&M("Unhandled promise rejection",he)},Oe=function(ee){p(F,a,function(){var oe,he=ee.facade,be=ee.value;if(Te(ee)&&(oe=z(function(){P?we.emit("unhandledRejection",be,he):Ve("unhandledrejection",he,be)}),ee.rejection=P||Te(ee)?2:1,oe.error))throw oe.value})},Te=function(ee){return ee.rejection!==1&&!ee.parent},Ae=function(ee){p(F,a,function(){var oe=ee.facade;P?we.emit("rejectionHandled",oe):Ve("rejectionhandled",oe,ee.value)})},Ue=function(ee,oe,he){return function(be){ee(oe,be,he)}},Ge=function(ee,oe,he){ee.done||(ee.done=!0,he&&(ee=he),ee.value=oe,ee.state=2,ge(ee,!0))},$e=function(ee,oe,he){if(!ee.done){ee.done=!0,he&&(ee=he);try{if(ee.facade===oe)throw ue("Promise can't be resolved itself");var be=le(oe);be?D(function(){var Ce={done:!1};try{p(be,oe,Ue($e,Ce,ee),Ue(Ge,Ce,ee))}catch(He){Ge(Ce,He,ee)}}):(ee.value=oe,ee.state=1,ge(ee,!1))}catch(Ce){Ge({done:!1},Ce,ee)}}};if(J&&(ie=(Y=function(ee){_(this,ie),g(ee),p(r,this);var oe=T(this);try{ee(Ue($e,oe),Ue(Ge,oe))}catch(he){Ge(oe,he)}}).prototype,(r=function(ee){N(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:void 0})}).prototype=b(ie,{then:function(ee,oe){var he=X(this),be=ve(k(this,Y));return he.parent=!0,be.ok=!v(ee)||ee,be.fail=v(oe)&&oe,be.domain=P?we.domain:void 0,he.state==0?he.reactions.add(be):D(function(){me(be,he)}),be.promise},catch:function(ee){return this.then(void 0,ee)}}),i=function(){var ee=new r,oe=T(ee);this.promise=ee,this.resolve=Ue($e,oe),this.reject=Ue(Ge,oe)},U.f=ve=function(ee){return ee===Y||ee===o?new i(ee):Be(ee)},!h&&v(x)&&V!==Object.prototype)){s=V.then,We||(u(V,"then",function(ee,oe){var he=this;return new Y(function(be,Ce){p(s,he,be,Ce)}).then(ee,oe)},{unsafe:!0}),u(V,"catch",ie.catch,{unsafe:!0}));try{delete V.constructor}catch(ee){}m&&m(V,ie)}c({global:!0,wrap:!0,forced:J},{Promise:Y}),E(Y,w,!1,!0),A(w),o=f(w),c({target:w,stat:!0,forced:J},{reject:function(ee){var oe=ve(this);return p(oe.reject,void 0,ee),oe.promise}}),c({target:w,stat:!0,forced:h||J},{resolve:function(ee){return O(h&&this===o?Y:this,ee)}}),c({target:w,stat:!0,forced:ce},{all:function(ee){var oe=this,he=ve(oe),be=he.resolve,Ce=he.reject,He=z(function(){var Ke=g(oe.resolve),Ye=[],Ze=0,fe=1;C(ee,function(H){var L=Ze++,K=!1;fe++,p(Ke,oe,H).then(function(G){K||(K=!0,Ye[L]=G,--fe||be(Ye))},Ce)}),--fe||be(Ye)});return He.error&&Ce(He.value),he.promise},race:function(ee){var oe=this,he=ve(oe),be=he.reject,Ce=z(function(){var He=g(oe.resolve);C(ee,function(Ke){p(He,oe,Ke).then(he.resolve,be)})});return Ce.error&&be(Ce.value),he.promise}})},function(t,n,e){var r=e(0);t.exports=r.Promise},function(t,n,e){var r=e(0).TypeError;t.exports=function(i,o){if(i<o)throw r("Not enough arguments");return i}},function(t,n,e){var r,i,o,s,c,h,a,f,p=e(0),x=e(40),u=e(47).f,b=e(140).set,m=e(141),E=e(183),A=e(184),g=e(114),v=p.MutationObserver||p.WebKitMutationObserver,d=p.document,_=p.process,B=p.Promise,C=u(p,"queueMicrotask"),S=C&&C.value;S||(r=function(){var k,F;for(g&&(k=_.domain)&&k.exit();i;){F=i.fn,i=i.next;try{F()}catch(D){throw i?s():o=void 0,D}}o=void 0,k&&k.enter()},m||g||A||!v||!d?!E&&B&&B.resolve?((a=B.resolve(void 0)).constructor=B,f=x(a.then,a),s=function(){f(r)}):g?s=function(){_.nextTick(r)}:(b=x(b,p),s=function(){b(r)}):(c=!0,h=d.createTextNode(""),new v(r).observe(h,{characterData:!0}),s=function(){h.data=c=!c})),t.exports=S||function(k){var F={fn:k,next:void 0};o&&(o.next=F),i||(i=F,s()),o=F}},function(t,n,e){var r=e(37),i=e(0);t.exports=/ipad|iphone|ipod/i.test(r)&&i.Pebble!==void 0},function(t,n,e){var r=e(37);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,n,e){var r=e(8),i=e(7),o=e(142);t.exports=function(s,c){if(r(s),i(c)&&c.constructor===s)return c;var h=o.f(s);return(0,h.resolve)(c),h.promise}},function(t,n,e){var r=e(0);t.exports=function(i,o){var s=r.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,o))}},function(t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}},function(t,n){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(r){var i={item:r,next:null};this.head?this.tail.next=i:this.head=i,this.tail=i},get:function(){var r=this.head;if(r)return this.head=r.next,this.tail===r&&(this.tail=null),r.item}},t.exports=e},function(t,n){t.exports=typeof window=="object"},function(t,n,e){var r=e(0),i=e(2),o=e(31),s=e(7),c=e(9),h=e(50),a=e(53),f=r.Function,p=i([].concat),x=i([].join),u={},b=function(m,E,A){if(!c(u,E)){for(var g=[],v=0;v<E;v++)g[v]="a["+v+"]";u[E]=f("C,a","return new C("+x(g,",")+")")}return u[E](m,A)};t.exports=a?f.bind:function(m){var E=o(this),A=E.prototype,g=h(arguments,1),v=function(){var d=p(g,h(arguments));return this instanceof v?b(E,d.length,d):E.apply(m,d)};return s(A)&&(v.prototype=A),v}},function(t,n,e){var r=e(148).IteratorPrototype,i=e(34),o=e(44),s=e(49),c=e(65),h=function(){return this};t.exports=function(a,f,p,x){var u=f+" Iterator";return a.prototype=i(r,{next:o(+!x,p)}),s(a,u,!1,!0),c[u]=h,a}},function(t,n,e){e(193)("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},e(194))},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(60),c=e(17),h=e(106),a=e(111),f=e(64),p=e(6),x=e(7),u=e(1),b=e(86),m=e(49),E=e(76);t.exports=function(A,g,v){var d=A.indexOf("Map")!==-1,_=A.indexOf("Weak")!==-1,B=d?"set":"add",C=i[A],S=C&&C.prototype,k=C,F={},D=function(W){var Q=o(S[W]);c(S,W,W=="add"?function(Z){return Q(this,Z===0?0:Z),this}:W=="delete"?function(Z){return!(_&&!x(Z))&&Q(this,Z===0?0:Z)}:W=="get"?function(Z){return _&&!x(Z)?void 0:Q(this,Z===0?0:Z)}:W=="has"?function(Z){return!(_&&!x(Z))&&Q(this,Z===0?0:Z)}:function(Z,te){return Q(this,Z===0?0:Z,te),this})};if(s(A,!p(C)||!(_||S.forEach&&!u(function(){new C().entries().next()}))))k=v.getConstructor(g,A,d,B),h.enable();else if(s(A,!0)){var O=new k,M=O[B](_?{}:-0,1)!=O,U=u(function(){O.has(1)}),z=b(function(W){new C(W)}),j=!_&&u(function(){for(var W=new C,Q=5;Q--;)W[B](Q,Q);return!W.has(-0)});z||((k=g(function(W,Q){f(W,S);var Z=E(new C,W,k);return Q!=null&&a(Q,Z[B],{that:Z,AS_ENTRIES:d}),Z})).prototype=S,S.constructor=k),(U||j)&&(D("delete"),D("has"),d&&D("get")),(j||M)&&D(B),_&&S.clear&&delete S.clear}return F[A]=k,r({global:!0,forced:k!=C},F),m(k,A),_||v.setStrong(k,A,d),k}},function(t,n,e){var r=e(10).f,i=e(34),o=e(110),s=e(40),c=e(64),h=e(111),a=e(115),f=e(82),p=e(13),x=e(106).fastKey,u=e(23),b=u.set,m=u.getterFor;t.exports={getConstructor:function(E,A,g,v){var d=E(function(k,F){c(k,_),b(k,{type:A,index:i(null),first:void 0,last:void 0,size:0}),p||(k.size=0),F!=null&&h(F,k[v],{that:k,AS_ENTRIES:g})}),_=d.prototype,B=m(A),C=function(k,F,D){var O,M,U=B(k),z=S(k,F);return z?z.value=D:(U.last=z={index:M=x(F,!0),key:F,value:D,previous:O=U.last,next:void 0,removed:!1},U.first||(U.first=z),O&&(O.next=z),p?U.size++:k.size++,M!=="F"&&(U.index[M]=z)),k},S=function(k,F){var D,O=B(k),M=x(F);if(M!=="F")return O.index[M];for(D=O.first;D;D=D.next)if(D.key==F)return D};return o(_,{clear:function(){for(var k=B(this),F=k.index,D=k.first;D;)D.removed=!0,D.previous&&(D.previous=D.previous.next=void 0),delete F[D.index],D=D.next;k.first=k.last=void 0,p?k.size=0:this.size=0},delete:function(k){var F=B(this),D=S(this,k);if(D){var O=D.next,M=D.previous;delete F.index[D.index],D.removed=!0,M&&(M.next=O),O&&(O.previous=M),F.first==D&&(F.first=O),F.last==D&&(F.last=M),p?F.size--:this.size--}return!!D},forEach:function(k){for(var F,D=B(this),O=s(k,arguments.length>1?arguments[1]:void 0);F=F?F.next:D.first;)for(O(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(k){return!!S(this,k)}}),o(_,g?{get:function(k){var F=S(this,k);return F&&F.value},set:function(k,F){return C(this,k===0?0:k,F)}}:{add:function(k){return C(this,k=k===0?0:k,k)}}),p&&r(_,"size",{get:function(){return B(this).size}}),d},setStrong:function(E,A,g){var v=A+" Iterator",d=m(A),_=m(v);a(E,A,function(B,C){b(this,{type:v,target:B,state:d(B),kind:C,last:void 0})},function(){for(var B=_(this),C=B.kind,S=B.last;S&&S.removed;)S=S.previous;return B.target&&(B.last=S=S?S.next:B.state.first)?C=="keys"?{value:S.key,done:!1}:C=="values"?{value:S.value,done:!1}:{value:[S.key,S.value],done:!1}:(B.target=void 0,{value:void 0,done:!0})},g?"entries":"values",!g,!0),f(A)}}},function(t,n,e){var r=e(0);t.exports=r},function(t,n,e){e(5)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,n){},function(t,n,e){var r,i,o;t.exports=(o=e(25),i=(r=o).lib.WordArray,r.enc.Base64={stringify:function(s){var c=s.words,h=s.sigBytes,a=this._map;s.clamp();for(var f=[],p=0;p<h;p+=3)for(var x=(c[p>>>2]>>>24-p%4*8&255)<<16|(c[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|c[p+2>>>2]>>>24-(p+2)%4*8&255,u=0;u<4&&p+.75*u<h;u++)f.push(a.charAt(x>>>6*(3-u)&63));var b=a.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(s){var c=s.length,h=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var f=0;f<h.length;f++)a[h.charCodeAt(f)]=f}var p=h.charAt(64);if(p){var x=s.indexOf(p);x!==-1&&(c=x)}return function(u,b,m){for(var E=[],A=0,g=0;g<b;g++)if(g%4){var v=m[u.charCodeAt(g-1)]<<g%4*2,d=m[u.charCodeAt(g)]>>>6-g%4*2,_=v|d;E[A>>>2]|=_<<24-A%4*8,A++}return i.create(E,A)}(s,c,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},function(t,n,e){var r;t.exports=(r=e(25),function(i){var o=r,s=o.lib,c=s.WordArray,h=s.Hasher,a=o.algo,f=[];(function(){for(var E=0;E<64;E++)f[E]=4294967296*i.abs(i.sin(E+1))|0})();var p=a.MD5=h.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var g=0;g<16;g++){var v=A+g,d=E[v];E[v]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var _=this._hash.words,B=E[A+0],C=E[A+1],S=E[A+2],k=E[A+3],F=E[A+4],D=E[A+5],O=E[A+6],M=E[A+7],U=E[A+8],z=E[A+9],j=E[A+10],W=E[A+11],Q=E[A+12],Z=E[A+13],te=E[A+14],P=E[A+15],l=_[0],y=_[1],w=_[2],T=_[3];l=x(l,y,w,T,B,7,f[0]),T=x(T,l,y,w,C,12,f[1]),w=x(w,T,l,y,S,17,f[2]),y=x(y,w,T,l,k,22,f[3]),l=x(l,y,w,T,F,7,f[4]),T=x(T,l,y,w,D,12,f[5]),w=x(w,T,l,y,O,17,f[6]),y=x(y,w,T,l,M,22,f[7]),l=x(l,y,w,T,U,7,f[8]),T=x(T,l,y,w,z,12,f[9]),w=x(w,T,l,y,j,17,f[10]),y=x(y,w,T,l,W,22,f[11]),l=x(l,y,w,T,Q,7,f[12]),T=x(T,l,y,w,Z,12,f[13]),w=x(w,T,l,y,te,17,f[14]),l=u(l,y=x(y,w,T,l,P,22,f[15]),w,T,C,5,f[16]),T=u(T,l,y,w,O,9,f[17]),w=u(w,T,l,y,W,14,f[18]),y=u(y,w,T,l,B,20,f[19]),l=u(l,y,w,T,D,5,f[20]),T=u(T,l,y,w,j,9,f[21]),w=u(w,T,l,y,P,14,f[22]),y=u(y,w,T,l,F,20,f[23]),l=u(l,y,w,T,z,5,f[24]),T=u(T,l,y,w,te,9,f[25]),w=u(w,T,l,y,k,14,f[26]),y=u(y,w,T,l,U,20,f[27]),l=u(l,y,w,T,Z,5,f[28]),T=u(T,l,y,w,S,9,f[29]),w=u(w,T,l,y,M,14,f[30]),l=b(l,y=u(y,w,T,l,Q,20,f[31]),w,T,D,4,f[32]),T=b(T,l,y,w,U,11,f[33]),w=b(w,T,l,y,W,16,f[34]),y=b(y,w,T,l,te,23,f[35]),l=b(l,y,w,T,C,4,f[36]),T=b(T,l,y,w,F,11,f[37]),w=b(w,T,l,y,M,16,f[38]),y=b(y,w,T,l,j,23,f[39]),l=b(l,y,w,T,Z,4,f[40]),T=b(T,l,y,w,B,11,f[41]),w=b(w,T,l,y,k,16,f[42]),y=b(y,w,T,l,O,23,f[43]),l=b(l,y,w,T,z,4,f[44]),T=b(T,l,y,w,Q,11,f[45]),w=b(w,T,l,y,P,16,f[46]),l=m(l,y=b(y,w,T,l,S,23,f[47]),w,T,B,6,f[48]),T=m(T,l,y,w,M,10,f[49]),w=m(w,T,l,y,te,15,f[50]),y=m(y,w,T,l,D,21,f[51]),l=m(l,y,w,T,Q,6,f[52]),T=m(T,l,y,w,k,10,f[53]),w=m(w,T,l,y,j,15,f[54]),y=m(y,w,T,l,C,21,f[55]),l=m(l,y,w,T,U,6,f[56]),T=m(T,l,y,w,P,10,f[57]),w=m(w,T,l,y,O,15,f[58]),y=m(y,w,T,l,Z,21,f[59]),l=m(l,y,w,T,F,6,f[60]),T=m(T,l,y,w,W,10,f[61]),w=m(w,T,l,y,S,15,f[62]),y=m(y,w,T,l,z,21,f[63]),_[0]=_[0]+l|0,_[1]=_[1]+y|0,_[2]=_[2]+w|0,_[3]=_[3]+T|0},_doFinalize:function(){var E=this._data,A=E.words,g=8*this._nDataBytes,v=8*E.sigBytes;A[v>>>5]|=128<<24-v%32;var d=i.floor(g/4294967296),_=g;A[15+(v+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),A[14+(v+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),E.sigBytes=4*(A.length+1),this._process();for(var B=this._hash,C=B.words,S=0;S<4;S++){var k=C[S];C[S]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8)}return B},clone:function(){var E=h.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,g,v,d,_,B){var C=E+(A&g|~A&v)+d+B;return(C<<_|C>>>32-_)+A}function u(E,A,g,v,d,_,B){var C=E+(A&v|g&~v)+d+B;return(C<<_|C>>>32-_)+A}function b(E,A,g,v,d,_,B){var C=E+(A^g^v)+d+B;return(C<<_|C>>>32-_)+A}function m(E,A,g,v,d,_,B){var C=E+(g^(A|~v))+d+B;return(C<<_|C>>>32-_)+A}o.MD5=h._createHelper(p),o.HmacMD5=h._createHmacHelper(p)}(Math),r.MD5)},function(t,n,e){var r,i,o,s,c,h,a,f;t.exports=(f=e(25),i=(r=f).lib,o=i.WordArray,s=i.Hasher,c=r.algo,h=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,x){for(var u=this._hash.words,b=u[0],m=u[1],E=u[2],A=u[3],g=u[4],v=0;v<80;v++){if(v<16)h[v]=0|p[x+v];else{var d=h[v-3]^h[v-8]^h[v-14]^h[v-16];h[v]=d<<1|d>>>31}var _=(b<<5|b>>>27)+g+h[v];_+=v<20?1518500249+(m&E|~m&A):v<40?1859775393+(m^E^A):v<60?(m&E|m&A|E&A)-1894007588:(m^E^A)-899497514,g=A,A=E,E=m<<30|m>>>2,m=b,b=_}u[0]=u[0]+b|0,u[1]=u[1]+m|0,u[2]=u[2]+E|0,u[3]=u[3]+A|0,u[4]=u[4]+g|0},_doFinalize:function(){var p=this._data,x=p.words,u=8*this._nDataBytes,b=8*p.sigBytes;return x[b>>>5]|=128<<24-b%32,x[14+(b+64>>>9<<4)]=Math.floor(u/4294967296),x[15+(b+64>>>9<<4)]=u,p.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}}),r.SHA1=s._createHelper(a),r.HmacSHA1=s._createHmacHelper(a),f.SHA1)},function(t,n,e){var r,i,o,s;t.exports=(r=e(25),o=(i=r).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(c,h){c=this._hasher=new c.init,typeof h=="string"&&(h=s.parse(h));var a=c.blockSize,f=4*a;h.sigBytes>f&&(h=c.finalize(h)),h.clamp();for(var p=this._oKey=h.clone(),x=this._iKey=h.clone(),u=p.words,b=x.words,m=0;m<a;m++)u[m]^=1549556828,b[m]^=909522486;p.sigBytes=x.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var h=this._hasher,a=h.finalize(c);return h.reset(),h.finalize(this._oKey.clone().concat(a))}})))},function(t,n,e){function r(g){return function(v){if(Array.isArray(v))return i(v)}(g)||function(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}(g)||function(v,d){if(v){if(typeof v=="string")return i(v,d);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(51),e(107),e(12),e(20),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=e(87).BigInteger,s=e(205),c=s.encodeDer,h=s.decodeDer,a=e(207),f=e(153).sm3,p=a.generateEcparam(),x=p.G,u=p.curve,b=p.n;function m(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"1234567812345678";d=a.utf8ToHex(d);var _,B,C=a.leftPad(x.curve.a.toBigInteger().toRadix(16),64),S=a.leftPad(x.curve.b.toBigInteger().toRadix(16),64),k=a.leftPad(x.getX().toBigInteger().toRadix(16),64),F=a.leftPad(x.getY().toBigInteger().toRadix(16),64);if(v.length===128)_=v.substr(0,64),B=v.substr(64,64);else{var D=x.curve.decodePointHex(v);_=a.leftPad(D.getX().toBigInteger().toRadix(16),64),B=a.leftPad(D.getY().toBigInteger().toRadix(16),64)}var O=a.hexToArray(d+C+S+k+F+_+B),M=4*d.length;O.unshift(255&M),O.unshift(M>>8&255);var U=f(O);return a.arrayToHex(f(U.concat(a.hexToArray(g))))}function E(g){var v=x.multiply(new o(g,16));return"04"+a.leftPad(v.getX().toBigInteger().toString(16),64)+a.leftPad(v.getY().toBigInteger().toString(16),64)}function A(){var g=a.generateKeyPairHex(),v=u.decodePointHex(g.publicKey);return g.k=new o(g.privateKey,16),g.x1=v.getX().toBigInteger(),g}t.exports={generateKeyPairHex:a.generateKeyPairHex,compressPublicKeyHex:a.compressPublicKeyHex,comparePublicKeyHex:a.comparePublicKeyHex,doEncrypt:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;g=typeof g=="string"?a.hexToArray(a.utf8ToHex(g)):Array.prototype.slice.call(g),v=a.getGlobalCurve().decodePointHex(v);var _=a.generateKeyPairHex(),B=new o(_.privateKey,16),C=_.publicKey;C.length>128&&(C=C.substr(C.length-128));var S=v.multiply(B),k=a.hexToArray(a.leftPad(S.getX().toBigInteger().toRadix(16),64)),F=a.hexToArray(a.leftPad(S.getY().toBigInteger().toRadix(16),64)),D=a.arrayToHex(f([].concat(k,g,F))),O=1,M=0,U=[],z=[].concat(k,F),j=function(){U=f([].concat(r(z),[O>>24&255,O>>16&255,O>>8&255,255&O])),O++,M=0};j();for(var W=0,Q=g.length;W<Q;W++)M===U.length&&j(),g[W]^=255&U[M++];var Z=a.arrayToHex(g);return d===0?C+Z+D:C+D+Z},doDecrypt:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.output,C=B===void 0?"string":B;v=new o(v,16);var S=g.substr(128,64),k=g.substr(192);d===0&&(S=g.substr(g.length-64),k=g.substr(128,g.length-128-64));var F=a.hexToArray(k),D=a.getGlobalCurve().decodePointHex("04"+g.substr(0,128)),O=D.multiply(v),M=a.hexToArray(a.leftPad(O.getX().toBigInteger().toRadix(16),64)),U=a.hexToArray(a.leftPad(O.getY().toBigInteger().toRadix(16),64)),z=1,j=0,W=[],Q=[].concat(M,U),Z=function(){W=f([].concat(r(Q),[z>>24&255,z>>16&255,z>>8&255,255&z])),z++,j=0};Z();for(var te=0,P=F.length;te<P;te++)j===W.length&&Z(),F[te]^=255&W[j++];var l=a.arrayToHex(f([].concat(M,F,U)));return l===S.toLowerCase()?C==="array"?F:a.arrayToUtf8(F):C==="array"?[]:""},doSignature:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=d.pointPool,B=d.der,C=d.hash,S=d.publicKey,k=d.userId,F=typeof g=="string"?a.utf8ToHex(g):a.arrayToHex(g);C&&(F=m(F,S=S||E(v),k));var D=new o(v,16),O=new o(F,16),M=null,U=null,z=null;do{do{var j=void 0;M=(j=_&&_.length?_.pop():A()).k,U=O.add(j.x1).mod(b)}while(U.equals(o.ZERO)||U.add(M).equals(b));z=D.add(o.ONE).modInverse(b).multiply(M.subtract(U.multiply(D))).mod(b)}while(z.equals(o.ZERO));return B?c(U,z):a.leftPad(U.toString(16),64)+a.leftPad(z.toString(16),64)},doVerifySignature:function(g,v,d){var _,B,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=C.der,k=C.hash,F=C.userId,D=typeof g=="string"?a.utf8ToHex(g):a.arrayToHex(g);if(k&&(D=m(D,d,F)),S){var O=h(v);_=O.r,B=O.s}else _=new o(v.substring(0,64),16),B=new o(v.substring(64),16);var M=u.decodePointHex(d),U=new o(D,16),z=_.add(B).mod(b);if(z.equals(o.ZERO))return!1;var j=x.multiply(B).add(M.multiply(z)),W=U.add(j.getX().toBigInteger()).mod(b);return _.equals(W)},getPublicKeyFromPrivateKey:E,getPoint:A,verifyPublicKey:a.verifyPublicKey}},function(t,n,e){var r=e(0),i=e(40),o=e(11),s=e(14),c=e(204),h=e(112),a=e(80),f=e(15),p=e(62),x=e(113),u=e(85),b=r.Array;t.exports=function(m){var E=s(m),A=a(this),g=arguments.length,v=g>1?arguments[1]:void 0,d=v!==void 0;d&&(v=i(v,g>2?arguments[2]:void 0));var _,B,C,S,k,F,D=u(E),O=0;if(!D||this==b&&h(D))for(_=f(E),B=A?new this(_):b(_);_>O;O++)F=d?v(E[O],O):E[O],p(B,O,F);else for(k=(S=x(E,D)).next,B=A?new this:[];!(C=o(k,S)).done;O++)F=d?c(S,v,[C.value,O],!0):C.value,p(B,O,F);return B.length=O,B}},function(t,n,e){var r=e(8),i=e(139);t.exports=function(o,s,c,h){try{return h?s(r(c)[0],c[1]):s(c)}catch(a){i(o,"throw",a)}}},function(t,n,e){function r(v){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(v)}function i(v,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(d&&d.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),d&&o(v,d)}function o(v,d){return(o=Object.setPrototypeOf||function(_,B){return _.__proto__=B,_})(v,d)}function s(v){var d=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(_){return!1}}();return function(){var _,B=h(v);if(d){var C=h(this).constructor;_=Reflect.construct(B,arguments,C)}else _=B.apply(this,arguments);return c(this,_)}}function c(v,d){if(d&&(r(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(v)}function h(v){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(v)}function a(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")}function f(v,d){for(var _=0;_<d.length;_++){var B=d[_];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(v,B.key,B)}}function p(v,d,_){return d&&f(v.prototype,d),Object.defineProperty(v,"prototype",{writable:!1}),v}e(12),e(20),e(16),e(206),e(48),e(52),e(88),e(143),e(144),e(146),e(69),e(70),e(71),e(41),e(67),e(68);var x=e(87).BigInteger,u=function(){function v(){a(this,v),this.tlv=null,this.t="00",this.l="00",this.v=""}return p(v,[{key:"getEncodedHex",value:function(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}},{key:"getLength",value:function(){var d=this.v.length/2,_=d.toString(16);return _.length%2==1&&(_="0"+_),d<128?_:(128+_.length/2).toString(16)+_}},{key:"getValue",value:function(){return""}}]),v}(),b=function(v){i(_,v);var d=s(_);function _(B){var C;return a(this,_),(C=d.call(this)).t="02",B&&(C.v=function(S){var k=S.toString(16);if(k[0]!=="-")k.length%2==1?k="0"+k:k.match(/^[0-7]/)||(k="00"+k);else{var F=(k=k.substr(1)).length;F%2==1?F+=1:k.match(/^[0-7]/)||(F+=2);for(var D="",O=0;O<F;O++)D+="f";k=(k=(D=new x(D,16)).xor(S).add(x.ONE)).toString(16).replace(/^-/,"")}return k}(B)),C}return p(_,[{key:"getValue",value:function(){return this.v}}]),_}(u),m=function(v){i(_,v);var d=s(_);function _(B){var C;return a(this,_),(C=d.call(this)).t="30",C.asn1Array=B,C}return p(_,[{key:"getValue",value:function(){return this.v=this.asn1Array.map(function(B){return B.getEncodedHex()}).join(""),this.v}}]),_}(u);function E(v,d){return+v[d+2]<8?1:128&+v.substr(d+2,2)}function A(v,d){var _=E(v,d),B=v.substr(d+2,2*_);return B?(+B[0]<8?new x(B,16):new x(B.substr(2),16)).intValue():-1}function g(v,d){return d+2*(E(v,d)+1)}t.exports={encodeDer:function(v,d){var _=new b(v),B=new b(d);return new m([_,B]).getEncodedHex()},decodeDer:function(v){var d=g(v,0),_=g(v,d),B=A(v,d),C=v.substr(_,2*B),S=_+C.length,k=g(v,S),F=A(v,S),D=v.substr(k,2*F);return{r:new x(C,16),s:new x(D,16)}}}},function(t,n,e){var r=e(11),i=e(101),o=e(8),s=e(29),c=e(19),h=e(36),a=e(43),f=e(102),p=e(104);i("match",function(x,u,b){return[function(m){var E=h(this),A=m==null?void 0:a(m,x);return A?r(A,m,E):new RegExp(m)[x](c(E))},function(m){var E=o(this),A=c(m),g=b(u,E,A);if(g.done)return g.value;if(!E.global)return p(E,A);var v=E.unicode;E.lastIndex=0;for(var d,_=[],B=0;(d=p(E,A))!==null;){var C=c(d[0]);_[B]=C,C===""&&(E.lastIndex=f(A,s(E.lastIndex),v)),B++}return B===0?null:_}]})},function(t,n,e){e(12),e(20),e(52),e(88);var r=e(87),i=r.BigInteger,o=r.SecureRandom,s=e(208).ECCurveFp,c=new o,h=x(),a=h.curve,f=h.G,p=h.n;function x(){var b=new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),m=new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),E=new i("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),A=new s(b,m,E),g=A.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:A,G:g,n:new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function u(b,m){return b.length>=m?b:new Array(m-b.length+1).join("0")+b}t.exports={getGlobalCurve:function(){return a},generateEcparam:x,generateKeyPairHex:function(b,m,E){var A=(b?new i(b,m,E):new i(p.bitLength(),c)).mod(p.subtract(i.ONE)).add(i.ONE),g=u(A.toString(16),64),v=f.multiply(A);return{privateKey:g,publicKey:"04"+u(v.getX().toBigInteger().toString(16),64)+u(v.getY().toBigInteger().toString(16),64)}},compressPublicKeyHex:function(b){if(b.length!==130)throw new Error("Invalid public key to compress");var m=(b.length-2)/2,E=b.substr(2,m),A="03";return new i(b.substr(m+2,m),16).mod(new i("2")).equals(i.ZERO)&&(A="02"),A+E},utf8ToHex:function(b){for(var m=(b=unescape(encodeURIComponent(b))).length,E=[],A=0;A<m;A++)E[A>>>2]|=(255&b.charCodeAt(A))<<24-A%4*8;for(var g=[],v=0;v<m;v++){var d=E[v>>>2]>>>24-v%4*8&255;g.push((d>>>4).toString(16)),g.push((15&d).toString(16))}return g.join("")},leftPad:u,arrayToHex:function(b){return b.map(function(m){return(m=m.toString(16)).length===1?"0"+m:m}).join("")},arrayToUtf8:function(b){for(var m=[],E=0,A=0;A<2*b.length;A+=2)m[A>>>3]|=parseInt(b[E],10)<<24-A%8*4,E++;try{for(var g=[],v=0;v<b.length;v++){var d=m[v>>>2]>>>24-v%4*8&255;g.push(String.fromCharCode(d))}return decodeURIComponent(escape(g.join("")))}catch(_){throw new Error("Malformed UTF-8 data")}},hexToArray:function(b){var m=[],E=b.length;E%2!=0&&(b=u(b,E+1)),E=b.length;for(var A=0;A<E;A+=2)m.push(parseInt(b.substr(A,2),16));return m},verifyPublicKey:function(b){var m=a.decodePointHex(b);if(!m)return!1;var E=m.getX();return m.getY().square().equals(E.multiply(E.square()).add(E.multiply(a.a)).add(a.b))},comparePublicKeyHex:function(b,m){var E=a.decodePointHex(b);if(!E)return!1;var A=a.decodePointHex(m);return!!A&&E.equals(A)}}},function(t,n,e){function r(x,u){if(!(x instanceof u))throw new TypeError("Cannot call a class as a function")}function i(x,u){for(var b=0;b<u.length;b++){var m=u[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}function o(x,u,b){return u&&i(x.prototype,u),Object.defineProperty(x,"prototype",{writable:!1}),x}var s=e(87).BigInteger,c=new s("2"),h=new s("3"),a=function(){function x(u,b){r(this,x),this.x=b,this.q=u}return o(x,[{key:"equals",value:function(u){return u===this||this.q.equals(u.q)&&this.x.equals(u.x)}},{key:"toBigInteger",value:function(){return this.x}},{key:"negate",value:function(){return new x(this.q,this.x.negate().mod(this.q))}},{key:"add",value:function(u){return new x(this.q,this.x.add(u.toBigInteger()).mod(this.q))}},{key:"subtract",value:function(u){return new x(this.q,this.x.subtract(u.toBigInteger()).mod(this.q))}},{key:"multiply",value:function(u){return new x(this.q,this.x.multiply(u.toBigInteger()).mod(this.q))}},{key:"divide",value:function(u){return new x(this.q,this.x.multiply(u.toBigInteger().modInverse(this.q)).mod(this.q))}},{key:"square",value:function(){return new x(this.q,this.x.square().mod(this.q))}}]),x}(),f=function(){function x(u,b,m,E){r(this,x),this.curve=u,this.x=b,this.y=m,this.z=E==null?s.ONE:E,this.zinv=null}return o(x,[{key:"getX",value:function(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"getY",value:function(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"equals",value:function(u){return u===this||(this.isInfinity()?u.isInfinity():u.isInfinity()?this.isInfinity():!!u.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(u.z)).mod(this.curve.q).equals(s.ZERO)&&u.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(u.z)).mod(this.curve.q).equals(s.ZERO))}},{key:"isInfinity",value:function(){return this.x===null&&this.y===null||this.z.equals(s.ZERO)&&!this.y.toBigInteger().equals(s.ZERO)}},{key:"negate",value:function(){return new x(this.curve,this.x,this.y.negate(),this.z)}},{key:"add",value:function(u){if(this.isInfinity())return u;if(u.isInfinity())return this;var b=this.x.toBigInteger(),m=this.y.toBigInteger(),E=this.z,A=u.x.toBigInteger(),g=u.y.toBigInteger(),v=u.z,d=this.curve.q,_=b.multiply(v).mod(d),B=A.multiply(E).mod(d),C=_.subtract(B),S=m.multiply(v).mod(d),k=g.multiply(E).mod(d),F=S.subtract(k);if(s.ZERO.equals(C))return s.ZERO.equals(F)?this.twice():this.curve.infinity;var D=_.add(B),O=E.multiply(v).mod(d),M=C.square().mod(d),U=C.multiply(M).mod(d),z=O.multiply(F.square()).subtract(D.multiply(M)).mod(d),j=C.multiply(z).mod(d),W=F.multiply(M.multiply(_).subtract(z)).subtract(S.multiply(U)).mod(d),Q=U.multiply(O).mod(d);return new x(this.curve,this.curve.fromBigInteger(j),this.curve.fromBigInteger(W),Q)}},{key:"twice",value:function(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;var u=this.x.toBigInteger(),b=this.y.toBigInteger(),m=this.z,E=this.curve.q,A=this.curve.a.toBigInteger(),g=u.square().multiply(h).add(A.multiply(m.square())).mod(E),v=b.shiftLeft(1).multiply(m).mod(E),d=b.square().mod(E),_=d.multiply(u).multiply(m).mod(E),B=v.square().mod(E),C=g.square().subtract(_.shiftLeft(3)).mod(E),S=v.multiply(C).mod(E),k=g.multiply(_.shiftLeft(2).subtract(C)).subtract(B.shiftLeft(1).multiply(d)).mod(E),F=v.multiply(B).mod(E);return new x(this.curve,this.curve.fromBigInteger(S),this.curve.fromBigInteger(k),F)}},{key:"multiply",value:function(u){if(this.isInfinity())return this;if(!u.signum())return this.curve.infinity;for(var b=u.multiply(h),m=this.negate(),E=this,A=b.bitLength()-2;A>0;A--){E=E.twice();var g=b.testBit(A);g!==u.testBit(A)&&(E=E.add(g?this:m))}return E}}]),x}(),p=function(){function x(u,b,m){r(this,x),this.q=u,this.a=this.fromBigInteger(b),this.b=this.fromBigInteger(m),this.infinity=new f(this,null,null)}return o(x,[{key:"equals",value:function(u){return u===this||this.q.equals(u.q)&&this.a.equals(u.a)&&this.b.equals(u.b)}},{key:"fromBigInteger",value:function(u){return new a(this.q,u)}},{key:"decodePointHex",value:function(u){switch(parseInt(u.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var b=this.fromBigInteger(new s(u.substr(2),16)),m=this.fromBigInteger(b.multiply(b.square()).add(b.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new s("4")).add(s.ONE),this.q));return m.toBigInteger().mod(c).equals(new s(u.substr(0,2),16).subtract(c))||(m=m.negate()),new f(this,b,m);case 4:case 6:case 7:var E=(u.length-2)/2,A=u.substr(2,E),g=u.substr(E+2,E);return new f(this,this.fromBigInteger(new s(A,16)),this.fromBigInteger(new s(g,16)));default:return null}}}]),x}();t.exports={ECPointFp:f,ECCurveFp:p}},function(t,n,e){var r=e(5),i=e(2),o=e(1),s=e(154),c=e(8),h=e(27),a=e(29),f=e(79),p=s.ArrayBuffer,x=s.DataView,u=x.prototype,b=i(p.prototype.slice),m=i(u.getUint8),E=i(u.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new p(2).slice(1,void 0).byteLength})},{slice:function(A,g){if(b&&g===void 0)return b(c(this),A);for(var v=c(this).byteLength,d=h(A,v),_=h(g===void 0?v:g,v),B=new(f(this,p))(a(_-d)),C=new x(this),S=new x(B),k=0;d<_;)E(S,k++,m(C,d++));return B}})},function(t,n,e){var r=e(0).Array,i=Math.abs,o=Math.pow,s=Math.floor,c=Math.log,h=Math.LN2;t.exports={pack:function(a,f,p){var x,u,b,m=r(p),E=8*p-f-1,A=(1<<E)-1,g=A>>1,v=f===23?o(2,-24)-o(2,-77):0,d=a<0||a===0&&1/a<0?1:0,_=0;for((a=i(a))!=a||a===1/0?(u=a!=a?1:0,x=A):(x=s(c(a)/h),a*(b=o(2,-x))<1&&(x--,b*=2),(a+=x+g>=1?v/b:v*o(2,1-g))*b>=2&&(x++,b/=2),x+g>=A?(u=0,x=A):x+g>=1?(u=(a*b-1)*o(2,f),x+=g):(u=a*o(2,g-1)*o(2,f),x=0));f>=8;)m[_++]=255&u,u/=256,f-=8;for(x=x<<f|u,E+=f;E>0;)m[_++]=255&x,x/=256,E-=8;return m[--_]|=128*d,m},unpack:function(a,f){var p,x=a.length,u=8*x-f-1,b=(1<<u)-1,m=b>>1,E=u-7,A=x-1,g=a[A--],v=127&g;for(g>>=7;E>0;)v=256*v+a[A--],E-=8;for(p=v&(1<<-E)-1,v>>=-E,E+=f;E>0;)p=256*p+a[A--],E-=8;if(v===0)v=1-m;else{if(v===b)return p?NaN:g?-1/0:1/0;p+=o(2,f),v-=m}return(g?-1:1)*p*o(2,v-f)}}},function(t,n,e){e(157)("Uint32",function(r){return function(i,o,s){return r(this,i,o,s)}})},function(t,n,e){var r=e(0),i=e(1),o=e(86),s=e(3).NATIVE_ARRAY_BUFFER_VIEWS,c=r.ArrayBuffer,h=r.Int8Array;t.exports=!s||!i(function(){h(1)})||!i(function(){new h(-1)})||!o(function(a){new h,new h(null),new h(1.5),new h(a)},!0)||i(function(){return new h(new c(2),1,void 0).length!==1})},function(t,n,e){var r=e(7),i=Math.floor;t.exports=Number.isInteger||function(o){return!r(o)&&isFinite(o)&&i(o)===o}},function(t,n,e){var r=e(0),i=e(28),o=r.RangeError;t.exports=function(s){var c=i(s);if(c<0)throw o("The argument can't be less than 0");return c}},function(t,n,e){var r=e(40),i=e(11),o=e(105),s=e(14),c=e(15),h=e(113),a=e(85),f=e(112),p=e(3).aTypedArrayConstructor;t.exports=function(x){var u,b,m,E,A,g,v=o(this),d=s(x),_=arguments.length,B=_>1?arguments[1]:void 0,C=B!==void 0,S=a(d);if(S&&!f(S))for(g=(A=h(d,S)).next,d=[];!(E=i(g,A)).done;)d.push(E.value);for(C&&_>2&&(B=r(B,arguments[2])),b=c(d),m=new(p(v))(b),u=0;b>u;u++)m[u]=C?B(d[u],u):d[u];return m}},function(t,n,e){var r=e(2),i=e(3),o=r(e(217)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",function(c,h){return o(s(this),c,h,arguments.length>2?arguments[2]:void 0)})},function(t,n,e){var r=e(14),i=e(27),o=e(15),s=Math.min;t.exports=[].copyWithin||function(c,h){var a=r(this),f=o(a),p=i(c,f),x=i(h,f),u=arguments.length>2?arguments[2]:void 0,b=s((u===void 0?f:i(u,f))-x,f-p),m=1;for(x<p&&p<x+b&&(m=-1,x+=b-1,p+=b-1);b-- >0;)x in a?a[p]=a[x]:delete a[p],p+=m,x+=m;return a}},function(t,n,e){var r=e(3),i=e(21).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(11),o=e(117),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",function(c){var h=arguments.length;return i(o,s(this),c,h>1?arguments[1]:void 0,h>2?arguments[2]:void 0)})},function(t,n,e){var r=e(3),i=e(21).filter,o=e(221),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",function(c){var h=i(s(this),c,arguments.length>1?arguments[1]:void 0);return o(this,h)})},function(t,n,e){var r=e(222),i=e(89);t.exports=function(o,s){return r(i(o),s)}},function(t,n,e){var r=e(15);t.exports=function(i,o){for(var s=0,c=r(o),h=new i(c);c>s;)h[s]=o[s++];return h}},function(t,n,e){var r=e(3),i=e(21).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(21).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(21).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(s){i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(96).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(96).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(0),i=e(1),o=e(2),s=e(3),c=e(41),h=e(4)("iterator"),a=r.Uint8Array,f=o(c.values),p=o(c.keys),x=o(c.entries),u=s.aTypedArray,b=s.exportTypedArrayMethod,m=a&&a.prototype,E=!i(function(){m[h].call([1])}),A=!!m&&m.values&&m[h]===m.values&&m.values.name==="values",g=function(){return f(u(this))};b("entries",function(){return x(u(this))},E),b("keys",function(){return p(u(this))},E),b("values",g,E||!A,{name:"values"}),b(h,g,E||!A,{name:"values"})},function(t,n,e){var r=e(3),i=e(2),o=r.aTypedArray,s=r.exportTypedArrayMethod,c=i([].join);s("join",function(h){return c(o(this),h)})},function(t,n,e){var r=e(3),i=e(35),o=e(231),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(c){var h=arguments.length;return i(o,s(this),h>1?[c,arguments[1]]:[c])})},function(t,n,e){var r=e(35),i=e(24),o=e(28),s=e(15),c=e(109),h=Math.min,a=[].lastIndexOf,f=!!a&&1/[1].lastIndexOf(1,-0)<0,p=c("lastIndexOf"),x=f||!p;t.exports=x?function(u){if(f)return r(a,this,arguments)||0;var b=i(this),m=s(b),E=m-1;for(arguments.length>1&&(E=h(E,o(arguments[1]))),E<0&&(E=m+E);E>=0;E--)if(E in b&&b[E]===u)return E||0;return-1}:a},function(t,n,e){var r=e(3),i=e(21).map,o=e(89),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",function(c){return i(s(this),c,arguments.length>1?arguments[1]:void 0,function(h,a){return new(o(h))(a)})})},function(t,n,e){var r=e(3),i=e(159).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(s){var c=arguments.length;return i(o(this),s,c,c>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(159).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(s){var c=arguments.length;return i(o(this),s,c,c>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",function(){for(var c,h=i(this).length,a=s(h/2),f=0;f<a;)c=this[f],this[f++]=this[--h],this[h]=c;return this})},function(t,n,e){var r=e(0),i=e(11),o=e(3),s=e(15),c=e(158),h=e(14),a=e(1),f=r.RangeError,p=r.Int8Array,x=p&&p.prototype,u=x&&x.set,b=o.aTypedArray,m=o.exportTypedArrayMethod,E=!a(function(){var g=new Uint8ClampedArray(2);return i(u,g,{length:1,0:3},1),g[1]!==3}),A=E&&o.NATIVE_ARRAY_BUFFER_VIEWS&&a(function(){var g=new p(2);return g.set(1),g.set("2",1),g[0]!==0||g[1]!==2});m("set",function(g){b(this);var v=c(arguments.length>1?arguments[1]:void 0,1),d=h(g);if(E)return i(u,this,d,v);var _=this.length,B=s(d),C=0;if(B+v>_)throw f("Wrong length");for(;C<B;)this[v+C]=d[C++]},!E||A)},function(t,n,e){var r=e(3),i=e(89),o=e(1),s=e(50),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",function(h,a){for(var f=s(c(this),h,a),p=i(this),x=0,u=f.length,b=new p(u);u>x;)b[x]=f[x++];return b},o(function(){new Int8Array(1).slice()}))},function(t,n,e){var r=e(3),i=e(21).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(0),i=e(2),o=e(1),s=e(31),c=e(240),h=e(3),a=e(241),f=e(242),p=e(55),x=e(243),u=r.Array,b=h.aTypedArray,m=h.exportTypedArrayMethod,E=r.Uint16Array,A=E&&i(E.prototype.sort),g=!(!A||o(function(){A(new E(2),null)})&&o(function(){A(new E(2),{})})),v=!!A&&!o(function(){if(p)return p<74;if(a)return a<67;if(f)return!0;if(x)return x<602;var d,_,B=new E(516),C=u(516);for(d=0;d<516;d++)_=d%4,B[d]=515-d,C[d]=d-2*_+3;for(A(B,function(S,k){return(S/4|0)-(k/4|0)}),d=0;d<516;d++)if(B[d]!==C[d])return!0});m("sort",function(d){return d!==void 0&&s(d),v?A(this,d):c(b(this),function(_){return function(B,C){return _!==void 0?+_(B,C)||0:C!=C?-1:B!=B?1:B===0&&C===0?1/B>0&&1/C<0?1:-1:B>C}}(d))},!v||g)},function(t,n,e){var r=e(81),i=Math.floor,o=function(h,a){var f=h.length,p=i(f/2);return f<8?s(h,a):c(h,o(r(h,0,p),a),o(r(h,p),a),a)},s=function(h,a){for(var f,p,x=h.length,u=1;u<x;){for(p=u,f=h[u];p&&a(h[p-1],f)>0;)h[p]=h[--p];p!==u++&&(h[p]=f)}return h},c=function(h,a,f,p){for(var x=a.length,u=f.length,b=0,m=0;b<x||m<u;)h[b+m]=b<x&&m<u?p(a[b],f[m])<=0?a[b++]:f[m++]:b<x?a[b++]:f[m++];return h};t.exports=o},function(t,n,e){var r=e(37).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,n,e){var r=e(37);t.exports=/MSIE|Trident/.test(r)},function(t,n,e){var r=e(37).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,n,e){var r=e(3),i=e(29),o=e(27),s=e(89),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",function(h,a){var f=c(this),p=f.length,x=o(h,p);return new(s(f))(f.buffer,f.byteOffset+x*f.BYTES_PER_ELEMENT,i((a===void 0?p:o(a,p))-x))})},function(t,n,e){var r=e(0),i=e(35),o=e(3),s=e(1),c=e(50),h=r.Int8Array,a=o.aTypedArray,f=o.exportTypedArrayMethod,p=[].toLocaleString,x=!!h&&s(function(){p.call(new h(1))});f("toLocaleString",function(){return i(p,x?c(a(this)):a(this),c(arguments))},s(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!s(function(){h.prototype.toLocaleString.call([1,2])}))},function(t,n,e){var r=e(3).exportTypedArrayMethod,i=e(1),o=e(0),s=e(2),c=o.Uint8Array,h=c&&c.prototype||{},a=[].toString,f=s([].join);i(function(){a.call({})})&&(a=function(){return f(this)});var p=h.toString!=a;r("toString",a,p)},function(t,n,e){e(157)("Uint8",function(r){return function(i,o,s){return r(this,i,o,s)}})},function(t,n,e){var r=e(5),i=e(117),o=e(147);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,n,e){e(52),e(88),e(12),e(20),e(160),e(51);var r=e(153),i=r.sm3,o=r.hmac;function s(h){return h.map(function(a){return(a=a.toString(16)).length===1?"0"+a:a}).join("")}function c(h){var a,f,p=[],x=h.length;x%2!=0&&(f=x+1,h=(a=h).length>=f?a:new Array(f-a.length+1).join("0")+a),x=h.length;for(var u=0;u<x;u+=2)p.push(parseInt(h.substr(u,2),16));return p}t.exports=function(h,a){if(h=typeof h=="string"?function(p){for(var x=[],u=0,b=p.length;u<b;u++){var m=p.codePointAt(u);if(m<=127)x.push(m);else if(m<=2047)x.push(192|m>>>6),x.push(128|63&m);else if(m<=55295||m>=57344&&m<=65535)x.push(224|m>>>12),x.push(128|m>>>6&63),x.push(128|63&m);else{if(!(m>=65536&&m<=1114111))throw x.push(m),new Error("input is not supported");u++,x.push(240|m>>>18&28),x.push(128|m>>>12&63),x.push(128|m>>>6&63),x.push(128|63&m)}}return x}(h):Array.prototype.slice.call(h),a){if((a.mode||"hmac")!=="hmac")throw new Error("invalid mode");var f=a.key;if(!f)throw new Error("invalid key");return f=typeof f=="string"?c(f):Array.prototype.slice.call(f),s(o(h,f))}return s(i(h))}},function(t,n,e){function r(g){return function(v){if(Array.isArray(v))return i(v)}(g)||function(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}(g)||function(v,d){if(v){if(typeof v=="string")return i(v,d);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(52),e(88),e(12),e(20),e(160),e(251),e(51),e(252),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],s=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function c(g){for(var v=[],d=0,_=g.length;d<_;d+=2)v.push(parseInt(g.substr(d,2),16));return v}function h(g){return g.map(function(v){return(v=v.toString(16)).length===1?"0"+v:v}).join("")}function a(g){for(var v=[],d=0,_=g.length;d<_;d++){var B=g.codePointAt(d);if(B<=127)v.push(B);else if(B<=2047)v.push(192|B>>>6),v.push(128|63&B);else if(B<=55295||B>=57344&&B<=65535)v.push(224|B>>>12),v.push(128|B>>>6&63),v.push(128|63&B);else{if(!(B>=65536&&B<=1114111))throw v.push(B),new Error("input is not supported");d++,v.push(240|B>>>18&28),v.push(128|B>>>12&63),v.push(128|B>>>6&63),v.push(128|63&B)}}return v}function f(g){for(var v=[],d=0,_=g.length;d<_;d++)g[d]>=240&&g[d]<=247?(v.push(String.fromCodePoint(((7&g[d])<<18)+((63&g[d+1])<<12)+((63&g[d+2])<<6)+(63&g[d+3]))),d+=3):g[d]>=224&&g[d]<=239?(v.push(String.fromCodePoint(((15&g[d])<<12)+((63&g[d+1])<<6)+(63&g[d+2]))),d+=2):g[d]>=192&&g[d]<=223?(v.push(String.fromCodePoint(((31&g[d])<<6)+(63&g[d+1]))),d++):v.push(String.fromCodePoint(g[d]));return v.join("")}function p(g,v){var d=31&v;return g<<d|g>>>32-d}function x(g){return(255&o[g>>>24&255])<<24|(255&o[g>>>16&255])<<16|(255&o[g>>>8&255])<<8|255&o[255&g]}function u(g){return g^p(g,2)^p(g,10)^p(g,18)^p(g,24)}function b(g){return g^p(g,13)^p(g,23)}function m(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[4*C],B[1]=255&g[4*C+1],B[2]=255&g[4*C+2],B[3]=255&g[4*C+3],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^d[k+0],_[0]^=u(x(S)),S=_[2]^_[3]^_[0]^d[k+1],_[1]^=u(x(S)),S=_[3]^_[0]^_[1]^d[k+2],_[2]^=u(x(S)),S=_[0]^_[1]^_[2]^d[k+3],_[3]^=u(x(S));for(var F=0;F<16;F+=4)v[F]=_[3-F/4]>>>24&255,v[F+1]=_[3-F/4]>>>16&255,v[F+2]=_[3-F/4]>>>8&255,v[F+3]=255&_[3-F/4]}function E(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[0+4*C],B[1]=255&g[1+4*C],B[2]=255&g[2+4*C],B[3]=255&g[3+4*C],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];_[0]^=2746333894,_[1]^=1453994832,_[2]^=1736282519,_[3]^=2993693404;for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^s[k+0],v[k+0]=_[0]^=b(x(S)),S=_[2]^_[3]^_[0]^s[k+1],v[k+1]=_[1]^=b(x(S)),S=_[3]^_[0]^_[1]^s[k+2],v[k+2]=_[2]^=b(x(S)),S=_[0]^_[1]^_[2]^s[k+3],v[k+3]=_[3]^=b(x(S));if(d===0)for(var F,D=0;D<16;D++)F=v[D],v[D]=v[31-D],v[31-D]=F}function A(g,v,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.padding,C=B===void 0?"pkcs#7":B,S=_.mode,k=_.iv,F=k===void 0?[]:k,D=_.output,O=D===void 0?"string":D;if(S==="cbc"&&(typeof F=="string"&&(F=c(F)),F.length!==16))throw new Error("iv is invalid");if(typeof v=="string"&&(v=c(v)),v.length!==16)throw new Error("key is invalid");if(g=typeof g=="string"?d!==0?a(g):c(g):r(g),(C==="pkcs#5"||C==="pkcs#7")&&d!==0)for(var M=16-g.length%16,U=0;U<M;U++)g.push(M);var z=new Array(32);E(v,z,d);for(var j=[],W=F,Q=g.length,Z=0;Q>=16;){var te=g.slice(Z,Z+16),P=new Array(16);if(S==="cbc")for(var l=0;l<16;l++)d!==0&&(te[l]^=W[l]);m(te,P,z);for(var y=0;y<16;y++)S==="cbc"&&d===0&&(P[y]^=W[y]),j[Z+y]=P[y];S==="cbc"&&(W=d!==0?P:te),Q-=16,Z+=16}if((C==="pkcs#5"||C==="pkcs#7")&&d===0){for(var w=j.length,T=j[w-1],N=1;N<=T;N++)if(j[w-N]!==T)throw new Error("padding is invalid");j.splice(w-T,T)}return O!=="array"?d!==0?h(j):f(j):j}t.exports={encrypt:function(g,v,d){return A(g,v,1,d)},decrypt:function(g,v,d){return A(g,v,0,d)}}},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(27),c=i.RangeError,h=String.fromCharCode,a=String.fromCodePoint,f=o([].join);r({target:"String",stat:!0,forced:!!a&&a.length!=1},{fromCodePoint:function(p){for(var x,u=[],b=arguments.length,m=0;b>m;){if(x=+arguments[m++],s(x,1114111)!==x)throw c(x+" is not a valid code point");u[m]=x<65536?h(x):h(55296+((x-=65536)>>10),x%1024+56320)}return f(u,"")}})},function(t,n,e){var r=e(5),i=e(0),o=e(27),s=e(28),c=e(15),h=e(14),a=e(108),f=e(62),p=e(84)("splice"),x=i.TypeError,u=Math.max,b=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(m,E){var A,g,v,d,_,B,C=h(this),S=c(C),k=o(m,S),F=arguments.length;if(F===0?A=g=0:F===1?(A=0,g=S-k):(A=F-2,g=b(u(s(E),0),S-k)),S+A-g>9007199254740991)throw x("Maximum allowed length exceeded");for(v=a(C,g),d=0;d<g;d++)(_=k+d)in C&&f(v,d,C[_]);if(v.length=g,A<g){for(d=k;d<S-g;d++)B=d+A,(_=d+g)in C?C[B]=C[_]:delete C[B];for(d=S;d>S-g+A;d--)delete C[d-1]}else if(A>g)for(d=S-g;d>k;d--)B=d+A-1,(_=d+g-1)in C?C[B]=C[_]:delete C[B];for(d=0;d<A;d++)C[d+k]=arguments[d+2];return C.length=S-g+A,v}})},function(t,n,e){e.r(n),e.d(n,"TrackLogSender",function(){return fe}),e.d(n,"EncryptionType",function(){return Ce});var r=Object.prototype.hasOwnProperty;function i(H,L){return r.call(H,L)}function o(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var K=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if(K!=null)for(var G in K)G!=="__proto__"&&i(K,G)&&(H[G]=K[G])}return H}e(12);var s=Object.prototype.toString;e(95),e(16),e(48),e(172),e(61),e(20);var c={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6};function h(H,L){return new Date((typeof H=="number"?H:H.getTime())+function(K){if(typeof K=="number")return K;if(!isNaN(Number(K)))return Number(K);var G=parseFloat(K);if(isNaN(G))throw new Error("Invalid timespan string");var se=K.split(G.toString())[1].trim().toUpperCase().replace(/S$/,"");if(i(c,se))return G*c[se];throw new Error('Invalid time unit "'+se+'"')}(L))}function a(H,L){var K=o({},L);K.encode=K.encode||encodeURIComponent,K.decode=K.decode||decodeURIComponent,H="; "+K.encode(H)+"=";var G="; "+document.cookie,se=G.indexOf(H);if(se===-1)return"";se+=H.length;var ne=G.indexOf(";",se);return ne===-1&&(ne=G.length),K.decode(G.substring(se,ne))}function f(H,L,K){var G=o({},K);G.encode=G.encode||encodeURIComponent;var se=G.encode(H)+"="+G.encode(L);G.expires!=null&&(se+="; expires="+(function(ne){return s.call(ne)==="[object Date]"}(G.expires)?G.expires:h(new Date,G.expires)).toUTCString()),G.path&&(se+="; path="+G.path),G.domain&&(se+="; domain="+G.domain),G.secure===!0&&(se+="; secure"),G.sameSite&&(se+="; samesite="+G.sameSite),document.cookie=se}(function(){if(typeof document=="undefined")return!1;var H="__just4__test__cookie__";document.cookie=H+"=1",document.cookie=H+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT",a(H)})();function p(){var H=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(H+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var K=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?K:3&K|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var K;return L.some(function(G){var se,ne=!1;return G.regExp?(ne=G.regExp.test(H))&&(se=RegExp.$1):G.keywords?ne=function(pe,_e){pe=pe.toLowerCase();var Fe=/[/\s;_-]/,Se=/[/\s;_-]/;return _e.some(function(Le){var Pe=pe.indexOf(Le.toLowerCase());if(Pe!==-1&&(Fe.test(pe[Pe-1])||Pe===0)&&(Se.test(pe[Pe+Le.length])||Pe+Le.length>=pe.length))return!0})}(H,G.keywords):G.modelRegExp&&(ne=function(pe,_e){return!!/;\s*([^;]*?)(?:\s+Build\/|\))/.test(pe)&&_e.test(RegExp.$1)}(H,G.modelRegExp)),ne&&(K={name:G.name,version:se}),ne}),K}var u=[{name:"windows",regExp:/\bWindows\s?NT\s?(([\d.]+))\b/},{name:"ios",regExp:/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/},{name:"macos",regExp:/\bMac\sOS\sX(?:\s([\d_.]+))?/},{name:"android",regExp:/\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/},{name:"android",regExp:/\bAdr\s([\d.]+)(?:\b|_)/}];function b(H,L){for(var K=0;K<L.length;K++){var G=L[K];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(H,G.key,G)}}var m=function(){function H(G){(function(se,ne){if(!(se instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,H),this._ver=(G||"").replace(/_/g,".").replace(/\.+$/,"")}var L,K;return L=H,(K=[{key:"_compare",value:function(G,se){if(!this._ver||!G)return!1;var ne=Array.isArray(se)?se:[se],pe=function(_e,Fe){for(var Se=/(\.0+)+$/,Le=String(_e).replace(Se,"").split("."),Pe=String(Fe).replace(Se,"").split("."),Qe=Math.min(Le.length,Pe.length),et=0;et<Qe;et++){var xt=parseInt(Le[et])-parseInt(Pe[et]);if(xt)return xt}return Le.length-Pe.length}(this._ver,G);return ne.some(function(_e){return pe*_e>0||pe===0&&_e===0})}},{key:"gt",value:function(G){return this._compare(G,1)}},{key:"gte",value:function(G){return this._compare(G,[1,0])}},{key:"lt",value:function(G){return this._compare(G,-1)}},{key:"lte",value:function(G){return this._compare(G,[-1,0])}},{key:"eq",value:function(G){return this._compare(G,0)}},{key:"toString",value:function(){return this._ver}}])&&b(L.prototype,K),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,K){var G,se;if(function(_e,Fe){if(!(_e instanceof Fe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isIOS=!1,this.isAndroid=!1,this.isWindows=!1,this.isMacOS=!1,K==null?void 0:K.platform){var ne=function(_e){switch(_e){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}(K.platform);ne!==void 0&&(se={name:ne,version:""})}var pe=(G=x(L,u))!==null&&G!==void 0?G:se;pe?(se&&se.name!==pe.name&&(pe=se),pe.name==="macos"&&(K!=null&&K.maxTouchPoints)&&(pe.name="ios",pe.version=""),this[A[pe.name]]=!0,this.version=Object.freeze(new m(pe.version))):this.version=Object.freeze(new m(""))}),v=[{name:"ipad",regExp:/iPad/},{name:"ipod",regExp:/iPod/},{name:"iphone",regExp:/iPhone/}],d=[{name:"huawei",regExp:/\b(?:huawei|honor)/i},{name:"vivo",keywords:["vivo"]},{name:"oppo",keywords:["oppo"]},{name:"mi",keywords:["redmi","hongmi","shark","Mi","MIX","POCO"]},{name:"mi",regExp:/\bxiaomi/i},{name:"samsung",keywords:["samsung","galaxy"]},{name:"oneplus",keywords:["oneplus","one"]},{name:"huawei",modelRegExp:/^Mate\s\d{2}/},{name:"huawei",modelRegExp:/^Nova\s\d$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-[AT][LN]\d[019][A-Za-z]*$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-W[0-3]9[A-Z]*$/},{name:"huawei",modelRegExp:/^[A-Z][A-Za-z]{2,3}-BD00$/},{name:"huawei",modelRegExp:/^[A-Z]{3}-(?:[LN]29|NX9)$/},{name:"huawei",modelRegExp:/^TYH\d+[A-Z]?$/},{name:"huawei",regExp:/\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/},{name:"huawei",regExp:/\bCMDCSP\d{3}\b/},{name:"mi",modelRegExp:/^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i},{name:"mi",modelRegExp:/^(?:AWM|SKR|SKW|DLT)-/},{name:"mi",modelRegExp:/^M\d{4}[CKJ]\d+[A-Z]+$/},{name:"mi",modelRegExp:/^2\d{5}[0-9A-Z]{2}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{6}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{7}[A-Z]{2}$/},{name:"samsung",modelRegExp:/^S(?:M|[CGP]H)-[A-Za-z0-9]+$/},{name:"samsung",modelRegExp:/^SC-\d{2}[A-Z]$/},{name:"samsung",modelRegExp:/^SH[WV]-/},{name:"samsung",modelRegExp:/^GT[-_][A-Z][A-Z0-9]{3,}$/i},{name:"oppo",modelRegExp:/^(?:CPH|OPD)\d{4}$/},{name:"oneplus",modelRegExp:/^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/}];function _(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var B={ipod:"isIPod",iphone:"isIPhone",ipad:"isIPad",huawei:"isHuawei",mi:"isMi",oppo:"isOppo",vivo:"isVivo",oneplus:"isOnePlus",samsung:"isSamsung"},C=_(function H(L,K){var G;if(function(ne,pe){if(!(ne instanceof pe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isHuawei=!1,this.isMi=!1,this.isOppo=!1,this.isVivo=!1,this.isOnePlus=!1,this.isSamsung=!1,this.isIPod=!1,this.isIPhone=!1,this.isIPad=!1,this.isMac=!1,this.isApple=!1,K.isIOS?(G=v,this.isApple=!0):K.isMacOS?(this.isMac=!0,this.isApple=!0):K.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:K.isIOS&&(this.isIPad=!0)}}),S=[{name:"edge",regExp:/\bEdge\/([\d.]+)/},{name:"chrome",regExp:/\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/},{name:"safari",regExp:/\b(?:Version\/([\d.]+).*\s?)?Safari\b/},{name:"ie",regExp:/\bMSIE\s(\d+)/i},{name:"ie",regExp:/\bTrident\/.*;\srv:(\d+)/},{name:"firefox",regExp:/\bFirefox\/([\d.]+)/},{name:"opera-presto",regExp:/\bOpera\/([\d.]+)/}];function k(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var F={chrome:"isChrome",safari:"isSafari",edge:"isEdge",ie:"isIE",firefox:"isFirefox","opera-presto":"isPrestoOpera"},D=k(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isChrome=!1,this.isSafari=!1,this.isEdge=!1,this.isIE=!1,this.isFirefox=!1,this.isPrestoOpera=!1;var K=x(L,S);K?(this[F[K.name]]=!0,this.version=new m(K.version)):this.version=new m(""),Object.freeze(this.version)}),O=(e(107),[{name:"wxwork",regExp:/\bwxwork\/([\d.]+)/},{name:"wx",regExp:/\bMicroMessenger\/([\d.]+)/},{name:"ding",regExp:/\bDingTalk\/([\d.]+)/},{name:"qq",regExp:/\bQQ\/([\d.]+)/},{name:"qq",regExp:/\bIPadQQ\b/},{name:"weibo",regExp:/(?:\b|_)Weibo(?:\b|_)/i},{name:"edge",regExp:/\bEdge?\/([\d.]+)/},{name:"opera-blink",regExp:/\bOPR\/([\d.]+)/},{name:"qqbrowser",regExp:/\bM?QQBrowser(?:\/([\d.]+))?/i},{name:"ucbrowser",regExp:/\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/},{name:"ucbrowser",regExp:/\bUC\b/},{name:"quark",regExp:/\bQuark\/([\d.]+)/},{name:"maxthon",regExp:/\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/},{name:"theworld",regExp:/\bTheWorld(?:\s([\d.]+))?/i},{name:"baidubrowser",regExp:/\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i},{name:"baidubrowser",regExp:/\bbaidubrowserpad\b/},{name:"baiduapp",regExp:/\bbaiduboxapp\b\/([\d.]+)?/i},{name:"baiduapp",regExp:/\bbaiduboxpad\b/i}]);function M(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}O=O.concat(S);var U={wxwork:"isWxWork",wx:"isWx",ding:"isDing",qq:"isQQ",weibo:"isWeibo",edge:"isEdge","opera-blink":"isOpera","opera-presto":"isOpera",qqbrowser:"isQQBrowser",ucbrowser:"isUCBrowser",quark:"isQuark",maxthon:"isMaxthon",theworld:"isTheWorld",baidubrowser:"isBaiduBrowser",baiduapp:"isBaiduApp",chrome:"isChrome",safari:"isSafari",ie:"isIE",firefox:"isFirefox"},z=M(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isWxWork=!1,this.isWx=!1,this.isDing=!1,this.isQQ=!1,this.isWeibo=!1,this.isEdge=!1,this.isOpera=!1,this.isQQBrowser=!1,this.isUCBrowser=!1,this.isQuark=!1,this.isMaxthon=!1,this.isTheWorld=!1,this.isBaiduBrowser=!1,this.isBaiduApp=!1,this.isChrome=!1,this.isSafari=!1,this.isIE=!1,this.isFirefox=!1;var K=x(L,O);K?(this[U[K.name]]=!0,this.version=new m(K.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,K){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.os=Object.freeze(new g(L,K)),this.brand=Object.freeze(new C(L,this.os)),this.browser=Object.freeze(new D(L)),this.client=Object.freeze(new z(L)),this.isPortable=/mobile|android/i.test(L)||!/\b(Windows\sNT|Macintosh|Linux)\b/.test(L),(this.os.isIOS||this.os.isAndroid)&&(this.isPortable=!0)});e(63),e(178),e(179),e(51),e(52);function Z(H,L){var K,G,se=o({encode:encodeURIComponent},L),ne=[];function pe(Fe,Se){Se==null&&(Se=""),Se===""&&se.ignoreEmpty||(typeof se.encode=="function"&&(Fe=se.encode(Fe),Se=se.encode(String(Se))),ne.push(Fe+"="+Se))}function _e(Fe){pe(K,Fe)}for(K in H)i(H,K)&&(G=H[K],Array.isArray(G)?G.forEach(_e):pe(K,G));return ne.join("&")}function te(H,L,K){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?Z(L,K):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}e(143),e(144),e(146),e(41),e(192),e(67),e(68),e(69),e(70),e(71);function P(H){return(P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(H)}function l(H,L){if(L&&(P(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function(K){if(K===null||(G=K,Function.toString.call(G).indexOf("[native code]")===-1))return K;var G;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has(K))return L.get(K);L.set(K,se)}function se(){return w(K,arguments,X(this).constructor)}return se.prototype=Object.create(K.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,K)})(H)}function w(H,L,K){return(w=T()?Reflect.construct:function(G,se,ne){var pe=[null];pe.push.apply(pe,se);var _e=new(Function.bind.apply(G,pe));return ne&&N(_e,ne.prototype),_e}).apply(null,arguments)}function T(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function N(H,L){return(N=Object.setPrototypeOf||function(K,G){return K.__proto__=G,K})(H,L)}function X(H){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(H)}var V=function(H){(function(pe,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(_e&&_e.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),_e&&N(pe,_e)})(ne,H);var L,K,G,se=(L=ne,K=T(),function(){var pe,_e=X(L);if(K){var Fe=X(this).constructor;pe=Reflect.construct(_e,arguments,Fe)}else pe=_e.apply(this,arguments);return l(this,pe)});function ne(pe,_e,Fe){var Se;return function(Le,Pe){if(!(Le instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,ne),(Se=se.call(this,Fe)).isCancel=!1,Se.isTimeout=!1,Se.xhr=pe,Se.options=_e,Se.name="AJAXError",Se}return G=ne,Object.defineProperty(G,"prototype",{writable:!1}),G}(y(Error)),Y=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;e(196);function ie(H,L,K,G){return function(){var se,ne;switch(L.responseType||function(Fe){return Fe&&Y.test(Fe)?RegExp.$1.toLowerCase():""}(H.getResponseHeader("Content-Type"))){case"json":try{se=JSON.parse(H.responseText)}catch(Fe){ne="Invalid JSON structure"}break;case"xml":(se=H.responseXML)&&se.documentElement||(ne="Invalid XML format");break;case"blob":se=H.response;break;default:se=H.responseText}var pe,_e=H.status;(function(Fe){return!(Fe===void 0||Fe>=200&&Fe<300||Fe===1223||Fe===304)})(_e)?pe=new V(H,L,"Error (HTTP status code: "+_e+")"):ne&&(pe=new V(H,L,ne)),pe?(pe.code=_e,pe.data=se,G(Object.freeze(pe))):K(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function we(H,L,K,G){H.onload=ie(H,L,K,G),H.ontimeout=function(){G(Object.freeze(function(ne,pe,_e){var Fe=new V(ne,pe,"Request timeout");return Fe.isTimeout=!0,Fe}(H,L)))},H.onerror=function(){G(Object.freeze(new V(H,L,"Network error")))},L.onDownloadProgress&&H.addEventListener("progress",L.onDownloadProgress),L.onUploadProgress&&H.upload&&H.upload.addEventListener("progress",L.onUploadProgress),Ee===Number.MAX_SAFE_INTEGER&&(Ee=0);var se=++Ee;return ue[se]={xhr:H,options:L,resolve:K,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,K,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!K&&!se&&function(ne){if(ne!=null){if(Array.isArray(ne))return!ne.length;for(var pe in ne)if(i(ne,pe))return!1}return!0}(G)?new window.XDomainRequest:new window.XMLHttpRequest}function qe(H,L,K,G){var se,ne;if(K!=null&&H!=="get")return G==="json"?(se=typeof K=="string"?K:JSON.stringify(K),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}(K)?Z(K,{ignoreEmpty:!1}):K)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Re(H,L){var K=0;return new Promise(function(G,se){var ne=o({},L);ne.method=ne.method||"get",ne.requestType=ne.requestType||"",ne.responseType=ne.responseType||"json",ne.timeout=ne.timeout||0,ne.method=ne.method.toLowerCase(),ne.requestType=ne.requestType.toLowerCase(),ne.headers=ne.headers||{},Object.freeze(ne);var pe=function(Se){var Le=document.createElement("div");Le.innerHTML='<a href="'+Se+'"></a>';var Pe=Le.firstChild,Qe=Pe.host!==location.host;return Le=null,Pe=null,Qe}(H=function(Se,Le,Pe){return Le!=null&&(Se=te(Se,Le,{ignoreEmpty:!1})),Pe&&(Se=te(Se,{_:Date.now()})),Se}(H,ne.params,ne.preventCaching)),_e=Be(pe,ne.method,ne.requestType,ne.headers,ne.withCredentials);K=we(_e,ne,function(Se){ve(K),G(Se)},function(Se){ve(K),se(Se)}),ne.responseType!=="blob"&&ne.responseType!=="arraybuffer"||(_e.responseType=ne.responseType),_e.open(ne.method,H,!0,ne.username,ne.password);var Fe=qe(ne.method,ne.headers,ne.data,ne.requestType);(function(Se,Le,Pe,Qe){Le.timeout&&(Se.timeout=Le.timeout),Pe&&Le.withCredentials!=null&&(Se.withCredentials=!!Le.withCredentials),Pe||Qe["X-Request-With"]!=null||(Qe["X-Request-With"]="XMLHttpRequest"),Object.keys(Qe).forEach(function(et){Qe[et]!=null&&Se.setRequestHeader(et,String(Qe[et]))})})(_e,ne,pe,ne.headers),typeof ne.beforeSend=="function"&&ne.beforeSend.call(window,_e),_e.send(Fe||""),typeof ne.receiveCancelId=="function"&&ne.receiveCancelId(K)})}var We=Object.prototype.hasOwnProperty;function J(H,L){return We.call(H,L)}function ce(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var K=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if(K!=null)for(var G in K)G!=="__proto__"&&J(K,G)&&(H[G]=K[G])}return H}function le(H,L,K){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?function(ne,pe){var _e,Fe,Se=ce({encode:encodeURIComponent},pe),Le=[];function Pe(et,xt){xt==null&&(xt=""),xt===""&&Se.ignoreEmpty||(typeof Se.encode=="function"&&(et=Se.encode(et),xt=Se.encode(String(xt))),Le.push(et+"="+xt))}function Qe(et){Pe(_e,et)}for(_e in ne)J(ne,_e)&&(Fe=ne[_e],Array.isArray(Fe)?Fe.forEach(Qe):Pe(_e,Fe));return Le.join("&")}(L,K):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}var me=e(90),ge=e.n(me),Ve=e(161),Oe=e.n(Ve),Te=e(162),Ae=e.n(Te),Ue=e(163),Ge=e.n(Ue);function $e(H){for(var L="",K=H.length-1;K>=0;K--)L+=String.fromCharCode(H.charCodeAt(K)+1);return L}var ee=$e("WDuHi7BPemY6NeKJ"),oe=$e("aB6IrQkkclR6dQSU"),he=$e("qdmmh^`c^uxkno");function be(H){var L="";Object.keys(H).sort().forEach(function(G){L+="".concat(G).concat(H[G])});var K=he+L+he;return Ge()(K).toString().toUpperCase()}var Ce,He=e(164);(function(H){H[H.NONE=0]="NONE",H[H.AES256=1]="AES256",H[H.SM2=2]="SM2"})(Ce||(Ce={}));var Ke=function(){return(Ke=Object.assign||function(H){for(var L,K=1,G=arguments.length;K<G;K++)for(var se in L=arguments[K])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Ye(H,L){var K,G,se="".concat(((K=window.PLV_GLOBAL_URL_ORIGIN)===null||K===void 0?void 0:K.rtasOrigin)||"https://rtas.videocc.net","/da/track"),ne=se;if(L===Ce.AES256){var pe={eType:1,signatureMethod:"SHA256",signatureNonce:Math.random()};ne=le(se,Ke(Ke({},pe),{sign:be(Ke({app_id:H.app_id,project_id:H.project_id,project_name:H.project_name,local_ts:H.local_ts},pe))})),G=function(Fe){var Se=JSON.stringify(Fe),Le=ge.a.parse(ee),Pe=ge.a.parse(Se);return Oe.a.encrypt(Pe,Le,{iv:ge.a.parse(oe),padding:Ae.a}).toString()}(H)}else L===Ce.SM2?(ne=le(se,{eType:2}),G=function(Fe){return"04"+He.sm2.doEncrypt(JSON.stringify(Fe),"045B8155E9747C283ACF842895D3048E6CA943CC454AFA6A9A452B5903CC30FCE278A6F88F602EDF803DAB40BD45E35F660676BF68FD7CCBE0F6AD32388136CD0D",0)}(H)):G=JSON.stringify(H);var _e=!1;if(typeof navigator.sendBeacon=="function"&&typeof Blob=="function")try{_e=navigator.sendBeacon(ne,G)}catch(Fe){}_e||Re(ne,{requestType:"json",responseType:"text",method:"post",data:G})}var Ze=function(){return(Ze=Object.assign||function(H){for(var L,K=1,G=arguments.length;K<G;K++)for(var se in L=arguments[K])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)},fe=function(){function H(L){this._commonData=Ze({},L.commonData),this._cookieDomain=L.cookieDomain;var K=L.enableAPIEncryption;this._enableAPIEncryption=typeof K=="boolean"?K?Ce.AES256:Ce.NONE:K}return H.prototype.getDeviceId=function(){var L=a("rtas_device_id");return L||f("rtas_device_id",L=p(),{domain:this._cookieDomain,path:"/",expires:"1 year"}),L},H.prototype.getSessionId=function(){var L=a("rtas_session_id");return L||f("rtas_session_id",L=p(),{domain:this._cookieDomain,path:"/"}),L},H.prototype._makeUpData=function(L,K){return Ze(Ze({},this._commonData),{app_id:"N/A",project_id:"N/A",device_uuid:this.getDeviceId(),session_uuid:this.getSessionId(),device_class:(W||(W=Object.freeze(typeof window!="undefined"?new Q(window.navigator.userAgent,window.navigator):new Q(""))),W).isPortable?"mobile":"desktop",local_ts:Math.round(Date.now()/1e3),data_type:L,data_param:[K]})},H.prototype.trackEvent=function(L){Ye(this._makeUpData("event",Ze(Ze({},L),{event_uuid:p(),occur_time:Math.round(Date.now()/1e3),url_path:window.location.href})),this._enableAPIEncryption)},H}()}]);class Fu extends gn{constructor(e){super(e);ye(this,"__rtasSender")}setup(e){return De(this,null,function*(){yield this.__init()})}__init(){return De(this,null,function*(){const e=this._plvSocket.getUserInfo();let r=e.userId,i=e.authType||"",o=!1;this._plvSocket.config.securityMode===a0.AES?o=Zr.EncryptionType.AES256:this._plvSocket.config.securityMode===a0.SM2&&(o=Zr.EncryptionType.SM2);const s="2.3.0-rc-20251204.1";this.__rtasSender=new Zr.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:s,logon_id:r,nickname:e.nick,logon_type:i,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:o})})}trackEvent(e){return De(this,null,function*(){if(!this.__rtasSender||!this._plvSocket.config.watchEventTrackEnabled)return;const r=yield this._plvSocket.channel.getChannelInfo(),i={channelId:r.channelId,sessionId:r.sessionId,userId:r.accountId};this.__rtasSender.trackEvent({event_cata:"behavior",event_id:e.event_id,event_type:e.event_type,comm_attrs:i,spec_attrs:e.spec_attrs})})}}class Su{constructor(n){ye(this,"ConnectFailReason",n0);ye(this,"SocketUserType",At);ye(this,"PolyvSocketEvent",vt);ye(this,"eventEmitter",new Ya);ye(this,"config");ye(this,"chatApi");ye(this,"polyvApi");ye(this,"connect");ye(this,"channel");ye(this,"rtas");this.config=n,this.chatApi=new Oc(this),this.polyvApi=new Lf(this),this.connect=new Cu(this),this.channel=new $f(this),this.rtas=new Fu(this)}setup(){return De(this,arguments,function*(n={}){yield Promise.all([this.rtas.setup(n),this.channel.setup(n),this.connect.setup(n)])})}emitSocket(n,e="message",r){return this.connect.emitSocket(n,e,r)}addSocketHandles(n,e,r="message"){this.connect.addSocketHandles(n,e,r)}clearSocketHandles(n){this.connect.clearSocketHandles(n)}getUserInfo(){return typeof this.config.userInfo=="function"?this.config.userInfo():this.config.userInfo}isSpecialUserType(n,e){return n===At.Dummy?!!e&&["主讲","讲师","嘉宾","助教","管理员"].includes(e):[At.Teacher,At.Manager,At.Guest,At.Assistant,At.Attendee,At.UserTagsMonitor].includes(n)}currentIsSpecialUser(){const n=this.getUserInfo();return this.isSpecialUserType(n.userType,n.actor)}isCurrentUser(n){return this.getUserInfo().userId===n}destroy(){return De(this,null,function*(){yield this.connect.disconnect()})}}const Du="PolyvSocket";exports.ConnectFailReason=n0;exports.GlobalVariable=Du;exports.PolyvSocket=Su;exports.PolyvSocketEvent=vt;exports.RequestAuthorizeMethod=b0;exports.SecurityMode=a0;exports.SocketUserType=At;exports.socketEventTypes=$o;console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.3.0-rc-20251204.1]","[buildTime: 2025-12-04 02:19:39]");
|