@chillicream/nitro-embedded 32.0.2 → 33.0.0-insider.2

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.
@@ -1,4 +1,4 @@
1
- import{p as process$1,B as Buffer}from"./monaco.cbb9dd2a.D_5Blgsx.js";getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="32.0.2",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(t,n){this.#e=t,this.#t=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(t){return this.#e.dispatchEvent(t)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const t=this;let n=!1;return this.#r=new Promise((i,s)=>{if(t.aborted){n=!0,s(TIMEOUT_ABORT_ERROR);return}if(t.cancelled){n=!0,i();return}function a(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function f(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",f)}),this.#r}addEventListener(t,n,i){this.#e.addEventListener(t,n,i)}removeEventListener(t,n,i){this.#e.removeEventListener(t,n,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(t){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},t)}get signal(){return this._signal}abort(t){this._controller.abort(t)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var n=function i(){var s=!1;try{s=this instanceof i}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),n}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=c,n.fromByteArray=m;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,d=f.length;l<d;++l)i[l]=f[l],s[f.charCodeAt(l)]=l;s[45]=62,s[95]=63;function o(D){var C=D.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=D.indexOf("=");q===-1&&(q=C);var M=q===C?0:4-q%4;return[q,M]}function u(D){var C=o(D),q=C[0],M=C[1];return(q+M)*3/4-M}function p(D,C,q){return(C+q)*3/4-q}function c(D){var C,q=o(D),M=q[0],F=q[1],k=new a(p(D,M,F)),$=0,L=F>0?M-4:M,G;for(G=0;G<L;G+=4)C=s[D.charCodeAt(G)]<<18|s[D.charCodeAt(G+1)]<<12|s[D.charCodeAt(G+2)]<<6|s[D.charCodeAt(G+3)],k[$++]=C>>16&255,k[$++]=C>>8&255,k[$++]=C&255;return F===2&&(C=s[D.charCodeAt(G)]<<2|s[D.charCodeAt(G+1)]>>4,k[$++]=C&255),F===1&&(C=s[D.charCodeAt(G)]<<10|s[D.charCodeAt(G+1)]<<4|s[D.charCodeAt(G+2)]>>2,k[$++]=C>>8&255,k[$++]=C&255),k}function v(D){return i[D>>18&63]+i[D>>12&63]+i[D>>6&63]+i[D&63]}function y(D,C,q){for(var M,F=[],k=C;k<q;k+=3)M=(D[k]<<16&16711680)+(D[k+1]<<8&65280)+(D[k+2]&255),F.push(v(M));return F.join("")}function m(D){for(var C,q=D.length,M=q%3,F=[],k=16383,$=0,L=q-M;$<L;$+=k)F.push(y(D,$,$+k>L?L:$+k));return M===1?(C=D[q-1],F.push(i[C>>2]+i[C<<4&63]+"==")):M===2&&(C=(D[q-2]<<8)+D[q-1],F.push(i[C>>10]+i[C>>4&63]+i[C<<2&63]+"=")),F.join("")}var R={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */R.read=function(D,C,q,M,F){var k,$,L=F*8-M-1,G=(1<<L)-1,B=G>>1,S=-7,_=q?F-1:0,h=q?-1:1,g=D[C+_];for(_+=h,k=g&(1<<-S)-1,g>>=-S,S+=L;S>0;k=k*256+D[C+_],_+=h,S-=8);for($=k&(1<<-S)-1,k>>=-S,S+=M;S>0;$=$*256+D[C+_],_+=h,S-=8);if(k===0)k=1-B;else{if(k===G)return $?NaN:(g?-1:1)*(1/0);$=$+Math.pow(2,M),k=k-B}return(g?-1:1)*$*Math.pow(2,k-M)},R.write=function(D,C,q,M,F,k){var $,L,G,B=k*8-F-1,S=(1<<B)-1,_=S>>1,h=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=M?0:k-1,I=M?1:-1,w=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(L=isNaN(C)?1:0,$=S):($=Math.floor(Math.log(C)/Math.LN2),C*(G=Math.pow(2,-$))<1&&($--,G*=2),$+_>=1?C+=h/G:C+=h*Math.pow(2,1-_),C*G>=2&&($++,G/=2),$+_>=S?(L=0,$=S):$+_>=1?(L=(C*G-1)*Math.pow(2,F),$=$+_):(L=C*Math.pow(2,_-1)*Math.pow(2,F),$=0));F>=8;D[q+g]=L&255,g+=I,L/=256,F-=8);for($=$<<F|L,B+=F;B>0;D[q+g]=$&255,g+=I,$/=256,B-=8);D[q+g-I]|=w*128};/*!
1
+ import{p as process$1,B as Buffer}from"./monaco.cbb9dd2a.D_5Blgsx.js";getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="33.0.0-insider.2",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(t,n){this.#e=t,this.#t=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(t){return this.#e.dispatchEvent(t)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const t=this;let n=!1;return this.#r=new Promise((i,s)=>{if(t.aborted){n=!0,s(TIMEOUT_ABORT_ERROR);return}if(t.cancelled){n=!0,i();return}function a(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function f(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",f)}),this.#r}addEventListener(t,n,i){this.#e.addEventListener(t,n,i)}removeEventListener(t,n,i){this.#e.removeEventListener(t,n,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(t){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},t)}get signal(){return this._signal}abort(t){this._controller.abort(t)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var n=function i(){var s=!1;try{s=this instanceof i}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),n}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=c,n.fromByteArray=m;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,d=f.length;l<d;++l)i[l]=f[l],s[f.charCodeAt(l)]=l;s[45]=62,s[95]=63;function o(D){var C=D.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=D.indexOf("=");q===-1&&(q=C);var M=q===C?0:4-q%4;return[q,M]}function u(D){var C=o(D),q=C[0],M=C[1];return(q+M)*3/4-M}function p(D,C,q){return(C+q)*3/4-q}function c(D){var C,q=o(D),M=q[0],F=q[1],k=new a(p(D,M,F)),$=0,L=F>0?M-4:M,G;for(G=0;G<L;G+=4)C=s[D.charCodeAt(G)]<<18|s[D.charCodeAt(G+1)]<<12|s[D.charCodeAt(G+2)]<<6|s[D.charCodeAt(G+3)],k[$++]=C>>16&255,k[$++]=C>>8&255,k[$++]=C&255;return F===2&&(C=s[D.charCodeAt(G)]<<2|s[D.charCodeAt(G+1)]>>4,k[$++]=C&255),F===1&&(C=s[D.charCodeAt(G)]<<10|s[D.charCodeAt(G+1)]<<4|s[D.charCodeAt(G+2)]>>2,k[$++]=C>>8&255,k[$++]=C&255),k}function v(D){return i[D>>18&63]+i[D>>12&63]+i[D>>6&63]+i[D&63]}function y(D,C,q){for(var M,F=[],k=C;k<q;k+=3)M=(D[k]<<16&16711680)+(D[k+1]<<8&65280)+(D[k+2]&255),F.push(v(M));return F.join("")}function m(D){for(var C,q=D.length,M=q%3,F=[],k=16383,$=0,L=q-M;$<L;$+=k)F.push(y(D,$,$+k>L?L:$+k));return M===1?(C=D[q-1],F.push(i[C>>2]+i[C<<4&63]+"==")):M===2&&(C=(D[q-2]<<8)+D[q-1],F.push(i[C>>10]+i[C>>4&63]+i[C<<2&63]+"=")),F.join("")}var R={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */R.read=function(D,C,q,M,F){var k,$,L=F*8-M-1,G=(1<<L)-1,B=G>>1,S=-7,_=q?F-1:0,h=q?-1:1,g=D[C+_];for(_+=h,k=g&(1<<-S)-1,g>>=-S,S+=L;S>0;k=k*256+D[C+_],_+=h,S-=8);for($=k&(1<<-S)-1,k>>=-S,S+=M;S>0;$=$*256+D[C+_],_+=h,S-=8);if(k===0)k=1-B;else{if(k===G)return $?NaN:(g?-1:1)*(1/0);$=$+Math.pow(2,M),k=k-B}return(g?-1:1)*$*Math.pow(2,k-M)},R.write=function(D,C,q,M,F,k){var $,L,G,B=k*8-F-1,S=(1<<B)-1,_=S>>1,h=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=M?0:k-1,I=M?1:-1,w=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(L=isNaN(C)?1:0,$=S):($=Math.floor(Math.log(C)/Math.LN2),C*(G=Math.pow(2,-$))<1&&($--,G*=2),$+_>=1?C+=h/G:C+=h*Math.pow(2,1-_),C*G>=2&&($++,G/=2),$+_>=S?(L=0,$=S):$+_>=1?(L=(C*G-1)*Math.pow(2,F),$=$+_):(L=C*Math.pow(2,_-1)*Math.pow(2,F),$=0));F>=8;D[q+g]=L&255,g+=I,L/=256,F-=8);for($=$<<F|L,B+=F;B>0;D[q+g]=$&255,g+=I,$/=256,B-=8);D[q+g-I]|=w*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -32,7 +32,7 @@ import{p as process$1,B as Buffer}from"./monaco.cbb9dd2a.D_5Blgsx.js";getOsName(
32
32
  *
33
33
  * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
34
34
  * Released under the MIT License.
35
- */var setValue_1,hasRequiredSetValue;function requireSetValue(){if(hasRequiredSetValue)return setValue_1;hasRequiredSetValue=1;const{deleteProperty:r}=Reflect,t=requireIsPrimitive(),n=requireIsPlainObject(),i=v=>typeof v=="object"&&v!==null||typeof v=="function",s=v=>v==="__proto__"||v==="constructor"||v==="prototype",a=v=>{if(!t(v))throw new TypeError("Object keys must be strings or symbols");if(s(v))throw new Error(`Cannot set unsafe key: "${v}"`)},f=v=>Array.isArray(v)?v.flat().map(String).join(","):v,l=(v,y)=>{if(typeof v!="string"||!y)return v;let m=v+";";return y.arrays!==void 0&&(m+=`arrays=${y.arrays};`),y.separator!==void 0&&(m+=`separator=${y.separator};`),y.split!==void 0&&(m+=`split=${y.split};`),y.merge!==void 0&&(m+=`merge=${y.merge};`),y.preservePaths!==void 0&&(m+=`preservePaths=${y.preservePaths};`),m},d=(v,y,m)=>{const R=f(y?l(v,y):v);a(R);const A=c.cache.get(R)||m();return c.cache.set(R,A),A},o=(v,y={})=>{const m=y.separator||".",R=m==="/"?!1:y.preservePaths;if(typeof v=="string"&&R!==!1&&/\//.test(v))return[v];const A=[];let D="";const C=q=>{let M;q.trim()!==""&&Number.isInteger(M=Number(q))?A.push(M):A.push(q)};for(let q=0;q<v.length;q++){const M=v[q];if(M==="\\"){D+=v[++q];continue}if(M===m){C(D),D="";continue}D+=M}return D&&C(D),A},u=(v,y)=>y&&typeof y.split=="function"?y.split(v):typeof v=="symbol"?[v]:Array.isArray(v)?v:d(v,y,()=>o(v,y)),p=(v,y,m,R)=>{if(a(y),m===void 0)r(v,y);else if(R&&R.merge){const A=R.merge==="function"?R.merge:Object.assign;A&&n(v[y])&&n(m)?v[y]=A(v[y],m):v[y]=m}else v[y]=m;return v},c=(v,y,m,R)=>{if(!y||!i(v))return v;const A=u(y,R);let D=v;for(let C=0;C<A.length;C++){const q=A[C],M=A[C+1];if(a(q),M===void 0){p(D,q,m,R);break}if(typeof M=="number"&&!Array.isArray(D[q])){D=D[q]=[];continue}i(D[q])||(D[q]={}),D=D[q]}return v};return c.split=u,c.cache=new Map,c.clear=()=>{c.cache=new Map},setValue_1=c,setValue_1}requireSetValue();function isURL(r){return HTTP_SCHEME_PATTERN.test(r)}function delay(r){return new Promise(t=>void self.setTimeout(t,r))}const FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,ONE_MINUTE=6e4;function isSessionExpired(r,t=ONE_MINUTE){return msUntilSessionExpired(r,t)<1}function msUntilSessionExpired(r,t=ONE_MINUTE){return r.expiresAt-now()-t}const instanceOfAny=(r,t)=>t.some(n=>r instanceof n);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(r){const t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("success",a),r.removeEventListener("error",f)},a=()=>{n(wrap$2(r.result)),s()},f=()=>{i(r.error),s()};r.addEventListener("success",a),r.addEventListener("error",f)});return t.then(n=>{n instanceof IDBCursor&&cursorRequestMap.set(n,r)}).catch(()=>{}),reverseTransformCache.set(t,r),t}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",f),r.removeEventListener("abort",f)},a=()=>{n(),s()},f=()=>{i(r.error||new DOMException("AbortError","AbortError")),s()};r.addEventListener("complete",a),r.addEventListener("error",f),r.addEventListener("abort",f)});transactionDoneMap.set(r,t)}let idbProxyTraps={get(r,t,n){if(r instanceof IDBTransaction){if(t==="done")return transactionDoneMap.get(r);if(t==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return wrap$2(r[t])},set(r,t,n){return r[t]=n,!0},has(r,t){return r instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=r.call(unwrap(this),t,...n);return transactionStoreNamesMap.set(i,t.sort?t.sort():[t]),wrap$2(i)}:getCursorAdvanceMethods().includes(r)?function(...t){return r.apply(unwrap(this),t),wrap$2(cursorRequestMap.get(this))}:function(...t){return wrap$2(r.apply(unwrap(this),t))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap$2(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const t=transformCachableValue(r);return t!==r&&(transformCache.set(r,t),reverseTransformCache.set(t,r)),t}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,t,{blocked:n,upgrade:i,blocking:s,terminated:a}={}){const f=indexedDB.open(r,t),l=wrap$2(f);return i&&f.addEventListener("upgradeneeded",d=>{i(wrap$2(f.result),d.oldVersion,d.newVersion,wrap$2(f.transaction),d)}),n&&f.addEventListener("blocked",d=>n(d.oldVersion,d.newVersion,d)),l.then(d=>{a&&d.addEventListener("close",()=>a()),s&&d.addEventListener("versionchange",o=>s(o.oldVersion,o.newVersion,o))}).catch(()=>{}),l}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,t){if(!(r instanceof IDBDatabase&&!(t in r)&&typeof t=="string"))return;if(cachedMethods.get(t))return cachedMethods.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,s=writeMethods.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(s||readMethods.includes(n)))return;const a=async function(f,...l){const d=this.transaction(f,s?"readwrite":"readonly");let o=d.store;return i&&(o=o.index(l.shift())),(await Promise.all([o[n](...l),s&&d.done]))[0]};return cachedMethods.set(t,a),a}replaceTraps(r=>({...r,get:(t,n,i)=>getMethod(t,n)||r.get(t,n,i),has:(t,n)=>!!getMethod(t,n)||r.has(t,n)}));const advanceMethodProps=["continue","continuePrimaryKey","advance"],methodMap={},advanceResults=new WeakMap,ittrProxiedCursorToOriginalProxy=new WeakMap,cursorIteratorTraps={get(r,t){if(!advanceMethodProps.includes(t))return r[t];let n=methodMap[t];return n||(n=methodMap[t]=function(...i){advanceResults.set(this,ittrProxiedCursorToOriginalProxy.get(this)[t](...i))}),n}};async function*iterate(...r){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...r)),!t)return;t=t;const n=new Proxy(t,cursorIteratorTraps);for(ittrProxiedCursorToOriginalProxy.set(n,t),reverseTransformCache.set(n,unwrap(t));t;)yield n,t=await(advanceResults.get(n)||t.continue()),advanceResults.delete(n)}function isIteratorProp(r,t){return t===Symbol.asyncIterator&&instanceOfAny(r,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&instanceOfAny(r,[IDBIndex,IDBObjectStore])}replaceTraps(r=>({...r,get(t,n,i){return isIteratorProp(t,n)?iterate:r.get(t,n,i)},has(t,n){return isIteratorProp(t,n)||r.has(t,n)}}));const DB_NAME="chillicream-nitro";function getDatabaseName(){return self.appNamespace?`${DB_NAME}-${self.appNamespace}`:DB_NAME}function getEntityByKey(r,t){return openDatabaseScope(n=>n.get(r,t))}function putEntity(r,t){return openDatabaseScope(async n=>{await n.put(r,t)})}function openDatabase(){return openDB(getDatabaseName())}async function openDatabaseScope(r){const t=await openDatabase();try{return await r(t)}finally{t.close()}}async function openTransactionScope(r,t,n,i,s){const a=await createTransaction(r,t,n);try{return await i(a,r.version)}finally{await a.done}}function openDatabaseWithTransactionScope(r,t,n,i){return openDatabaseScope(s=>openTransactionScope(s,r,t,n,i))}const camelizationCache=new Map;function camelizeString(r){let t=camelizationCache.get(r);return t||(t=r.split("-").reduce((n,i)=>(i&&(n!==""?(n+=i[0].toUpperCase(),n+=i.substring(1)):n=i),n),""),camelizationCache.set(r,t)),t}async function createTransaction(r,t,n){const i=r.transaction(t,n),s={},a={};for(const f of t){const l=i.objectStore(f),d=camelizeString(f);s[d]=l,a[d]={};for(const o of l.indexNames)a[d][o]=l.index(o)}return{abort:f=>abortWithError(i,f),done:i.done.catch(f=>{if(!isAbortError(f))throw f}),store:s,index:a}}function abortWithError(r,t){throw r.abort(),new Error(t)}globalThis.idbGet=function(r,t){return openDatabaseScope(async n=>{console.log("IDB_GET",{store:r,key:t,data:await n.get(r,t)})})};globalThis.idbSet=function(r,t,n){return openDatabaseScope(async i=>{console.log("IDB_SET",{store:r,key:n,value:t,result:await i.put(r,t,n)})})};async function getUserSession({sub:r,tenant:t,issuer:n}){return openDatabaseWithTransactionScope(["session"],"readonly",i=>i.index.session.key.get([r,t,n]))}async function replaceUserSession(r){return await putEntity("session",r),r}const APP_CURRENT_TENANT="current-tenant";function getCurrentTenant(){return getEntityByKey("app",APP_CURRENT_TENANT)}var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}},cryptoBrowserify={},browser$b={exports:{}},hasRequiredBrowser$b;function requireBrowser$b(){if(hasRequiredBrowser$b)return browser$b.exports;hasRequiredBrowser$b=1;var r=65536,t=4294967295;function n(){throw new Error(`Secure random number generation is not supported by this browser.
35
+ */var setValue_1,hasRequiredSetValue;function requireSetValue(){if(hasRequiredSetValue)return setValue_1;hasRequiredSetValue=1;const{deleteProperty:r}=Reflect,t=requireIsPrimitive(),n=requireIsPlainObject(),i=v=>typeof v=="object"&&v!==null||typeof v=="function",s=v=>v==="__proto__"||v==="constructor"||v==="prototype",a=v=>{if(!t(v))throw new TypeError("Object keys must be strings or symbols");if(s(v))throw new Error(`Cannot set unsafe key: "${v}"`)},f=v=>Array.isArray(v)?v.flat().map(String).join(","):v,l=(v,y)=>{if(typeof v!="string"||!y)return v;let m=v+";";return y.arrays!==void 0&&(m+=`arrays=${y.arrays};`),y.separator!==void 0&&(m+=`separator=${y.separator};`),y.split!==void 0&&(m+=`split=${y.split};`),y.merge!==void 0&&(m+=`merge=${y.merge};`),y.preservePaths!==void 0&&(m+=`preservePaths=${y.preservePaths};`),m},d=(v,y,m)=>{const R=f(y?l(v,y):v);a(R);const A=c.cache.get(R)||m();return c.cache.set(R,A),A},o=(v,y={})=>{const m=y.separator||".",R=m==="/"?!1:y.preservePaths;if(typeof v=="string"&&R!==!1&&/\//.test(v))return[v];const A=[];let D="";const C=q=>{let M;q.trim()!==""&&Number.isInteger(M=Number(q))?A.push(M):A.push(q)};for(let q=0;q<v.length;q++){const M=v[q];if(M==="\\"){D+=v[++q];continue}if(M===m){C(D),D="";continue}D+=M}return D&&C(D),A},u=(v,y)=>y&&typeof y.split=="function"?y.split(v):typeof v=="symbol"?[v]:Array.isArray(v)?v:d(v,y,()=>o(v,y)),p=(v,y,m,R)=>{if(a(y),m===void 0)r(v,y);else if(R&&R.merge){const A=R.merge==="function"?R.merge:Object.assign;A&&n(v[y])&&n(m)?v[y]=A(v[y],m):v[y]=m}else v[y]=m;return v},c=(v,y,m,R)=>{if(!y||!i(v))return v;const A=u(y,R);let D=v;for(let C=0;C<A.length;C++){const q=A[C],M=A[C+1];if(a(q),M===void 0){p(D,q,m,R);break}if(typeof M=="number"&&!Array.isArray(D[q])){D=D[q]=[];continue}i(D[q])||(D[q]={}),D=D[q]}return v};return c.split=u,c.cache=new Map,c.clear=()=>{c.cache=new Map},setValue_1=c,setValue_1}requireSetValue();function isURL(r){return HTTP_SCHEME_PATTERN.test(r)}function delay(r){return new Promise(t=>void self.setTimeout(t,r))}const FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,ONE_MINUTE=6e4;function isSessionExpired(r,t=ONE_MINUTE){return msUntilSessionExpired(r,t)<1}function msUntilSessionExpired(r,t=ONE_MINUTE){return r.expiresAt-now()-t}const instanceOfAny=(r,t)=>t.some(n=>r instanceof n);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(r){const t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("success",a),r.removeEventListener("error",f)},a=()=>{n(wrap$2(r.result)),s()},f=()=>{i(r.error),s()};r.addEventListener("success",a),r.addEventListener("error",f)});return t.then(n=>{n instanceof IDBCursor&&cursorRequestMap.set(n,r)}).catch(()=>{}),reverseTransformCache.set(t,r),t}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",f),r.removeEventListener("abort",f)},a=()=>{n(),s()},f=()=>{i(r.error||new DOMException("AbortError","AbortError")),s()};r.addEventListener("complete",a),r.addEventListener("error",f),r.addEventListener("abort",f)});transactionDoneMap.set(r,t)}let idbProxyTraps={get(r,t,n){if(r instanceof IDBTransaction){if(t==="done")return transactionDoneMap.get(r);if(t==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return wrap$2(r[t])},set(r,t,n){return r[t]=n,!0},has(r,t){return r instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=r.call(unwrap(this),t,...n);return transactionStoreNamesMap.set(i,t.sort?t.sort():[t]),wrap$2(i)}:getCursorAdvanceMethods().includes(r)?function(...t){return r.apply(unwrap(this),t),wrap$2(cursorRequestMap.get(this))}:function(...t){return wrap$2(r.apply(unwrap(this),t))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap$2(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const t=transformCachableValue(r);return t!==r&&(transformCache.set(r,t),reverseTransformCache.set(t,r)),t}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,t,{blocked:n,upgrade:i,blocking:s,terminated:a}={}){const f=indexedDB.open(r,t),l=wrap$2(f);return i&&f.addEventListener("upgradeneeded",d=>{i(wrap$2(f.result),d.oldVersion,d.newVersion,wrap$2(f.transaction),d)}),n&&f.addEventListener("blocked",d=>n(d.oldVersion,d.newVersion,d)),l.then(d=>{a&&d.addEventListener("close",()=>a()),s&&d.addEventListener("versionchange",o=>s(o.oldVersion,o.newVersion,o))}).catch(()=>{}),l}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,t){if(!(r instanceof IDBDatabase&&!(t in r)&&typeof t=="string"))return;if(cachedMethods.get(t))return cachedMethods.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,s=writeMethods.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(s||readMethods.includes(n)))return;const a=async function(f,...l){const d=this.transaction(f,s?"readwrite":"readonly");let o=d.store;return i&&(o=o.index(l.shift())),(await Promise.all([o[n](...l),s&&d.done]))[0]};return cachedMethods.set(t,a),a}replaceTraps(r=>({...r,get:(t,n,i)=>getMethod(t,n)||r.get(t,n,i),has:(t,n)=>!!getMethod(t,n)||r.has(t,n)}));const advanceMethodProps=["continue","continuePrimaryKey","advance"],methodMap={},advanceResults=new WeakMap,ittrProxiedCursorToOriginalProxy=new WeakMap,cursorIteratorTraps={get(r,t){if(!advanceMethodProps.includes(t))return r[t];let n=methodMap[t];return n||(n=methodMap[t]=function(...i){advanceResults.set(this,ittrProxiedCursorToOriginalProxy.get(this)[t](...i))}),n}};async function*iterate(...r){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...r)),!t)return;t=t;const n=new Proxy(t,cursorIteratorTraps);for(ittrProxiedCursorToOriginalProxy.set(n,t),reverseTransformCache.set(n,unwrap(t));t;)yield n,t=await(advanceResults.get(n)||t.continue()),advanceResults.delete(n)}function isIteratorProp(r,t){return t===Symbol.asyncIterator&&instanceOfAny(r,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&instanceOfAny(r,[IDBIndex,IDBObjectStore])}replaceTraps(r=>({...r,get(t,n,i){return isIteratorProp(t,n)?iterate:r.get(t,n,i)},has(t,n){return isIteratorProp(t,n)||r.has(t,n)}}));const DB_NAME="chillicream-nitro-insider";function getDatabaseName(){return self.appNamespace?`${DB_NAME}-${self.appNamespace}`:DB_NAME}function getEntityByKey(r,t){return openDatabaseScope(n=>n.get(r,t))}function putEntity(r,t){return openDatabaseScope(async n=>{await n.put(r,t)})}function openDatabase(){return openDB(getDatabaseName())}async function openDatabaseScope(r){const t=await openDatabase();try{return await r(t)}finally{t.close()}}async function openTransactionScope(r,t,n,i,s){const a=await createTransaction(r,t,n);try{return await i(a,r.version)}finally{await a.done}}function openDatabaseWithTransactionScope(r,t,n,i){return openDatabaseScope(s=>openTransactionScope(s,r,t,n,i))}const camelizationCache=new Map;function camelizeString(r){let t=camelizationCache.get(r);return t||(t=r.split("-").reduce((n,i)=>(i&&(n!==""?(n+=i[0].toUpperCase(),n+=i.substring(1)):n=i),n),""),camelizationCache.set(r,t)),t}async function createTransaction(r,t,n){const i=r.transaction(t,n),s={},a={};for(const f of t){const l=i.objectStore(f),d=camelizeString(f);s[d]=l,a[d]={};for(const o of l.indexNames)a[d][o]=l.index(o)}return{abort:f=>abortWithError(i,f),done:i.done.catch(f=>{if(!isAbortError(f))throw f}),store:s,index:a}}function abortWithError(r,t){throw r.abort(),new Error(t)}globalThis.idbGet=function(r,t){return openDatabaseScope(async n=>{console.log("IDB_GET",{store:r,key:t,data:await n.get(r,t)})})};globalThis.idbSet=function(r,t,n){return openDatabaseScope(async i=>{console.log("IDB_SET",{store:r,key:n,value:t,result:await i.put(r,t,n)})})};async function getUserSession({sub:r,tenant:t,issuer:n}){return openDatabaseWithTransactionScope(["session"],"readonly",i=>i.index.session.key.get([r,t,n]))}async function replaceUserSession(r){return await putEntity("session",r),r}const APP_CURRENT_TENANT="current-tenant";function getCurrentTenant(){return getEntityByKey("app",APP_CURRENT_TENANT)}var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}},cryptoBrowserify={},browser$b={exports:{}},hasRequiredBrowser$b;function requireBrowser$b(){if(hasRequiredBrowser$b)return browser$b.exports;hasRequiredBrowser$b=1;var r=65536,t=4294967295;function n(){throw new Error(`Secure random number generation is not supported by this browser.
36
36
  Use Chrome, Firefox or Internet Explorer 11`)}var i=requireSafeBuffer$1().Buffer,s=commonjsGlobal.crypto||commonjsGlobal.msCrypto;s&&s.getRandomValues?browser$b.exports=a:browser$b.exports=n;function a(f,l){if(f>t)throw new RangeError("requested too many random bytes");var d=i.allocUnsafe(f);if(f>0)if(f>r)for(var o=0;o<f;o+=r)s.getRandomValues(d.slice(o,o+r));else s.getRandomValues(d);return typeof l=="function"?process$1.nextTick(function(){l(null,d)}):d}return browser$b.exports}var hashBase$1,hasRequiredHashBase$1;function requireHashBase$1(){if(hasRequiredHashBase$1)return hashBase$1;hasRequiredHashBase$1=1;var r=requireSafeBuffer$1().Buffer,t=requireReadableBrowser$1().Transform,n=requireInherits_browser();function i(a,f){if(!r.isBuffer(a)&&typeof a!="string")throw new TypeError(f+" must be a string or a buffer")}function s(a){t.call(this),this._block=r.allocUnsafe(a),this._blockSize=a,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return n(s,t),s.prototype._transform=function(a,f,l){var d=null;try{this.update(a,f)}catch(o){d=o}l(d)},s.prototype._flush=function(a){var f=null;try{this.push(this.digest())}catch(l){f=l}a(f)},s.prototype.update=function(a,f){if(i(a,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(a)||(a=r.from(a,f));for(var l=this._block,d=0;this._blockOffset+a.length-d>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)l[o++]=a[d++];this._update(),this._blockOffset=0}for(;d<a.length;)l[this._blockOffset++]=a[d++];for(var u=0,p=a.length*8;p>0;++u)this._length[u]+=p,p=this._length[u]/4294967296|0,p>0&&(this._length[u]-=4294967296*p);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var f=this._digest();a!==void 0&&(f=f.toString(a)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return f},s.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=s,hashBase$1}var ripemd160$3,hasRequiredRipemd160$2;function requireRipemd160$2(){if(hasRequiredRipemd160$2)return ripemd160$3;hasRequiredRipemd160$2=1;var r=requireDist().Buffer,t=requireInherits_browser(),n=requireHashBase$1(),i=new Array(16),s=[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],a=[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],f=[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],l=[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=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function u(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}t(u,n),u.prototype._update=function(){for(var A=i,D=0;D<16;++D)A[D]=this._block.readInt32LE(D*4);for(var C=this._a|0,q=this._b|0,M=this._c|0,F=this._d|0,k=this._e|0,$=this._a|0,L=this._b|0,G=this._c|0,B=this._d|0,S=this._e|0,_=0;_<80;_+=1){var h,g;_<16?(h=c(C,q,M,F,k,A[s[_]],d[0],f[_]),g=R($,L,G,B,S,A[a[_]],o[0],l[_])):_<32?(h=v(C,q,M,F,k,A[s[_]],d[1],f[_]),g=m($,L,G,B,S,A[a[_]],o[1],l[_])):_<48?(h=y(C,q,M,F,k,A[s[_]],d[2],f[_]),g=y($,L,G,B,S,A[a[_]],o[2],l[_])):_<64?(h=m(C,q,M,F,k,A[s[_]],d[3],f[_]),g=v($,L,G,B,S,A[a[_]],o[3],l[_])):(h=R(C,q,M,F,k,A[s[_]],d[4],f[_]),g=c($,L,G,B,S,A[a[_]],o[4],l[_])),C=k,k=F,F=p(M,10),M=q,q=h,$=S,S=B,B=p(G,10),G=L,L=g}var I=this._b+M+B|0;this._b=this._c+F+S|0,this._c=this._d+k+$|0,this._d=this._e+C+L|0,this._e=this._a+q+G|0,this._a=I},u.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var A=r.alloc?r.alloc(20):new r(20);return A.writeInt32LE(this._a,0),A.writeInt32LE(this._b,4),A.writeInt32LE(this._c,8),A.writeInt32LE(this._d,12),A.writeInt32LE(this._e,16),A};function p(A,D){return A<<D|A>>>32-D}function c(A,D,C,q,M,F,k,$){return p(A+(D^C^q)+F+k|0,$)+M|0}function v(A,D,C,q,M,F,k,$){return p(A+(D&C|~D&q)+F+k|0,$)+M|0}function y(A,D,C,q,M,F,k,$){return p(A+((D|~C)^q)+F+k|0,$)+M|0}function m(A,D,C,q,M,F,k,$){return p(A+(D&q|C&~q)+F+k|0,$)+M|0}function R(A,D,C,q,M,F,k,$){return p(A+(D^(C|~q))+F+k|0,$)+M|0}return ripemd160$3=u,ripemd160$3}var sha_js={exports:{}},isarray$1,hasRequiredIsarray$1;function requireIsarray$1(){if(hasRequiredIsarray$1)return isarray$1;hasRequiredIsarray$1=1;var r={}.toString;return isarray$1=Array.isArray||function(t){return r.call(t)=="[object Array]"},isarray$1}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var r=requireWhichTypedArray();return isTypedArray=function(n){return!!r(n)},isTypedArray}var typedArrayBuffer,hasRequiredTypedArrayBuffer;function requireTypedArrayBuffer(){if(hasRequiredTypedArrayBuffer)return typedArrayBuffer;hasRequiredTypedArrayBuffer=1;var r=requireType(),t=requireCallBound(),n=t("TypedArray.prototype.buffer",!0),i=requireIsTypedArray();return typedArrayBuffer=n||function(a){if(!i(a))throw new r("Not a Typed Array");return a.buffer},typedArrayBuffer}var toBuffer,hasRequiredToBuffer$1;function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer;hasRequiredToBuffer$1=1;var r=requireSafeBuffer$1().Buffer,t=requireIsarray$1(),n=requireTypedArrayBuffer(),i=ArrayBuffer.isView||function(d){try{return n(d),!0}catch{return!1}},s=typeof Uint8Array<"u",a=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f=a&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);return toBuffer=function(d,o){if(d instanceof r)return d;if(typeof d=="string")return r.from(d,o);if(a&&i(d)){if(d.byteLength===0)return r.alloc(0);if(f){var u=r.from(d.buffer,d.byteOffset,d.byteLength);if(u.byteLength===d.byteLength)return u}var p=d instanceof Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),c=r.from(p);if(c.length===d.byteLength)return c}if(s&&d instanceof Uint8Array)return r.from(d);var v=t(d);if(v)for(var y=0;y<d.length;y+=1){var m=d[y];if(typeof m!="number"||m<0||m>255||~~m!==m)throw new RangeError("Array items must be numbers in the range 0-255.")}if(v||r.isBuffer(d)&&d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d))return r.from(d);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},toBuffer}var hash$1,hasRequiredHash$1;function requireHash$1(){if(hasRequiredHash$1)return hash$1;hasRequiredHash$1=1;var r=requireSafeBuffer$1().Buffer,t=requireToBuffer$1();function n(i,s){this._block=r.alloc(i),this._finalSize=s,this._blockSize=i,this._len=0}return n.prototype.update=function(i,s){i=t(i,s||"utf8");for(var a=this._block,f=this._blockSize,l=i.length,d=this._len,o=0;o<l;){for(var u=d%f,p=Math.min(l-o,f-u),c=0;c<p;c++)a[u+c]=i[o+c];d+=p,o+=p,d%f===0&&this._update(a)}return this._len+=l,this},n.prototype.digest=function(i){var s=this._len%this._blockSize;this._block[s]=128,this._block.fill(0,s+1),s>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=this._len*8;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var f=(a&4294967295)>>>0,l=(a-f)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(f,this._blockSize-4)}this._update(this._block);var d=this._hash();return i?d.toString(i):d},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$1=n,hash$1}var sha$1,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$1;hasRequiredSha$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,t.call(this,64,56)}r(a,t),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function f(o){return o<<5|o>>>27}function l(o){return o<<30|o>>>2}function d(o,u,p,c){return o===0?u&p|~u&c:o===2?u&p|u&c|p&c:u^p^c}return a.prototype._update=function(o){for(var u=this._w,p=this._a|0,c=this._b|0,v=this._c|0,y=this._d|0,m=this._e|0,R=0;R<16;++R)u[R]=o.readInt32BE(R*4);for(;R<80;++R)u[R]=u[R-3]^u[R-8]^u[R-14]^u[R-16];for(var A=0;A<80;++A){var D=~~(A/20),C=f(p)+d(D,c,v,y)+m+u[A]+i[D]|0;m=y,y=v,v=l(c),c=p,p=C}this._a=p+this._a|0,this._b=c+this._b|0,this._c=v+this._c|0,this._d=y+this._d|0,this._e=m+this._e|0},a.prototype._hash=function(){var o=n.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},sha$1=a,sha$1}var sha1$2,hasRequiredSha1$1;function requireSha1$1(){if(hasRequiredSha1$1)return sha1$2;hasRequiredSha1$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,t.call(this,64,56)}r(a,t),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function f(u){return u<<1|u>>>31}function l(u){return u<<5|u>>>27}function d(u){return u<<30|u>>>2}function o(u,p,c,v){return u===0?p&c|~p&v:u===2?p&c|p&v|c&v:p^c^v}return a.prototype._update=function(u){for(var p=this._w,c=this._a|0,v=this._b|0,y=this._c|0,m=this._d|0,R=this._e|0,A=0;A<16;++A)p[A]=u.readInt32BE(A*4);for(;A<80;++A)p[A]=f(p[A-3]^p[A-8]^p[A-14]^p[A-16]);for(var D=0;D<80;++D){var C=~~(D/20),q=l(c)+o(C,v,y,m)+R+p[D]+i[C]|0;R=m,m=y,y=d(v),v=c,c=q}this._a=c+this._a|0,this._b=v+this._b|0,this._c=y+this._c|0,this._d=m+this._d|0,this._e=R+this._e|0},a.prototype._hash=function(){var u=n.allocUnsafe(20);return u.writeInt32BE(this._a|0,0),u.writeInt32BE(this._b|0,4),u.writeInt32BE(this._c|0,8),u.writeInt32BE(this._d|0,12),u.writeInt32BE(this._e|0,16),u},sha1$2=a,sha1$2}var sha256$3,hasRequiredSha256$1;function requireSha256$1(){if(hasRequiredSha256$1)return sha256$3;hasRequiredSha256$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=requireSafeBuffer$1().Buffer,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function a(){this.init(),this._w=s,t.call(this,64,56)}r(a,t),a.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function f(c,v,y){return y^c&(v^y)}function l(c,v,y){return c&v|y&(c|v)}function d(c){return(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10)}function o(c){return(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7)}function u(c){return(c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3}function p(c){return(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10}return a.prototype._update=function(c){for(var v=this._w,y=this._a|0,m=this._b|0,R=this._c|0,A=this._d|0,D=this._e|0,C=this._f|0,q=this._g|0,M=this._h|0,F=0;F<16;++F)v[F]=c.readInt32BE(F*4);for(;F<64;++F)v[F]=p(v[F-2])+v[F-7]+u(v[F-15])+v[F-16]|0;for(var k=0;k<64;++k){var $=M+o(D)+f(D,C,q)+i[k]+v[k]|0,L=d(y)+l(y,m,R)|0;M=q,q=C,C=D,D=A+$|0,A=R,R=m,m=y,y=$+L|0}this._a=y+this._a|0,this._b=m+this._b|0,this._c=R+this._c|0,this._d=A+this._d|0,this._e=D+this._e|0,this._f=C+this._f|0,this._g=q+this._g|0,this._h=M+this._h|0},a.prototype._hash=function(){var c=n.allocUnsafe(32);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c.writeInt32BE(this._h,28),c},sha256$3=a,sha256$3}var sha224$3,hasRequiredSha224$1;function requireSha224$1(){if(hasRequiredSha224$1)return sha224$3;hasRequiredSha224$1=1;var r=requireInherits_browser(),t=requireSha256$1(),n=requireHash$1(),i=requireSafeBuffer$1().Buffer,s=new Array(64);function a(){this.init(),this._w=s,n.call(this,64,56)}return r(a,t),a.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},a.prototype._hash=function(){var f=i.allocUnsafe(28);return f.writeInt32BE(this._a,0),f.writeInt32BE(this._b,4),f.writeInt32BE(this._c,8),f.writeInt32BE(this._d,12),f.writeInt32BE(this._e,16),f.writeInt32BE(this._f,20),f.writeInt32BE(this._g,24),f},sha224$3=a,sha224$3}var sha512$3,hasRequiredSha512$1;function requireSha512$1(){if(hasRequiredSha512$1)return sha512$3;hasRequiredSha512$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=requireSafeBuffer$1().Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,t.call(this,128,112)}r(a,t),a.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function f(m,R,A){return A^m&(R^A)}function l(m,R,A){return m&R|A&(m|R)}function d(m,R){return(m>>>28|R<<4)^(R>>>2|m<<30)^(R>>>7|m<<25)}function o(m,R){return(m>>>14|R<<18)^(m>>>18|R<<14)^(R>>>9|m<<23)}function u(m,R){return(m>>>1|R<<31)^(m>>>8|R<<24)^m>>>7}function p(m,R){return(m>>>1|R<<31)^(m>>>8|R<<24)^(m>>>7|R<<25)}function c(m,R){return(m>>>19|R<<13)^(R>>>29|m<<3)^m>>>6}function v(m,R){return(m>>>19|R<<13)^(R>>>29|m<<3)^(m>>>6|R<<26)}function y(m,R){return m>>>0<R>>>0?1:0}return a.prototype._update=function(m){for(var R=this._w,A=this._ah|0,D=this._bh|0,C=this._ch|0,q=this._dh|0,M=this._eh|0,F=this._fh|0,k=this._gh|0,$=this._hh|0,L=this._al|0,G=this._bl|0,B=this._cl|0,S=this._dl|0,_=this._el|0,h=this._fl|0,g=this._gl|0,I=this._hl|0,w=0;w<32;w+=2)R[w]=m.readInt32BE(w*4),R[w+1]=m.readInt32BE(w*4+4);for(;w<160;w+=2){var E=R[w-30],N=R[w-30+1],x=u(E,N),T=p(N,E);E=R[w-4],N=R[w-4+1];var b=c(E,N),O=v(N,E),P=R[w-14],K=R[w-14+1],V=R[w-32],U=R[w-32+1],j=T+K|0,X=x+P+y(j,T)|0;j=j+O|0,X=X+b+y(j,O)|0,j=j+U|0,X=X+V+y(j,U)|0,R[w]=X,R[w+1]=j}for(var Z=0;Z<160;Z+=2){X=R[Z],j=R[Z+1];var z=l(A,D,C),W=l(L,G,B),Y=d(A,L),te=d(L,A),re=o(M,_),ie=o(_,M),se=i[Z],fe=i[Z+1],ne=f(M,F,k),de=f(_,h,g),ue=I+ie|0,ce=$+re+y(ue,I)|0;ue=ue+de|0,ce=ce+ne+y(ue,de)|0,ue=ue+fe|0,ce=ce+se+y(ue,fe)|0,ue=ue+j|0,ce=ce+X+y(ue,j)|0;var he=te+W|0,pe=Y+z+y(he,te)|0;$=k,I=g,k=F,g=h,F=M,h=_,_=S+ue|0,M=q+ce+y(_,S)|0,q=C,S=B,C=D,B=G,D=A,G=L,L=ue+he|0,A=ce+pe+y(L,ue)|0}this._al=this._al+L|0,this._bl=this._bl+G|0,this._cl=this._cl+B|0,this._dl=this._dl+S|0,this._el=this._el+_|0,this._fl=this._fl+h|0,this._gl=this._gl+g|0,this._hl=this._hl+I|0,this._ah=this._ah+A+y(this._al,L)|0,this._bh=this._bh+D+y(this._bl,G)|0,this._ch=this._ch+C+y(this._cl,B)|0,this._dh=this._dh+q+y(this._dl,S)|0,this._eh=this._eh+M+y(this._el,_)|0,this._fh=this._fh+F+y(this._fl,h)|0,this._gh=this._gh+k+y(this._gl,g)|0,this._hh=this._hh+$+y(this._hl,I)|0},a.prototype._hash=function(){var m=n.allocUnsafe(64);function R(A,D,C){m.writeInt32BE(A,C),m.writeInt32BE(D,C+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),R(this._gh,this._gl,48),R(this._hh,this._hl,56),m},sha512$3=a,sha512$3}var sha384$3,hasRequiredSha384$1;function requireSha384$1(){if(hasRequiredSha384$1)return sha384$3;hasRequiredSha384$1=1;var r=requireInherits_browser(),t=requireSha512$1(),n=requireHash$1(),i=requireSafeBuffer$1().Buffer,s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}return r(a,t),a.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},a.prototype._hash=function(){var f=i.allocUnsafe(48);function l(d,o,u){f.writeInt32BE(d,u),f.writeInt32BE(o,u+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),f},sha384$3=a,sha384$3}var hasRequiredSha_js;function requireSha_js(){return hasRequiredSha_js||(hasRequiredSha_js=1,function(r){r.exports=function(n){var i=n.toLowerCase(),s=r.exports[i];if(!s)throw new Error(i+" is not supported (we accept pull requests)");return new s},r.exports.sha=requireSha$1(),r.exports.sha1=requireSha1$1(),r.exports.sha224=requireSha224$1(),r.exports.sha256=requireSha256$1(),r.exports.sha384=requireSha384$1(),r.exports.sha512=requireSha512$1()}(sha_js)),sha_js.exports}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=n;var r=requireEvents().EventEmitter,t=requireInherits_browser();t(n,r),n.Readable=require_stream_readable$1(),n.Writable=require_stream_writable$1(),n.Duplex=require_stream_duplex$1(),n.Transform=require_stream_transform$1(),n.PassThrough=require_stream_passthrough$1(),n.finished=requireEndOfStream(),n.pipeline=requirePipeline(),n.Stream=n;function n(){r.call(this)}return n.prototype.pipe=function(i,s){var a=this;function f(v){i.writable&&i.write(v)===!1&&a.pause&&a.pause()}a.on("data",f);function l(){a.readable&&a.resume&&a.resume()}i.on("drain",l),!i._isStdio&&(!s||s.end!==!1)&&(a.on("end",o),a.on("close",u));var d=!1;function o(){d||(d=!0,i.end())}function u(){d||(d=!0,typeof i.destroy=="function"&&i.destroy())}function p(v){if(c(),r.listenerCount(this,"error")===0)throw v}a.on("error",p),i.on("error",p);function c(){a.removeListener("data",f),i.removeListener("drain",l),a.removeListener("end",o),a.removeListener("close",u),a.removeListener("error",p),i.removeListener("error",p),a.removeListener("end",c),a.removeListener("close",c),i.removeListener("close",c)}return a.on("end",c),a.on("close",c),i.on("close",c),i.emit("pipe",a),i},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var r=requireSafeBuffer$1().Buffer,t=requireStreamBrowserify().Transform,n=requireString_decoder().StringDecoder,i=requireInherits_browser();function s(d){t.call(this),this.hashMode=typeof d=="string",this.hashMode?this[d]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(s,t);var a=typeof Uint8Array<"u",f=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);function l(d,o){if(d instanceof r)return d;if(typeof d=="string")return r.from(d,o);if(f&&ArrayBuffer.isView(d)){if(d.byteLength===0)return r.alloc(0);var u=r.from(d.buffer,d.byteOffset,d.byteLength);if(u.byteLength===d.byteLength)return u}if(a&&d instanceof Uint8Array||r.isBuffer(d)&&d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d))return r.from(d);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return s.prototype.update=function(d,o,u){var p=l(d,o),c=this._update(p);return this.hashMode?this:(u&&(c=this._toString(c,u)),c)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(d,o,u){var p;try{this.hashMode?this._update(d):this.push(this._update(d))}catch(c){p=c}finally{u(p)}},s.prototype._flush=function(d){var o;try{this.push(this.__final())}catch(u){o=u}d(o)},s.prototype._finalOrDigest=function(d){var o=this.__final()||r.alloc(0);return d&&(o=this._toString(o,d,!0)),o},s.prototype._toString=function(d,o,u){if(this._decoder||(this._decoder=new n(o),this._encoding=o),this._encoding!==o)throw new Error("can’t switch encodings");var p=this._decoder.write(d);return u&&(p+=this._decoder.end()),p},cipherBase=s,cipherBase}var browser$a,hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a;hasRequiredBrowser$a=1;var r=requireInherits_browser(),t=requireMd5_js(),n=requireRipemd160$2(),i=requireSha_js(),s=requireCipherBase();function a(f){s.call(this,"digest"),this._hash=f}return r(a,s),a.prototype._update=function(f){this._hash.update(f)},a.prototype._final=function(){return this._hash.digest()},browser$a=function(l){return l=l.toLowerCase(),l==="md5"?new t:l==="rmd160"||l==="ripemd160"?new n:new a(i(l))},browser$a}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var r=requireInherits_browser(),t=requireSafeBuffer$1().Buffer,n=requireCipherBase(),i=t.alloc(128),s=64;function a(f,l){n.call(this,"digest"),typeof l=="string"&&(l=t.from(l)),this._alg=f,this._key=l,l.length>s?l=f(l):l.length<s&&(l=t.concat([l,i],s));for(var d=this._ipad=t.allocUnsafe(s),o=this._opad=t.allocUnsafe(s),u=0;u<s;u++)d[u]=l[u]^54,o[u]=l[u]^92;this._hash=[d]}return r(a,n),a.prototype._update=function(f){this._hash.push(f)},a.prototype._final=function(){var f=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,f]))},legacy=a,legacy}var md5$3,hasRequiredMd5$2;function requireMd5$2(){if(hasRequiredMd5$2)return md5$3;hasRequiredMd5$2=1;var r=requireMd5_js();return md5$3=function(t){return new r().update(t).digest()},md5$3}var browser$9,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var r=requireInherits_browser(),t=requireLegacy(),n=requireCipherBase(),i=requireSafeBuffer$1().Buffer,s=requireMd5$2(),a=requireRipemd160$2(),f=requireSha_js(),l=i.alloc(128);function d(o,u){n.call(this,"digest"),typeof u=="string"&&(u=i.from(u));var p=o==="sha512"||o==="sha384"?128:64;if(this._alg=o,this._key=u,u.length>p){var c=o==="rmd160"?new a:f(o);u=c.update(u).digest()}else u.length<p&&(u=i.concat([u,l],p));for(var v=this._ipad=i.allocUnsafe(p),y=this._opad=i.allocUnsafe(p),m=0;m<p;m++)v[m]=u[m]^54,y[m]=u[m]^92;this._hash=o==="rmd160"?new a:f(o),this._hash.update(v)}return r(d,n),d.prototype._update=function(o){this._hash.update(o)},d.prototype._final=function(){var o=this._hash.digest(),u=this._alg==="rmd160"?new a:f(this._alg);return u.update(this._opad).update(o).digest()},browser$9=function(u,p){return u=u.toLowerCase(),u==="rmd160"||u==="ripemd160"?new d("rmd160",p):u==="md5"?new t(s,p):new d(u,p)},browser$9}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$2={sign:"ecdsa",hash:"sha256",id:""},sha224$2={sign:"ecdsa",hash:"sha224",id:""},sha384$2={sign:"ecdsa",hash:"sha384",id:""},sha512$2={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"};var require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256$2,sha224:sha224$2,sha384:sha384$2,sha512:sha512$2,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$8={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var r=Math.pow(2,30)-1;return precondition=function(t,n){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>r||n!==n)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var r;if(commonjsGlobal.process&&commonjsGlobal.process.browser)r="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var t=parseInt(process$1.version.split(".")[0].slice(1),10);r=t>=6?"utf-8":"binary"}else r="utf-8";return defaultEncoding_1=r,defaultEncoding_1}var makeHash,hasRequiredMakeHash;function requireMakeHash(){if(hasRequiredMakeHash)return makeHash;hasRequiredMakeHash=1;var r=4,t=new Buffer(r);t.fill(0);var n=8,i=16;function s(a){if(a.length%r!==0){var f=a.length+(r-a.length%r);a=Buffer.concat([a,t],f)}for(var l=new Array(a.length>>>2),d=0,o=0;d<a.length;d+=r,o++)l[o]=a.readInt32LE(d);return l}return makeHash=function(f,l){var d=l(s(f),f.length*n);f=new Buffer(i);for(var o=0;o<d.length;o++)f.writeInt32LE(d[o],o<<2,!0);return f},makeHash}var md5$2,hasRequiredMd5$1;function requireMd5$1(){if(hasRequiredMd5$1)return md5$2;hasRequiredMd5$1=1;var r=requireMakeHash();function t(o,u){o[u>>5]|=128<<u%32,o[(u+64>>>9<<4)+14]=u;for(var p=1732584193,c=-271733879,v=-1732584194,y=271733878,m=0;m<o.length;m+=16){var R=p,A=c,D=v,C=y;p=i(p,c,v,y,o[m+0],7,-680876936),y=i(y,p,c,v,o[m+1],12,-389564586),v=i(v,y,p,c,o[m+2],17,606105819),c=i(c,v,y,p,o[m+3],22,-1044525330),p=i(p,c,v,y,o[m+4],7,-176418897),y=i(y,p,c,v,o[m+5],12,1200080426),v=i(v,y,p,c,o[m+6],17,-1473231341),c=i(c,v,y,p,o[m+7],22,-45705983),p=i(p,c,v,y,o[m+8],7,1770035416),y=i(y,p,c,v,o[m+9],12,-1958414417),v=i(v,y,p,c,o[m+10],17,-42063),c=i(c,v,y,p,o[m+11],22,-1990404162),p=i(p,c,v,y,o[m+12],7,1804603682),y=i(y,p,c,v,o[m+13],12,-40341101),v=i(v,y,p,c,o[m+14],17,-1502002290),c=i(c,v,y,p,o[m+15],22,1236535329),p=s(p,c,v,y,o[m+1],5,-165796510),y=s(y,p,c,v,o[m+6],9,-1069501632),v=s(v,y,p,c,o[m+11],14,643717713),c=s(c,v,y,p,o[m+0],20,-373897302),p=s(p,c,v,y,o[m+5],5,-701558691),y=s(y,p,c,v,o[m+10],9,38016083),v=s(v,y,p,c,o[m+15],14,-660478335),c=s(c,v,y,p,o[m+4],20,-405537848),p=s(p,c,v,y,o[m+9],5,568446438),y=s(y,p,c,v,o[m+14],9,-1019803690),v=s(v,y,p,c,o[m+3],14,-187363961),c=s(c,v,y,p,o[m+8],20,1163531501),p=s(p,c,v,y,o[m+13],5,-1444681467),y=s(y,p,c,v,o[m+2],9,-51403784),v=s(v,y,p,c,o[m+7],14,1735328473),c=s(c,v,y,p,o[m+12],20,-1926607734),p=a(p,c,v,y,o[m+5],4,-378558),y=a(y,p,c,v,o[m+8],11,-2022574463),v=a(v,y,p,c,o[m+11],16,1839030562),c=a(c,v,y,p,o[m+14],23,-35309556),p=a(p,c,v,y,o[m+1],4,-1530992060),y=a(y,p,c,v,o[m+4],11,1272893353),v=a(v,y,p,c,o[m+7],16,-155497632),c=a(c,v,y,p,o[m+10],23,-1094730640),p=a(p,c,v,y,o[m+13],4,681279174),y=a(y,p,c,v,o[m+0],11,-358537222),v=a(v,y,p,c,o[m+3],16,-722521979),c=a(c,v,y,p,o[m+6],23,76029189),p=a(p,c,v,y,o[m+9],4,-640364487),y=a(y,p,c,v,o[m+12],11,-421815835),v=a(v,y,p,c,o[m+15],16,530742520),c=a(c,v,y,p,o[m+2],23,-995338651),p=f(p,c,v,y,o[m+0],6,-198630844),y=f(y,p,c,v,o[m+7],10,1126891415),v=f(v,y,p,c,o[m+14],15,-1416354905),c=f(c,v,y,p,o[m+5],21,-57434055),p=f(p,c,v,y,o[m+12],6,1700485571),y=f(y,p,c,v,o[m+3],10,-1894986606),v=f(v,y,p,c,o[m+10],15,-1051523),c=f(c,v,y,p,o[m+1],21,-2054922799),p=f(p,c,v,y,o[m+8],6,1873313359),y=f(y,p,c,v,o[m+15],10,-30611744),v=f(v,y,p,c,o[m+6],15,-1560198380),c=f(c,v,y,p,o[m+13],21,1309151649),p=f(p,c,v,y,o[m+4],6,-145523070),y=f(y,p,c,v,o[m+11],10,-1120210379),v=f(v,y,p,c,o[m+2],15,718787259),c=f(c,v,y,p,o[m+9],21,-343485551),p=l(p,R),c=l(c,A),v=l(v,D),y=l(y,C)}return[p,c,v,y]}function n(o,u,p,c,v,y){return l(d(l(l(u,o),l(c,y)),v),p)}function i(o,u,p,c,v,y,m){return n(u&p|~u&c,o,u,v,y,m)}function s(o,u,p,c,v,y,m){return n(u&c|p&~c,o,u,v,y,m)}function a(o,u,p,c,v,y,m){return n(u^p^c,o,u,v,y,m)}function f(o,u,p,c,v,y,m){return n(p^(u|~c),o,u,v,y,m)}function l(o,u){var p=(o&65535)+(u&65535),c=(o>>16)+(u>>16)+(p>>16);return c<<16|p&65535}function d(o,u){return o<<u|o>>>32-u}return md5$2=function(u){return r(u,t)},md5$2}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var r=requireStreamBrowserify().Transform,t=requireInherits_browser();function n(i){r.call(this),this._block=new Buffer(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return t(n,r),n.prototype._transform=function(i,s,a){var f=null;try{s!=="buffer"&&(i=new Buffer(i,s)),this.update(i)}catch(l){f=l}a(f)},n.prototype._flush=function(i){var s=null;try{this.push(this._digest())}catch(a){s=a}i(s)},n.prototype.update=function(i,s){if(!Buffer.isBuffer(i)&&typeof i!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");Buffer.isBuffer(i)||(i=new Buffer(i,s||"binary"));for(var a=this._block,f=0;this._blockOffset+i.length-f>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)a[l++]=i[f++];this._update(),this._blockOffset=0}for(;f<i.length;)a[this._blockOffset++]=i[f++];for(var d=0,o=i.length*8;o>0;++d)this._length[d]+=o,o=this._length[d]/4294967296|0,o>0&&(this._length[d]-=4294967296*o);return this},n.prototype._update=function(i){throw new Error("_update is not implemented")},n.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var s=this._digest();return i!==void 0&&(s=s.toString(i)),s},n.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=n,hashBase}var ripemd160$2,hasRequiredRipemd160$1;function requireRipemd160$1(){if(hasRequiredRipemd160$1)return ripemd160$2;hasRequiredRipemd160$1=1;var r=requireInherits_browser(),t=requireHashBase();function n(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(n,t),n.prototype._update=function(){for(var o=new Array(16),u=0;u<16;++u)o[u]=this._block.readInt32LE(u*4);var p=this._a,c=this._b,v=this._c,y=this._d,m=this._e;p=s(p,c,v,y,m,o[0],0,11),v=i(v,10),m=s(m,p,c,v,y,o[1],0,14),c=i(c,10),y=s(y,m,p,c,v,o[2],0,15),p=i(p,10),v=s(v,y,m,p,c,o[3],0,12),m=i(m,10),c=s(c,v,y,m,p,o[4],0,5),y=i(y,10),p=s(p,c,v,y,m,o[5],0,8),v=i(v,10),m=s(m,p,c,v,y,o[6],0,7),c=i(c,10),y=s(y,m,p,c,v,o[7],0,9),p=i(p,10),v=s(v,y,m,p,c,o[8],0,11),m=i(m,10),c=s(c,v,y,m,p,o[9],0,13),y=i(y,10),p=s(p,c,v,y,m,o[10],0,14),v=i(v,10),m=s(m,p,c,v,y,o[11],0,15),c=i(c,10),y=s(y,m,p,c,v,o[12],0,6),p=i(p,10),v=s(v,y,m,p,c,o[13],0,7),m=i(m,10),c=s(c,v,y,m,p,o[14],0,9),y=i(y,10),p=s(p,c,v,y,m,o[15],0,8),v=i(v,10),m=a(m,p,c,v,y,o[7],1518500249,7),c=i(c,10),y=a(y,m,p,c,v,o[4],1518500249,6),p=i(p,10),v=a(v,y,m,p,c,o[13],1518500249,8),m=i(m,10),c=a(c,v,y,m,p,o[1],1518500249,13),y=i(y,10),p=a(p,c,v,y,m,o[10],1518500249,11),v=i(v,10),m=a(m,p,c,v,y,o[6],1518500249,9),c=i(c,10),y=a(y,m,p,c,v,o[15],1518500249,7),p=i(p,10),v=a(v,y,m,p,c,o[3],1518500249,15),m=i(m,10),c=a(c,v,y,m,p,o[12],1518500249,7),y=i(y,10),p=a(p,c,v,y,m,o[0],1518500249,12),v=i(v,10),m=a(m,p,c,v,y,o[9],1518500249,15),c=i(c,10),y=a(y,m,p,c,v,o[5],1518500249,9),p=i(p,10),v=a(v,y,m,p,c,o[2],1518500249,11),m=i(m,10),c=a(c,v,y,m,p,o[14],1518500249,7),y=i(y,10),p=a(p,c,v,y,m,o[11],1518500249,13),v=i(v,10),m=a(m,p,c,v,y,o[8],1518500249,12),c=i(c,10),y=f(y,m,p,c,v,o[3],1859775393,11),p=i(p,10),v=f(v,y,m,p,c,o[10],1859775393,13),m=i(m,10),c=f(c,v,y,m,p,o[14],1859775393,6),y=i(y,10),p=f(p,c,v,y,m,o[4],1859775393,7),v=i(v,10),m=f(m,p,c,v,y,o[9],1859775393,14),c=i(c,10),y=f(y,m,p,c,v,o[15],1859775393,9),p=i(p,10),v=f(v,y,m,p,c,o[8],1859775393,13),m=i(m,10),c=f(c,v,y,m,p,o[1],1859775393,15),y=i(y,10),p=f(p,c,v,y,m,o[2],1859775393,14),v=i(v,10),m=f(m,p,c,v,y,o[7],1859775393,8),c=i(c,10),y=f(y,m,p,c,v,o[0],1859775393,13),p=i(p,10),v=f(v,y,m,p,c,o[6],1859775393,6),m=i(m,10),c=f(c,v,y,m,p,o[13],1859775393,5),y=i(y,10),p=f(p,c,v,y,m,o[11],1859775393,12),v=i(v,10),m=f(m,p,c,v,y,o[5],1859775393,7),c=i(c,10),y=f(y,m,p,c,v,o[12],1859775393,5),p=i(p,10),v=l(v,y,m,p,c,o[1],2400959708,11),m=i(m,10),c=l(c,v,y,m,p,o[9],2400959708,12),y=i(y,10),p=l(p,c,v,y,m,o[11],2400959708,14),v=i(v,10),m=l(m,p,c,v,y,o[10],2400959708,15),c=i(c,10),y=l(y,m,p,c,v,o[0],2400959708,14),p=i(p,10),v=l(v,y,m,p,c,o[8],2400959708,15),m=i(m,10),c=l(c,v,y,m,p,o[12],2400959708,9),y=i(y,10),p=l(p,c,v,y,m,o[4],2400959708,8),v=i(v,10),m=l(m,p,c,v,y,o[13],2400959708,9),c=i(c,10),y=l(y,m,p,c,v,o[3],2400959708,14),p=i(p,10),v=l(v,y,m,p,c,o[7],2400959708,5),m=i(m,10),c=l(c,v,y,m,p,o[15],2400959708,6),y=i(y,10),p=l(p,c,v,y,m,o[14],2400959708,8),v=i(v,10),m=l(m,p,c,v,y,o[5],2400959708,6),c=i(c,10),y=l(y,m,p,c,v,o[6],2400959708,5),p=i(p,10),v=l(v,y,m,p,c,o[2],2400959708,12),m=i(m,10),c=d(c,v,y,m,p,o[4],2840853838,9),y=i(y,10),p=d(p,c,v,y,m,o[0],2840853838,15),v=i(v,10),m=d(m,p,c,v,y,o[5],2840853838,5),c=i(c,10),y=d(y,m,p,c,v,o[9],2840853838,11),p=i(p,10),v=d(v,y,m,p,c,o[7],2840853838,6),m=i(m,10),c=d(c,v,y,m,p,o[12],2840853838,8),y=i(y,10),p=d(p,c,v,y,m,o[2],2840853838,13),v=i(v,10),m=d(m,p,c,v,y,o[10],2840853838,12),c=i(c,10),y=d(y,m,p,c,v,o[14],2840853838,5),p=i(p,10),v=d(v,y,m,p,c,o[1],2840853838,12),m=i(m,10),c=d(c,v,y,m,p,o[3],2840853838,13),y=i(y,10),p=d(p,c,v,y,m,o[8],2840853838,14),v=i(v,10),m=d(m,p,c,v,y,o[11],2840853838,11),c=i(c,10),y=d(y,m,p,c,v,o[6],2840853838,8),p=i(p,10),v=d(v,y,m,p,c,o[15],2840853838,5),m=i(m,10),c=d(c,v,y,m,p,o[13],2840853838,6),y=i(y,10);var R=this._a,A=this._b,D=this._c,C=this._d,q=this._e;R=d(R,A,D,C,q,o[5],1352829926,8),D=i(D,10),q=d(q,R,A,D,C,o[14],1352829926,9),A=i(A,10),C=d(C,q,R,A,D,o[7],1352829926,9),R=i(R,10),D=d(D,C,q,R,A,o[0],1352829926,11),q=i(q,10),A=d(A,D,C,q,R,o[9],1352829926,13),C=i(C,10),R=d(R,A,D,C,q,o[2],1352829926,15),D=i(D,10),q=d(q,R,A,D,C,o[11],1352829926,15),A=i(A,10),C=d(C,q,R,A,D,o[4],1352829926,5),R=i(R,10),D=d(D,C,q,R,A,o[13],1352829926,7),q=i(q,10),A=d(A,D,C,q,R,o[6],1352829926,7),C=i(C,10),R=d(R,A,D,C,q,o[15],1352829926,8),D=i(D,10),q=d(q,R,A,D,C,o[8],1352829926,11),A=i(A,10),C=d(C,q,R,A,D,o[1],1352829926,14),R=i(R,10),D=d(D,C,q,R,A,o[10],1352829926,14),q=i(q,10),A=d(A,D,C,q,R,o[3],1352829926,12),C=i(C,10),R=d(R,A,D,C,q,o[12],1352829926,6),D=i(D,10),q=l(q,R,A,D,C,o[6],1548603684,9),A=i(A,10),C=l(C,q,R,A,D,o[11],1548603684,13),R=i(R,10),D=l(D,C,q,R,A,o[3],1548603684,15),q=i(q,10),A=l(A,D,C,q,R,o[7],1548603684,7),C=i(C,10),R=l(R,A,D,C,q,o[0],1548603684,12),D=i(D,10),q=l(q,R,A,D,C,o[13],1548603684,8),A=i(A,10),C=l(C,q,R,A,D,o[5],1548603684,9),R=i(R,10),D=l(D,C,q,R,A,o[10],1548603684,11),q=i(q,10),A=l(A,D,C,q,R,o[14],1548603684,7),C=i(C,10),R=l(R,A,D,C,q,o[15],1548603684,7),D=i(D,10),q=l(q,R,A,D,C,o[8],1548603684,12),A=i(A,10),C=l(C,q,R,A,D,o[12],1548603684,7),R=i(R,10),D=l(D,C,q,R,A,o[4],1548603684,6),q=i(q,10),A=l(A,D,C,q,R,o[9],1548603684,15),C=i(C,10),R=l(R,A,D,C,q,o[1],1548603684,13),D=i(D,10),q=l(q,R,A,D,C,o[2],1548603684,11),A=i(A,10),C=f(C,q,R,A,D,o[15],1836072691,9),R=i(R,10),D=f(D,C,q,R,A,o[5],1836072691,7),q=i(q,10),A=f(A,D,C,q,R,o[1],1836072691,15),C=i(C,10),R=f(R,A,D,C,q,o[3],1836072691,11),D=i(D,10),q=f(q,R,A,D,C,o[7],1836072691,8),A=i(A,10),C=f(C,q,R,A,D,o[14],1836072691,6),R=i(R,10),D=f(D,C,q,R,A,o[6],1836072691,6),q=i(q,10),A=f(A,D,C,q,R,o[9],1836072691,14),C=i(C,10),R=f(R,A,D,C,q,o[11],1836072691,12),D=i(D,10),q=f(q,R,A,D,C,o[8],1836072691,13),A=i(A,10),C=f(C,q,R,A,D,o[12],1836072691,5),R=i(R,10),D=f(D,C,q,R,A,o[2],1836072691,14),q=i(q,10),A=f(A,D,C,q,R,o[10],1836072691,13),C=i(C,10),R=f(R,A,D,C,q,o[0],1836072691,13),D=i(D,10),q=f(q,R,A,D,C,o[4],1836072691,7),A=i(A,10),C=f(C,q,R,A,D,o[13],1836072691,5),R=i(R,10),D=a(D,C,q,R,A,o[8],2053994217,15),q=i(q,10),A=a(A,D,C,q,R,o[6],2053994217,5),C=i(C,10),R=a(R,A,D,C,q,o[4],2053994217,8),D=i(D,10),q=a(q,R,A,D,C,o[1],2053994217,11),A=i(A,10),C=a(C,q,R,A,D,o[3],2053994217,14),R=i(R,10),D=a(D,C,q,R,A,o[11],2053994217,14),q=i(q,10),A=a(A,D,C,q,R,o[15],2053994217,6),C=i(C,10),R=a(R,A,D,C,q,o[0],2053994217,14),D=i(D,10),q=a(q,R,A,D,C,o[5],2053994217,6),A=i(A,10),C=a(C,q,R,A,D,o[12],2053994217,9),R=i(R,10),D=a(D,C,q,R,A,o[2],2053994217,12),q=i(q,10),A=a(A,D,C,q,R,o[13],2053994217,9),C=i(C,10),R=a(R,A,D,C,q,o[9],2053994217,12),D=i(D,10),q=a(q,R,A,D,C,o[7],2053994217,5),A=i(A,10),C=a(C,q,R,A,D,o[10],2053994217,15),R=i(R,10),D=a(D,C,q,R,A,o[14],2053994217,8),q=i(q,10),A=s(A,D,C,q,R,o[12],0,8),C=i(C,10),R=s(R,A,D,C,q,o[15],0,5),D=i(D,10),q=s(q,R,A,D,C,o[10],0,12),A=i(A,10),C=s(C,q,R,A,D,o[4],0,9),R=i(R,10),D=s(D,C,q,R,A,o[1],0,12),q=i(q,10),A=s(A,D,C,q,R,o[5],0,5),C=i(C,10),R=s(R,A,D,C,q,o[8],0,14),D=i(D,10),q=s(q,R,A,D,C,o[7],0,6),A=i(A,10),C=s(C,q,R,A,D,o[6],0,8),R=i(R,10),D=s(D,C,q,R,A,o[2],0,13),q=i(q,10),A=s(A,D,C,q,R,o[13],0,6),C=i(C,10),R=s(R,A,D,C,q,o[14],0,5),D=i(D,10),q=s(q,R,A,D,C,o[0],0,15),A=i(A,10),C=s(C,q,R,A,D,o[3],0,13),R=i(R,10),D=s(D,C,q,R,A,o[9],0,11),q=i(q,10),A=s(A,D,C,q,R,o[11],0,11),C=i(C,10);var M=this._b+v+C|0;this._b=this._c+y+q|0,this._c=this._d+m+R|0,this._d=this._e+p+A|0,this._e=this._a+c+D|0,this._a=M},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var o=new Buffer(20);return o.writeInt32LE(this._a,0),o.writeInt32LE(this._b,4),o.writeInt32LE(this._c,8),o.writeInt32LE(this._d,12),o.writeInt32LE(this._e,16),o};function i(o,u){return o<<u|o>>>32-u}function s(o,u,p,c,v,y,m,R){return i(o+(u^p^c)+y+m|0,R)+v|0}function a(o,u,p,c,v,y,m,R){return i(o+(u&p|~u&c)+y+m|0,R)+v|0}function f(o,u,p,c,v,y,m,R){return i(o+((u|~p)^c)+y+m|0,R)+v|0}function l(o,u,p,c,v,y,m,R){return i(o+(u&c|p&~c)+y+m|0,R)+v|0}function d(o,u,p,c,v,y,m,R){return i(o+(u^(p|~c))+y+m|0,R)+v|0}return ripemd160$2=n,ripemd160$2}var toBuffer_1,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var r=requireSafeBuffer$1().Buffer,t=requireToBuffer$1(),n=typeof Uint8Array<"u",i=n&&typeof ArrayBuffer<"u",s=i&&ArrayBuffer.isView;return toBuffer_1=function(a,f,l){if(typeof a=="string"||r.isBuffer(a)||n&&a instanceof Uint8Array||s&&s(a))return t(a,f);throw new TypeError(l+" must be a string, a Buffer, a Uint8Array, or a DataView")},toBuffer_1}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var r=requireMd5$1(),t=requireRipemd160$1(),n=requireSha_js(),i=requireSafeBuffer$1().Buffer,s=requirePrecondition(),a=requireDefaultEncoding(),f=requireToBuffer(),l=i.alloc(128),d={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},o={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function u(y){return new t().update(y).digest()}function p(y){function m(R){return n(y).update(R).digest()}return y==="rmd160"||y==="ripemd160"?u:y==="md5"?r:m}function c(y,m,R){var A=p(y),D=y==="sha512"||y==="sha384"?128:64;m.length>D?m=A(m):m.length<D&&(m=i.concat([m,l],D));for(var C=i.allocUnsafe(D+d[y]),q=i.allocUnsafe(D+d[y]),M=0;M<D;M++)C[M]=m[M]^54,q[M]=m[M]^92;var F=i.allocUnsafe(D+R+4);C.copy(F,0,0,D),this.ipad1=F,this.ipad2=C,this.opad=q,this.alg=y,this.blocksize=D,this.hash=A,this.size=d[y]}c.prototype.run=function(y,m){y.copy(m,this.blocksize);var R=this.hash(m);return R.copy(this.opad,this.blocksize),this.hash(this.opad)};function v(y,m,R,A,D){s(R,A),y=f(y,a,"Password"),m=f(m,a,"Salt");var C=(D||"sha1").toLowerCase(),q=o[C]||C,M=d[q];if(typeof M!="number"||!M)throw new TypeError("Digest algorithm not supported: "+D);var F=new c(q,y,m.length),k=i.allocUnsafe(A),$=i.allocUnsafe(m.length+4);m.copy($,0,0,m.length);for(var L=0,G=M,B=Math.ceil(A/G),S=1;S<=B;S++){$.writeUInt32BE(S,m.length);for(var _=F.run($,F.ipad1),h=_,g=1;g<R;g++){h=F.run(h,F.ipad2);for(var I=0;I<G;I++)_[I]^=h[I]}_.copy(k,L),L+=G}return k}return syncBrowser=v,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var r=requireSafeBuffer$1().Buffer,t=requirePrecondition(),n=requireDefaultEncoding(),i=requireSyncBrowser(),s=requireToBuffer(),a,f=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[],o;function u(){return o||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?o=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?o=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?o=commonjsGlobal.setImmediate:o=commonjsGlobal.setTimeout,o)}function p(y,m,R,A,D){return f.importKey("raw",y,{name:"PBKDF2"},!1,["deriveBits"]).then(function(C){return f.deriveBits({name:"PBKDF2",salt:m,iterations:R,hash:{name:D}},C,A<<3)}).then(function(C){return r.from(C)})}function c(y){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(d[y]!==void 0)return d[y];a=a||r.alloc(8);var m=p(a,a,10,128,y).then(function(){return!0},function(){return!1});return d[y]=m,m}function v(y,m){y.then(function(R){u()(function(){m(null,R)})},function(R){u()(function(){m(R)})})}return async=function(y,m,R,A,D,C){typeof D=="function"&&(C=D,D=void 0),D=D||"sha1";var q=l[D.toLowerCase()];if(!q||typeof commonjsGlobal.Promise!="function"){u()(function(){var M;try{M=i(y,m,R,A,D)}catch(F){C(F);return}C(null,M)});return}if(t(R,A),y=s(y,n,"Password"),m=s(m,n,"Salt"),typeof C!="function")throw new Error("No callback provided to pbkdf2");v(c(q).then(function(M){return M?p(y,m,R,A,q):i(y,m,R,A,D)}),C)},async}var hasRequiredBrowser$8;function requireBrowser$8(){return hasRequiredBrowser$8||(hasRequiredBrowser$8=1,browser$8.pbkdf2=requireAsync(),browser$8.pbkdf2Sync=requireSyncBrowser()),browser$8}var browser$7={},des$1={},utils$3={},hasRequiredUtils$3;function requireUtils$3(){if(hasRequiredUtils$3)return utils$3;hasRequiredUtils$3=1,utils$3.readUInt32BE=function(s,a){var f=s[0+a]<<24|s[1+a]<<16|s[2+a]<<8|s[3+a];return f>>>0},utils$3.writeUInt32BE=function(s,a,f){s[0+f]=a>>>24,s[1+f]=a>>>16&255,s[2+f]=a>>>8&255,s[3+f]=a&255},utils$3.ip=function(s,a,f,l){for(var d=0,o=0,u=6;u>=0;u-=2){for(var p=0;p<=24;p+=8)d<<=1,d|=a>>>p+u&1;for(var p=0;p<=24;p+=8)d<<=1,d|=s>>>p+u&1}for(var u=6;u>=0;u-=2){for(var p=1;p<=25;p+=8)o<<=1,o|=a>>>p+u&1;for(var p=1;p<=25;p+=8)o<<=1,o|=s>>>p+u&1}f[l+0]=d>>>0,f[l+1]=o>>>0},utils$3.rip=function(s,a,f,l){for(var d=0,o=0,u=0;u<4;u++)for(var p=24;p>=0;p-=8)d<<=1,d|=a>>>p+u&1,d<<=1,d|=s>>>p+u&1;for(var u=4;u<8;u++)for(var p=24;p>=0;p-=8)o<<=1,o|=a>>>p+u&1,o<<=1,o|=s>>>p+u&1;f[l+0]=d>>>0,f[l+1]=o>>>0},utils$3.pc1=function(s,a,f,l){for(var d=0,o=0,u=7;u>=5;u--){for(var p=0;p<=24;p+=8)d<<=1,d|=a>>p+u&1;for(var p=0;p<=24;p+=8)d<<=1,d|=s>>p+u&1}for(var p=0;p<=24;p+=8)d<<=1,d|=a>>p+u&1;for(var u=1;u<=3;u++){for(var p=0;p<=24;p+=8)o<<=1,o|=a>>p+u&1;for(var p=0;p<=24;p+=8)o<<=1,o|=s>>p+u&1}for(var p=0;p<=24;p+=8)o<<=1,o|=s>>p+u&1;f[l+0]=d>>>0,f[l+1]=o>>>0},utils$3.r28shl=function(s,a){return s<<a&268435455|s>>>28-a};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$3.pc2=function(s,a,f,l){for(var d=0,o=0,u=r.length>>>1,p=0;p<u;p++)d<<=1,d|=s>>>r[p]&1;for(var p=u;p<r.length;p++)o<<=1,o|=a>>>r[p]&1;f[l+0]=d>>>0,f[l+1]=o>>>0},utils$3.expand=function(s,a,f){var l=0,d=0;l=(s&1)<<5|s>>>27;for(var o=23;o>=15;o-=4)l<<=6,l|=s>>>o&63;for(var o=11;o>=3;o-=4)d|=s>>>o&63,d<<=6;d|=(s&31)<<1|s>>>31,a[f+0]=l>>>0,a[f+1]=d>>>0};var t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$3.substitute=function(s,a){for(var f=0,l=0;l<4;l++){var d=s>>>18-l*6&63,o=t[l*64+d];f<<=4,f|=o}for(var l=0;l<4;l++){var d=a>>>18-l*6&63,o=t[256+l*64+d];f<<=4,f|=o}return f>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$3.permute=function(s){for(var a=0,f=0;f<n.length;f++)a<<=1,a|=s>>>n[f]&1;return a>>>0},utils$3.padSplit=function(s,a,f){for(var l=s.toString(2);l.length<a;)l="0"+l;for(var d=[],o=0;o<a;o+=f)d.push(l.slice(o,o+f));return d.join(" ")},utils$3}var minimalisticAssert,hasRequiredMinimalisticAssert;function requireMinimalisticAssert(){if(hasRequiredMinimalisticAssert)return minimalisticAssert;hasRequiredMinimalisticAssert=1,minimalisticAssert=r;function r(t,n){if(!t)throw new Error(n||"Assertion failed")}return r.equal=function(n,i,s){if(n!=i)throw new Error(s||"Assertion failed: "+n+" != "+i)},minimalisticAssert}var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var r=requireMinimalisticAssert();function t(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=n.padding!==!1}return cipher=t,t.prototype._init=function(){},t.prototype.update=function(i){return i.length===0?[]:this.type==="decrypt"?this._updateDecrypt(i):this._updateEncrypt(i)},t.prototype._buffer=function(i,s){for(var a=Math.min(this.buffer.length-this.bufferOff,i.length-s),f=0;f<a;f++)this.buffer[this.bufferOff+f]=i[s+f];return this.bufferOff+=a,a},t.prototype._flushBuffer=function(i,s){return this._update(this.buffer,0,i,s),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(i){var s=0,a=0,f=(this.bufferOff+i.length)/this.blockSize|0,l=new Array(f*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(i,s),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(l,a)));for(var d=i.length-(i.length-s)%this.blockSize;s<d;s+=this.blockSize)this._update(i,s,l,a),a+=this.blockSize;for(;s<i.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=i[s];return l},t.prototype._updateDecrypt=function(i){for(var s=0,a=0,f=Math.ceil((this.bufferOff+i.length)/this.blockSize)-1,l=new Array(f*this.blockSize);f>0;f--)s+=this._buffer(i,s),a+=this._flushBuffer(l,a);return s+=this._buffer(i,s),l},t.prototype.final=function(i){var s;i&&(s=this.update(i));var a;return this.type==="encrypt"?a=this._finalEncrypt():a=this._finalDecrypt(),s?s.concat(a):a},t.prototype._pad=function(i,s){if(s===0)return!1;for(;s<i.length;)i[s++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var i=new Array(this.blockSize);return this._update(this.buffer,0,i,0),i},t.prototype._unpad=function(i){return i},t.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var i=new Array(this.blockSize);return this._flushBuffer(i,0),this._unpad(i)},cipher}var des,hasRequiredDes$1;function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var r=requireMinimalisticAssert(),t=requireInherits_browser(),n=requireUtils$3(),i=requireCipher();function s(){this.tmp=new Array(2),this.keys=null}function a(l){i.call(this,l);var d=new s;this._desState=d,this.deriveKeys(d,l.key)}t(a,i),des=a,a.create=function(d){return new a(d)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return a.prototype.deriveKeys=function(d,o){d.keys=new Array(32),r.equal(o.length,this.blockSize,"Invalid key length");var u=n.readUInt32BE(o,0),p=n.readUInt32BE(o,4);n.pc1(u,p,d.tmp,0),u=d.tmp[0],p=d.tmp[1];for(var c=0;c<d.keys.length;c+=2){var v=f[c>>>1];u=n.r28shl(u,v),p=n.r28shl(p,v),n.pc2(u,p,d.keys,c)}},a.prototype._update=function(d,o,u,p){var c=this._desState,v=n.readUInt32BE(d,o),y=n.readUInt32BE(d,o+4);n.ip(v,y,c.tmp,0),v=c.tmp[0],y=c.tmp[1],this.type==="encrypt"?this._encrypt(c,v,y,c.tmp,0):this._decrypt(c,v,y,c.tmp,0),v=c.tmp[0],y=c.tmp[1],n.writeUInt32BE(u,v,p),n.writeUInt32BE(u,y,p+4)},a.prototype._pad=function(d,o){if(this.padding===!1)return!1;for(var u=d.length-o,p=o;p<d.length;p++)d[p]=u;return!0},a.prototype._unpad=function(d){if(this.padding===!1)return d;for(var o=d[d.length-1],u=d.length-o;u<d.length;u++)r.equal(d[u],o);return d.slice(0,d.length-o)},a.prototype._encrypt=function(d,o,u,p,c){for(var v=o,y=u,m=0;m<d.keys.length;m+=2){var R=d.keys[m],A=d.keys[m+1];n.expand(y,d.tmp,0),R^=d.tmp[0],A^=d.tmp[1];var D=n.substitute(R,A),C=n.permute(D),q=y;y=(v^C)>>>0,v=q}n.rip(y,v,p,c)},a.prototype._decrypt=function(d,o,u,p,c){for(var v=u,y=o,m=d.keys.length-2;m>=0;m-=2){var R=d.keys[m],A=d.keys[m+1];n.expand(v,d.tmp,0),R^=d.tmp[0],A^=d.tmp[1];var D=n.substitute(R,A),C=n.permute(D),q=v;v=(y^C)>>>0,y=q}n.rip(v,y,p,c)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var r=requireMinimalisticAssert(),t=requireInherits_browser(),n={};function i(a){r.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var f=0;f<this.iv.length;f++)this.iv[f]=a[f]}function s(a){function f(u){a.call(this,u),this._cbcInit()}t(f,a);for(var l=Object.keys(n),d=0;d<l.length;d++){var o=l[d];f.prototype[o]=n[o]}return f.create=function(p){return new f(p)},f}return cbc$1.instantiate=s,n._cbcInit=function(){var f=new i(this.options.iv);this._cbcState=f},n._update=function(f,l,d,o){var u=this._cbcState,p=this.constructor.super_.prototype,c=u.iv;if(this.type==="encrypt"){for(var v=0;v<this.blockSize;v++)c[v]^=f[l+v];p._update.call(this,c,0,d,o);for(var v=0;v<this.blockSize;v++)c[v]=d[o+v]}else{p._update.call(this,f,l,d,o);for(var v=0;v<this.blockSize;v++)d[o+v]^=c[v];for(var v=0;v<this.blockSize;v++)c[v]=f[l+v]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var r=requireMinimalisticAssert(),t=requireInherits_browser(),n=requireCipher(),i=requireDes$1();function s(f,l){r.equal(l.length,24,"Invalid key length");var d=l.slice(0,8),o=l.slice(8,16),u=l.slice(16,24);f==="encrypt"?this.ciphers=[i.create({type:"encrypt",key:d}),i.create({type:"decrypt",key:o}),i.create({type:"encrypt",key:u})]:this.ciphers=[i.create({type:"decrypt",key:u}),i.create({type:"encrypt",key:o}),i.create({type:"decrypt",key:d})]}function a(f){n.call(this,f);var l=new s(this.type,this.options.key);this._edeState=l}return t(a,n),ede=a,a.create=function(l){return new a(l)},a.prototype._update=function(l,d,o,u){var p=this._edeState;p.ciphers[0]._update(l,d,o,u),p.ciphers[1]._update(o,u,o,u),p.ciphers[2]._update(o,u,o,u)},a.prototype._pad=i.prototype._pad,a.prototype._unpad=i.prototype._unpad,ede}var hasRequiredDes;function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$3(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}var browserifyDes,hasRequiredBrowserifyDes;function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var r=requireCipherBase(),t=requireDes(),n=requireInherits_browser(),i=requireSafeBuffer$1().Buffer,s={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],browserifyDes=a,n(a,r);function a(f){r.call(this);var l=f.mode.toLowerCase(),d=s[l],o;f.decrypt?o="decrypt":o="encrypt";var u=f.key;i.isBuffer(u)||(u=i.from(u)),(l==="des-ede"||l==="des-ede-cbc")&&(u=i.concat([u,u.slice(0,8)]));var p=f.iv;i.isBuffer(p)||(p=i.from(p)),this._des=d.create({key:u,iv:p,type:o})}return a.prototype._update=function(f){return i.from(this._des.update(f))},a.prototype._final=function(){return i.from(this._des.final())},browserifyDes}var browser$6={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(r,t){return r._cipher.encryptBlock(t)},ecb.decrypt=function(r,t){return r._cipher.decryptBlock(t)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(t,n){for(var i=Math.min(t.length,n.length),s=new Buffer(i),a=0;a<i;++a)s[a]=t[a]^n[a];return s}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var r=requireBufferXor();return cbc.encrypt=function(t,n){var i=r(n,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},cbc.decrypt=function(t,n){var i=t._prev;t._prev=n;var s=t._cipher.decryptBlock(n);return r(s,i)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var r=requireSafeBuffer$1().Buffer,t=requireBufferXor();function n(i,s,a){var f=s.length,l=t(s,i._cache);return i._cache=i._cache.slice(f),i._prev=r.concat([i._prev,a?s:l]),l}return cfb.encrypt=function(i,s,a){for(var f=r.allocUnsafe(0),l;s.length;)if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=r.allocUnsafe(0)),i._cache.length<=s.length)l=i._cache.length,f=r.concat([f,n(i,s.slice(0,l),a)]),s=s.slice(l);else{f=r.concat([f,n(i,s,a)]);break}return f},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var r=requireSafeBuffer$1().Buffer;function t(n,i,s){var a=n._cipher.encryptBlock(n._prev),f=a[0]^i;return n._prev=r.concat([n._prev.slice(1),r.from([s?i:f])]),f}return cfb8.encrypt=function(n,i,s){for(var a=i.length,f=r.allocUnsafe(a),l=-1;++l<a;)f[l]=t(n,i[l],s);return f},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var r=requireSafeBuffer$1().Buffer;function t(i,s,a){for(var f,l=-1,d=8,o=0,u,p;++l<d;)f=i._cipher.encryptBlock(i._prev),u=s&1<<7-l?128:0,p=f[0]^u,o+=(p&128)>>l%8,i._prev=n(i._prev,a?u:p);return o}function n(i,s){var a=i.length,f=-1,l=r.allocUnsafe(i.length);for(i=r.concat([i,r.from([s])]);++f<a;)l[f]=i[f]<<1|i[f+1]>>7;return l}return cfb1.encrypt=function(i,s,a){for(var f=s.length,l=r.allocUnsafe(f),d=-1;++d<f;)l[d]=t(i,s[d],a);return l},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var r=requireBufferXor();function t(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}return ofb.encrypt=function(n,i){for(;n._cache.length<i.length;)n._cache=Buffer.concat([n._cache,t(n)]);var s=n._cache.slice(0,i.length);return n._cache=n._cache.slice(i.length),r(i,s)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function r(t){for(var n=t.length,i;n--;)if(i=t.readUInt8(n),i===255)t.writeUInt8(0,n);else{i++,t.writeUInt8(i,n);break}}return incr32_1=r,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var r=requireBufferXor(),t=requireSafeBuffer$1().Buffer,n=requireIncr32();function i(a){var f=a._cipher.encryptBlockRaw(a._prev);return n(a._prev),f}var s=16;return ctr.encrypt=function(a,f){var l=Math.ceil(f.length/s),d=a._cache.length;a._cache=t.concat([a._cache,t.allocUnsafe(l*s)]);for(var o=0;o<l;o++){var u=i(a),p=d+o*s;a._cache.writeUInt32BE(u[0],p+0),a._cache.writeUInt32BE(u[1],p+4),a._cache.writeUInt32BE(u[2],p+8),a._cache.writeUInt32BE(u[3],p+12)}var c=a._cache.slice(0,f.length);return a._cache=a._cache.slice(f.length),r(f,c)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"};var require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var r={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},t=require$$2;for(var n in t)t[n].module=r[t[n].mode];return modes_1=t,modes_1}var aes$2={},hasRequiredAes$1;function requireAes$1(){if(hasRequiredAes$1)return aes$2;hasRequiredAes$1=1;var r=requireSafeBuffer$1().Buffer;function t(l){r.isBuffer(l)||(l=r.from(l));for(var d=l.length/4|0,o=new Array(d),u=0;u<d;u++)o[u]=l.readUInt32BE(u*4);return o}function n(l){for(var d=0;d<l.length;l++)l[d]=0}function i(l,d,o,u,p){for(var c=o[0],v=o[1],y=o[2],m=o[3],R=l[0]^d[0],A=l[1]^d[1],D=l[2]^d[2],C=l[3]^d[3],q,M,F,k,$=4,L=1;L<p;L++)q=c[R>>>24]^v[A>>>16&255]^y[D>>>8&255]^m[C&255]^d[$++],M=c[A>>>24]^v[D>>>16&255]^y[C>>>8&255]^m[R&255]^d[$++],F=c[D>>>24]^v[C>>>16&255]^y[R>>>8&255]^m[A&255]^d[$++],k=c[C>>>24]^v[R>>>16&255]^y[A>>>8&255]^m[D&255]^d[$++],R=q,A=M,D=F,C=k;return q=(u[R>>>24]<<24|u[A>>>16&255]<<16|u[D>>>8&255]<<8|u[C&255])^d[$++],M=(u[A>>>24]<<24|u[D>>>16&255]<<16|u[C>>>8&255]<<8|u[R&255])^d[$++],F=(u[D>>>24]<<24|u[C>>>16&255]<<16|u[R>>>8&255]<<8|u[A&255])^d[$++],k=(u[C>>>24]<<24|u[R>>>16&255]<<16|u[A>>>8&255]<<8|u[D&255])^d[$++],q=q>>>0,M=M>>>0,F=F>>>0,k=k>>>0,[q,M,F,k]}var s=[0,1,2,4,8,16,32,64,128,27,54],a=function(){for(var l=new Array(256),d=0;d<256;d++)d<128?l[d]=d<<1:l[d]=d<<1^283;for(var o=[],u=[],p=[[],[],[],[]],c=[[],[],[],[]],v=0,y=0,m=0;m<256;++m){var R=y^y<<1^y<<2^y<<3^y<<4;R=R>>>8^R&255^99,o[v]=R,u[R]=v;var A=l[v],D=l[A],C=l[D],q=l[R]*257^R*16843008;p[0][v]=q<<24|q>>>8,p[1][v]=q<<16|q>>>16,p[2][v]=q<<8|q>>>24,p[3][v]=q,q=C*16843009^D*65537^A*257^v*16843008,c[0][R]=q<<24|q>>>8,c[1][R]=q<<16|q>>>16,c[2][R]=q<<8|q>>>24,c[3][R]=q,v===0?v=y=1:(v=A^l[l[l[C^A]]],y^=l[l[y]])}return{SBOX:o,INV_SBOX:u,SUB_MIX:p,INV_SUB_MIX:c}}();function f(l){this._key=t(l),this._reset()}return f.blockSize=16,f.keySize=256/8,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var l=this._key,d=l.length,o=d+6,u=(o+1)*4,p=[],c=0;c<d;c++)p[c]=l[c];for(c=d;c<u;c++){var v=p[c-1];c%d===0?(v=v<<8|v>>>24,v=a.SBOX[v>>>24]<<24|a.SBOX[v>>>16&255]<<16|a.SBOX[v>>>8&255]<<8|a.SBOX[v&255],v^=s[c/d|0]<<24):d>6&&c%d===4&&(v=a.SBOX[v>>>24]<<24|a.SBOX[v>>>16&255]<<16|a.SBOX[v>>>8&255]<<8|a.SBOX[v&255]),p[c]=p[c-d]^v}for(var y=[],m=0;m<u;m++){var R=u-m,A=p[R-(m%4?0:4)];m<4||R<=4?y[m]=A:y[m]=a.INV_SUB_MIX[0][a.SBOX[A>>>24]]^a.INV_SUB_MIX[1][a.SBOX[A>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[A>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[A&255]]}this._nRounds=o,this._keySchedule=p,this._invKeySchedule=y},f.prototype.encryptBlockRaw=function(l){return l=t(l),i(l,this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},f.prototype.encryptBlock=function(l){var d=this.encryptBlockRaw(l),o=r.allocUnsafe(16);return o.writeUInt32BE(d[0],0),o.writeUInt32BE(d[1],4),o.writeUInt32BE(d[2],8),o.writeUInt32BE(d[3],12),o},f.prototype.decryptBlock=function(l){l=t(l);var d=l[1];l[1]=l[3],l[3]=d;var o=i(l,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),u=r.allocUnsafe(16);return u.writeUInt32BE(o[0],0),u.writeUInt32BE(o[3],4),u.writeUInt32BE(o[2],8),u.writeUInt32BE(o[1],12),u},f.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},aes$2.AES=f,aes$2}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var r=requireSafeBuffer$1().Buffer,t=r.alloc(16,0);function n(a){return[a.readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)]}function i(a){var f=r.allocUnsafe(16);return f.writeUInt32BE(a[0]>>>0,0),f.writeUInt32BE(a[1]>>>0,4),f.writeUInt32BE(a[2]>>>0,8),f.writeUInt32BE(a[3]>>>0,12),f}function s(a){this.h=a,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}return s.prototype.ghash=function(a){for(var f=-1;++f<a.length;)this.state[f]^=a[f];this._multiply()},s.prototype._multiply=function(){for(var a=n(this.h),f=[0,0,0,0],l,d,o,u=-1;++u<128;){for(d=(this.state[~~(u/8)]&1<<7-u%8)!==0,d&&(f[0]^=a[0],f[1]^=a[1],f[2]^=a[2],f[3]^=a[3]),o=(a[3]&1)!==0,l=3;l>0;l--)a[l]=a[l]>>>1|(a[l-1]&1)<<31;a[0]=a[0]>>>1,o&&(a[0]=a[0]^225<<24)}this.state=i(f)},s.prototype.update=function(a){this.cache=r.concat([this.cache,a]);for(var f;this.cache.length>=16;)f=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(f)},s.prototype.final=function(a,f){return this.cache.length&&this.ghash(r.concat([this.cache,t],16)),this.ghash(i([0,a,0,f])),this.state},ghash=s,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var r=requireAes$1(),t=requireSafeBuffer$1().Buffer,n=requireCipherBase(),i=requireInherits_browser(),s=requireGhash(),a=requireBufferXor(),f=requireIncr32();function l(u,p){var c=0;u.length!==p.length&&c++;for(var v=Math.min(u.length,p.length),y=0;y<v;++y)c+=u[y]^p[y];return c}function d(u,p,c){if(p.length===12)return u._finID=t.concat([p,t.from([0,0,0,1])]),t.concat([p,t.from([0,0,0,2])]);var v=new s(c),y=p.length,m=y%16;v.update(p),m&&(m=16-m,v.update(t.alloc(m,0))),v.update(t.alloc(8,0));var R=y*8,A=t.alloc(8);A.writeUIntBE(R,0,8),v.update(A),u._finID=v.state;var D=t.from(u._finID);return f(D),D}function o(u,p,c,v){n.call(this);var y=t.alloc(4,0);this._cipher=new r.AES(p);var m=this._cipher.encryptBlock(y);this._ghash=new s(m),c=d(this,c,m),this._prev=t.from(c),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=v,this._alen=0,this._len=0,this._mode=u,this._authTag=null,this._called=!1}return i(o,n),o.prototype._update=function(u){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=t.alloc(p,0),this._ghash.update(p))}this._called=!0;var c=this._mode.encrypt(this,u);return this._decrypt?this._ghash.update(u):this._ghash.update(c),this._len+=u.length,c},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var u=a(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(u,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=u,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(p){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=p},o.prototype.setAAD=function(p){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(p),this._alen+=p.length},authCipher=o,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var r=requireAes$1(),t=requireSafeBuffer$1().Buffer,n=requireCipherBase(),i=requireInherits_browser();function s(a,f,l,d){n.call(this),this._cipher=new r.AES(f),this._prev=t.from(l),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=d,this._mode=a}return i(s,n),s.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},streamCipher=s,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var r=requireSafeBuffer$1().Buffer,t=requireMd5_js();function n(i,s,a,f){if(r.isBuffer(i)||(i=r.from(i,"binary")),s&&(r.isBuffer(s)||(s=r.from(s,"binary")),s.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var l=a/8,d=r.alloc(l),o=r.alloc(f||0),u=r.alloc(0);l>0||f>0;){var p=new t;p.update(u),p.update(i),s&&p.update(s),u=p.digest();var c=0;if(l>0){var v=d.length-l;c=Math.min(l,u.length),u.copy(d,v,0,c),l-=c}if(c<u.length&&f>0){var y=o.length-f,m=Math.min(f,u.length-c);u.copy(o,y,c,c+m),f-=m}}return u.fill(0),{key:d,iv:o}}return evp_bytestokey=n,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var r=requireModes$1(),t=requireAuthCipher(),n=requireSafeBuffer$1().Buffer,i=requireStreamCipher(),s=requireCipherBase(),a=requireAes$1(),f=requireEvp_bytestokey(),l=requireInherits_browser();function d(v,y,m){s.call(this),this._cache=new u,this._cipher=new a.AES(y),this._prev=n.from(m),this._mode=v,this._autopadding=!0}l(d,s),d.prototype._update=function(v){this._cache.add(v);for(var y,m,R=[];y=this._cache.get();)m=this._mode.encrypt(this,y),R.push(m);return n.concat(R)};var o=n.alloc(16,16);d.prototype._final=function(){var v=this._cache.flush();if(this._autopadding)return v=this._mode.encrypt(this,v),this._cipher.scrub(),v;if(!v.equals(o))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(v){return this._autopadding=!!v,this};function u(){this.cache=n.allocUnsafe(0)}u.prototype.add=function(v){this.cache=n.concat([this.cache,v])},u.prototype.get=function(){if(this.cache.length>15){var v=this.cache.slice(0,16);return this.cache=this.cache.slice(16),v}return null},u.prototype.flush=function(){for(var v=16-this.cache.length,y=n.allocUnsafe(v),m=-1;++m<v;)y.writeUInt8(v,m);return n.concat([this.cache,y])};function p(v,y,m){var R=r[v.toLowerCase()];if(!R)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=n.from(y)),y.length!==R.key/8)throw new TypeError("invalid key length "+y.length);if(typeof m=="string"&&(m=n.from(m)),R.mode!=="GCM"&&m.length!==R.iv)throw new TypeError("invalid iv length "+m.length);return R.type==="stream"?new i(R.module,y,m):R.type==="auth"?new t(R.module,y,m):new d(R.module,y,m)}function c(v,y){var m=r[v.toLowerCase()];if(!m)throw new TypeError("invalid suite type");var R=f(y,!1,m.key,m.iv);return p(v,R.key,R.iv)}return encrypter.createCipheriv=p,encrypter.createCipher=c,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var r=requireAuthCipher(),t=requireSafeBuffer$1().Buffer,n=requireModes$1(),i=requireStreamCipher(),s=requireCipherBase(),a=requireAes$1(),f=requireEvp_bytestokey(),l=requireInherits_browser();function d(v,y,m){s.call(this),this._cache=new o,this._last=void 0,this._cipher=new a.AES(y),this._prev=t.from(m),this._mode=v,this._autopadding=!0}l(d,s),d.prototype._update=function(v){this._cache.add(v);for(var y,m,R=[];y=this._cache.get(this._autopadding);)m=this._mode.decrypt(this,y),R.push(m);return t.concat(R)},d.prototype._final=function(){var v=this._cache.flush();if(this._autopadding)return u(this._mode.decrypt(this,v));if(v)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(v){return this._autopadding=!!v,this};function o(){this.cache=t.allocUnsafe(0)}o.prototype.add=function(v){this.cache=t.concat([this.cache,v])},o.prototype.get=function(v){var y;if(v){if(this.cache.length>16)return y=this.cache.slice(0,16),this.cache=this.cache.slice(16),y}else if(this.cache.length>=16)return y=this.cache.slice(0,16),this.cache=this.cache.slice(16),y;return null},o.prototype.flush=function(){if(this.cache.length)return this.cache};function u(v){var y=v[15];if(y<1||y>16)throw new Error("unable to decrypt data");for(var m=-1;++m<y;)if(v[m+(16-y)]!==y)throw new Error("unable to decrypt data");if(y!==16)return v.slice(0,16-y)}function p(v,y,m){var R=n[v.toLowerCase()];if(!R)throw new TypeError("invalid suite type");if(typeof m=="string"&&(m=t.from(m)),R.mode!=="GCM"&&m.length!==R.iv)throw new TypeError("invalid iv length "+m.length);if(typeof y=="string"&&(y=t.from(y)),y.length!==R.key/8)throw new TypeError("invalid key length "+y.length);return R.type==="stream"?new i(R.module,y,m,!0):R.type==="auth"?new r(R.module,y,m,!0):new d(R.module,y,m)}function c(v,y){var m=n[v.toLowerCase()];if(!m)throw new TypeError("invalid suite type");var R=f(y,!1,m.key,m.iv);return p(v,R.key,R.iv)}return decrypter.createDecipher=c,decrypter.createDecipheriv=p,decrypter}var hasRequiredBrowser$7;function requireBrowser$7(){if(hasRequiredBrowser$7)return browser$6;hasRequiredBrowser$7=1;var r=requireEncrypter(),t=requireDecrypter(),n=require$$2;function i(){return Object.keys(n)}return browser$6.createCipher=browser$6.Cipher=r.createCipher,browser$6.createCipheriv=browser$6.Cipheriv=r.createCipheriv,browser$6.createDecipher=browser$6.Decipher=t.createDecipher,browser$6.createDecipheriv=browser$6.Decipheriv=t.createDecipheriv,browser$6.listCiphers=browser$6.getCiphers=i,browser$6}var modes={},hasRequiredModes;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,function(r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}}(modes)),modes}var hasRequiredBrowser$6;function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$7;hasRequiredBrowser$6=1;var r=requireBrowserifyDes(),t=requireBrowser$7(),n=requireModes$1(),i=requireModes(),s=requireEvp_bytestokey();function a(u,p){u=u.toLowerCase();var c,v;if(n[u])c=n[u].key,v=n[u].iv;else if(i[u])c=i[u].key*8,v=i[u].iv;else throw new TypeError("invalid suite type");var y=s(p,!1,c,v);return l(u,y.key,y.iv)}function f(u,p){u=u.toLowerCase();var c,v;if(n[u])c=n[u].key,v=n[u].iv;else if(i[u])c=i[u].key*8,v=i[u].iv;else throw new TypeError("invalid suite type");var y=s(p,!1,c,v);return d(u,y.key,y.iv)}function l(u,p,c){if(u=u.toLowerCase(),n[u])return t.createCipheriv(u,p,c);if(i[u])return new r({key:p,iv:c,mode:u});throw new TypeError("invalid suite type")}function d(u,p,c){if(u=u.toLowerCase(),n[u])return t.createDecipheriv(u,p,c);if(i[u])return new r({key:p,iv:c,mode:u,decrypt:!0});throw new TypeError("invalid suite type")}function o(){return Object.keys(i).concat(t.getCiphers())}return browser$7.createCipher=browser$7.Cipher=a,browser$7.createCipheriv=browser$7.Cipheriv=l,browser$7.createDecipher=browser$7.Decipher=f,browser$7.createDecipheriv=browser$7.Decipheriv=d,browser$7.listCiphers=browser$7.getCiphers=o,browser$7}var browser$5={},bn$5={exports:{}},bn$4=bn$5.exports,hasRequiredBn$2;function requireBn$2(){return hasRequiredBn$2||(hasRequiredBn$2=1,function(r){(function(t,n){function i(B,S){if(!B)throw new Error(S||"Assertion failed")}function s(B,S){B.super_=S;var _=function(){};_.prototype=S.prototype,B.prototype=new _,B.prototype.constructor=B}function a(B,S,_){if(a.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((S==="le"||S==="be")&&(_=S,S=10),this._init(B||0,S||10,_||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=requireDist().Buffer}catch{}a.isBN=function(S){return S instanceof a?!0:S!==null&&typeof S=="object"&&S.constructor.wordSize===a.wordSize&&Array.isArray(S.words)},a.max=function(S,_){return S.cmp(_)>0?S:_},a.min=function(S,_){return S.cmp(_)<0?S:_},a.prototype._init=function(S,_,h){if(typeof S=="number")return this._initNumber(S,_,h);if(typeof S=="object")return this._initArray(S,_,h);_==="hex"&&(_=16),i(_===(_|0)&&_>=2&&_<=36),S=S.toString().replace(/\s+/g,"");var g=0;S[0]==="-"&&(g++,this.negative=1),g<S.length&&(_===16?this._parseHex(S,g,h):(this._parseBase(S,_,g),h==="le"&&this._initArray(this.toArray(),_,h)))},a.prototype._initNumber=function(S,_,h){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[S&67108863],this.length=1):S<4503599627370496?(this.words=[S&67108863,S/67108864&67108863],this.length=2):(i(S<9007199254740992),this.words=[S&67108863,S/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),_,h)},a.prototype._initArray=function(S,_,h){if(i(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var I,w,E=0;if(h==="be")for(g=S.length-1,I=0;g>=0;g-=3)w=S[g]|S[g-1]<<8|S[g-2]<<16,this.words[I]|=w<<E&67108863,this.words[I+1]=w>>>26-E&67108863,E+=24,E>=26&&(E-=26,I++);else if(h==="le")for(g=0,I=0;g<S.length;g+=3)w=S[g]|S[g+1]<<8|S[g+2]<<16,this.words[I]|=w<<E&67108863,this.words[I+1]=w>>>26-E&67108863,E+=24,E>=26&&(E-=26,I++);return this.strip()};function l(B,S){var _=B.charCodeAt(S);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function d(B,S,_){var h=l(B,_);return _-1>=S&&(h|=l(B,_-1)<<4),h}a.prototype._parseHex=function(S,_,h){this.length=Math.ceil((S.length-_)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var I=0,w=0,E;if(h==="be")for(g=S.length-1;g>=_;g-=2)E=d(S,_,g)<<I,this.words[w]|=E&67108863,I>=18?(I-=18,w+=1,this.words[w]|=E>>>26):I+=8;else{var N=S.length-_;for(g=N%2===0?_+1:_;g<S.length;g+=2)E=d(S,_,g)<<I,this.words[w]|=E&67108863,I>=18?(I-=18,w+=1,this.words[w]|=E>>>26):I+=8}this.strip()};function o(B,S,_,h){for(var g=0,I=Math.min(B.length,_),w=S;w<I;w++){var E=B.charCodeAt(w)-48;g*=h,E>=49?g+=E-49+10:E>=17?g+=E-17+10:g+=E}return g}a.prototype._parseBase=function(S,_,h){this.words=[0],this.length=1;for(var g=0,I=1;I<=67108863;I*=_)g++;g--,I=I/_|0;for(var w=S.length-h,E=w%g,N=Math.min(w,w-E)+h,x=0,T=h;T<N;T+=g)x=o(S,T,T+g,_),this.imuln(I),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x);if(E!==0){var b=1;for(x=o(S,T,S.length,_),T=0;T<E;T++)b*=_;this.imuln(b),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x)}this.strip()},a.prototype.copy=function(S){S.words=new Array(this.length);for(var _=0;_<this.length;_++)S.words[_]=this.words[_];S.length=this.length,S.negative=this.negative,S.red=this.red},a.prototype.clone=function(){var S=new a(null);return this.copy(S),S},a.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(S,_){S=S||10,_=_|0||1;var h;if(S===16||S==="hex"){h="";for(var g=0,I=0,w=0;w<this.length;w++){var E=this.words[w],N=((E<<g|I)&16777215).toString(16);I=E>>>24-g&16777215,g+=2,g>=26&&(g-=26,w--),I!==0||w!==this.length-1?h=u[6-N.length]+N+h:h=N+h}for(I!==0&&(h=I.toString(16)+h);h.length%_!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(S===(S|0)&&S>=2&&S<=36){var x=p[S],T=c[S];h="";var b=this.clone();for(b.negative=0;!b.isZero();){var O=b.modn(T).toString(S);b=b.idivn(T),b.isZero()?h=O+h:h=u[x-O.length]+O+h}for(this.isZero()&&(h="0"+h);h.length%_!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=this.words[1]*67108864:this.length===3&&this.words[2]===1?S+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(S,_){return i(typeof f<"u"),this.toArrayLike(f,S,_)},a.prototype.toArray=function(S,_){return this.toArrayLike(Array,S,_)},a.prototype.toArrayLike=function(S,_,h){var g=this.byteLength(),I=h||Math.max(1,g);i(g<=I,"byte array longer than desired length"),i(I>0,"Requested array length <= 0"),this.strip();var w=_==="le",E=new S(I),N,x,T=this.clone();if(w){for(x=0;!T.isZero();x++)N=T.andln(255),T.iushrn(8),E[x]=N;for(;x<I;x++)E[x]=0}else{for(x=0;x<I-g;x++)E[x]=0;for(x=0;!T.isZero();x++)N=T.andln(255),T.iushrn(8),E[I-x-1]=N}return E},Math.clz32?a.prototype._countBits=function(S){return 32-Math.clz32(S)}:a.prototype._countBits=function(S){var _=S,h=0;return _>=4096&&(h+=13,_>>>=13),_>=64&&(h+=7,_>>>=7),_>=8&&(h+=4,_>>>=4),_>=2&&(h+=2,_>>>=2),h+_},a.prototype._zeroBits=function(S){if(S===0)return 26;var _=S,h=0;return(_&8191)===0&&(h+=13,_>>>=13),(_&127)===0&&(h+=7,_>>>=7),(_&15)===0&&(h+=4,_>>>=4),(_&3)===0&&(h+=2,_>>>=2),(_&1)===0&&h++,h},a.prototype.bitLength=function(){var S=this.words[this.length-1],_=this._countBits(S);return(this.length-1)*26+_};function v(B){for(var S=new Array(B.bitLength()),_=0;_<S.length;_++){var h=_/26|0,g=_%26;S[_]=(B.words[h]&1<<g)>>>g}return S}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,_=0;_<this.length;_++){var h=this._zeroBits(this.words[_]);if(S+=h,h!==26)break}return S},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},a.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var _=0;_<S.length;_++)this.words[_]=this.words[_]|S.words[_];return this.strip()},a.prototype.ior=function(S){return i((this.negative|S.negative)===0),this.iuor(S)},a.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},a.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},a.prototype.iuand=function(S){var _;this.length>S.length?_=S:_=this;for(var h=0;h<_.length;h++)this.words[h]=this.words[h]&S.words[h];return this.length=_.length,this.strip()},a.prototype.iand=function(S){return i((this.negative|S.negative)===0),this.iuand(S)},a.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},a.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},a.prototype.iuxor=function(S){var _,h;this.length>S.length?(_=this,h=S):(_=S,h=this);for(var g=0;g<h.length;g++)this.words[g]=_.words[g]^h.words[g];if(this!==_)for(;g<_.length;g++)this.words[g]=_.words[g];return this.length=_.length,this.strip()},a.prototype.ixor=function(S){return i((this.negative|S.negative)===0),this.iuxor(S)},a.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},a.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},a.prototype.inotn=function(S){i(typeof S=="number"&&S>=0);var _=Math.ceil(S/26)|0,h=S%26;this._expand(_),h>0&&_--;for(var g=0;g<_;g++)this.words[g]=~this.words[g]&67108863;return h>0&&(this.words[g]=~this.words[g]&67108863>>26-h),this.strip()},a.prototype.notn=function(S){return this.clone().inotn(S)},a.prototype.setn=function(S,_){i(typeof S=="number"&&S>=0);var h=S/26|0,g=S%26;return this._expand(h+1),_?this.words[h]=this.words[h]|1<<g:this.words[h]=this.words[h]&~(1<<g),this.strip()},a.prototype.iadd=function(S){var _;if(this.negative!==0&&S.negative===0)return this.negative=0,_=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,_=this.isub(S),S.negative=1,_._normSign();var h,g;this.length>S.length?(h=this,g=S):(h=S,g=this);for(var I=0,w=0;w<g.length;w++)_=(h.words[w]|0)+(g.words[w]|0)+I,this.words[w]=_&67108863,I=_>>>26;for(;I!==0&&w<h.length;w++)_=(h.words[w]|0)+I,this.words[w]=_&67108863,I=_>>>26;if(this.length=h.length,I!==0)this.words[this.length]=I,this.length++;else if(h!==this)for(;w<h.length;w++)this.words[w]=h.words[w];return this},a.prototype.add=function(S){var _;return S.negative!==0&&this.negative===0?(S.negative=0,_=this.sub(S),S.negative^=1,_):S.negative===0&&this.negative!==0?(this.negative=0,_=S.sub(this),this.negative=1,_):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},a.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var _=this.iadd(S);return S.negative=1,_._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var h=this.cmp(S);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,I;h>0?(g=this,I=S):(g=S,I=this);for(var w=0,E=0;E<I.length;E++)_=(g.words[E]|0)-(I.words[E]|0)+w,w=_>>26,this.words[E]=_&67108863;for(;w!==0&&E<g.length;E++)_=(g.words[E]|0)+w,w=_>>26,this.words[E]=_&67108863;if(w===0&&E<g.length&&g!==this)for(;E<g.length;E++)this.words[E]=g.words[E];return this.length=Math.max(this.length,E),g!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(S){return this.clone().isub(S)};function y(B,S,_){_.negative=S.negative^B.negative;var h=B.length+S.length|0;_.length=h,h=h-1|0;var g=B.words[0]|0,I=S.words[0]|0,w=g*I,E=w&67108863,N=w/67108864|0;_.words[0]=E;for(var x=1;x<h;x++){for(var T=N>>>26,b=N&67108863,O=Math.min(x,S.length-1),P=Math.max(0,x-B.length+1);P<=O;P++){var K=x-P|0;g=B.words[K]|0,I=S.words[P]|0,w=g*I+b,T+=w/67108864|0,b=w&67108863}_.words[x]=b|0,N=T|0}return N!==0?_.words[x]=N|0:_.length--,_.strip()}var m=function(S,_,h){var g=S.words,I=_.words,w=h.words,E=0,N,x,T,b=g[0]|0,O=b&8191,P=b>>>13,K=g[1]|0,V=K&8191,U=K>>>13,j=g[2]|0,X=j&8191,Z=j>>>13,z=g[3]|0,W=z&8191,Y=z>>>13,te=g[4]|0,re=te&8191,ie=te>>>13,se=g[5]|0,fe=se&8191,ne=se>>>13,de=g[6]|0,ue=de&8191,ce=de>>>13,he=g[7]|0,pe=he&8191,ge=he>>>13,me=g[8]|0,ve=me&8191,Le=me>>>13,Ae=g[9]|0,be=Ae&8191,ke=Ae>>>13,Ne=I[0]|0,_e=Ne&8191,Ue=Ne>>>13,Ce=I[1]|0,xe=Ce&8191,Ge=Ce>>>13,qe=I[2]|0,Se=qe&8191,He=qe>>>13,Oe=I[3]|0,Ee=Oe&8191,Ve=Oe>>>13,Me=I[4]|0,Te=Me&8191,je=Me>>>13,Be=I[5]|0,J=Be&8191,H=Be>>>13,Q=I[6]|0,ee=Q&8191,ae=Q>>>13,oe=I[7]|0,le=oe&8191,Ie=oe>>>13,we=I[8]|0,ye=we&8191,Fe=we>>>13,Re=I[9]|0,De=Re&8191,Ke=Re>>>13;h.negative=S.negative^_.negative,h.length=19,N=Math.imul(O,_e),x=Math.imul(O,Ue),x=x+Math.imul(P,_e)|0,T=Math.imul(P,Ue);var Pe=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,N=Math.imul(V,_e),x=Math.imul(V,Ue),x=x+Math.imul(U,_e)|0,T=Math.imul(U,Ue),N=N+Math.imul(O,xe)|0,x=x+Math.imul(O,Ge)|0,x=x+Math.imul(P,xe)|0,T=T+Math.imul(P,Ge)|0;var $e=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+($e>>>26)|0,$e&=67108863,N=Math.imul(X,_e),x=Math.imul(X,Ue),x=x+Math.imul(Z,_e)|0,T=Math.imul(Z,Ue),N=N+Math.imul(V,xe)|0,x=x+Math.imul(V,Ge)|0,x=x+Math.imul(U,xe)|0,T=T+Math.imul(U,Ge)|0,N=N+Math.imul(O,Se)|0,x=x+Math.imul(O,He)|0,x=x+Math.imul(P,Se)|0,T=T+Math.imul(P,He)|0;var Qe=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,N=Math.imul(W,_e),x=Math.imul(W,Ue),x=x+Math.imul(Y,_e)|0,T=Math.imul(Y,Ue),N=N+Math.imul(X,xe)|0,x=x+Math.imul(X,Ge)|0,x=x+Math.imul(Z,xe)|0,T=T+Math.imul(Z,Ge)|0,N=N+Math.imul(V,Se)|0,x=x+Math.imul(V,He)|0,x=x+Math.imul(U,Se)|0,T=T+Math.imul(U,He)|0,N=N+Math.imul(O,Ee)|0,x=x+Math.imul(O,Ve)|0,x=x+Math.imul(P,Ee)|0,T=T+Math.imul(P,Ve)|0;var ze=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(ze>>>26)|0,ze&=67108863,N=Math.imul(re,_e),x=Math.imul(re,Ue),x=x+Math.imul(ie,_e)|0,T=Math.imul(ie,Ue),N=N+Math.imul(W,xe)|0,x=x+Math.imul(W,Ge)|0,x=x+Math.imul(Y,xe)|0,T=T+Math.imul(Y,Ge)|0,N=N+Math.imul(X,Se)|0,x=x+Math.imul(X,He)|0,x=x+Math.imul(Z,Se)|0,T=T+Math.imul(Z,He)|0,N=N+Math.imul(V,Ee)|0,x=x+Math.imul(V,Ve)|0,x=x+Math.imul(U,Ee)|0,T=T+Math.imul(U,Ve)|0,N=N+Math.imul(O,Te)|0,x=x+Math.imul(O,je)|0,x=x+Math.imul(P,Te)|0,T=T+Math.imul(P,je)|0;var We=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(We>>>26)|0,We&=67108863,N=Math.imul(fe,_e),x=Math.imul(fe,Ue),x=x+Math.imul(ne,_e)|0,T=Math.imul(ne,Ue),N=N+Math.imul(re,xe)|0,x=x+Math.imul(re,Ge)|0,x=x+Math.imul(ie,xe)|0,T=T+Math.imul(ie,Ge)|0,N=N+Math.imul(W,Se)|0,x=x+Math.imul(W,He)|0,x=x+Math.imul(Y,Se)|0,T=T+Math.imul(Y,He)|0,N=N+Math.imul(X,Ee)|0,x=x+Math.imul(X,Ve)|0,x=x+Math.imul(Z,Ee)|0,T=T+Math.imul(Z,Ve)|0,N=N+Math.imul(V,Te)|0,x=x+Math.imul(V,je)|0,x=x+Math.imul(U,Te)|0,T=T+Math.imul(U,je)|0,N=N+Math.imul(O,J)|0,x=x+Math.imul(O,H)|0,x=x+Math.imul(P,J)|0,T=T+Math.imul(P,H)|0;var Ye=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,N=Math.imul(ue,_e),x=Math.imul(ue,Ue),x=x+Math.imul(ce,_e)|0,T=Math.imul(ce,Ue),N=N+Math.imul(fe,xe)|0,x=x+Math.imul(fe,Ge)|0,x=x+Math.imul(ne,xe)|0,T=T+Math.imul(ne,Ge)|0,N=N+Math.imul(re,Se)|0,x=x+Math.imul(re,He)|0,x=x+Math.imul(ie,Se)|0,T=T+Math.imul(ie,He)|0,N=N+Math.imul(W,Ee)|0,x=x+Math.imul(W,Ve)|0,x=x+Math.imul(Y,Ee)|0,T=T+Math.imul(Y,Ve)|0,N=N+Math.imul(X,Te)|0,x=x+Math.imul(X,je)|0,x=x+Math.imul(Z,Te)|0,T=T+Math.imul(Z,je)|0,N=N+Math.imul(V,J)|0,x=x+Math.imul(V,H)|0,x=x+Math.imul(U,J)|0,T=T+Math.imul(U,H)|0,N=N+Math.imul(O,ee)|0,x=x+Math.imul(O,ae)|0,x=x+Math.imul(P,ee)|0,T=T+Math.imul(P,ae)|0;var Xe=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,N=Math.imul(pe,_e),x=Math.imul(pe,Ue),x=x+Math.imul(ge,_e)|0,T=Math.imul(ge,Ue),N=N+Math.imul(ue,xe)|0,x=x+Math.imul(ue,Ge)|0,x=x+Math.imul(ce,xe)|0,T=T+Math.imul(ce,Ge)|0,N=N+Math.imul(fe,Se)|0,x=x+Math.imul(fe,He)|0,x=x+Math.imul(ne,Se)|0,T=T+Math.imul(ne,He)|0,N=N+Math.imul(re,Ee)|0,x=x+Math.imul(re,Ve)|0,x=x+Math.imul(ie,Ee)|0,T=T+Math.imul(ie,Ve)|0,N=N+Math.imul(W,Te)|0,x=x+Math.imul(W,je)|0,x=x+Math.imul(Y,Te)|0,T=T+Math.imul(Y,je)|0,N=N+Math.imul(X,J)|0,x=x+Math.imul(X,H)|0,x=x+Math.imul(Z,J)|0,T=T+Math.imul(Z,H)|0,N=N+Math.imul(V,ee)|0,x=x+Math.imul(V,ae)|0,x=x+Math.imul(U,ee)|0,T=T+Math.imul(U,ae)|0,N=N+Math.imul(O,le)|0,x=x+Math.imul(O,Ie)|0,x=x+Math.imul(P,le)|0,T=T+Math.imul(P,Ie)|0;var Je=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(Je>>>26)|0,Je&=67108863,N=Math.imul(ve,_e),x=Math.imul(ve,Ue),x=x+Math.imul(Le,_e)|0,T=Math.imul(Le,Ue),N=N+Math.imul(pe,xe)|0,x=x+Math.imul(pe,Ge)|0,x=x+Math.imul(ge,xe)|0,T=T+Math.imul(ge,Ge)|0,N=N+Math.imul(ue,Se)|0,x=x+Math.imul(ue,He)|0,x=x+Math.imul(ce,Se)|0,T=T+Math.imul(ce,He)|0,N=N+Math.imul(fe,Ee)|0,x=x+Math.imul(fe,Ve)|0,x=x+Math.imul(ne,Ee)|0,T=T+Math.imul(ne,Ve)|0,N=N+Math.imul(re,Te)|0,x=x+Math.imul(re,je)|0,x=x+Math.imul(ie,Te)|0,T=T+Math.imul(ie,je)|0,N=N+Math.imul(W,J)|0,x=x+Math.imul(W,H)|0,x=x+Math.imul(Y,J)|0,T=T+Math.imul(Y,H)|0,N=N+Math.imul(X,ee)|0,x=x+Math.imul(X,ae)|0,x=x+Math.imul(Z,ee)|0,T=T+Math.imul(Z,ae)|0,N=N+Math.imul(V,le)|0,x=x+Math.imul(V,Ie)|0,x=x+Math.imul(U,le)|0,T=T+Math.imul(U,Ie)|0,N=N+Math.imul(O,ye)|0,x=x+Math.imul(O,Fe)|0,x=x+Math.imul(P,ye)|0,T=T+Math.imul(P,Fe)|0;var Ze=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,N=Math.imul(be,_e),x=Math.imul(be,Ue),x=x+Math.imul(ke,_e)|0,T=Math.imul(ke,Ue),N=N+Math.imul(ve,xe)|0,x=x+Math.imul(ve,Ge)|0,x=x+Math.imul(Le,xe)|0,T=T+Math.imul(Le,Ge)|0,N=N+Math.imul(pe,Se)|0,x=x+Math.imul(pe,He)|0,x=x+Math.imul(ge,Se)|0,T=T+Math.imul(ge,He)|0,N=N+Math.imul(ue,Ee)|0,x=x+Math.imul(ue,Ve)|0,x=x+Math.imul(ce,Ee)|0,T=T+Math.imul(ce,Ve)|0,N=N+Math.imul(fe,Te)|0,x=x+Math.imul(fe,je)|0,x=x+Math.imul(ne,Te)|0,T=T+Math.imul(ne,je)|0,N=N+Math.imul(re,J)|0,x=x+Math.imul(re,H)|0,x=x+Math.imul(ie,J)|0,T=T+Math.imul(ie,H)|0,N=N+Math.imul(W,ee)|0,x=x+Math.imul(W,ae)|0,x=x+Math.imul(Y,ee)|0,T=T+Math.imul(Y,ae)|0,N=N+Math.imul(X,le)|0,x=x+Math.imul(X,Ie)|0,x=x+Math.imul(Z,le)|0,T=T+Math.imul(Z,Ie)|0,N=N+Math.imul(V,ye)|0,x=x+Math.imul(V,Fe)|0,x=x+Math.imul(U,ye)|0,T=T+Math.imul(U,Fe)|0,N=N+Math.imul(O,De)|0,x=x+Math.imul(O,Ke)|0,x=x+Math.imul(P,De)|0,T=T+Math.imul(P,Ke)|0;var er=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(er>>>26)|0,er&=67108863,N=Math.imul(be,xe),x=Math.imul(be,Ge),x=x+Math.imul(ke,xe)|0,T=Math.imul(ke,Ge),N=N+Math.imul(ve,Se)|0,x=x+Math.imul(ve,He)|0,x=x+Math.imul(Le,Se)|0,T=T+Math.imul(Le,He)|0,N=N+Math.imul(pe,Ee)|0,x=x+Math.imul(pe,Ve)|0,x=x+Math.imul(ge,Ee)|0,T=T+Math.imul(ge,Ve)|0,N=N+Math.imul(ue,Te)|0,x=x+Math.imul(ue,je)|0,x=x+Math.imul(ce,Te)|0,T=T+Math.imul(ce,je)|0,N=N+Math.imul(fe,J)|0,x=x+Math.imul(fe,H)|0,x=x+Math.imul(ne,J)|0,T=T+Math.imul(ne,H)|0,N=N+Math.imul(re,ee)|0,x=x+Math.imul(re,ae)|0,x=x+Math.imul(ie,ee)|0,T=T+Math.imul(ie,ae)|0,N=N+Math.imul(W,le)|0,x=x+Math.imul(W,Ie)|0,x=x+Math.imul(Y,le)|0,T=T+Math.imul(Y,Ie)|0,N=N+Math.imul(X,ye)|0,x=x+Math.imul(X,Fe)|0,x=x+Math.imul(Z,ye)|0,T=T+Math.imul(Z,Fe)|0,N=N+Math.imul(V,De)|0,x=x+Math.imul(V,Ke)|0,x=x+Math.imul(U,De)|0,T=T+Math.imul(U,Ke)|0;var rr=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(rr>>>26)|0,rr&=67108863,N=Math.imul(be,Se),x=Math.imul(be,He),x=x+Math.imul(ke,Se)|0,T=Math.imul(ke,He),N=N+Math.imul(ve,Ee)|0,x=x+Math.imul(ve,Ve)|0,x=x+Math.imul(Le,Ee)|0,T=T+Math.imul(Le,Ve)|0,N=N+Math.imul(pe,Te)|0,x=x+Math.imul(pe,je)|0,x=x+Math.imul(ge,Te)|0,T=T+Math.imul(ge,je)|0,N=N+Math.imul(ue,J)|0,x=x+Math.imul(ue,H)|0,x=x+Math.imul(ce,J)|0,T=T+Math.imul(ce,H)|0,N=N+Math.imul(fe,ee)|0,x=x+Math.imul(fe,ae)|0,x=x+Math.imul(ne,ee)|0,T=T+Math.imul(ne,ae)|0,N=N+Math.imul(re,le)|0,x=x+Math.imul(re,Ie)|0,x=x+Math.imul(ie,le)|0,T=T+Math.imul(ie,Ie)|0,N=N+Math.imul(W,ye)|0,x=x+Math.imul(W,Fe)|0,x=x+Math.imul(Y,ye)|0,T=T+Math.imul(Y,Fe)|0,N=N+Math.imul(X,De)|0,x=x+Math.imul(X,Ke)|0,x=x+Math.imul(Z,De)|0,T=T+Math.imul(Z,Ke)|0;var tr=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(tr>>>26)|0,tr&=67108863,N=Math.imul(be,Ee),x=Math.imul(be,Ve),x=x+Math.imul(ke,Ee)|0,T=Math.imul(ke,Ve),N=N+Math.imul(ve,Te)|0,x=x+Math.imul(ve,je)|0,x=x+Math.imul(Le,Te)|0,T=T+Math.imul(Le,je)|0,N=N+Math.imul(pe,J)|0,x=x+Math.imul(pe,H)|0,x=x+Math.imul(ge,J)|0,T=T+Math.imul(ge,H)|0,N=N+Math.imul(ue,ee)|0,x=x+Math.imul(ue,ae)|0,x=x+Math.imul(ce,ee)|0,T=T+Math.imul(ce,ae)|0,N=N+Math.imul(fe,le)|0,x=x+Math.imul(fe,Ie)|0,x=x+Math.imul(ne,le)|0,T=T+Math.imul(ne,Ie)|0,N=N+Math.imul(re,ye)|0,x=x+Math.imul(re,Fe)|0,x=x+Math.imul(ie,ye)|0,T=T+Math.imul(ie,Fe)|0,N=N+Math.imul(W,De)|0,x=x+Math.imul(W,Ke)|0,x=x+Math.imul(Y,De)|0,T=T+Math.imul(Y,Ke)|0;var ir=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(ir>>>26)|0,ir&=67108863,N=Math.imul(be,Te),x=Math.imul(be,je),x=x+Math.imul(ke,Te)|0,T=Math.imul(ke,je),N=N+Math.imul(ve,J)|0,x=x+Math.imul(ve,H)|0,x=x+Math.imul(Le,J)|0,T=T+Math.imul(Le,H)|0,N=N+Math.imul(pe,ee)|0,x=x+Math.imul(pe,ae)|0,x=x+Math.imul(ge,ee)|0,T=T+Math.imul(ge,ae)|0,N=N+Math.imul(ue,le)|0,x=x+Math.imul(ue,Ie)|0,x=x+Math.imul(ce,le)|0,T=T+Math.imul(ce,Ie)|0,N=N+Math.imul(fe,ye)|0,x=x+Math.imul(fe,Fe)|0,x=x+Math.imul(ne,ye)|0,T=T+Math.imul(ne,Fe)|0,N=N+Math.imul(re,De)|0,x=x+Math.imul(re,Ke)|0,x=x+Math.imul(ie,De)|0,T=T+Math.imul(ie,Ke)|0;var nr=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(nr>>>26)|0,nr&=67108863,N=Math.imul(be,J),x=Math.imul(be,H),x=x+Math.imul(ke,J)|0,T=Math.imul(ke,H),N=N+Math.imul(ve,ee)|0,x=x+Math.imul(ve,ae)|0,x=x+Math.imul(Le,ee)|0,T=T+Math.imul(Le,ae)|0,N=N+Math.imul(pe,le)|0,x=x+Math.imul(pe,Ie)|0,x=x+Math.imul(ge,le)|0,T=T+Math.imul(ge,Ie)|0,N=N+Math.imul(ue,ye)|0,x=x+Math.imul(ue,Fe)|0,x=x+Math.imul(ce,ye)|0,T=T+Math.imul(ce,Fe)|0,N=N+Math.imul(fe,De)|0,x=x+Math.imul(fe,Ke)|0,x=x+Math.imul(ne,De)|0,T=T+Math.imul(ne,Ke)|0;var ar=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(ar>>>26)|0,ar&=67108863,N=Math.imul(be,ee),x=Math.imul(be,ae),x=x+Math.imul(ke,ee)|0,T=Math.imul(ke,ae),N=N+Math.imul(ve,le)|0,x=x+Math.imul(ve,Ie)|0,x=x+Math.imul(Le,le)|0,T=T+Math.imul(Le,Ie)|0,N=N+Math.imul(pe,ye)|0,x=x+Math.imul(pe,Fe)|0,x=x+Math.imul(ge,ye)|0,T=T+Math.imul(ge,Fe)|0,N=N+Math.imul(ue,De)|0,x=x+Math.imul(ue,Ke)|0,x=x+Math.imul(ce,De)|0,T=T+Math.imul(ce,Ke)|0;var sr=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(sr>>>26)|0,sr&=67108863,N=Math.imul(be,le),x=Math.imul(be,Ie),x=x+Math.imul(ke,le)|0,T=Math.imul(ke,Ie),N=N+Math.imul(ve,ye)|0,x=x+Math.imul(ve,Fe)|0,x=x+Math.imul(Le,ye)|0,T=T+Math.imul(Le,Fe)|0,N=N+Math.imul(pe,De)|0,x=x+Math.imul(pe,Ke)|0,x=x+Math.imul(ge,De)|0,T=T+Math.imul(ge,Ke)|0;var or=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(or>>>26)|0,or&=67108863,N=Math.imul(be,ye),x=Math.imul(be,Fe),x=x+Math.imul(ke,ye)|0,T=Math.imul(ke,Fe),N=N+Math.imul(ve,De)|0,x=x+Math.imul(ve,Ke)|0,x=x+Math.imul(Le,De)|0,T=T+Math.imul(Le,Ke)|0;var ur=(E+N|0)+((x&8191)<<13)|0;E=(T+(x>>>13)|0)+(ur>>>26)|0,ur&=67108863,N=Math.imul(be,De),x=Math.imul(be,Ke),x=x+Math.imul(ke,De)|0,T=Math.imul(ke,Ke);var fr=(E+N|0)+((x&8191)<<13)|0;return E=(T+(x>>>13)|0)+(fr>>>26)|0,fr&=67108863,w[0]=Pe,w[1]=$e,w[2]=Qe,w[3]=ze,w[4]=We,w[5]=Ye,w[6]=Xe,w[7]=Je,w[8]=Ze,w[9]=er,w[10]=rr,w[11]=tr,w[12]=ir,w[13]=nr,w[14]=ar,w[15]=sr,w[16]=or,w[17]=ur,w[18]=fr,E!==0&&(w[19]=E,h.length++),h};Math.imul||(m=y);function R(B,S,_){_.negative=S.negative^B.negative,_.length=B.length+S.length;for(var h=0,g=0,I=0;I<_.length-1;I++){var w=g;g=0;for(var E=h&67108863,N=Math.min(I,S.length-1),x=Math.max(0,I-B.length+1);x<=N;x++){var T=I-x,b=B.words[T]|0,O=S.words[x]|0,P=b*O,K=P&67108863;w=w+(P/67108864|0)|0,K=K+E|0,E=K&67108863,w=w+(K>>>26)|0,g+=w>>>26,w&=67108863}_.words[I]=E,h=w,w=g}return h!==0?_.words[I]=h:_.length--,_.strip()}function A(B,S,_){var h=new D;return h.mulp(B,S,_)}a.prototype.mulTo=function(S,_){var h,g=this.length+S.length;return this.length===10&&S.length===10?h=m(this,S,_):g<63?h=y(this,S,_):g<1024?h=R(this,S,_):h=A(this,S,_),h};function D(B,S){this.x=B,this.y=S}D.prototype.makeRBT=function(S){for(var _=new Array(S),h=a.prototype._countBits(S)-1,g=0;g<S;g++)_[g]=this.revBin(g,h,S);return _},D.prototype.revBin=function(S,_,h){if(S===0||S===h-1)return S;for(var g=0,I=0;I<_;I++)g|=(S&1)<<_-I-1,S>>=1;return g},D.prototype.permute=function(S,_,h,g,I,w){for(var E=0;E<w;E++)g[E]=_[S[E]],I[E]=h[S[E]]},D.prototype.transform=function(S,_,h,g,I,w){this.permute(w,S,_,h,g,I);for(var E=1;E<I;E<<=1)for(var N=E<<1,x=Math.cos(2*Math.PI/N),T=Math.sin(2*Math.PI/N),b=0;b<I;b+=N)for(var O=x,P=T,K=0;K<E;K++){var V=h[b+K],U=g[b+K],j=h[b+K+E],X=g[b+K+E],Z=O*j-P*X;X=O*X+P*j,j=Z,h[b+K]=V+j,g[b+K]=U+X,h[b+K+E]=V-j,g[b+K+E]=U-X,K!==N&&(Z=x*O-T*P,P=x*P+T*O,O=Z)}},D.prototype.guessLen13b=function(S,_){var h=Math.max(_,S)|1,g=h&1,I=0;for(h=h/2|0;h;h=h>>>1)I++;return 1<<I+1+g},D.prototype.conjugate=function(S,_,h){if(!(h<=1))for(var g=0;g<h/2;g++){var I=S[g];S[g]=S[h-g-1],S[h-g-1]=I,I=_[g],_[g]=-_[h-g-1],_[h-g-1]=-I}},D.prototype.normalize13b=function(S,_){for(var h=0,g=0;g<_/2;g++){var I=Math.round(S[2*g+1]/_)*8192+Math.round(S[2*g]/_)+h;S[g]=I&67108863,I<67108864?h=0:h=I/67108864|0}return S},D.prototype.convert13b=function(S,_,h,g){for(var I=0,w=0;w<_;w++)I=I+(S[w]|0),h[2*w]=I&8191,I=I>>>13,h[2*w+1]=I&8191,I=I>>>13;for(w=2*_;w<g;++w)h[w]=0;i(I===0),i((I&-8192)===0)},D.prototype.stub=function(S){for(var _=new Array(S),h=0;h<S;h++)_[h]=0;return _},D.prototype.mulp=function(S,_,h){var g=2*this.guessLen13b(S.length,_.length),I=this.makeRBT(g),w=this.stub(g),E=new Array(g),N=new Array(g),x=new Array(g),T=new Array(g),b=new Array(g),O=new Array(g),P=h.words;P.length=g,this.convert13b(S.words,S.length,E,g),this.convert13b(_.words,_.length,T,g),this.transform(E,w,N,x,g,I),this.transform(T,w,b,O,g,I);for(var K=0;K<g;K++){var V=N[K]*b[K]-x[K]*O[K];x[K]=N[K]*O[K]+x[K]*b[K],N[K]=V}return this.conjugate(N,x,g),this.transform(N,x,P,w,g,I),this.conjugate(P,w,g),this.normalize13b(P,g),h.negative=S.negative^_.negative,h.length=S.length+_.length,h.strip()},a.prototype.mul=function(S){var _=new a(null);return _.words=new Array(this.length+S.length),this.mulTo(S,_)},a.prototype.mulf=function(S){var _=new a(null);return _.words=new Array(this.length+S.length),A(this,S,_)},a.prototype.imul=function(S){return this.clone().mulTo(S,this)},a.prototype.imuln=function(S){i(typeof S=="number"),i(S<67108864);for(var _=0,h=0;h<this.length;h++){var g=(this.words[h]|0)*S,I=(g&67108863)+(_&67108863);_>>=26,_+=g/67108864|0,_+=I>>>26,this.words[h]=I&67108863}return _!==0&&(this.words[h]=_,this.length++),this.length=S===0?1:this.length,this},a.prototype.muln=function(S){return this.clone().imuln(S)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(S){var _=v(S);if(_.length===0)return new a(1);for(var h=this,g=0;g<_.length&&_[g]===0;g++,h=h.sqr());if(++g<_.length)for(var I=h.sqr();g<_.length;g++,I=I.sqr())_[g]!==0&&(h=h.mul(I));return h},a.prototype.iushln=function(S){i(typeof S=="number"&&S>=0);var _=S%26,h=(S-_)/26,g=67108863>>>26-_<<26-_,I;if(_!==0){var w=0;for(I=0;I<this.length;I++){var E=this.words[I]&g,N=(this.words[I]|0)-E<<_;this.words[I]=N|w,w=E>>>26-_}w&&(this.words[I]=w,this.length++)}if(h!==0){for(I=this.length-1;I>=0;I--)this.words[I+h]=this.words[I];for(I=0;I<h;I++)this.words[I]=0;this.length+=h}return this.strip()},a.prototype.ishln=function(S){return i(this.negative===0),this.iushln(S)},a.prototype.iushrn=function(S,_,h){i(typeof S=="number"&&S>=0);var g;_?g=(_-_%26)/26:g=0;var I=S%26,w=Math.min((S-I)/26,this.length),E=67108863^67108863>>>I<<I,N=h;if(g-=w,g=Math.max(0,g),N){for(var x=0;x<w;x++)N.words[x]=this.words[x];N.length=w}if(w!==0)if(this.length>w)for(this.length-=w,x=0;x<this.length;x++)this.words[x]=this.words[x+w];else this.words[0]=0,this.length=1;var T=0;for(x=this.length-1;x>=0&&(T!==0||x>=g);x--){var b=this.words[x]|0;this.words[x]=T<<26-I|b>>>I,T=b&E}return N&&T!==0&&(N.words[N.length++]=T),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(S,_,h){return i(this.negative===0),this.iushrn(S,_,h)},a.prototype.shln=function(S){return this.clone().ishln(S)},a.prototype.ushln=function(S){return this.clone().iushln(S)},a.prototype.shrn=function(S){return this.clone().ishrn(S)},a.prototype.ushrn=function(S){return this.clone().iushrn(S)},a.prototype.testn=function(S){i(typeof S=="number"&&S>=0);var _=S%26,h=(S-_)/26,g=1<<_;if(this.length<=h)return!1;var I=this.words[h];return!!(I&g)},a.prototype.imaskn=function(S){i(typeof S=="number"&&S>=0);var _=S%26,h=(S-_)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(_!==0&&h++,this.length=Math.min(h,this.length),_!==0){var g=67108863^67108863>>>_<<_;this.words[this.length-1]&=g}return this.strip()},a.prototype.maskn=function(S){return this.clone().imaskn(S)},a.prototype.iaddn=function(S){return i(typeof S=="number"),i(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(this.words[0]|0)<S?(this.words[0]=S-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},a.prototype._iaddn=function(S){this.words[0]+=S;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},a.prototype.isubn=function(S){if(i(typeof S=="number"),i(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this.strip()},a.prototype.addn=function(S){return this.clone().iaddn(S)},a.prototype.subn=function(S){return this.clone().isubn(S)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(S,_,h){var g=S.length+h,I;this._expand(g);var w,E=0;for(I=0;I<S.length;I++){w=(this.words[I+h]|0)+E;var N=(S.words[I]|0)*_;w-=N&67108863,E=(w>>26)-(N/67108864|0),this.words[I+h]=w&67108863}for(;I<this.length-h;I++)w=(this.words[I+h]|0)+E,E=w>>26,this.words[I+h]=w&67108863;if(E===0)return this.strip();for(i(E===-1),E=0,I=0;I<this.length;I++)w=-(this.words[I]|0)+E,E=w>>26,this.words[I]=w&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(S,_){var h=this.length-S.length,g=this.clone(),I=S,w=I.words[I.length-1]|0,E=this._countBits(w);h=26-E,h!==0&&(I=I.ushln(h),g.iushln(h),w=I.words[I.length-1]|0);var N=g.length-I.length,x;if(_!=="mod"){x=new a(null),x.length=N+1,x.words=new Array(x.length);for(var T=0;T<x.length;T++)x.words[T]=0}var b=g.clone()._ishlnsubmul(I,1,N);b.negative===0&&(g=b,x&&(x.words[N]=1));for(var O=N-1;O>=0;O--){var P=(g.words[I.length+O]|0)*67108864+(g.words[I.length+O-1]|0);for(P=Math.min(P/w|0,67108863),g._ishlnsubmul(I,P,O);g.negative!==0;)P--,g.negative=0,g._ishlnsubmul(I,1,O),g.isZero()||(g.negative^=1);x&&(x.words[O]=P)}return x&&x.strip(),g.strip(),_!=="div"&&h!==0&&g.iushrn(h),{div:x||null,mod:g}},a.prototype.divmod=function(S,_,h){if(i(!S.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,I,w;return this.negative!==0&&S.negative===0?(w=this.neg().divmod(S,_),_!=="mod"&&(g=w.div.neg()),_!=="div"&&(I=w.mod.neg(),h&&I.negative!==0&&I.iadd(S)),{div:g,mod:I}):this.negative===0&&S.negative!==0?(w=this.divmod(S.neg(),_),_!=="mod"&&(g=w.div.neg()),{div:g,mod:w.mod}):(this.negative&S.negative)!==0?(w=this.neg().divmod(S.neg(),_),_!=="div"&&(I=w.mod.neg(),h&&I.negative!==0&&I.isub(S)),{div:w.div,mod:I}):S.length>this.length||this.cmp(S)<0?{div:new a(0),mod:this}:S.length===1?_==="div"?{div:this.divn(S.words[0]),mod:null}:_==="mod"?{div:null,mod:new a(this.modn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new a(this.modn(S.words[0]))}:this._wordDiv(S,_)},a.prototype.div=function(S){return this.divmod(S,"div",!1).div},a.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},a.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},a.prototype.divRound=function(S){var _=this.divmod(S);if(_.mod.isZero())return _.div;var h=_.div.negative!==0?_.mod.isub(S):_.mod,g=S.ushrn(1),I=S.andln(1),w=h.cmp(g);return w<0||I===1&&w===0?_.div:_.div.negative!==0?_.div.isubn(1):_.div.iaddn(1)},a.prototype.modn=function(S){i(S<=67108863);for(var _=(1<<26)%S,h=0,g=this.length-1;g>=0;g--)h=(_*h+(this.words[g]|0))%S;return h},a.prototype.idivn=function(S){i(S<=67108863);for(var _=0,h=this.length-1;h>=0;h--){var g=(this.words[h]|0)+_*67108864;this.words[h]=g/S|0,_=g%S}return this.strip()},a.prototype.divn=function(S){return this.clone().idivn(S)},a.prototype.egcd=function(S){i(S.negative===0),i(!S.isZero());var _=this,h=S.clone();_.negative!==0?_=_.umod(S):_=_.clone();for(var g=new a(1),I=new a(0),w=new a(0),E=new a(1),N=0;_.isEven()&&h.isEven();)_.iushrn(1),h.iushrn(1),++N;for(var x=h.clone(),T=_.clone();!_.isZero();){for(var b=0,O=1;(_.words[0]&O)===0&&b<26;++b,O<<=1);if(b>0)for(_.iushrn(b);b-- >0;)(g.isOdd()||I.isOdd())&&(g.iadd(x),I.isub(T)),g.iushrn(1),I.iushrn(1);for(var P=0,K=1;(h.words[0]&K)===0&&P<26;++P,K<<=1);if(P>0)for(h.iushrn(P);P-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(x),E.isub(T)),w.iushrn(1),E.iushrn(1);_.cmp(h)>=0?(_.isub(h),g.isub(w),I.isub(E)):(h.isub(_),w.isub(g),E.isub(I))}return{a:w,b:E,gcd:h.iushln(N)}},a.prototype._invmp=function(S){i(S.negative===0),i(!S.isZero());var _=this,h=S.clone();_.negative!==0?_=_.umod(S):_=_.clone();for(var g=new a(1),I=new a(0),w=h.clone();_.cmpn(1)>0&&h.cmpn(1)>0;){for(var E=0,N=1;(_.words[0]&N)===0&&E<26;++E,N<<=1);if(E>0)for(_.iushrn(E);E-- >0;)g.isOdd()&&g.iadd(w),g.iushrn(1);for(var x=0,T=1;(h.words[0]&T)===0&&x<26;++x,T<<=1);if(x>0)for(h.iushrn(x);x-- >0;)I.isOdd()&&I.iadd(w),I.iushrn(1);_.cmp(h)>=0?(_.isub(h),g.isub(I)):(h.isub(_),I.isub(g))}var b;return _.cmpn(1)===0?b=g:b=I,b.cmpn(0)<0&&b.iadd(S),b},a.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var _=this.clone(),h=S.clone();_.negative=0,h.negative=0;for(var g=0;_.isEven()&&h.isEven();g++)_.iushrn(1),h.iushrn(1);do{for(;_.isEven();)_.iushrn(1);for(;h.isEven();)h.iushrn(1);var I=_.cmp(h);if(I<0){var w=_;_=h,h=w}else if(I===0||h.cmpn(1)===0)break;_.isub(h)}while(!0);return h.iushln(g)},a.prototype.invm=function(S){return this.egcd(S).a.umod(S)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(S){return this.words[0]&S},a.prototype.bincn=function(S){i(typeof S=="number");var _=S%26,h=(S-_)/26,g=1<<_;if(this.length<=h)return this._expand(h+1),this.words[h]|=g,this;for(var I=g,w=h;I!==0&&w<this.length;w++){var E=this.words[w]|0;E+=I,I=E>>>26,E&=67108863,this.words[w]=E}return I!==0&&(this.words[w]=I,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(S){var _=S<0;if(this.negative!==0&&!_)return-1;if(this.negative===0&&_)return 1;this.strip();var h;if(this.length>1)h=1;else{_&&(S=-S),i(S<=67108863,"Number is too big");var g=this.words[0]|0;h=g===S?0:g<S?-1:1}return this.negative!==0?-h|0:h},a.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var _=this.ucmp(S);return this.negative!==0?-_|0:_},a.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var _=0,h=this.length-1;h>=0;h--){var g=this.words[h]|0,I=S.words[h]|0;if(g!==I){g<I?_=-1:g>I&&(_=1);break}}return _},a.prototype.gtn=function(S){return this.cmpn(S)===1},a.prototype.gt=function(S){return this.cmp(S)===1},a.prototype.gten=function(S){return this.cmpn(S)>=0},a.prototype.gte=function(S){return this.cmp(S)>=0},a.prototype.ltn=function(S){return this.cmpn(S)===-1},a.prototype.lt=function(S){return this.cmp(S)===-1},a.prototype.lten=function(S){return this.cmpn(S)<=0},a.prototype.lte=function(S){return this.cmp(S)<=0},a.prototype.eqn=function(S){return this.cmpn(S)===0},a.prototype.eq=function(S){return this.cmp(S)===0},a.red=function(S){return new L(S)},a.prototype.toRed=function(S){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(S){return this.red=S,this},a.prototype.forceRed=function(S){return i(!this.red,"Already a number in reduction context"),this._forceRed(S)},a.prototype.redAdd=function(S){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},a.prototype.redIAdd=function(S){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},a.prototype.redSub=function(S){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},a.prototype.redISub=function(S){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},a.prototype.redShl=function(S){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},a.prototype.redMul=function(S){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},a.prototype.redIMul=function(S){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(S){return i(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var C={k256:null,p224:null,p192:null,p25519:null};function q(B,S){this.name=B,this.p=new a(S,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var S=new a(null);return S.words=new Array(Math.ceil(this.n/13)),S},q.prototype.ireduce=function(S){var _=S,h;do this.split(_,this.tmp),_=this.imulK(_),_=_.iadd(this.tmp),h=_.bitLength();while(h>this.n);var g=h<this.n?-1:_.ucmp(this.p);return g===0?(_.words[0]=0,_.length=1):g>0?_.isub(this.p):_.strip!==void 0?_.strip():_._strip(),_},q.prototype.split=function(S,_){S.iushrn(this.n,0,_)},q.prototype.imulK=function(S){return S.imul(this.k)};function M(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(M,q),M.prototype.split=function(S,_){for(var h=4194303,g=Math.min(S.length,9),I=0;I<g;I++)_.words[I]=S.words[I];if(_.length=g,S.length<=9){S.words[0]=0,S.length=1;return}var w=S.words[9];for(_.words[_.length++]=w&h,I=10;I<S.length;I++){var E=S.words[I]|0;S.words[I-10]=(E&h)<<4|w>>>22,w=E}w>>>=22,S.words[I-10]=w,w===0&&S.length>10?S.length-=10:S.length-=9},M.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var _=0,h=0;h<S.length;h++){var g=S.words[h]|0;_+=g*977,S.words[h]=_&67108863,_=g*64+(_/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S};function F(){q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(F,q);function k(){q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(k,q);function $(){q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s($,q),$.prototype.imulK=function(S){for(var _=0,h=0;h<S.length;h++){var g=(S.words[h]|0)*19+_,I=g&67108863;g>>>=26,S.words[h]=I,_=g}return _!==0&&(S.words[S.length++]=_),S},a._prime=function(S){if(C[S])return C[S];var _;if(S==="k256")_=new M;else if(S==="p224")_=new F;else if(S==="p192")_=new k;else if(S==="p25519")_=new $;else throw new Error("Unknown prime "+S);return C[S]=_,_};function L(B){if(typeof B=="string"){var S=a._prime(B);this.m=S.p,this.prime=S}else i(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}L.prototype._verify1=function(S){i(S.negative===0,"red works only with positives"),i(S.red,"red works only with red numbers")},L.prototype._verify2=function(S,_){i((S.negative|_.negative)===0,"red works only with positives"),i(S.red&&S.red===_.red,"red works only with red numbers")},L.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):S.umod(this.m)._forceRed(this)},L.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},L.prototype.add=function(S,_){this._verify2(S,_);var h=S.add(_);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},L.prototype.iadd=function(S,_){this._verify2(S,_);var h=S.iadd(_);return h.cmp(this.m)>=0&&h.isub(this.m),h},L.prototype.sub=function(S,_){this._verify2(S,_);var h=S.sub(_);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},L.prototype.isub=function(S,_){this._verify2(S,_);var h=S.isub(_);return h.cmpn(0)<0&&h.iadd(this.m),h},L.prototype.shl=function(S,_){return this._verify1(S),this.imod(S.ushln(_))},L.prototype.imul=function(S,_){return this._verify2(S,_),this.imod(S.imul(_))},L.prototype.mul=function(S,_){return this._verify2(S,_),this.imod(S.mul(_))},L.prototype.isqr=function(S){return this.imul(S,S.clone())},L.prototype.sqr=function(S){return this.mul(S,S)},L.prototype.sqrt=function(S){if(S.isZero())return S.clone();var _=this.m.andln(3);if(i(_%2===1),_===3){var h=this.m.add(new a(1)).iushrn(2);return this.pow(S,h)}for(var g=this.m.subn(1),I=0;!g.isZero()&&g.andln(1)===0;)I++,g.iushrn(1);i(!g.isZero());var w=new a(1).toRed(this),E=w.redNeg(),N=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new a(2*x*x).toRed(this);this.pow(x,N).cmp(E)!==0;)x.redIAdd(E);for(var T=this.pow(x,g),b=this.pow(S,g.addn(1).iushrn(1)),O=this.pow(S,g),P=I;O.cmp(w)!==0;){for(var K=O,V=0;K.cmp(w)!==0;V++)K=K.redSqr();i(V<P);var U=this.pow(T,new a(1).iushln(P-V-1));b=b.redMul(U),T=U.redSqr(),O=O.redMul(T),P=V}return b},L.prototype.invm=function(S){var _=S._invmp(this.m);return _.negative!==0?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},L.prototype.pow=function(S,_){if(_.isZero())return new a(1).toRed(this);if(_.cmpn(1)===0)return S.clone();var h=4,g=new Array(1<<h);g[0]=new a(1).toRed(this),g[1]=S;for(var I=2;I<g.length;I++)g[I]=this.mul(g[I-1],S);var w=g[0],E=0,N=0,x=_.bitLength()%26;for(x===0&&(x=26),I=_.length-1;I>=0;I--){for(var T=_.words[I],b=x-1;b>=0;b--){var O=T>>b&1;if(w!==g[0]&&(w=this.sqr(w)),O===0&&E===0){N=0;continue}E<<=1,E|=O,N++,!(N!==h&&(I!==0||b!==0))&&(w=this.mul(w,g[E]),N=0,E=0)}x=26}return w},L.prototype.convertTo=function(S){var _=S.umod(this.m);return _===S?_.clone():_},L.prototype.convertFrom=function(S){var _=S.clone();return _.red=null,_},a.mont=function(S){return new G(S)};function G(B){L.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(G,L),G.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},G.prototype.convertFrom=function(S){var _=this.imod(S.mul(this.rinv));return _.red=null,_},G.prototype.imul=function(S,_){if(S.isZero()||_.isZero())return S.words[0]=0,S.length=1,S;var h=S.imul(_),g=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=h.isub(g).iushrn(this.shift),w=I;return I.cmp(this.m)>=0?w=I.isub(this.m):I.cmpn(0)<0&&(w=I.iadd(this.m)),w._forceRed(this)},G.prototype.mul=function(S,_){if(S.isZero()||_.isZero())return new a(0)._forceRed(this);var h=S.mul(_),g=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),I=h.isub(g).iushrn(this.shift),w=I;return I.cmp(this.m)>=0?w=I.isub(this.m):I.cmpn(0)<0&&(w=I.iadd(this.m)),w._forceRed(this)},G.prototype.invm=function(S){var _=this.imod(S._invmp(this.m).mul(this.r2));return _._forceRed(this)}})(r,bn$4)}(bn$5)),bn$5.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var r;brorand.exports=function(s){return r||(r=new t(null)),r.generate(s)};function t(i){this.rand=i}if(brorand.exports.Rand=t,t.prototype.generate=function(s){return this._rand(s)},t.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var a=new Uint8Array(s),f=0;f<a.length;f++)a[f]=this.rand.getByte();return a},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(s){var a=new Uint8Array(s);return self.crypto.getRandomValues(a),a}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(s){var a=new Uint8Array(s);return self.msCrypto.getRandomValues(a),a}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=requireCryptoBrowserify();if(typeof n.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(s){return n.randomBytes(s)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var r=requireBn$2(),t=requireBrorand();function n(i){this.rand=i||new t.Rand}return mr=n,n.create=function(s){return new n(s)},n.prototype._randbelow=function(s){var a=s.bitLength(),f=Math.ceil(a/8);do var l=new r(this.rand.generate(f));while(l.cmp(s)>=0);return l},n.prototype._randrange=function(s,a){var f=a.sub(s);return s.add(this._randbelow(f))},n.prototype.test=function(s,a,f){var l=s.bitLength(),d=r.mont(s),o=new r(1).toRed(d);a||(a=Math.max(1,l/48|0));for(var u=s.subn(1),p=0;!u.testn(p);p++);for(var c=s.shrn(p),v=u.toRed(d),y=!0;a>0;a--){var m=this._randrange(new r(2),u);f&&f(m);var R=m.toRed(d).redPow(c);if(!(R.cmp(o)===0||R.cmp(v)===0)){for(var A=1;A<p;A++){if(R=R.redSqr(),R.cmp(o)===0)return!1;if(R.cmp(v)===0)break}if(A===p)return!1}}return y},n.prototype.getDivisor=function(s,a){var f=s.bitLength(),l=r.mont(s),d=new r(1).toRed(l);a||(a=Math.max(1,f/48|0));for(var o=s.subn(1),u=0;!o.testn(u);u++);for(var p=s.shrn(u),c=o.toRed(l);a>0;a--){var v=this._randrange(new r(2),o),y=s.gcd(v);if(y.cmpn(1)!==0)return y;var m=v.toRed(l).redPow(p);if(!(m.cmp(d)===0||m.cmp(c)===0)){for(var R=1;R<u;R++){if(m=m.redSqr(),m.cmp(d)===0)return m.fromRed().subn(1).gcd(s);if(m.cmp(c)===0)break}if(R===u)return m=m.redSqr(),m.fromRed().subn(1).gcd(s)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var r=requireBrowser$b();generatePrime=R,R.simpleSieve=y,R.fermatTest=m;var t=requireBn$2(),n=new t(24),i=requireMr(),s=new i,a=new t(1),f=new t(2),l=new t(5);new t(16),new t(8);var d=new t(10),o=new t(3);new t(7);var u=new t(11),p=new t(4);new t(12);var c=null;function v(){if(c!==null)return c;var A=1048576,D=[];D[0]=2;for(var C=1,q=3;q<A;q+=2){for(var M=Math.ceil(Math.sqrt(q)),F=0;F<C&&D[F]<=M&&q%D[F]!==0;F++);C!==F&&D[F]<=M||(D[C++]=q)}return c=D,D}function y(A){for(var D=v(),C=0;C<D.length;C++)if(A.modn(D[C])===0)return A.cmpn(D[C])===0;return!0}function m(A){var D=t.mont(A);return f.toRed(D).redPow(A.subn(1)).fromRed().cmpn(1)===0}function R(A,D){if(A<16)return D===2||D===5?new t([140,123]):new t([140,39]);D=new t(D);for(var C,q;;){for(C=new t(r(Math.ceil(A/8)));C.bitLength()>A;)C.ishrn(1);if(C.isEven()&&C.iadd(a),C.testn(1)||C.iadd(f),D.cmp(f)){if(!D.cmp(l))for(;C.mod(d).cmp(o);)C.iadd(p)}else for(;C.mod(n).cmp(u);)C.iadd(p);if(q=C.shrn(1),y(q)&&y(C)&&m(q)&&m(C)&&s.test(q)&&s.test(C))return C}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"};var require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18},dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var r=requireBn$2(),t=requireMr(),n=new t,i=new r(24),s=new r(11),a=new r(10),f=new r(3),l=new r(7),d=requireGeneratePrime(),o=requireBrowser$b();dh=y;function u(R,A){return A=A||"utf8",Buffer.isBuffer(R)||(R=new Buffer(R,A)),this._pub=new r(R),this}function p(R,A){return A=A||"utf8",Buffer.isBuffer(R)||(R=new Buffer(R,A)),this._priv=new r(R),this}var c={};function v(R,A){var D=A.toString("hex"),C=[D,R.toString(16)].join("_");if(C in c)return c[C];var q=0;if(R.isEven()||!d.simpleSieve||!d.fermatTest(R)||!n.test(R))return q+=1,D==="02"||D==="05"?q+=8:q+=4,c[C]=q,q;n.test(R.shrn(1))||(q+=2);var M;switch(D){case"02":R.mod(i).cmp(s)&&(q+=8);break;case"05":M=R.mod(a),M.cmp(f)&&M.cmp(l)&&(q+=8);break;default:q+=4}return c[C]=q,q}function y(R,A,D){this.setGenerator(A),this.__prime=new r(R),this._prime=r.mont(this.__prime),this._primeLen=R.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,D?(this.setPublicKey=u,this.setPrivateKey=p):this._primeCode=8}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=v(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new r(o(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(R){R=new r(R),R=R.toRed(this._prime);var A=R.redPow(this._priv).fromRed(),D=new Buffer(A.toArray()),C=this.getPrime();if(D.length<C.length){var q=new Buffer(C.length-D.length);q.fill(0),D=Buffer.concat([q,D])}return D},y.prototype.getPublicKey=function(A){return m(this._pub,A)},y.prototype.getPrivateKey=function(A){return m(this._priv,A)},y.prototype.getPrime=function(R){return m(this.__prime,R)},y.prototype.getGenerator=function(R){return m(this._gen,R)},y.prototype.setGenerator=function(R,A){return A=A||"utf8",Buffer.isBuffer(R)||(R=new Buffer(R,A)),this.__gen=R,this._gen=new r(R),this};function m(R,A){var D=new Buffer(R.toArray());return A?D.toString(A):D}return dh}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$5;hasRequiredBrowser$5=1;var r=requireGeneratePrime(),t=require$$1$1,n=requireDh();function i(f){var l=new Buffer(t[f].prime,"hex"),d=new Buffer(t[f].gen,"hex");return new n(l,d)}var s={binary:!0,hex:!0,base64:!0};function a(f,l,d,o){return Buffer.isBuffer(l)||s[l]===void 0?a(f,"binary",l,d):(l=l||"binary",o=o||"binary",d=d||new Buffer([2]),Buffer.isBuffer(d)||(d=new Buffer(d,o)),typeof f=="number"?new n(r(f,d),d,!0):(Buffer.isBuffer(f)||(f=new Buffer(f,l)),new n(f,d,!0)))}return browser$5.DiffieHellmanGroup=browser$5.createDiffieHellmanGroup=browser$5.getDiffieHellman=i,browser$5.createDiffieHellman=browser$5.DiffieHellman=a,browser$5}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs;function requireProcessNextickArgs(){if(hasRequiredProcessNextickArgs)return processNextickArgs.exports;hasRequiredProcessNextickArgs=1,typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:r}:processNextickArgs.exports=process$1;function r(t,n,i,s){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,f,l;switch(a){case 0:case 1:return process$1.nextTick(t);case 2:return process$1.nextTick(function(){t.call(null,n)});case 3:return process$1.nextTick(function(){t.call(null,n,i)});case 4:return process$1.nextTick(function(){t.call(null,n,i,s)});default:for(f=new Array(a-1),l=0;l<f.length;)f[l++]=arguments[l];return process$1.nextTick(function(){t.apply(null,f)})}}return processNextickArgs.exports}var isarray,hasRequiredIsarray;function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var r={}.toString;return isarray=Array.isArray||function(t){return r.call(t)=="[object Array]"},isarray}var streamBrowser,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser=requireEvents().EventEmitter),streamBrowser}var safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(r,t){var n=requireDist(),i=n.Buffer;function s(f,l){for(var d in f)l[d]=f[d]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=n:(s(n,t),t.Buffer=a);function a(f,l,d){return i(f,l,d)}s(i,a),a.from=function(f,l,d){if(typeof f=="number")throw new TypeError("Argument must not be a number");return i(f,l,d)},a.alloc=function(f,l,d){if(typeof f!="number")throw new TypeError("Argument must be a number");var o=i(f);return l!==void 0?typeof d=="string"?o.fill(l,d):o.fill(l):o.fill(0),o},a.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i(f)},a.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(f)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;function r(m){return Array.isArray?Array.isArray(m):y(m)==="[object Array]"}util.isArray=r;function t(m){return typeof m=="boolean"}util.isBoolean=t;function n(m){return m===null}util.isNull=n;function i(m){return m==null}util.isNullOrUndefined=i;function s(m){return typeof m=="number"}util.isNumber=s;function a(m){return typeof m=="string"}util.isString=a;function f(m){return typeof m=="symbol"}util.isSymbol=f;function l(m){return m===void 0}util.isUndefined=l;function d(m){return y(m)==="[object RegExp]"}util.isRegExp=d;function o(m){return typeof m=="object"&&m!==null}util.isObject=o;function u(m){return y(m)==="[object Date]"}util.isDate=u;function p(m){return y(m)==="[object Error]"||m instanceof Error}util.isError=p;function c(m){return typeof m=="function"}util.isFunction=c;function v(m){return m===null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||typeof m=="symbol"||typeof m>"u"}util.isPrimitive=v,util.isBuffer=requireDist().Buffer.isBuffer;function y(m){return Object.prototype.toString.call(m)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(r){function t(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}var n=requireSafeBuffer().Buffer,i=requireUtil$1();function s(a,f,l){a.copy(f,l)}r.exports=function(){function a(){t(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(l){var d={data:l,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},a.prototype.unshift=function(l){var d={data:l,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},a.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(l){if(this.length===0)return"";for(var d=this.head,o=""+d.data;d=d.next;)o+=l+d.data;return o},a.prototype.concat=function(l){if(this.length===0)return n.alloc(0);for(var d=n.allocUnsafe(l>>>0),o=this.head,u=0;o;)s(o.data,d,u),u+=o.data.length,o=o.next;return d},a}(),i&&i.inspect&&i.inspect.custom&&(r.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})}(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var r=requireProcessNextickArgs();function t(s,a){var f=this,l=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return l||d?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,s)):r.nextTick(i,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(o){!a&&o?f._writableState?f._writableState.errorEmitted||(f._writableState.errorEmitted=!0,r.nextTick(i,f,o)):r.nextTick(i,f,o):a&&a(o)}),this)}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(s,a){s.emit("error",a)}return destroy_1={destroy:t,undestroy:n},destroy_1}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var r=requireProcessNextickArgs();_stream_writable=m;function t(w){var E=this;this.next=null,this.entry=null,this.finish=function(){I(E,w)}}var n=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:r.nextTick,i;m.WritableState=v;var s=Object.create(requireUtil());s.inherits=requireInherits_browser();var a={deprecate:requireBrowser$c()},f=requireStreamBrowser(),l=requireSafeBuffer().Buffer,d=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(w){return l.from(w)}function u(w){return l.isBuffer(w)||w instanceof d}var p=requireDestroy();s.inherits(m,f);function c(){}function v(w,E){i=i||require_stream_duplex(),w=w||{};var N=E instanceof i;this.objectMode=!!w.objectMode,N&&(this.objectMode=this.objectMode||!!w.writableObjectMode);var x=w.highWaterMark,T=w.writableHighWaterMark,b=this.objectMode?16:16*1024;x||x===0?this.highWaterMark=x:N&&(T||T===0)?this.highWaterMark=T:this.highWaterMark=b,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=w.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=w.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(P){k(E,P)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}v.prototype.getBuffer=function(){for(var E=this.bufferedRequest,N=[];E;)N.push(E),E=E.next;return N},function(){try{Object.defineProperty(v.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var y;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(w){return y.call(this,w)?!0:this!==m?!1:w&&w._writableState instanceof v}})):y=function(w){return w instanceof this};function m(w){if(i=i||require_stream_duplex(),!y.call(m,this)&&!(this instanceof i))return new m(w);this._writableState=new v(w,this),this.writable=!0,w&&(typeof w.write=="function"&&(this._write=w.write),typeof w.writev=="function"&&(this._writev=w.writev),typeof w.destroy=="function"&&(this._destroy=w.destroy),typeof w.final=="function"&&(this._final=w.final)),f.call(this)}m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function R(w,E){var N=new Error("write after end");w.emit("error",N),r.nextTick(E,N)}function A(w,E,N,x){var T=!0,b=!1;return N===null?b=new TypeError("May not write null values to stream"):typeof N!="string"&&N!==void 0&&!E.objectMode&&(b=new TypeError("Invalid non-string/buffer chunk")),b&&(w.emit("error",b),r.nextTick(x,b),T=!1),T}m.prototype.write=function(w,E,N){var x=this._writableState,T=!1,b=!x.objectMode&&u(w);return b&&!l.isBuffer(w)&&(w=o(w)),typeof E=="function"&&(N=E,E=null),b?E="buffer":E||(E=x.defaultEncoding),typeof N!="function"&&(N=c),x.ended?R(this,N):(b||A(this,x,w,N))&&(x.pendingcb++,T=C(this,x,b,w,E,N)),T},m.prototype.cork=function(){var w=this._writableState;w.corked++},m.prototype.uncork=function(){var w=this._writableState;w.corked&&(w.corked--,!w.writing&&!w.corked&&!w.bufferProcessing&&w.bufferedRequest&&G(this,w))},m.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+E);return this._writableState.defaultEncoding=E,this};function D(w,E,N){return!w.objectMode&&w.decodeStrings!==!1&&typeof E=="string"&&(E=l.from(E,N)),E}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function C(w,E,N,x,T,b){if(!N){var O=D(E,x,T);x!==O&&(N=!0,T="buffer",x=O)}var P=E.objectMode?1:x.length;E.length+=P;var K=E.length<E.highWaterMark;if(K||(E.needDrain=!0),E.writing||E.corked){var V=E.lastBufferedRequest;E.lastBufferedRequest={chunk:x,encoding:T,isBuf:N,callback:b,next:null},V?V.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else q(w,E,!1,P,x,T,b);return K}function q(w,E,N,x,T,b,O){E.writelen=x,E.writecb=O,E.writing=!0,E.sync=!0,N?w._writev(T,E.onwrite):w._write(T,b,E.onwrite),E.sync=!1}function M(w,E,N,x,T){--E.pendingcb,N?(r.nextTick(T,x),r.nextTick(h,w,E),w._writableState.errorEmitted=!0,w.emit("error",x)):(T(x),w._writableState.errorEmitted=!0,w.emit("error",x),h(w,E))}function F(w){w.writing=!1,w.writecb=null,w.length-=w.writelen,w.writelen=0}function k(w,E){var N=w._writableState,x=N.sync,T=N.writecb;if(F(N),E)M(w,N,x,E,T);else{var b=B(N);!b&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&G(w,N),x?n($,w,N,b,T):$(w,N,b,T)}}function $(w,E,N,x){N||L(w,E),E.pendingcb--,x(),h(w,E)}function L(w,E){E.length===0&&E.needDrain&&(E.needDrain=!1,w.emit("drain"))}function G(w,E){E.bufferProcessing=!0;var N=E.bufferedRequest;if(w._writev&&N&&N.next){var x=E.bufferedRequestCount,T=new Array(x),b=E.corkedRequestsFree;b.entry=N;for(var O=0,P=!0;N;)T[O]=N,N.isBuf||(P=!1),N=N.next,O+=1;T.allBuffers=P,q(w,E,!0,E.length,T,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new t(E),E.bufferedRequestCount=0}else{for(;N;){var K=N.chunk,V=N.encoding,U=N.callback,j=E.objectMode?1:K.length;if(q(w,E,!1,j,K,V,U),N=N.next,E.bufferedRequestCount--,E.writing)break}N===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=N,E.bufferProcessing=!1}m.prototype._write=function(w,E,N){N(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(w,E,N){var x=this._writableState;typeof w=="function"?(N=w,w=null,E=null):typeof E=="function"&&(N=E,E=null),w!=null&&this.write(w,E),x.corked&&(x.corked=1,this.uncork()),x.ending||g(this,x,N)};function B(w){return w.ending&&w.length===0&&w.bufferedRequest===null&&!w.finished&&!w.writing}function S(w,E){w._final(function(N){E.pendingcb--,N&&w.emit("error",N),E.prefinished=!0,w.emit("prefinish"),h(w,E)})}function _(w,E){!E.prefinished&&!E.finalCalled&&(typeof w._final=="function"?(E.pendingcb++,E.finalCalled=!0,r.nextTick(S,w,E)):(E.prefinished=!0,w.emit("prefinish")))}function h(w,E){var N=B(E);return N&&(_(w,E),E.pendingcb===0&&(E.finished=!0,w.emit("finish"))),N}function g(w,E,N){E.ending=!0,h(w,E),N&&(E.finished?r.nextTick(N):w.once("finish",N)),E.ended=!0,w.writable=!1}function I(w,E,N){var x=w.entry;for(w.entry=null;x;){var T=x.callback;E.pendingcb--,T(N),x=x.next}E.corkedRequestsFree.next=w}return Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(w){this._writableState&&(this._writableState.destroyed=w)}}),m.prototype.destroy=p.destroy,m.prototype._undestroy=p.undestroy,m.prototype._destroy=function(w,E){this.end(),E(w)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var r=requireProcessNextickArgs(),t=Object.keys||function(p){var c=[];for(var v in p)c.push(v);return c};_stream_duplex=d;var n=Object.create(requireUtil());n.inherits=requireInherits_browser();var i=require_stream_readable(),s=require_stream_writable();n.inherits(d,i);for(var a=t(s.prototype),f=0;f<a.length;f++){var l=a[f];d.prototype[l]||(d.prototype[l]=s.prototype[l])}function d(p){if(!(this instanceof d))return new d(p);i.call(this,p),s.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||r.nextTick(u,this)}function u(p){p.end()}return Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),d.prototype._destroy=function(p,c){this.push(null),this.end(),r.nextTick(c,p)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var r=requireProcessNextickArgs();_stream_readable=D;var t=requireIsarray(),n;D.ReadableState=A,requireEvents().EventEmitter;var i=function(U,j){return U.listeners(j).length},s=requireStreamBrowser(),a=requireSafeBuffer().Buffer,f=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(U){return a.from(U)}function d(U){return a.isBuffer(U)||U instanceof f}var o=Object.create(requireUtil());o.inherits=requireInherits_browser();var u=requireUtil$1(),p=void 0;u&&u.debuglog?p=u.debuglog("stream"):p=function(){};var c=requireBufferList(),v=requireDestroy(),y;o.inherits(D,s);var m=["error","close","destroy","pause","resume"];function R(U,j,X){if(typeof U.prependListener=="function")return U.prependListener(j,X);!U._events||!U._events[j]?U.on(j,X):t(U._events[j])?U._events[j].unshift(X):U._events[j]=[X,U._events[j]]}function A(U,j){n=n||require_stream_duplex(),U=U||{};var X=j instanceof n;this.objectMode=!!U.objectMode,X&&(this.objectMode=this.objectMode||!!U.readableObjectMode);var Z=U.highWaterMark,z=U.readableHighWaterMark,W=this.objectMode?16:16*1024;Z||Z===0?this.highWaterMark=Z:X&&(z||z===0)?this.highWaterMark=z:this.highWaterMark=W,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(y||(y=requireString_decoder().StringDecoder),this.decoder=new y(U.encoding),this.encoding=U.encoding)}function D(U){if(n=n||require_stream_duplex(),!(this instanceof D))return new D(U);this._readableState=new A(U,this),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),s.call(this)}Object.defineProperty(D.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(U,j){this.push(null),j(U)},D.prototype.push=function(U,j){var X=this._readableState,Z;return X.objectMode?Z=!0:typeof U=="string"&&(j=j||X.defaultEncoding,j!==X.encoding&&(U=a.from(U,j),j=""),Z=!0),C(this,U,j,!1,Z)},D.prototype.unshift=function(U){return C(this,U,null,!0,!1)};function C(U,j,X,Z,z){var W=U._readableState;if(j===null)W.reading=!1,G(U,W);else{var Y;z||(Y=M(W,j)),Y?U.emit("error",Y):W.objectMode||j&&j.length>0?(typeof j!="string"&&!W.objectMode&&Object.getPrototypeOf(j)!==a.prototype&&(j=l(j)),Z?W.endEmitted?U.emit("error",new Error("stream.unshift() after end event")):q(U,W,j,!0):W.ended?U.emit("error",new Error("stream.push() after EOF")):(W.reading=!1,W.decoder&&!X?(j=W.decoder.write(j),W.objectMode||j.length!==0?q(U,W,j,!1):_(U,W)):q(U,W,j,!1))):Z||(W.reading=!1)}return F(W)}function q(U,j,X,Z){j.flowing&&j.length===0&&!j.sync?(U.emit("data",X),U.read(0)):(j.length+=j.objectMode?1:X.length,Z?j.buffer.unshift(X):j.buffer.push(X),j.needReadable&&B(U)),_(U,j)}function M(U,j){var X;return!d(j)&&typeof j!="string"&&j!==void 0&&!U.objectMode&&(X=new TypeError("Invalid non-string/buffer chunk")),X}function F(U){return!U.ended&&(U.needReadable||U.length<U.highWaterMark||U.length===0)}D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(U){return y||(y=requireString_decoder().StringDecoder),this._readableState.decoder=new y(U),this._readableState.encoding=U,this};var k=8388608;function $(U){return U>=k?U=k:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function L(U,j){return U<=0||j.length===0&&j.ended?0:j.objectMode?1:U!==U?j.flowing&&j.length?j.buffer.head.data.length:j.length:(U>j.highWaterMark&&(j.highWaterMark=$(U)),U<=j.length?U:j.ended?j.length:(j.needReadable=!0,0))}D.prototype.read=function(U){p("read",U),U=parseInt(U,10);var j=this._readableState,X=U;if(U!==0&&(j.emittedReadable=!1),U===0&&j.needReadable&&(j.length>=j.highWaterMark||j.ended))return p("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?P(this):B(this),null;if(U=L(U,j),U===0&&j.ended)return j.length===0&&P(this),null;var Z=j.needReadable;p("need readable",Z),(j.length===0||j.length-U<j.highWaterMark)&&(Z=!0,p("length less than watermark",Z)),j.ended||j.reading?(Z=!1,p("reading or ended",Z)):Z&&(p("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(U=L(X,j)));var z;return U>0?z=x(U,j):z=null,z===null?(j.needReadable=!0,U=0):j.length-=U,j.length===0&&(j.ended||(j.needReadable=!0),X!==U&&j.ended&&P(this)),z!==null&&this.emit("data",z),z};function G(U,j){if(!j.ended){if(j.decoder){var X=j.decoder.end();X&&X.length&&(j.buffer.push(X),j.length+=j.objectMode?1:X.length)}j.ended=!0,B(U)}}function B(U){var j=U._readableState;j.needReadable=!1,j.emittedReadable||(p("emitReadable",j.flowing),j.emittedReadable=!0,j.sync?r.nextTick(S,U):S(U))}function S(U){p("emit readable"),U.emit("readable"),N(U)}function _(U,j){j.readingMore||(j.readingMore=!0,r.nextTick(h,U,j))}function h(U,j){for(var X=j.length;!j.reading&&!j.flowing&&!j.ended&&j.length<j.highWaterMark&&(p("maybeReadMore read 0"),U.read(0),X!==j.length);)X=j.length;j.readingMore=!1}D.prototype._read=function(U){this.emit("error",new Error("_read() is not implemented"))},D.prototype.pipe=function(U,j){var X=this,Z=this._readableState;switch(Z.pipesCount){case 0:Z.pipes=U;break;case 1:Z.pipes=[Z.pipes,U];break;default:Z.pipes.push(U);break}Z.pipesCount+=1,p("pipe count=%d opts=%j",Z.pipesCount,j);var z=(!j||j.end!==!1)&&U!==process$1.stdout&&U!==process$1.stderr,W=z?te:he;Z.endEmitted?r.nextTick(W):X.once("end",W),U.on("unpipe",Y);function Y(pe,ge){p("onunpipe"),pe===X&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,se())}function te(){p("onend"),U.end()}var re=g(X);U.on("drain",re);var ie=!1;function se(){p("cleanup"),U.removeListener("close",ue),U.removeListener("finish",ce),U.removeListener("drain",re),U.removeListener("error",de),U.removeListener("unpipe",Y),X.removeListener("end",te),X.removeListener("end",he),X.removeListener("data",ne),ie=!0,Z.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&re()}var fe=!1;X.on("data",ne);function ne(pe){p("ondata"),fe=!1;var ge=U.write(pe);ge===!1&&!fe&&((Z.pipesCount===1&&Z.pipes===U||Z.pipesCount>1&&V(Z.pipes,U)!==-1)&&!ie&&(p("false write response, pause",Z.awaitDrain),Z.awaitDrain++,fe=!0),X.pause())}function de(pe){p("onerror",pe),he(),U.removeListener("error",de),i(U,"error")===0&&U.emit("error",pe)}R(U,"error",de);function ue(){U.removeListener("finish",ce),he()}U.once("close",ue);function ce(){p("onfinish"),U.removeListener("close",ue),he()}U.once("finish",ce);function he(){p("unpipe"),X.unpipe(U)}return U.emit("pipe",X),Z.flowing||(p("pipe resume"),X.resume()),U};function g(U){return function(){var j=U._readableState;p("pipeOnDrain",j.awaitDrain),j.awaitDrain&&j.awaitDrain--,j.awaitDrain===0&&i(U,"data")&&(j.flowing=!0,N(U))}}D.prototype.unpipe=function(U){var j=this._readableState,X={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return U&&U!==j.pipes?this:(U||(U=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,U&&U.emit("unpipe",this,X),this);if(!U){var Z=j.pipes,z=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var W=0;W<z;W++)Z[W].emit("unpipe",this,{hasUnpiped:!1});return this}var Y=V(j.pipes,U);return Y===-1?this:(j.pipes.splice(Y,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),U.emit("unpipe",this,X),this)},D.prototype.on=function(U,j){var X=s.prototype.on.call(this,U,j);if(U==="data")this._readableState.flowing!==!1&&this.resume();else if(U==="readable"){var Z=this._readableState;!Z.endEmitted&&!Z.readableListening&&(Z.readableListening=Z.needReadable=!0,Z.emittedReadable=!1,Z.reading?Z.length&&B(this):r.nextTick(I,this))}return X},D.prototype.addListener=D.prototype.on;function I(U){p("readable nexttick read 0"),U.read(0)}D.prototype.resume=function(){var U=this._readableState;return U.flowing||(p("resume"),U.flowing=!0,w(this,U)),this};function w(U,j){j.resumeScheduled||(j.resumeScheduled=!0,r.nextTick(E,U,j))}function E(U,j){j.reading||(p("resume read 0"),U.read(0)),j.resumeScheduled=!1,j.awaitDrain=0,U.emit("resume"),N(U),j.flowing&&!j.reading&&U.read(0)}D.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function N(U){var j=U._readableState;for(p("flow",j.flowing);j.flowing&&U.read()!==null;);}D.prototype.wrap=function(U){var j=this,X=this._readableState,Z=!1;U.on("end",function(){if(p("wrapped end"),X.decoder&&!X.ended){var Y=X.decoder.end();Y&&Y.length&&j.push(Y)}j.push(null)}),U.on("data",function(Y){if(p("wrapped data"),X.decoder&&(Y=X.decoder.write(Y)),!(X.objectMode&&Y==null)&&!(!X.objectMode&&(!Y||!Y.length))){var te=j.push(Y);te||(Z=!0,U.pause())}});for(var z in U)this[z]===void 0&&typeof U[z]=="function"&&(this[z]=function(Y){return function(){return U[Y].apply(U,arguments)}}(z));for(var W=0;W<m.length;W++)U.on(m[W],this.emit.bind(this,m[W]));return this._read=function(Y){p("wrapped _read",Y),Z&&(Z=!1,U.resume())},this},Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),D._fromList=x;function x(U,j){if(j.length===0)return null;var X;return j.objectMode?X=j.buffer.shift():!U||U>=j.length?(j.decoder?X=j.buffer.join(""):j.buffer.length===1?X=j.buffer.head.data:X=j.buffer.concat(j.length),j.buffer.clear()):X=T(U,j.buffer,j.decoder),X}function T(U,j,X){var Z;return U<j.head.data.length?(Z=j.head.data.slice(0,U),j.head.data=j.head.data.slice(U)):U===j.head.data.length?Z=j.shift():Z=X?b(U,j):O(U,j),Z}function b(U,j){var X=j.head,Z=1,z=X.data;for(U-=z.length;X=X.next;){var W=X.data,Y=U>W.length?W.length:U;if(Y===W.length?z+=W:z+=W.slice(0,U),U-=Y,U===0){Y===W.length?(++Z,X.next?j.head=X.next:j.head=j.tail=null):(j.head=X,X.data=W.slice(Y));break}++Z}return j.length-=Z,z}function O(U,j){var X=a.allocUnsafe(U),Z=j.head,z=1;for(Z.data.copy(X),U-=Z.data.length;Z=Z.next;){var W=Z.data,Y=U>W.length?W.length:U;if(W.copy(X,X.length-U,0,Y),U-=Y,U===0){Y===W.length?(++z,Z.next?j.head=Z.next:j.head=j.tail=null):(j.head=Z,Z.data=W.slice(Y));break}++z}return j.length-=z,X}function P(U){var j=U._readableState;if(j.length>0)throw new Error('"endReadable()" called on non-empty stream');j.endEmitted||(j.ended=!0,r.nextTick(K,j,U))}function K(U,j){!U.endEmitted&&U.length===0&&(U.endEmitted=!0,j.readable=!1,j.emit("end"))}function V(U,j){for(var X=0,Z=U.length;X<Z;X++)if(U[X]===j)return X;return-1}return _stream_readable}var _stream_transform,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=i;var r=require_stream_duplex(),t=Object.create(requireUtil());t.inherits=requireInherits_browser(),t.inherits(i,r);function n(f,l){var d=this._transformState;d.transforming=!1;var o=d.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,l!=null&&this.push(l),o(f);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function i(f){if(!(this instanceof i))return new i(f);r.call(this,f),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",s)}function s(){var f=this;typeof this._flush=="function"?this._flush(function(l,d){a(f,l,d)}):a(this,null,null)}i.prototype.push=function(f,l){return this._transformState.needTransform=!1,r.prototype.push.call(this,f,l)},i.prototype._transform=function(f,l,d){throw new Error("_transform() is not implemented")},i.prototype._write=function(f,l,d){var o=this._transformState;if(o.writecb=d,o.writechunk=f,o.writeencoding=l,!o.transforming){var u=this._readableState;(o.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}},i.prototype._read=function(f){var l=this._transformState;l.writechunk!==null&&l.writecb&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},i.prototype._destroy=function(f,l){var d=this;r.prototype._destroy.call(this,f,function(o){l(o),d.emit("close")})};function a(f,l,d){if(l)return f.emit("error",l);if(d!=null&&f.push(d),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}return _stream_transform}var _stream_passthrough,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=n;var r=require_stream_transform(),t=Object.create(requireUtil());t.inherits=requireInherits_browser(),t.inherits(n,r);function n(i){if(!(this instanceof n))return new n(i);r.call(this,i)}return n.prototype._transform=function(i,s,a){a(null,i)},_stream_passthrough}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(r,t){t=r.exports=require_stream_readable(),t.Stream=t,t.Readable=t,t.Writable=require_stream_writable(),t.Duplex=require_stream_duplex(),t.Transform=require_stream_transform(),t.PassThrough=require_stream_passthrough()}(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var sign={exports:{}},bn$3={exports:{}},bn$2=bn$3.exports,hasRequiredBn$1;function requireBn$1(){return hasRequiredBn$1||(hasRequiredBn$1=1,function(r){(function(t,n){function i(_,h){if(!_)throw new Error(h||"Assertion failed")}function s(_,h){_.super_=h;var g=function(){};g.prototype=h.prototype,_.prototype=new g,_.prototype.constructor=_}function a(_,h,g){if(a.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(_||0,h||10,g||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=requireDist().Buffer}catch{}a.isBN=function(h){return h instanceof a?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===a.wordSize&&Array.isArray(h.words)},a.max=function(h,g){return h.cmp(g)>0?h:g},a.min=function(h,g){return h.cmp(g)<0?h:g},a.prototype._init=function(h,g,I){if(typeof h=="number")return this._initNumber(h,g,I);if(typeof h=="object")return this._initArray(h,g,I);g==="hex"&&(g=16),i(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var w=0;h[0]==="-"&&(w++,this.negative=1),w<h.length&&(g===16?this._parseHex(h,w,I):(this._parseBase(h,g,w),I==="le"&&this._initArray(this.toArray(),g,I)))},a.prototype._initNumber=function(h,g,I){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(i(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),g,I)},a.prototype._initArray=function(h,g,I){if(i(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E,N,x=0;if(I==="be")for(w=h.length-1,E=0;w>=0;w-=3)N=h[w]|h[w-1]<<8|h[w-2]<<16,this.words[E]|=N<<x&67108863,this.words[E+1]=N>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(I==="le")for(w=0,E=0;w<h.length;w+=3)N=h[w]|h[w+1]<<8|h[w+2]<<16,this.words[E]|=N<<x&67108863,this.words[E+1]=N>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this._strip()};function l(_,h){var g=_.charCodeAt(h);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;i(!1,"Invalid character in "+_)}function d(_,h,g){var I=l(_,g);return g-1>=h&&(I|=l(_,g-1)<<4),I}a.prototype._parseHex=function(h,g,I){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E=0,N=0,x;if(I==="be")for(w=h.length-1;w>=g;w-=2)x=d(h,g,w)<<E,this.words[N]|=x&67108863,E>=18?(E-=18,N+=1,this.words[N]|=x>>>26):E+=8;else{var T=h.length-g;for(w=T%2===0?g+1:g;w<h.length;w+=2)x=d(h,g,w)<<E,this.words[N]|=x&67108863,E>=18?(E-=18,N+=1,this.words[N]|=x>>>26):E+=8}this._strip()};function o(_,h,g,I){for(var w=0,E=0,N=Math.min(_.length,g),x=h;x<N;x++){var T=_.charCodeAt(x)-48;w*=I,T>=49?E=T-49+10:T>=17?E=T-17+10:E=T,i(T>=0&&E<I,"Invalid character"),w+=E}return w}a.prototype._parseBase=function(h,g,I){this.words=[0],this.length=1;for(var w=0,E=1;E<=67108863;E*=g)w++;w--,E=E/g|0;for(var N=h.length-I,x=N%w,T=Math.min(N,N-x)+I,b=0,O=I;O<T;O+=w)b=o(h,O,O+w,g),this.imuln(E),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(x!==0){var P=1;for(b=o(h,O,h.length,g),O=0;O<x;O++)P*=g;this.imuln(P),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},a.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red};function u(_,h){_.words=h.words,_.length=h.length,_.negative=h.negative,_.red=h.red}if(a.prototype._move=function(h){u(h,this)},a.prototype.clone=function(){var h=new a(null);return this.copy(h),h},a.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch{a.prototype.inspect=p}else a.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(h,g){h=h||10,g=g|0||1;var I;if(h===16||h==="hex"){I="";for(var w=0,E=0,N=0;N<this.length;N++){var x=this.words[N],T=((x<<w|E)&16777215).toString(16);E=x>>>24-w&16777215,w+=2,w>=26&&(w-=26,N--),E!==0||N!==this.length-1?I=c[6-T.length]+T+I:I=T+I}for(E!==0&&(I=E.toString(16)+I);I.length%g!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(h===(h|0)&&h>=2&&h<=36){var b=v[h],O=y[h];I="";var P=this.clone();for(P.negative=0;!P.isZero();){var K=P.modrn(O).toString(h);P=P.idivn(O),P.isZero()?I=K+I:I=c[b-K.length]+K+I}for(this.isZero()&&(I="0"+I);I.length%g!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},a.prototype.toJSON=function(){return this.toString(16,2)},f&&(a.prototype.toBuffer=function(h,g){return this.toArrayLike(f,h,g)}),a.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)};var m=function(h,g){return h.allocUnsafe?h.allocUnsafe(g):new h(g)};a.prototype.toArrayLike=function(h,g,I){this._strip();var w=this.byteLength(),E=I||Math.max(1,w);i(w<=E,"byte array longer than desired length"),i(E>0,"Requested array length <= 0");var N=m(h,E),x=g==="le"?"LE":"BE";return this["_toArrayLike"+x](N,w),N},a.prototype._toArrayLikeLE=function(h,g){for(var I=0,w=0,E=0,N=0;E<this.length;E++){var x=this.words[E]<<N|w;h[I++]=x&255,I<h.length&&(h[I++]=x>>8&255),I<h.length&&(h[I++]=x>>16&255),N===6?(I<h.length&&(h[I++]=x>>24&255),w=0,N=0):(w=x>>>24,N+=2)}if(I<h.length)for(h[I++]=w;I<h.length;)h[I++]=0},a.prototype._toArrayLikeBE=function(h,g){for(var I=h.length-1,w=0,E=0,N=0;E<this.length;E++){var x=this.words[E]<<N|w;h[I--]=x&255,I>=0&&(h[I--]=x>>8&255),I>=0&&(h[I--]=x>>16&255),N===6?(I>=0&&(h[I--]=x>>24&255),w=0,N=0):(w=x>>>24,N+=2)}if(I>=0)for(h[I--]=w;I>=0;)h[I--]=0},Math.clz32?a.prototype._countBits=function(h){return 32-Math.clz32(h)}:a.prototype._countBits=function(h){var g=h,I=0;return g>=4096&&(I+=13,g>>>=13),g>=64&&(I+=7,g>>>=7),g>=8&&(I+=4,g>>>=4),g>=2&&(I+=2,g>>>=2),I+g},a.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,I=0;return(g&8191)===0&&(I+=13,g>>>=13),(g&127)===0&&(I+=7,g>>>=7),(g&15)===0&&(I+=4,g>>>=4),(g&3)===0&&(I+=2,g>>>=2),(g&1)===0&&I++,I},a.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function R(_){for(var h=new Array(_.bitLength()),g=0;g<h.length;g++){var I=g/26|0,w=g%26;h[g]=_.words[I]>>>w&1}return h}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var I=this._zeroBits(this.words[g]);if(h+=I,I!==26)break}return h},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},a.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this._strip()},a.prototype.ior=function(h){return i((this.negative|h.negative)===0),this.iuor(h)},a.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},a.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},a.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var I=0;I<g.length;I++)this.words[I]=this.words[I]&h.words[I];return this.length=g.length,this._strip()},a.prototype.iand=function(h){return i((this.negative|h.negative)===0),this.iuand(h)},a.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},a.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},a.prototype.iuxor=function(h){var g,I;this.length>h.length?(g=this,I=h):(g=h,I=this);for(var w=0;w<I.length;w++)this.words[w]=g.words[w]^I.words[w];if(this!==g)for(;w<g.length;w++)this.words[w]=g.words[w];return this.length=g.length,this._strip()},a.prototype.ixor=function(h){return i((this.negative|h.negative)===0),this.iuxor(h)},a.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},a.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},a.prototype.inotn=function(h){i(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,I=h%26;this._expand(g),I>0&&g--;for(var w=0;w<g;w++)this.words[w]=~this.words[w]&67108863;return I>0&&(this.words[w]=~this.words[w]&67108863>>26-I),this._strip()},a.prototype.notn=function(h){return this.clone().inotn(h)},a.prototype.setn=function(h,g){i(typeof h=="number"&&h>=0);var I=h/26|0,w=h%26;return this._expand(I+1),g?this.words[I]=this.words[I]|1<<w:this.words[I]=this.words[I]&~(1<<w),this._strip()},a.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var I,w;this.length>h.length?(I=this,w=h):(I=h,w=this);for(var E=0,N=0;N<w.length;N++)g=(I.words[N]|0)+(w.words[N]|0)+E,this.words[N]=g&67108863,E=g>>>26;for(;E!==0&&N<I.length;N++)g=(I.words[N]|0)+E,this.words[N]=g&67108863,E=g>>>26;if(this.length=I.length,E!==0)this.words[this.length]=E,this.length++;else if(I!==this)for(;N<I.length;N++)this.words[N]=I.words[N];return this},a.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},a.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var I=this.cmp(h);if(I===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,E;I>0?(w=this,E=h):(w=h,E=this);for(var N=0,x=0;x<E.length;x++)g=(w.words[x]|0)-(E.words[x]|0)+N,N=g>>26,this.words[x]=g&67108863;for(;N!==0&&x<w.length;x++)g=(w.words[x]|0)+N,N=g>>26,this.words[x]=g&67108863;if(N===0&&x<w.length&&w!==this)for(;x<w.length;x++)this.words[x]=w.words[x];return this.length=Math.max(this.length,x),w!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(h){return this.clone().isub(h)};function A(_,h,g){g.negative=h.negative^_.negative;var I=_.length+h.length|0;g.length=I,I=I-1|0;var w=_.words[0]|0,E=h.words[0]|0,N=w*E,x=N&67108863,T=N/67108864|0;g.words[0]=x;for(var b=1;b<I;b++){for(var O=T>>>26,P=T&67108863,K=Math.min(b,h.length-1),V=Math.max(0,b-_.length+1);V<=K;V++){var U=b-V|0;w=_.words[U]|0,E=h.words[V]|0,N=w*E+P,O+=N/67108864|0,P=N&67108863}g.words[b]=P|0,T=O|0}return T!==0?g.words[b]=T|0:g.length--,g._strip()}var D=function(h,g,I){var w=h.words,E=g.words,N=I.words,x=0,T,b,O,P=w[0]|0,K=P&8191,V=P>>>13,U=w[1]|0,j=U&8191,X=U>>>13,Z=w[2]|0,z=Z&8191,W=Z>>>13,Y=w[3]|0,te=Y&8191,re=Y>>>13,ie=w[4]|0,se=ie&8191,fe=ie>>>13,ne=w[5]|0,de=ne&8191,ue=ne>>>13,ce=w[6]|0,he=ce&8191,pe=ce>>>13,ge=w[7]|0,me=ge&8191,ve=ge>>>13,Le=w[8]|0,Ae=Le&8191,be=Le>>>13,ke=w[9]|0,Ne=ke&8191,_e=ke>>>13,Ue=E[0]|0,Ce=Ue&8191,xe=Ue>>>13,Ge=E[1]|0,qe=Ge&8191,Se=Ge>>>13,He=E[2]|0,Oe=He&8191,Ee=He>>>13,Ve=E[3]|0,Me=Ve&8191,Te=Ve>>>13,je=E[4]|0,Be=je&8191,J=je>>>13,H=E[5]|0,Q=H&8191,ee=H>>>13,ae=E[6]|0,oe=ae&8191,le=ae>>>13,Ie=E[7]|0,we=Ie&8191,ye=Ie>>>13,Fe=E[8]|0,Re=Fe&8191,De=Fe>>>13,Ke=E[9]|0,Pe=Ke&8191,$e=Ke>>>13;I.negative=h.negative^g.negative,I.length=19,T=Math.imul(K,Ce),b=Math.imul(K,xe),b=b+Math.imul(V,Ce)|0,O=Math.imul(V,xe);var Qe=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,T=Math.imul(j,Ce),b=Math.imul(j,xe),b=b+Math.imul(X,Ce)|0,O=Math.imul(X,xe),T=T+Math.imul(K,qe)|0,b=b+Math.imul(K,Se)|0,b=b+Math.imul(V,qe)|0,O=O+Math.imul(V,Se)|0;var ze=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ze>>>26)|0,ze&=67108863,T=Math.imul(z,Ce),b=Math.imul(z,xe),b=b+Math.imul(W,Ce)|0,O=Math.imul(W,xe),T=T+Math.imul(j,qe)|0,b=b+Math.imul(j,Se)|0,b=b+Math.imul(X,qe)|0,O=O+Math.imul(X,Se)|0,T=T+Math.imul(K,Oe)|0,b=b+Math.imul(K,Ee)|0,b=b+Math.imul(V,Oe)|0,O=O+Math.imul(V,Ee)|0;var We=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(We>>>26)|0,We&=67108863,T=Math.imul(te,Ce),b=Math.imul(te,xe),b=b+Math.imul(re,Ce)|0,O=Math.imul(re,xe),T=T+Math.imul(z,qe)|0,b=b+Math.imul(z,Se)|0,b=b+Math.imul(W,qe)|0,O=O+Math.imul(W,Se)|0,T=T+Math.imul(j,Oe)|0,b=b+Math.imul(j,Ee)|0,b=b+Math.imul(X,Oe)|0,O=O+Math.imul(X,Ee)|0,T=T+Math.imul(K,Me)|0,b=b+Math.imul(K,Te)|0,b=b+Math.imul(V,Me)|0,O=O+Math.imul(V,Te)|0;var Ye=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,T=Math.imul(se,Ce),b=Math.imul(se,xe),b=b+Math.imul(fe,Ce)|0,O=Math.imul(fe,xe),T=T+Math.imul(te,qe)|0,b=b+Math.imul(te,Se)|0,b=b+Math.imul(re,qe)|0,O=O+Math.imul(re,Se)|0,T=T+Math.imul(z,Oe)|0,b=b+Math.imul(z,Ee)|0,b=b+Math.imul(W,Oe)|0,O=O+Math.imul(W,Ee)|0,T=T+Math.imul(j,Me)|0,b=b+Math.imul(j,Te)|0,b=b+Math.imul(X,Me)|0,O=O+Math.imul(X,Te)|0,T=T+Math.imul(K,Be)|0,b=b+Math.imul(K,J)|0,b=b+Math.imul(V,Be)|0,O=O+Math.imul(V,J)|0;var Xe=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,T=Math.imul(de,Ce),b=Math.imul(de,xe),b=b+Math.imul(ue,Ce)|0,O=Math.imul(ue,xe),T=T+Math.imul(se,qe)|0,b=b+Math.imul(se,Se)|0,b=b+Math.imul(fe,qe)|0,O=O+Math.imul(fe,Se)|0,T=T+Math.imul(te,Oe)|0,b=b+Math.imul(te,Ee)|0,b=b+Math.imul(re,Oe)|0,O=O+Math.imul(re,Ee)|0,T=T+Math.imul(z,Me)|0,b=b+Math.imul(z,Te)|0,b=b+Math.imul(W,Me)|0,O=O+Math.imul(W,Te)|0,T=T+Math.imul(j,Be)|0,b=b+Math.imul(j,J)|0,b=b+Math.imul(X,Be)|0,O=O+Math.imul(X,J)|0,T=T+Math.imul(K,Q)|0,b=b+Math.imul(K,ee)|0,b=b+Math.imul(V,Q)|0,O=O+Math.imul(V,ee)|0;var Je=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Je>>>26)|0,Je&=67108863,T=Math.imul(he,Ce),b=Math.imul(he,xe),b=b+Math.imul(pe,Ce)|0,O=Math.imul(pe,xe),T=T+Math.imul(de,qe)|0,b=b+Math.imul(de,Se)|0,b=b+Math.imul(ue,qe)|0,O=O+Math.imul(ue,Se)|0,T=T+Math.imul(se,Oe)|0,b=b+Math.imul(se,Ee)|0,b=b+Math.imul(fe,Oe)|0,O=O+Math.imul(fe,Ee)|0,T=T+Math.imul(te,Me)|0,b=b+Math.imul(te,Te)|0,b=b+Math.imul(re,Me)|0,O=O+Math.imul(re,Te)|0,T=T+Math.imul(z,Be)|0,b=b+Math.imul(z,J)|0,b=b+Math.imul(W,Be)|0,O=O+Math.imul(W,J)|0,T=T+Math.imul(j,Q)|0,b=b+Math.imul(j,ee)|0,b=b+Math.imul(X,Q)|0,O=O+Math.imul(X,ee)|0,T=T+Math.imul(K,oe)|0,b=b+Math.imul(K,le)|0,b=b+Math.imul(V,oe)|0,O=O+Math.imul(V,le)|0;var Ze=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,T=Math.imul(me,Ce),b=Math.imul(me,xe),b=b+Math.imul(ve,Ce)|0,O=Math.imul(ve,xe),T=T+Math.imul(he,qe)|0,b=b+Math.imul(he,Se)|0,b=b+Math.imul(pe,qe)|0,O=O+Math.imul(pe,Se)|0,T=T+Math.imul(de,Oe)|0,b=b+Math.imul(de,Ee)|0,b=b+Math.imul(ue,Oe)|0,O=O+Math.imul(ue,Ee)|0,T=T+Math.imul(se,Me)|0,b=b+Math.imul(se,Te)|0,b=b+Math.imul(fe,Me)|0,O=O+Math.imul(fe,Te)|0,T=T+Math.imul(te,Be)|0,b=b+Math.imul(te,J)|0,b=b+Math.imul(re,Be)|0,O=O+Math.imul(re,J)|0,T=T+Math.imul(z,Q)|0,b=b+Math.imul(z,ee)|0,b=b+Math.imul(W,Q)|0,O=O+Math.imul(W,ee)|0,T=T+Math.imul(j,oe)|0,b=b+Math.imul(j,le)|0,b=b+Math.imul(X,oe)|0,O=O+Math.imul(X,le)|0,T=T+Math.imul(K,we)|0,b=b+Math.imul(K,ye)|0,b=b+Math.imul(V,we)|0,O=O+Math.imul(V,ye)|0;var er=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(er>>>26)|0,er&=67108863,T=Math.imul(Ae,Ce),b=Math.imul(Ae,xe),b=b+Math.imul(be,Ce)|0,O=Math.imul(be,xe),T=T+Math.imul(me,qe)|0,b=b+Math.imul(me,Se)|0,b=b+Math.imul(ve,qe)|0,O=O+Math.imul(ve,Se)|0,T=T+Math.imul(he,Oe)|0,b=b+Math.imul(he,Ee)|0,b=b+Math.imul(pe,Oe)|0,O=O+Math.imul(pe,Ee)|0,T=T+Math.imul(de,Me)|0,b=b+Math.imul(de,Te)|0,b=b+Math.imul(ue,Me)|0,O=O+Math.imul(ue,Te)|0,T=T+Math.imul(se,Be)|0,b=b+Math.imul(se,J)|0,b=b+Math.imul(fe,Be)|0,O=O+Math.imul(fe,J)|0,T=T+Math.imul(te,Q)|0,b=b+Math.imul(te,ee)|0,b=b+Math.imul(re,Q)|0,O=O+Math.imul(re,ee)|0,T=T+Math.imul(z,oe)|0,b=b+Math.imul(z,le)|0,b=b+Math.imul(W,oe)|0,O=O+Math.imul(W,le)|0,T=T+Math.imul(j,we)|0,b=b+Math.imul(j,ye)|0,b=b+Math.imul(X,we)|0,O=O+Math.imul(X,ye)|0,T=T+Math.imul(K,Re)|0,b=b+Math.imul(K,De)|0,b=b+Math.imul(V,Re)|0,O=O+Math.imul(V,De)|0;var rr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(rr>>>26)|0,rr&=67108863,T=Math.imul(Ne,Ce),b=Math.imul(Ne,xe),b=b+Math.imul(_e,Ce)|0,O=Math.imul(_e,xe),T=T+Math.imul(Ae,qe)|0,b=b+Math.imul(Ae,Se)|0,b=b+Math.imul(be,qe)|0,O=O+Math.imul(be,Se)|0,T=T+Math.imul(me,Oe)|0,b=b+Math.imul(me,Ee)|0,b=b+Math.imul(ve,Oe)|0,O=O+Math.imul(ve,Ee)|0,T=T+Math.imul(he,Me)|0,b=b+Math.imul(he,Te)|0,b=b+Math.imul(pe,Me)|0,O=O+Math.imul(pe,Te)|0,T=T+Math.imul(de,Be)|0,b=b+Math.imul(de,J)|0,b=b+Math.imul(ue,Be)|0,O=O+Math.imul(ue,J)|0,T=T+Math.imul(se,Q)|0,b=b+Math.imul(se,ee)|0,b=b+Math.imul(fe,Q)|0,O=O+Math.imul(fe,ee)|0,T=T+Math.imul(te,oe)|0,b=b+Math.imul(te,le)|0,b=b+Math.imul(re,oe)|0,O=O+Math.imul(re,le)|0,T=T+Math.imul(z,we)|0,b=b+Math.imul(z,ye)|0,b=b+Math.imul(W,we)|0,O=O+Math.imul(W,ye)|0,T=T+Math.imul(j,Re)|0,b=b+Math.imul(j,De)|0,b=b+Math.imul(X,Re)|0,O=O+Math.imul(X,De)|0,T=T+Math.imul(K,Pe)|0,b=b+Math.imul(K,$e)|0,b=b+Math.imul(V,Pe)|0,O=O+Math.imul(V,$e)|0;var tr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(tr>>>26)|0,tr&=67108863,T=Math.imul(Ne,qe),b=Math.imul(Ne,Se),b=b+Math.imul(_e,qe)|0,O=Math.imul(_e,Se),T=T+Math.imul(Ae,Oe)|0,b=b+Math.imul(Ae,Ee)|0,b=b+Math.imul(be,Oe)|0,O=O+Math.imul(be,Ee)|0,T=T+Math.imul(me,Me)|0,b=b+Math.imul(me,Te)|0,b=b+Math.imul(ve,Me)|0,O=O+Math.imul(ve,Te)|0,T=T+Math.imul(he,Be)|0,b=b+Math.imul(he,J)|0,b=b+Math.imul(pe,Be)|0,O=O+Math.imul(pe,J)|0,T=T+Math.imul(de,Q)|0,b=b+Math.imul(de,ee)|0,b=b+Math.imul(ue,Q)|0,O=O+Math.imul(ue,ee)|0,T=T+Math.imul(se,oe)|0,b=b+Math.imul(se,le)|0,b=b+Math.imul(fe,oe)|0,O=O+Math.imul(fe,le)|0,T=T+Math.imul(te,we)|0,b=b+Math.imul(te,ye)|0,b=b+Math.imul(re,we)|0,O=O+Math.imul(re,ye)|0,T=T+Math.imul(z,Re)|0,b=b+Math.imul(z,De)|0,b=b+Math.imul(W,Re)|0,O=O+Math.imul(W,De)|0,T=T+Math.imul(j,Pe)|0,b=b+Math.imul(j,$e)|0,b=b+Math.imul(X,Pe)|0,O=O+Math.imul(X,$e)|0;var ir=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ir>>>26)|0,ir&=67108863,T=Math.imul(Ne,Oe),b=Math.imul(Ne,Ee),b=b+Math.imul(_e,Oe)|0,O=Math.imul(_e,Ee),T=T+Math.imul(Ae,Me)|0,b=b+Math.imul(Ae,Te)|0,b=b+Math.imul(be,Me)|0,O=O+Math.imul(be,Te)|0,T=T+Math.imul(me,Be)|0,b=b+Math.imul(me,J)|0,b=b+Math.imul(ve,Be)|0,O=O+Math.imul(ve,J)|0,T=T+Math.imul(he,Q)|0,b=b+Math.imul(he,ee)|0,b=b+Math.imul(pe,Q)|0,O=O+Math.imul(pe,ee)|0,T=T+Math.imul(de,oe)|0,b=b+Math.imul(de,le)|0,b=b+Math.imul(ue,oe)|0,O=O+Math.imul(ue,le)|0,T=T+Math.imul(se,we)|0,b=b+Math.imul(se,ye)|0,b=b+Math.imul(fe,we)|0,O=O+Math.imul(fe,ye)|0,T=T+Math.imul(te,Re)|0,b=b+Math.imul(te,De)|0,b=b+Math.imul(re,Re)|0,O=O+Math.imul(re,De)|0,T=T+Math.imul(z,Pe)|0,b=b+Math.imul(z,$e)|0,b=b+Math.imul(W,Pe)|0,O=O+Math.imul(W,$e)|0;var nr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(nr>>>26)|0,nr&=67108863,T=Math.imul(Ne,Me),b=Math.imul(Ne,Te),b=b+Math.imul(_e,Me)|0,O=Math.imul(_e,Te),T=T+Math.imul(Ae,Be)|0,b=b+Math.imul(Ae,J)|0,b=b+Math.imul(be,Be)|0,O=O+Math.imul(be,J)|0,T=T+Math.imul(me,Q)|0,b=b+Math.imul(me,ee)|0,b=b+Math.imul(ve,Q)|0,O=O+Math.imul(ve,ee)|0,T=T+Math.imul(he,oe)|0,b=b+Math.imul(he,le)|0,b=b+Math.imul(pe,oe)|0,O=O+Math.imul(pe,le)|0,T=T+Math.imul(de,we)|0,b=b+Math.imul(de,ye)|0,b=b+Math.imul(ue,we)|0,O=O+Math.imul(ue,ye)|0,T=T+Math.imul(se,Re)|0,b=b+Math.imul(se,De)|0,b=b+Math.imul(fe,Re)|0,O=O+Math.imul(fe,De)|0,T=T+Math.imul(te,Pe)|0,b=b+Math.imul(te,$e)|0,b=b+Math.imul(re,Pe)|0,O=O+Math.imul(re,$e)|0;var ar=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ar>>>26)|0,ar&=67108863,T=Math.imul(Ne,Be),b=Math.imul(Ne,J),b=b+Math.imul(_e,Be)|0,O=Math.imul(_e,J),T=T+Math.imul(Ae,Q)|0,b=b+Math.imul(Ae,ee)|0,b=b+Math.imul(be,Q)|0,O=O+Math.imul(be,ee)|0,T=T+Math.imul(me,oe)|0,b=b+Math.imul(me,le)|0,b=b+Math.imul(ve,oe)|0,O=O+Math.imul(ve,le)|0,T=T+Math.imul(he,we)|0,b=b+Math.imul(he,ye)|0,b=b+Math.imul(pe,we)|0,O=O+Math.imul(pe,ye)|0,T=T+Math.imul(de,Re)|0,b=b+Math.imul(de,De)|0,b=b+Math.imul(ue,Re)|0,O=O+Math.imul(ue,De)|0,T=T+Math.imul(se,Pe)|0,b=b+Math.imul(se,$e)|0,b=b+Math.imul(fe,Pe)|0,O=O+Math.imul(fe,$e)|0;var sr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(sr>>>26)|0,sr&=67108863,T=Math.imul(Ne,Q),b=Math.imul(Ne,ee),b=b+Math.imul(_e,Q)|0,O=Math.imul(_e,ee),T=T+Math.imul(Ae,oe)|0,b=b+Math.imul(Ae,le)|0,b=b+Math.imul(be,oe)|0,O=O+Math.imul(be,le)|0,T=T+Math.imul(me,we)|0,b=b+Math.imul(me,ye)|0,b=b+Math.imul(ve,we)|0,O=O+Math.imul(ve,ye)|0,T=T+Math.imul(he,Re)|0,b=b+Math.imul(he,De)|0,b=b+Math.imul(pe,Re)|0,O=O+Math.imul(pe,De)|0,T=T+Math.imul(de,Pe)|0,b=b+Math.imul(de,$e)|0,b=b+Math.imul(ue,Pe)|0,O=O+Math.imul(ue,$e)|0;var or=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(or>>>26)|0,or&=67108863,T=Math.imul(Ne,oe),b=Math.imul(Ne,le),b=b+Math.imul(_e,oe)|0,O=Math.imul(_e,le),T=T+Math.imul(Ae,we)|0,b=b+Math.imul(Ae,ye)|0,b=b+Math.imul(be,we)|0,O=O+Math.imul(be,ye)|0,T=T+Math.imul(me,Re)|0,b=b+Math.imul(me,De)|0,b=b+Math.imul(ve,Re)|0,O=O+Math.imul(ve,De)|0,T=T+Math.imul(he,Pe)|0,b=b+Math.imul(he,$e)|0,b=b+Math.imul(pe,Pe)|0,O=O+Math.imul(pe,$e)|0;var ur=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ur>>>26)|0,ur&=67108863,T=Math.imul(Ne,we),b=Math.imul(Ne,ye),b=b+Math.imul(_e,we)|0,O=Math.imul(_e,ye),T=T+Math.imul(Ae,Re)|0,b=b+Math.imul(Ae,De)|0,b=b+Math.imul(be,Re)|0,O=O+Math.imul(be,De)|0,T=T+Math.imul(me,Pe)|0,b=b+Math.imul(me,$e)|0,b=b+Math.imul(ve,Pe)|0,O=O+Math.imul(ve,$e)|0;var fr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(fr>>>26)|0,fr&=67108863,T=Math.imul(Ne,Re),b=Math.imul(Ne,De),b=b+Math.imul(_e,Re)|0,O=Math.imul(_e,De),T=T+Math.imul(Ae,Pe)|0,b=b+Math.imul(Ae,$e)|0,b=b+Math.imul(be,Pe)|0,O=O+Math.imul(be,$e)|0;var lr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(lr>>>26)|0,lr&=67108863,T=Math.imul(Ne,Pe),b=Math.imul(Ne,$e),b=b+Math.imul(_e,Pe)|0,O=Math.imul(_e,$e);var cr=(x+T|0)+((b&8191)<<13)|0;return x=(O+(b>>>13)|0)+(cr>>>26)|0,cr&=67108863,N[0]=Qe,N[1]=ze,N[2]=We,N[3]=Ye,N[4]=Xe,N[5]=Je,N[6]=Ze,N[7]=er,N[8]=rr,N[9]=tr,N[10]=ir,N[11]=nr,N[12]=ar,N[13]=sr,N[14]=or,N[15]=ur,N[16]=fr,N[17]=lr,N[18]=cr,x!==0&&(N[19]=x,I.length++),I};Math.imul||(D=A);function C(_,h,g){g.negative=h.negative^_.negative,g.length=_.length+h.length;for(var I=0,w=0,E=0;E<g.length-1;E++){var N=w;w=0;for(var x=I&67108863,T=Math.min(E,h.length-1),b=Math.max(0,E-_.length+1);b<=T;b++){var O=E-b,P=_.words[O]|0,K=h.words[b]|0,V=P*K,U=V&67108863;N=N+(V/67108864|0)|0,U=U+x|0,x=U&67108863,N=N+(U>>>26)|0,w+=N>>>26,N&=67108863}g.words[E]=x,I=N,N=w}return I!==0?g.words[E]=I:g.length--,g._strip()}function q(_,h,g){return C(_,h,g)}a.prototype.mulTo=function(h,g){var I,w=this.length+h.length;return this.length===10&&h.length===10?I=D(this,h,g):w<63?I=A(this,h,g):w<1024?I=C(this,h,g):I=q(this,h,g),I},a.prototype.mul=function(h){var g=new a(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},a.prototype.mulf=function(h){var g=new a(null);return g.words=new Array(this.length+h.length),q(this,h,g)},a.prototype.imul=function(h){return this.clone().mulTo(h,this)},a.prototype.imuln=function(h){var g=h<0;g&&(h=-h),i(typeof h=="number"),i(h<67108864);for(var I=0,w=0;w<this.length;w++){var E=(this.words[w]|0)*h,N=(E&67108863)+(I&67108863);I>>=26,I+=E/67108864|0,I+=N>>>26,this.words[w]=N&67108863}return I!==0&&(this.words[w]=I,this.length++),this.length=h===0?1:this.length,g?this.ineg():this},a.prototype.muln=function(h){return this.clone().imuln(h)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(h){var g=R(h);if(g.length===0)return new a(1);for(var I=this,w=0;w<g.length&&g[w]===0;w++,I=I.sqr());if(++w<g.length)for(var E=I.sqr();w<g.length;w++,E=E.sqr())g[w]!==0&&(I=I.mul(E));return I},a.prototype.iushln=function(h){i(typeof h=="number"&&h>=0);var g=h%26,I=(h-g)/26,w=67108863>>>26-g<<26-g,E;if(g!==0){var N=0;for(E=0;E<this.length;E++){var x=this.words[E]&w,T=(this.words[E]|0)-x<<g;this.words[E]=T|N,N=x>>>26-g}N&&(this.words[E]=N,this.length++)}if(I!==0){for(E=this.length-1;E>=0;E--)this.words[E+I]=this.words[E];for(E=0;E<I;E++)this.words[E]=0;this.length+=I}return this._strip()},a.prototype.ishln=function(h){return i(this.negative===0),this.iushln(h)},a.prototype.iushrn=function(h,g,I){i(typeof h=="number"&&h>=0);var w;g?w=(g-g%26)/26:w=0;var E=h%26,N=Math.min((h-E)/26,this.length),x=67108863^67108863>>>E<<E,T=I;if(w-=N,w=Math.max(0,w),T){for(var b=0;b<N;b++)T.words[b]=this.words[b];T.length=N}if(N!==0)if(this.length>N)for(this.length-=N,b=0;b<this.length;b++)this.words[b]=this.words[b+N];else this.words[0]=0,this.length=1;var O=0;for(b=this.length-1;b>=0&&(O!==0||b>=w);b--){var P=this.words[b]|0;this.words[b]=O<<26-E|P>>>E,O=P&x}return T&&O!==0&&(T.words[T.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(h,g,I){return i(this.negative===0),this.iushrn(h,g,I)},a.prototype.shln=function(h){return this.clone().ishln(h)},a.prototype.ushln=function(h){return this.clone().iushln(h)},a.prototype.shrn=function(h){return this.clone().ishrn(h)},a.prototype.ushrn=function(h){return this.clone().iushrn(h)},a.prototype.testn=function(h){i(typeof h=="number"&&h>=0);var g=h%26,I=(h-g)/26,w=1<<g;if(this.length<=I)return!1;var E=this.words[I];return!!(E&w)},a.prototype.imaskn=function(h){i(typeof h=="number"&&h>=0);var g=h%26,I=(h-g)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(g!==0&&I++,this.length=Math.min(I,this.length),g!==0){var w=67108863^67108863>>>g<<g;this.words[this.length-1]&=w}return this._strip()},a.prototype.maskn=function(h){return this.clone().imaskn(h)},a.prototype.iaddn=function(h){return i(typeof h=="number"),i(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},a.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},a.prototype.isubn=function(h){if(i(typeof h=="number"),i(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},a.prototype.addn=function(h){return this.clone().iaddn(h)},a.prototype.subn=function(h){return this.clone().isubn(h)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(h,g,I){var w=h.length+I,E;this._expand(w);var N,x=0;for(E=0;E<h.length;E++){N=(this.words[E+I]|0)+x;var T=(h.words[E]|0)*g;N-=T&67108863,x=(N>>26)-(T/67108864|0),this.words[E+I]=N&67108863}for(;E<this.length-I;E++)N=(this.words[E+I]|0)+x,x=N>>26,this.words[E+I]=N&67108863;if(x===0)return this._strip();for(i(x===-1),x=0,E=0;E<this.length;E++)N=-(this.words[E]|0)+x,x=N>>26,this.words[E]=N&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(h,g){var I=this.length-h.length,w=this.clone(),E=h,N=E.words[E.length-1]|0,x=this._countBits(N);I=26-x,I!==0&&(E=E.ushln(I),w.iushln(I),N=E.words[E.length-1]|0);var T=w.length-E.length,b;if(g!=="mod"){b=new a(null),b.length=T+1,b.words=new Array(b.length);for(var O=0;O<b.length;O++)b.words[O]=0}var P=w.clone()._ishlnsubmul(E,1,T);P.negative===0&&(w=P,b&&(b.words[T]=1));for(var K=T-1;K>=0;K--){var V=(w.words[E.length+K]|0)*67108864+(w.words[E.length+K-1]|0);for(V=Math.min(V/N|0,67108863),w._ishlnsubmul(E,V,K);w.negative!==0;)V--,w.negative=0,w._ishlnsubmul(E,1,K),w.isZero()||(w.negative^=1);b&&(b.words[K]=V)}return b&&b._strip(),w._strip(),g!=="div"&&I!==0&&w.iushrn(I),{div:b||null,mod:w}},a.prototype.divmod=function(h,g,I){if(i(!h.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var w,E,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,g),g!=="mod"&&(w=N.div.neg()),g!=="div"&&(E=N.mod.neg(),I&&E.negative!==0&&E.iadd(h)),{div:w,mod:E}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),g),g!=="mod"&&(w=N.div.neg()),{div:w,mod:N.mod}):(this.negative&h.negative)!==0?(N=this.neg().divmod(h.neg(),g),g!=="div"&&(E=N.mod.neg(),I&&E.negative!==0&&E.isub(h)),{div:N.div,mod:E}):h.length>this.length||this.cmp(h)<0?{div:new a(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new a(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new a(this.modrn(h.words[0]))}:this._wordDiv(h,g)},a.prototype.div=function(h){return this.divmod(h,"div",!1).div},a.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},a.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},a.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var I=g.div.negative!==0?g.mod.isub(h):g.mod,w=h.ushrn(1),E=h.andln(1),N=I.cmp(w);return N<0||E===1&&N===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},a.prototype.modrn=function(h){var g=h<0;g&&(h=-h),i(h<=67108863);for(var I=(1<<26)%h,w=0,E=this.length-1;E>=0;E--)w=(I*w+(this.words[E]|0))%h;return g?-w:w},a.prototype.modn=function(h){return this.modrn(h)},a.prototype.idivn=function(h){var g=h<0;g&&(h=-h),i(h<=67108863);for(var I=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+I*67108864;this.words[w]=E/h|0,I=E%h}return this._strip(),g?this.ineg():this},a.prototype.divn=function(h){return this.clone().idivn(h)},a.prototype.egcd=function(h){i(h.negative===0),i(!h.isZero());var g=this,I=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var w=new a(1),E=new a(0),N=new a(0),x=new a(1),T=0;g.isEven()&&I.isEven();)g.iushrn(1),I.iushrn(1),++T;for(var b=I.clone(),O=g.clone();!g.isZero();){for(var P=0,K=1;(g.words[0]&K)===0&&P<26;++P,K<<=1);if(P>0)for(g.iushrn(P);P-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(b),E.isub(O)),w.iushrn(1),E.iushrn(1);for(var V=0,U=1;(I.words[0]&U)===0&&V<26;++V,U<<=1);if(V>0)for(I.iushrn(V);V-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(b),x.isub(O)),N.iushrn(1),x.iushrn(1);g.cmp(I)>=0?(g.isub(I),w.isub(N),E.isub(x)):(I.isub(g),N.isub(w),x.isub(E))}return{a:N,b:x,gcd:I.iushln(T)}},a.prototype._invmp=function(h){i(h.negative===0),i(!h.isZero());var g=this,I=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var w=new a(1),E=new a(0),N=I.clone();g.cmpn(1)>0&&I.cmpn(1)>0;){for(var x=0,T=1;(g.words[0]&T)===0&&x<26;++x,T<<=1);if(x>0)for(g.iushrn(x);x-- >0;)w.isOdd()&&w.iadd(N),w.iushrn(1);for(var b=0,O=1;(I.words[0]&O)===0&&b<26;++b,O<<=1);if(b>0)for(I.iushrn(b);b-- >0;)E.isOdd()&&E.iadd(N),E.iushrn(1);g.cmp(I)>=0?(g.isub(I),w.isub(E)):(I.isub(g),E.isub(w))}var P;return g.cmpn(1)===0?P=w:P=E,P.cmpn(0)<0&&P.iadd(h),P},a.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),I=h.clone();g.negative=0,I.negative=0;for(var w=0;g.isEven()&&I.isEven();w++)g.iushrn(1),I.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;I.isEven();)I.iushrn(1);var E=g.cmp(I);if(E<0){var N=g;g=I,I=N}else if(E===0||I.cmpn(1)===0)break;g.isub(I)}while(!0);return I.iushln(w)},a.prototype.invm=function(h){return this.egcd(h).a.umod(h)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(h){return this.words[0]&h},a.prototype.bincn=function(h){i(typeof h=="number");var g=h%26,I=(h-g)/26,w=1<<g;if(this.length<=I)return this._expand(I+1),this.words[I]|=w,this;for(var E=w,N=I;E!==0&&N<this.length;N++){var x=this.words[N]|0;x+=E,E=x>>>26,x&=67108863,this.words[N]=x}return E!==0&&(this.words[N]=E,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var I;if(this.length>1)I=1;else{g&&(h=-h),i(h<=67108863,"Number is too big");var w=this.words[0]|0;I=w===h?0:w<h?-1:1}return this.negative!==0?-I|0:I},a.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},a.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,I=this.length-1;I>=0;I--){var w=this.words[I]|0,E=h.words[I]|0;if(w!==E){w<E?g=-1:w>E&&(g=1);break}}return g},a.prototype.gtn=function(h){return this.cmpn(h)===1},a.prototype.gt=function(h){return this.cmp(h)===1},a.prototype.gten=function(h){return this.cmpn(h)>=0},a.prototype.gte=function(h){return this.cmp(h)>=0},a.prototype.ltn=function(h){return this.cmpn(h)===-1},a.prototype.lt=function(h){return this.cmp(h)===-1},a.prototype.lten=function(h){return this.cmpn(h)<=0},a.prototype.lte=function(h){return this.cmp(h)<=0},a.prototype.eqn=function(h){return this.cmpn(h)===0},a.prototype.eq=function(h){return this.cmp(h)===0},a.red=function(h){return new B(h)},a.prototype.toRed=function(h){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(h){return this.red=h,this},a.prototype.forceRed=function(h){return i(!this.red,"Already a number in reduction context"),this._forceRed(h)},a.prototype.redAdd=function(h){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},a.prototype.redIAdd=function(h){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},a.prototype.redSub=function(h){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},a.prototype.redISub=function(h){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},a.prototype.redShl=function(h){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},a.prototype.redMul=function(h){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},a.prototype.redIMul=function(h){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(h){return i(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var M={k256:null,p224:null,p192:null,p25519:null};function F(_,h){this.name=_,this.p=new a(h,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var h=new a(null);return h.words=new Array(Math.ceil(this.n/13)),h},F.prototype.ireduce=function(h){var g=h,I;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),I=g.bitLength();while(I>this.n);var w=I<this.n?-1:g.ucmp(this.p);return w===0?(g.words[0]=0,g.length=1):w>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},F.prototype.split=function(h,g){h.iushrn(this.n,0,g)},F.prototype.imulK=function(h){return h.imul(this.k)};function k(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(k,F),k.prototype.split=function(h,g){for(var I=4194303,w=Math.min(h.length,9),E=0;E<w;E++)g.words[E]=h.words[E];if(g.length=w,h.length<=9){h.words[0]=0,h.length=1;return}var N=h.words[9];for(g.words[g.length++]=N&I,E=10;E<h.length;E++){var x=h.words[E]|0;h.words[E-10]=(x&I)<<4|N>>>22,N=x}N>>>=22,h.words[E-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},k.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,I=0;I<h.length;I++){var w=h.words[I]|0;g+=w*977,h.words[I]=g&67108863,g=w*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function $(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s($,F);function L(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(L,F);function G(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(G,F),G.prototype.imulK=function(h){for(var g=0,I=0;I<h.length;I++){var w=(h.words[I]|0)*19+g,E=w&67108863;w>>>=26,h.words[I]=E,g=w}return g!==0&&(h.words[h.length++]=g),h},a._prime=function(h){if(M[h])return M[h];var g;if(h==="k256")g=new k;else if(h==="p224")g=new $;else if(h==="p192")g=new L;else if(h==="p25519")g=new G;else throw new Error("Unknown prime "+h);return M[h]=g,g};function B(_){if(typeof _=="string"){var h=a._prime(_);this.m=h.p,this.prime=h}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}B.prototype._verify1=function(h){i(h.negative===0,"red works only with positives"),i(h.red,"red works only with red numbers")},B.prototype._verify2=function(h,g){i((h.negative|g.negative)===0,"red works only with positives"),i(h.red&&h.red===g.red,"red works only with red numbers")},B.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(u(h,h.umod(this.m)._forceRed(this)),h)},B.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},B.prototype.add=function(h,g){this._verify2(h,g);var I=h.add(g);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},B.prototype.iadd=function(h,g){this._verify2(h,g);var I=h.iadd(g);return I.cmp(this.m)>=0&&I.isub(this.m),I},B.prototype.sub=function(h,g){this._verify2(h,g);var I=h.sub(g);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},B.prototype.isub=function(h,g){this._verify2(h,g);var I=h.isub(g);return I.cmpn(0)<0&&I.iadd(this.m),I},B.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},B.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},B.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},B.prototype.isqr=function(h){return this.imul(h,h.clone())},B.prototype.sqr=function(h){return this.mul(h,h)},B.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(i(g%2===1),g===3){var I=this.m.add(new a(1)).iushrn(2);return this.pow(h,I)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);i(!w.isZero());var N=new a(1).toRed(this),x=N.redNeg(),T=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new a(2*b*b).toRed(this);this.pow(b,T).cmp(x)!==0;)b.redIAdd(x);for(var O=this.pow(b,w),P=this.pow(h,w.addn(1).iushrn(1)),K=this.pow(h,w),V=E;K.cmp(N)!==0;){for(var U=K,j=0;U.cmp(N)!==0;j++)U=U.redSqr();i(j<V);var X=this.pow(O,new a(1).iushln(V-j-1));P=P.redMul(X),O=X.redSqr(),K=K.redMul(O),V=j}return P},B.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},B.prototype.pow=function(h,g){if(g.isZero())return new a(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var I=4,w=new Array(1<<I);w[0]=new a(1).toRed(this),w[1]=h;for(var E=2;E<w.length;E++)w[E]=this.mul(w[E-1],h);var N=w[0],x=0,T=0,b=g.bitLength()%26;for(b===0&&(b=26),E=g.length-1;E>=0;E--){for(var O=g.words[E],P=b-1;P>=0;P--){var K=O>>P&1;if(N!==w[0]&&(N=this.sqr(N)),K===0&&x===0){T=0;continue}x<<=1,x|=K,T++,!(T!==I&&(E!==0||P!==0))&&(N=this.mul(N,w[x]),T=0,x=0)}b=26}return N},B.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},B.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},a.mont=function(h){return new S(h)};function S(_){B.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(S,B),S.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},S.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},S.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var I=h.imul(g),w=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=I.isub(w).iushrn(this.shift),N=E;return E.cmp(this.m)>=0?N=E.isub(this.m):E.cmpn(0)<0&&(N=E.iadd(this.m)),N._forceRed(this)},S.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new a(0)._forceRed(this);var I=h.mul(g),w=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=I.isub(w).iushrn(this.shift),N=E;return E.cmp(this.m)>=0?N=E.isub(this.m):E.cmpn(0)<0&&(N=E.iadd(this.m)),N._forceRed(this)},S.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(r,bn$2)}(bn$3)),bn$3.exports}var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var r=requireBn$1(),t=requireBrowser$b(),n=requireSafeBuffer$1().Buffer;function i(f){var l=f.modulus.byteLength(),d;do d=new r(t(l));while(d.cmp(f.modulus)>=0||!d.umod(f.prime1)||!d.umod(f.prime2));return d}function s(f){var l=i(f),d=l.toRed(r.mont(f.modulus)).redPow(new r(f.publicExponent)).fromRed();return{blinder:d,unblinder:l.invm(f.modulus)}}function a(f,l){var d=s(l),o=l.modulus.byteLength(),u=new r(f).mul(d.blinder).umod(l.modulus),p=u.toRed(r.mont(l.prime1)),c=u.toRed(r.mont(l.prime2)),v=l.coefficient,y=l.prime1,m=l.prime2,R=p.redPow(l.exponent1).fromRed(),A=c.redPow(l.exponent2).fromRed(),D=R.isub(A).imul(v).umod(y).imul(m);return A.iadd(D).imul(d.unblinder).umod(l.modulus).toArrayLike(n,"be",o)}return a.getr=i,browserifyRsa=a,browserifyRsa}var elliptic={};const version$1="6.6.1";var require$$0$1={version:version$1},utils$2={},utils$1={},hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(r){var t=r;function n(a,f){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if(typeof a!="string"){for(var d=0;d<a.length;d++)l[d]=a[d]|0;return l}if(f==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var d=0;d<a.length;d+=2)l.push(parseInt(a[d]+a[d+1],16))}else for(var d=0;d<a.length;d++){var o=a.charCodeAt(d),u=o>>8,p=o&255;u?l.push(u,p):l.push(p)}return l}t.toArray=n;function i(a){return a.length===1?"0"+a:a}t.zero2=i;function s(a){for(var f="",l=0;l<a.length;l++)f+=i(a[l].toString(16));return f}t.toHex=s,t.encode=function(f,l){return l==="hex"?s(f):f}}(utils$1)),utils$1}var hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,function(r){var t=r,n=requireBn$2(),i=requireMinimalisticAssert(),s=requireUtils$2();t.assert=i,t.toArray=s.toArray,t.zero2=s.zero2,t.toHex=s.toHex,t.encode=s.encode;function a(u,p,c){var v=new Array(Math.max(u.bitLength(),c)+1),y;for(y=0;y<v.length;y+=1)v[y]=0;var m=1<<p+1,R=u.clone();for(y=0;y<v.length;y++){var A,D=R.andln(m-1);R.isOdd()?(D>(m>>1)-1?A=(m>>1)-D:A=D,R.isubn(A)):A=0,v[y]=A,R.iushrn(1)}return v}t.getNAF=a;function f(u,p){var c=[[],[]];u=u.clone(),p=p.clone();for(var v=0,y=0,m;u.cmpn(-v)>0||p.cmpn(-y)>0;){var R=u.andln(3)+v&3,A=p.andln(3)+y&3;R===3&&(R=-1),A===3&&(A=-1);var D;(R&1)===0?D=0:(m=u.andln(7)+v&7,(m===3||m===5)&&A===2?D=-R:D=R),c[0].push(D);var C;(A&1)===0?C=0:(m=p.andln(7)+y&7,(m===3||m===5)&&R===2?C=-A:C=A),c[1].push(C),2*v===D+1&&(v=1-v),2*y===C+1&&(y=1-y),u.iushrn(1),p.iushrn(1)}return c}t.getJSF=f;function l(u,p,c){var v="_"+p;u.prototype[p]=function(){return this[v]!==void 0?this[v]:this[v]=c.call(this)}}t.cachedProperty=l;function d(u){return typeof u=="string"?t.toArray(u,"hex"):u}t.parseBytes=d;function o(u){return new n(u,"hex","le")}t.intFromLE=o}(utils$2)),utils$2}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var r=requireBn$2(),t=requireUtils$1(),n=t.getNAF,i=t.getJSF,s=t.assert;function a(l,d){this.type=l,this.p=new r(d.p,16),this.red=d.prime?r.red(d.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=d.n&&new r(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=a,a.prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(d,o){s(d.precomputed);var u=d._getDoubles(),p=n(o,1,this._bitLength),c=(1<<u.step+1)-(u.step%2===0?2:1);c/=3;var v=[],y,m;for(y=0;y<p.length;y+=u.step){m=0;for(var R=y+u.step-1;R>=y;R--)m=(m<<1)+p[R];v.push(m)}for(var A=this.jpoint(null,null,null),D=this.jpoint(null,null,null),C=c;C>0;C--){for(y=0;y<v.length;y++)m=v[y],m===C?D=D.mixedAdd(u.points[y]):m===-C&&(D=D.mixedAdd(u.points[y].neg()));A=A.add(D)}return A.toP()},a.prototype._wnafMul=function(d,o){var u=4,p=d._getNAFPoints(u);u=p.wnd;for(var c=p.points,v=n(o,u,this._bitLength),y=this.jpoint(null,null,null),m=v.length-1;m>=0;m--){for(var R=0;m>=0&&v[m]===0;m--)R++;if(m>=0&&R++,y=y.dblp(R),m<0)break;var A=v[m];s(A!==0),d.type==="affine"?A>0?y=y.mixedAdd(c[A-1>>1]):y=y.mixedAdd(c[-A-1>>1].neg()):A>0?y=y.add(c[A-1>>1]):y=y.add(c[-A-1>>1].neg())}return d.type==="affine"?y.toP():y},a.prototype._wnafMulAdd=function(d,o,u,p,c){var v=this._wnafT1,y=this._wnafT2,m=this._wnafT3,R=0,A,D,C;for(A=0;A<p;A++){C=o[A];var q=C._getNAFPoints(d);v[A]=q.wnd,y[A]=q.points}for(A=p-1;A>=1;A-=2){var M=A-1,F=A;if(v[M]!==1||v[F]!==1){m[M]=n(u[M],v[M],this._bitLength),m[F]=n(u[F],v[F],this._bitLength),R=Math.max(m[M].length,R),R=Math.max(m[F].length,R);continue}var k=[o[M],null,null,o[F]];o[M].y.cmp(o[F].y)===0?(k[1]=o[M].add(o[F]),k[2]=o[M].toJ().mixedAdd(o[F].neg())):o[M].y.cmp(o[F].y.redNeg())===0?(k[1]=o[M].toJ().mixedAdd(o[F]),k[2]=o[M].add(o[F].neg())):(k[1]=o[M].toJ().mixedAdd(o[F]),k[2]=o[M].toJ().mixedAdd(o[F].neg()));var $=[-3,-1,-5,-7,0,7,5,1,3],L=i(u[M],u[F]);for(R=Math.max(L[0].length,R),m[M]=new Array(R),m[F]=new Array(R),D=0;D<R;D++){var G=L[0][D]|0,B=L[1][D]|0;m[M][D]=$[(G+1)*3+(B+1)],m[F][D]=0,y[M]=k}}var S=this.jpoint(null,null,null),_=this._wnafT4;for(A=R;A>=0;A--){for(var h=0;A>=0;){var g=!0;for(D=0;D<p;D++)_[D]=m[D][A]|0,_[D]!==0&&(g=!1);if(!g)break;h++,A--}if(A>=0&&h++,S=S.dblp(h),A<0)break;for(D=0;D<p;D++){var I=_[D];I!==0&&(I>0?C=y[D][I-1>>1]:I<0&&(C=y[D][-I-1>>1].neg()),C.type==="affine"?S=S.mixedAdd(C):S=S.add(C))}}for(A=0;A<p;A++)y[A]=null;return c?S:S.toP()};function f(l,d){this.curve=l,this.type=d,this.precomputed=null}return a.BasePoint=f,f.prototype.eq=function(){throw new Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(d,o){d=t.toArray(d,o);var u=this.p.byteLength();if((d[0]===4||d[0]===6||d[0]===7)&&d.length-1===2*u){d[0]===6?s(d[d.length-1]%2===0):d[0]===7&&s(d[d.length-1]%2===1);var p=this.point(d.slice(1,1+u),d.slice(1+u,1+2*u));return p}else if((d[0]===2||d[0]===3)&&d.length-1===u)return this.pointFromX(d.slice(1,1+u),d[0]===3);throw new Error("Unknown point format")},f.prototype.encodeCompressed=function(d){return this.encode(d,!0)},f.prototype._encode=function(d){var o=this.curve.p.byteLength(),u=this.getX().toArray("be",o);return d?[this.getY().isEven()?2:3].concat(u):[4].concat(u,this.getY().toArray("be",o))},f.prototype.encode=function(d,o){return t.encode(this._encode(o),d)},f.prototype.precompute=function(d){if(this.precomputed)return this;var o={doubles:null,naf:null,beta:null};return o.naf=this._getNAFPoints(8),o.doubles=this._getDoubles(4,d),o.beta=this._getBeta(),this.precomputed=o,this},f.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var o=this.precomputed.doubles;return o?o.points.length>=Math.ceil((d.bitLength()+1)/o.step):!1},f.prototype._getDoubles=function(d,o){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var u=[this],p=this,c=0;c<o;c+=d){for(var v=0;v<d;v++)p=p.dbl();u.push(p)}return{step:d,points:u}},f.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var o=[this],u=(1<<d)-1,p=u===1?null:this.dbl(),c=1;c<u;c++)o[c]=o[c-1].add(p);return{wnd:d,points:o}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(d){for(var o=this,u=0;u<d;u++)o=o.dbl();return o},base$1}var short,hasRequiredShort;function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var r=requireUtils$1(),t=requireBn$2(),n=requireInherits_browser(),i=requireBase$1(),s=r.assert;function a(d){i.call(this,"short",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}n(a,i),short=a,a.prototype._getEndomorphism=function(o){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var u,p;if(o.beta)u=new t(o.beta,16).toRed(this.red);else{var c=this._getEndoRoots(this.p);u=c[0].cmp(c[1])<0?c[0]:c[1],u=u.toRed(this.red)}if(o.lambda)p=new t(o.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(u))===0?p=v[0]:(p=v[1],s(this.g.mul(p).x.cmp(this.g.x.redMul(u))===0))}var y;return o.basis?y=o.basis.map(function(m){return{a:new t(m.a,16),b:new t(m.b,16)}}):y=this._getEndoBasis(p),{beta:u,lambda:p,basis:y}}},a.prototype._getEndoRoots=function(o){var u=o===this.p?this.red:t.mont(o),p=new t(2).toRed(u).redInvm(),c=p.redNeg(),v=new t(3).toRed(u).redNeg().redSqrt().redMul(p),y=c.redAdd(v).fromRed(),m=c.redSub(v).fromRed();return[y,m]},a.prototype._getEndoBasis=function(o){for(var u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=o,c=this.n.clone(),v=new t(1),y=new t(0),m=new t(0),R=new t(1),A,D,C,q,M,F,k,$=0,L,G;p.cmpn(0)!==0;){var B=c.div(p);L=c.sub(B.mul(p)),G=m.sub(B.mul(v));var S=R.sub(B.mul(y));if(!C&&L.cmp(u)<0)A=k.neg(),D=v,C=L.neg(),q=G;else if(C&&++$===2)break;k=L,c=p,p=L,m=v,v=G,R=y,y=S}M=L.neg(),F=G;var _=C.sqr().add(q.sqr()),h=M.sqr().add(F.sqr());return h.cmp(_)>=0&&(M=A,F=D),C.negative&&(C=C.neg(),q=q.neg()),M.negative&&(M=M.neg(),F=F.neg()),[{a:C,b:q},{a:M,b:F}]},a.prototype._endoSplit=function(o){var u=this.endo.basis,p=u[0],c=u[1],v=c.b.mul(o).divRound(this.n),y=p.b.neg().mul(o).divRound(this.n),m=v.mul(p.a),R=y.mul(c.a),A=v.mul(p.b),D=y.mul(c.b),C=o.sub(m).sub(R),q=A.add(D).neg();return{k1:C,k2:q}},a.prototype.pointFromX=function(o,u){o=new t(o,16),o.red||(o=o.toRed(this.red));var p=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),c=p.redSqrt();if(c.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var v=c.fromRed().isOdd();return(u&&!v||!u&&v)&&(c=c.redNeg()),this.point(o,c)},a.prototype.validate=function(o){if(o.inf)return!0;var u=o.x,p=o.y,c=this.a.redMul(u),v=u.redSqr().redMul(u).redIAdd(c).redIAdd(this.b);return p.redSqr().redISub(v).cmpn(0)===0},a.prototype._endoWnafMulAdd=function(o,u,p){for(var c=this._endoWnafT1,v=this._endoWnafT2,y=0;y<o.length;y++){var m=this._endoSplit(u[y]),R=o[y],A=R._getBeta();m.k1.negative&&(m.k1.ineg(),R=R.neg(!0)),m.k2.negative&&(m.k2.ineg(),A=A.neg(!0)),c[y*2]=R,c[y*2+1]=A,v[y*2]=m.k1,v[y*2+1]=m.k2}for(var D=this._wnafMulAdd(1,c,v,y*2,p),C=0;C<y*2;C++)c[C]=null,v[C]=null;return D};function f(d,o,u,p){i.BasePoint.call(this,d,"affine"),o===null&&u===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(o,16),this.y=new t(u,16),p&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}n(f,i.BasePoint),a.prototype.point=function(o,u,p){return new f(this,o,u,p)},a.prototype.pointFromJSON=function(o,u){return f.fromJSON(this,o,u)},f.prototype._getBeta=function(){if(this.curve.endo){var o=this.precomputed;if(o&&o.beta)return o.beta;var u=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(o){var p=this.curve,c=function(v){return p.point(v.x.redMul(p.endo.beta),v.y)};o.beta=u,u.precomputed={beta:null,naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(c)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(c)}}}return u}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(o,u,p){typeof u=="string"&&(u=JSON.parse(u));var c=o.point(u[0],u[1],p);if(!u[2])return c;function v(m){return o.point(m[0],m[1],p)}var y=u[2];return c.precomputed={beta:null,doubles:y.doubles&&{step:y.doubles.step,points:[c].concat(y.doubles.points.map(v))},naf:y.naf&&{wnd:y.naf.wnd,points:[c].concat(y.naf.points.map(v))}},c},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var u=this.y.redSub(o.y);u.cmpn(0)!==0&&(u=u.redMul(this.x.redSub(o.x).redInvm()));var p=u.redSqr().redISub(this.x).redISub(o.x),c=u.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,c)},f.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var u=this.curve.a,p=this.x.redSqr(),c=o.redInvm(),v=p.redAdd(p).redIAdd(p).redIAdd(u).redMul(c),y=v.redSqr().redISub(this.x.redAdd(this.x)),m=v.redMul(this.x.redSub(y)).redISub(this.y);return this.curve.point(y,m)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(o){return o=new t(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)},f.prototype.mulAdd=function(o,u,p){var c=[this,u],v=[o,p];return this.curve.endo?this.curve._endoWnafMulAdd(c,v):this.curve._wnafMulAdd(1,c,v,2)},f.prototype.jmulAdd=function(o,u,p){var c=[this,u],v=[o,p];return this.curve.endo?this.curve._endoWnafMulAdd(c,v,!0):this.curve._wnafMulAdd(1,c,v,2,!0)},f.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)},f.prototype.neg=function(o){if(this.inf)return this;var u=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var p=this.precomputed,c=function(v){return v.neg()};u.precomputed={naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(c)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(c)}}}return u},f.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var o=this.curve.jpoint(this.x,this.y,this.curve.one);return o};function l(d,o,u,p){i.BasePoint.call(this,d,"jacobian"),o===null&&u===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(o,16),this.y=new t(u,16),this.z=new t(p,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return n(l,i.BasePoint),a.prototype.jpoint=function(o,u,p){return new l(this,o,u,p)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),u=o.redSqr(),p=this.x.redMul(u),c=this.y.redMul(u).redMul(o);return this.curve.point(p,c)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var u=o.z.redSqr(),p=this.z.redSqr(),c=this.x.redMul(u),v=o.x.redMul(p),y=this.y.redMul(u.redMul(o.z)),m=o.y.redMul(p.redMul(this.z)),R=c.redSub(v),A=y.redSub(m);if(R.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=R.redSqr(),C=D.redMul(R),q=c.redMul(D),M=A.redSqr().redIAdd(C).redISub(q).redISub(q),F=A.redMul(q.redISub(M)).redISub(y.redMul(C)),k=this.z.redMul(o.z).redMul(R);return this.curve.jpoint(M,F,k)},l.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var u=this.z.redSqr(),p=this.x,c=o.x.redMul(u),v=this.y,y=o.y.redMul(u).redMul(this.z),m=p.redSub(c),R=v.redSub(y);if(m.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=m.redSqr(),D=A.redMul(m),C=p.redMul(A),q=R.redSqr().redIAdd(D).redISub(C).redISub(C),M=R.redMul(C.redISub(q)).redISub(v.redMul(D)),F=this.z.redMul(m);return this.curve.jpoint(q,M,F)},l.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var u;if(this.curve.zeroA||this.curve.threeA){var p=this;for(u=0;u<o;u++)p=p.dbl();return p}var c=this.curve.a,v=this.curve.tinv,y=this.x,m=this.y,R=this.z,A=R.redSqr().redSqr(),D=m.redAdd(m);for(u=0;u<o;u++){var C=y.redSqr(),q=D.redSqr(),M=q.redSqr(),F=C.redAdd(C).redIAdd(C).redIAdd(c.redMul(A)),k=y.redMul(q),$=F.redSqr().redISub(k.redAdd(k)),L=k.redISub($),G=F.redMul(L);G=G.redIAdd(G).redISub(M);var B=D.redMul(R);u+1<o&&(A=A.redMul(M)),y=$,R=B,D=G}return this.curve.jpoint(y,D.redMul(v),R)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var o,u,p;if(this.zOne){var c=this.x.redSqr(),v=this.y.redSqr(),y=v.redSqr(),m=this.x.redAdd(v).redSqr().redISub(c).redISub(y);m=m.redIAdd(m);var R=c.redAdd(c).redIAdd(c),A=R.redSqr().redISub(m).redISub(m),D=y.redIAdd(y);D=D.redIAdd(D),D=D.redIAdd(D),o=A,u=R.redMul(m.redISub(A)).redISub(D),p=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),q=this.y.redSqr(),M=q.redSqr(),F=this.x.redAdd(q).redSqr().redISub(C).redISub(M);F=F.redIAdd(F);var k=C.redAdd(C).redIAdd(C),$=k.redSqr(),L=M.redIAdd(M);L=L.redIAdd(L),L=L.redIAdd(L),o=$.redISub(F).redISub(F),u=k.redMul(F.redISub(o)).redISub(L),p=this.y.redMul(this.z),p=p.redIAdd(p)}return this.curve.jpoint(o,u,p)},l.prototype._threeDbl=function(){var o,u,p;if(this.zOne){var c=this.x.redSqr(),v=this.y.redSqr(),y=v.redSqr(),m=this.x.redAdd(v).redSqr().redISub(c).redISub(y);m=m.redIAdd(m);var R=c.redAdd(c).redIAdd(c).redIAdd(this.curve.a),A=R.redSqr().redISub(m).redISub(m);o=A;var D=y.redIAdd(y);D=D.redIAdd(D),D=D.redIAdd(D),u=R.redMul(m.redISub(A)).redISub(D),p=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),q=this.y.redSqr(),M=this.x.redMul(q),F=this.x.redSub(C).redMul(this.x.redAdd(C));F=F.redAdd(F).redIAdd(F);var k=M.redIAdd(M);k=k.redIAdd(k);var $=k.redAdd(k);o=F.redSqr().redISub($),p=this.y.redAdd(this.z).redSqr().redISub(q).redISub(C);var L=q.redSqr();L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L),u=F.redMul(k.redISub(o)).redISub(L)}return this.curve.jpoint(o,u,p)},l.prototype._dbl=function(){var o=this.curve.a,u=this.x,p=this.y,c=this.z,v=c.redSqr().redSqr(),y=u.redSqr(),m=p.redSqr(),R=y.redAdd(y).redIAdd(y).redIAdd(o.redMul(v)),A=u.redAdd(u);A=A.redIAdd(A);var D=A.redMul(m),C=R.redSqr().redISub(D.redAdd(D)),q=D.redISub(C),M=m.redSqr();M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var F=R.redMul(q).redISub(M),k=p.redAdd(p).redMul(c);return this.curve.jpoint(C,F,k)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var o=this.x.redSqr(),u=this.y.redSqr(),p=this.z.redSqr(),c=u.redSqr(),v=o.redAdd(o).redIAdd(o),y=v.redSqr(),m=this.x.redAdd(u).redSqr().redISub(o).redISub(c);m=m.redIAdd(m),m=m.redAdd(m).redIAdd(m),m=m.redISub(y);var R=m.redSqr(),A=c.redIAdd(c);A=A.redIAdd(A),A=A.redIAdd(A),A=A.redIAdd(A);var D=v.redIAdd(m).redSqr().redISub(y).redISub(R).redISub(A),C=u.redMul(D);C=C.redIAdd(C),C=C.redIAdd(C);var q=this.x.redMul(R).redISub(C);q=q.redIAdd(q),q=q.redIAdd(q);var M=this.y.redMul(D.redMul(A.redISub(D)).redISub(m.redMul(R)));M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var F=this.z.redAdd(m).redSqr().redISub(p).redISub(R);return this.curve.jpoint(q,M,F)},l.prototype.mul=function(o,u){return o=new t(o,u),this.curve._wnafMul(this,o)},l.prototype.eq=function(o){if(o.type==="affine")return this.eq(o.toJ());if(this===o)return!0;var u=this.z.redSqr(),p=o.z.redSqr();if(this.x.redMul(p).redISub(o.x.redMul(u)).cmpn(0)!==0)return!1;var c=u.redMul(this.z),v=p.redMul(o.z);return this.y.redMul(v).redISub(o.y.redMul(c)).cmpn(0)===0},l.prototype.eqXToP=function(o){var u=this.z.redSqr(),p=o.toRed(this.curve.red).redMul(u);if(this.x.cmp(p)===0)return!0;for(var c=o.clone(),v=this.curve.redN.redMul(u);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(v),this.x.cmp(p)===0)return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var r=requireBn$2(),t=requireInherits_browser(),n=requireBase$1(),i=requireUtils$1();function s(f){n.call(this,"mont",f),this.a=new r(f.a,16).toRed(this.red),this.b=new r(f.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}t(s,n),mont=s,s.prototype.validate=function(l){var d=l.normalize().x,o=d.redSqr(),u=o.redMul(d).redAdd(o.redMul(this.a)).redAdd(d),p=u.redSqrt();return p.redSqr().cmp(u)===0};function a(f,l,d){n.BasePoint.call(this,f,"projective"),l===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(l,16),this.z=new r(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return t(a,n.BasePoint),s.prototype.decodePoint=function(l,d){return this.point(i.toArray(l,d),1)},s.prototype.point=function(l,d){return new a(this,l,d)},s.prototype.pointFromJSON=function(l){return a.fromJSON(this,l)},a.prototype.precompute=function(){},a.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},a.fromJSON=function(l,d){return new a(l,d[0],d[1]||l.one)},a.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},a.prototype.isInfinity=function(){return this.z.cmpn(0)===0},a.prototype.dbl=function(){var l=this.x.redAdd(this.z),d=l.redSqr(),o=this.x.redSub(this.z),u=o.redSqr(),p=d.redSub(u),c=d.redMul(u),v=p.redMul(u.redAdd(this.curve.a24.redMul(p)));return this.curve.point(c,v)},a.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.diffAdd=function(l,d){var o=this.x.redAdd(this.z),u=this.x.redSub(this.z),p=l.x.redAdd(l.z),c=l.x.redSub(l.z),v=c.redMul(o),y=p.redMul(u),m=d.z.redMul(v.redAdd(y).redSqr()),R=d.x.redMul(v.redISub(y).redSqr());return this.curve.point(m,R)},a.prototype.mul=function(l){for(var d=l.clone(),o=this,u=this.curve.point(null,null),p=this,c=[];d.cmpn(0)!==0;d.iushrn(1))c.push(d.andln(1));for(var v=c.length-1;v>=0;v--)c[v]===0?(o=o.diffAdd(u,p),u=u.dbl()):(u=o.diffAdd(u,p),o=o.dbl());return u},a.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.eq=function(l){return this.getX().cmp(l.getX())===0},a.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},a.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var r=requireUtils$1(),t=requireBn$2(),n=requireInherits_browser(),i=requireBase$1(),s=r.assert;function a(l){this.twisted=(l.a|0)!==1,this.mOneA=this.twisted&&(l.a|0)===-1,this.extended=this.mOneA,i.call(this,"edwards",l),this.a=new t(l.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(l.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(l.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(l.c|0)===1}n(a,i),edwards=a,a.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},a.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},a.prototype.jpoint=function(d,o,u,p){return this.point(d,o,u,p)},a.prototype.pointFromX=function(d,o){d=new t(d,16),d.red||(d=d.toRed(this.red));var u=d.redSqr(),p=this.c2.redSub(this.a.redMul(u)),c=this.one.redSub(this.c2.redMul(this.d).redMul(u)),v=p.redMul(c.redInvm()),y=v.redSqrt();if(y.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var m=y.fromRed().isOdd();return(o&&!m||!o&&m)&&(y=y.redNeg()),this.point(d,y)},a.prototype.pointFromY=function(d,o){d=new t(d,16),d.red||(d=d.toRed(this.red));var u=d.redSqr(),p=u.redSub(this.c2),c=u.redMul(this.d).redMul(this.c2).redSub(this.a),v=p.redMul(c.redInvm());if(v.cmp(this.zero)===0){if(o)throw new Error("invalid point");return this.point(this.zero,d)}var y=v.redSqrt();if(y.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");return y.fromRed().isOdd()!==o&&(y=y.redNeg()),this.point(y,d)},a.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var o=d.x.redSqr(),u=d.y.redSqr(),p=o.redMul(this.a).redAdd(u),c=this.c2.redMul(this.one.redAdd(this.d.redMul(o).redMul(u)));return p.cmp(c)===0};function f(l,d,o,u,p){i.BasePoint.call(this,l,"projective"),d===null&&o===null&&u===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(d,16),this.y=new t(o,16),this.z=u?new t(u,16):this.curve.one,this.t=p&&new t(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return n(f,i.BasePoint),a.prototype.pointFromJSON=function(d){return f.fromJSON(this,d)},a.prototype.point=function(d,o,u,p){return new f(this,d,o,u,p)},f.fromJSON=function(d,o){return new f(d,o[0],o[1],o[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},f.prototype._extDbl=function(){var d=this.x.redSqr(),o=this.y.redSqr(),u=this.z.redSqr();u=u.redIAdd(u);var p=this.curve._mulA(d),c=this.x.redAdd(this.y).redSqr().redISub(d).redISub(o),v=p.redAdd(o),y=v.redSub(u),m=p.redSub(o),R=c.redMul(y),A=v.redMul(m),D=c.redMul(m),C=y.redMul(v);return this.curve.point(R,A,C,D)},f.prototype._projDbl=function(){var d=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),u=this.y.redSqr(),p,c,v,y,m,R;if(this.curve.twisted){y=this.curve._mulA(o);var A=y.redAdd(u);this.zOne?(p=d.redSub(o).redSub(u).redMul(A.redSub(this.curve.two)),c=A.redMul(y.redSub(u)),v=A.redSqr().redSub(A).redSub(A)):(m=this.z.redSqr(),R=A.redSub(m).redISub(m),p=d.redSub(o).redISub(u).redMul(R),c=A.redMul(y.redSub(u)),v=A.redMul(R))}else y=o.redAdd(u),m=this.curve._mulC(this.z).redSqr(),R=y.redSub(m).redSub(m),p=this.curve._mulC(d.redISub(y)).redMul(R),c=this.curve._mulC(y).redMul(o.redISub(u)),v=y.redMul(R);return this.curve.point(p,c,v)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(d){var o=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),u=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),p=this.t.redMul(this.curve.dd).redMul(d.t),c=this.z.redMul(d.z.redAdd(d.z)),v=u.redSub(o),y=c.redSub(p),m=c.redAdd(p),R=u.redAdd(o),A=v.redMul(y),D=m.redMul(R),C=v.redMul(R),q=y.redMul(m);return this.curve.point(A,D,q,C)},f.prototype._projAdd=function(d){var o=this.z.redMul(d.z),u=o.redSqr(),p=this.x.redMul(d.x),c=this.y.redMul(d.y),v=this.curve.d.redMul(p).redMul(c),y=u.redSub(v),m=u.redAdd(v),R=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(p).redISub(c),A=o.redMul(y).redMul(R),D,C;return this.curve.twisted?(D=o.redMul(m).redMul(c.redSub(this.curve._mulA(p))),C=y.redMul(m)):(D=o.redMul(m).redMul(c.redSub(p)),C=this.curve._mulC(y).redMul(m)),this.curve.point(A,D,C)},f.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},f.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},f.prototype.mulAdd=function(d,o,u){return this.curve._wnafMulAdd(1,[this,o],[d,u],2,!1)},f.prototype.jmulAdd=function(d,o,u){return this.curve._wnafMulAdd(1,[this,o],[d,u],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(d){return this===d||this.getX().cmp(d.getX())===0&&this.getY().cmp(d.getY())===0},f.prototype.eqXToP=function(d){var o=d.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(o)===0)return!0;for(var u=d.clone(),p=this.curve.redN.redMul(this.z);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(o.redIAdd(p),this.x.cmp(o)===0)return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,function(r){var t=r;t.base=requireBase$1(),t.short=requireShort(),t.mont=requireMont(),t.edwards=requireEdwards()}(curve)),curve}var curves={},hash={},utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var r=requireMinimalisticAssert(),t=requireInherits_browser();utils.inherits=t;function n(S,_){return(S.charCodeAt(_)&64512)!==55296||_<0||_+1>=S.length?!1:(S.charCodeAt(_+1)&64512)===56320}function i(S,_){if(Array.isArray(S))return S.slice();if(!S)return[];var h=[];if(typeof S=="string")if(_){if(_==="hex")for(S=S.replace(/[^a-z0-9]+/ig,""),S.length%2!==0&&(S="0"+S),I=0;I<S.length;I+=2)h.push(parseInt(S[I]+S[I+1],16))}else for(var g=0,I=0;I<S.length;I++){var w=S.charCodeAt(I);w<128?h[g++]=w:w<2048?(h[g++]=w>>6|192,h[g++]=w&63|128):n(S,I)?(w=65536+((w&1023)<<10)+(S.charCodeAt(++I)&1023),h[g++]=w>>18|240,h[g++]=w>>12&63|128,h[g++]=w>>6&63|128,h[g++]=w&63|128):(h[g++]=w>>12|224,h[g++]=w>>6&63|128,h[g++]=w&63|128)}else for(I=0;I<S.length;I++)h[I]=S[I]|0;return h}utils.toArray=i;function s(S){for(var _="",h=0;h<S.length;h++)_+=l(S[h].toString(16));return _}utils.toHex=s;function a(S){var _=S>>>24|S>>>8&65280|S<<8&16711680|(S&255)<<24;return _>>>0}utils.htonl=a;function f(S,_){for(var h="",g=0;g<S.length;g++){var I=S[g];_==="little"&&(I=a(I)),h+=d(I.toString(16))}return h}utils.toHex32=f;function l(S){return S.length===1?"0"+S:S}utils.zero2=l;function d(S){return S.length===7?"0"+S:S.length===6?"00"+S:S.length===5?"000"+S:S.length===4?"0000"+S:S.length===3?"00000"+S:S.length===2?"000000"+S:S.length===1?"0000000"+S:S}utils.zero8=d;function o(S,_,h,g){var I=h-_;r(I%4===0);for(var w=new Array(I/4),E=0,N=_;E<w.length;E++,N+=4){var x;g==="big"?x=S[N]<<24|S[N+1]<<16|S[N+2]<<8|S[N+3]:x=S[N+3]<<24|S[N+2]<<16|S[N+1]<<8|S[N],w[E]=x>>>0}return w}utils.join32=o;function u(S,_){for(var h=new Array(S.length*4),g=0,I=0;g<S.length;g++,I+=4){var w=S[g];_==="big"?(h[I]=w>>>24,h[I+1]=w>>>16&255,h[I+2]=w>>>8&255,h[I+3]=w&255):(h[I+3]=w>>>24,h[I+2]=w>>>16&255,h[I+1]=w>>>8&255,h[I]=w&255)}return h}utils.split32=u;function p(S,_){return S>>>_|S<<32-_}utils.rotr32=p;function c(S,_){return S<<_|S>>>32-_}utils.rotl32=c;function v(S,_){return S+_>>>0}utils.sum32=v;function y(S,_,h){return S+_+h>>>0}utils.sum32_3=y;function m(S,_,h,g){return S+_+h+g>>>0}utils.sum32_4=m;function R(S,_,h,g,I){return S+_+h+g+I>>>0}utils.sum32_5=R;function A(S,_,h,g){var I=S[_],w=S[_+1],E=g+w>>>0,N=(E<g?1:0)+h+I;S[_]=N>>>0,S[_+1]=E}utils.sum64=A;function D(S,_,h,g){var I=_+g>>>0,w=(I<_?1:0)+S+h;return w>>>0}utils.sum64_hi=D;function C(S,_,h,g){var I=_+g;return I>>>0}utils.sum64_lo=C;function q(S,_,h,g,I,w,E,N){var x=0,T=_;T=T+g>>>0,x+=T<_?1:0,T=T+w>>>0,x+=T<w?1:0,T=T+N>>>0,x+=T<N?1:0;var b=S+h+I+E+x;return b>>>0}utils.sum64_4_hi=q;function M(S,_,h,g,I,w,E,N){var x=_+g+w+N;return x>>>0}utils.sum64_4_lo=M;function F(S,_,h,g,I,w,E,N,x,T){var b=0,O=_;O=O+g>>>0,b+=O<_?1:0,O=O+w>>>0,b+=O<w?1:0,O=O+N>>>0,b+=O<N?1:0,O=O+T>>>0,b+=O<T?1:0;var P=S+h+I+E+x+b;return P>>>0}utils.sum64_5_hi=F;function k(S,_,h,g,I,w,E,N,x,T){var b=_+g+w+N+T;return b>>>0}utils.sum64_5_lo=k;function $(S,_,h){var g=_<<32-h|S>>>h;return g>>>0}utils.rotr64_hi=$;function L(S,_,h){var g=S<<32-h|_>>>h;return g>>>0}utils.rotr64_lo=L;function G(S,_,h){return S>>>h}utils.shr64_hi=G;function B(S,_,h){var g=S<<32-h|_>>>h;return g>>>0}return utils.shr64_lo=B,utils}var common$1={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;hasRequiredCommon$1=1;var r=requireUtils(),t=requireMinimalisticAssert();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return common$1.BlockHash=n,n.prototype.update=function(s,a){if(s=r.toArray(s,a),this.pending?this.pending=this.pending.concat(s):this.pending=s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){s=this.pending;var f=s.length%this._delta8;this.pending=s.slice(s.length-f,s.length),this.pending.length===0&&(this.pending=null),s=r.join32(s,0,s.length-f,this.endian);for(var l=0;l<s.length;l+=this._delta32)this._update(s,l,l+this._delta32)}return this},n.prototype.digest=function(s){return this.update(this._pad()),t(this.pending===null),this._digest(s)},n.prototype._pad=function(){var s=this.pendingTotal,a=this._delta8,f=a-(s+this.padLength)%a,l=new Array(f+this.padLength);l[0]=128;for(var d=1;d<f;d++)l[d]=0;if(s<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)l[d++]=0;l[d++]=0,l[d++]=0,l[d++]=0,l[d++]=0,l[d++]=s>>>24&255,l[d++]=s>>>16&255,l[d++]=s>>>8&255,l[d++]=s&255}else for(l[d++]=s&255,l[d++]=s>>>8&255,l[d++]=s>>>16&255,l[d++]=s>>>24&255,l[d++]=0,l[d++]=0,l[d++]=0,l[d++]=0,o=8;o<this.padLength;o++)l[d++]=0;return l},common$1}var sha={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;var r=requireUtils(),t=r.rotr32;function n(u,p,c,v){if(u===0)return i(p,c,v);if(u===1||u===3)return a(p,c,v);if(u===2)return s(p,c,v)}common.ft_1=n;function i(u,p,c){return u&p^~u&c}common.ch32=i;function s(u,p,c){return u&p^u&c^p&c}common.maj32=s;function a(u,p,c){return u^p^c}common.p32=a;function f(u){return t(u,2)^t(u,13)^t(u,22)}common.s0_256=f;function l(u){return t(u,6)^t(u,11)^t(u,25)}common.s1_256=l;function d(u){return t(u,7)^t(u,18)^u>>>3}common.g0_256=d;function o(u){return t(u,17)^t(u,19)^u>>>10}return common.g1_256=o,common}var _1,hasRequired_1;function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var r=requireUtils(),t=requireCommon$1(),n=requireCommon(),i=r.rotl32,s=r.sum32,a=r.sum32_5,f=n.ft_1,l=t.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function o(){if(!(this instanceof o))return new o;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return r.inherits(o,l),_1=o,o.blockSize=512,o.outSize=160,o.hmacStrength=80,o.padLength=64,o.prototype._update=function(p,c){for(var v=this.W,y=0;y<16;y++)v[y]=p[c+y];for(;y<v.length;y++)v[y]=i(v[y-3]^v[y-8]^v[y-14]^v[y-16],1);var m=this.h[0],R=this.h[1],A=this.h[2],D=this.h[3],C=this.h[4];for(y=0;y<v.length;y++){var q=~~(y/20),M=a(i(m,5),f(q,R,A,D),C,v[y],d[q]);C=D,D=A,A=i(R,30),R=m,m=M}this.h[0]=s(this.h[0],m),this.h[1]=s(this.h[1],R),this.h[2]=s(this.h[2],A),this.h[3]=s(this.h[3],D),this.h[4]=s(this.h[4],C)},o.prototype._digest=function(p){return p==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},_1}var _256,hasRequired_256;function require_256(){if(hasRequired_256)return _256;hasRequired_256=1;var r=requireUtils(),t=requireCommon$1(),n=requireCommon(),i=requireMinimalisticAssert(),s=r.sum32,a=r.sum32_4,f=r.sum32_5,l=n.ch32,d=n.maj32,o=n.s0_256,u=n.s1_256,p=n.g0_256,c=n.g1_256,v=t.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}return r.inherits(m,v),_256=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(A,D){for(var C=this.W,q=0;q<16;q++)C[q]=A[D+q];for(;q<C.length;q++)C[q]=a(c(C[q-2]),C[q-7],p(C[q-15]),C[q-16]);var M=this.h[0],F=this.h[1],k=this.h[2],$=this.h[3],L=this.h[4],G=this.h[5],B=this.h[6],S=this.h[7];for(i(this.k.length===C.length),q=0;q<C.length;q++){var _=f(S,u(L),l(L,G,B),this.k[q],C[q]),h=s(o(M),d(M,F,k));S=B,B=G,G=L,L=s($,_),$=k,k=F,F=M,M=s(_,h)}this.h[0]=s(this.h[0],M),this.h[1]=s(this.h[1],F),this.h[2]=s(this.h[2],k),this.h[3]=s(this.h[3],$),this.h[4]=s(this.h[4],L),this.h[5]=s(this.h[5],G),this.h[6]=s(this.h[6],B),this.h[7]=s(this.h[7],S)},m.prototype._digest=function(A){return A==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},_256}var _224,hasRequired_224;function require_224(){if(hasRequired_224)return _224;hasRequired_224=1;var r=requireUtils(),t=require_256();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return r.inherits(n,t),_224=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(s){return s==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")},_224}var _512,hasRequired_512;function require_512(){if(hasRequired_512)return _512;hasRequired_512=1;var r=requireUtils(),t=requireCommon$1(),n=requireMinimalisticAssert(),i=r.rotr64_hi,s=r.rotr64_lo,a=r.shr64_hi,f=r.shr64_lo,l=r.sum64,d=r.sum64_hi,o=r.sum64_lo,u=r.sum64_4_hi,p=r.sum64_4_lo,c=r.sum64_5_hi,v=r.sum64_5_lo,y=t.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function R(){if(!(this instanceof R))return new R;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}r.inherits(R,y),_512=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=function(h,g){for(var I=this.W,w=0;w<32;w++)I[w]=h[g+w];for(;w<I.length;w+=2){var E=B(I[w-4],I[w-3]),N=S(I[w-4],I[w-3]),x=I[w-14],T=I[w-13],b=L(I[w-30],I[w-29]),O=G(I[w-30],I[w-29]),P=I[w-32],K=I[w-31];I[w]=u(E,N,x,T,b,O,P,K),I[w+1]=p(E,N,x,T,b,O,P,K)}},R.prototype._update=function(h,g){this._prepareBlock(h,g);var I=this.W,w=this.h[0],E=this.h[1],N=this.h[2],x=this.h[3],T=this.h[4],b=this.h[5],O=this.h[6],P=this.h[7],K=this.h[8],V=this.h[9],U=this.h[10],j=this.h[11],X=this.h[12],Z=this.h[13],z=this.h[14],W=this.h[15];n(this.k.length===I.length);for(var Y=0;Y<I.length;Y+=2){var te=z,re=W,ie=k(K,V),se=$(K,V),fe=A(K,V,U,j,X),ne=D(K,V,U,j,X,Z),de=this.k[Y],ue=this.k[Y+1],ce=I[Y],he=I[Y+1],pe=c(te,re,ie,se,fe,ne,de,ue,ce,he),ge=v(te,re,ie,se,fe,ne,de,ue,ce,he);te=M(w,E),re=F(w,E),ie=C(w,E,N,x,T),se=q(w,E,N,x,T,b);var me=d(te,re,ie,se),ve=o(te,re,ie,se);z=X,W=Z,X=U,Z=j,U=K,j=V,K=d(O,P,pe,ge),V=o(P,P,pe,ge),O=T,P=b,T=N,b=x,N=w,x=E,w=d(pe,ge,me,ve),E=o(pe,ge,me,ve)}l(this.h,0,w,E),l(this.h,2,N,x),l(this.h,4,T,b),l(this.h,6,O,P),l(this.h,8,K,V),l(this.h,10,U,j),l(this.h,12,X,Z),l(this.h,14,z,W)},R.prototype._digest=function(h){return h==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function A(_,h,g,I,w){var E=_&g^~_&w;return E<0&&(E+=4294967296),E}function D(_,h,g,I,w,E){var N=h&I^~h&E;return N<0&&(N+=4294967296),N}function C(_,h,g,I,w){var E=_&g^_&w^g&w;return E<0&&(E+=4294967296),E}function q(_,h,g,I,w,E){var N=h&I^h&E^I&E;return N<0&&(N+=4294967296),N}function M(_,h){var g=i(_,h,28),I=i(h,_,2),w=i(h,_,7),E=g^I^w;return E<0&&(E+=4294967296),E}function F(_,h){var g=s(_,h,28),I=s(h,_,2),w=s(h,_,7),E=g^I^w;return E<0&&(E+=4294967296),E}function k(_,h){var g=i(_,h,14),I=i(_,h,18),w=i(h,_,9),E=g^I^w;return E<0&&(E+=4294967296),E}function $(_,h){var g=s(_,h,14),I=s(_,h,18),w=s(h,_,9),E=g^I^w;return E<0&&(E+=4294967296),E}function L(_,h){var g=i(_,h,1),I=i(_,h,8),w=a(_,h,7),E=g^I^w;return E<0&&(E+=4294967296),E}function G(_,h){var g=s(_,h,1),I=s(_,h,8),w=f(_,h,7),E=g^I^w;return E<0&&(E+=4294967296),E}function B(_,h){var g=i(_,h,19),I=i(h,_,29),w=a(_,h,6),E=g^I^w;return E<0&&(E+=4294967296),E}function S(_,h){var g=s(_,h,19),I=s(h,_,29),w=f(_,h,6),E=g^I^w;return E<0&&(E+=4294967296),E}return _512}var _384,hasRequired_384;function require_384(){if(hasRequired_384)return _384;hasRequired_384=1;var r=requireUtils(),t=require_512();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return r.inherits(n,t),_384=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(s){return s==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")},_384}var hasRequiredSha;function requireSha(){return hasRequiredSha||(hasRequiredSha=1,sha.sha1=require_1(),sha.sha224=require_224(),sha.sha256=require_256(),sha.sha384=require_384(),sha.sha512=require_512()),sha}var ripemd={},hasRequiredRipemd;function requireRipemd(){if(hasRequiredRipemd)return ripemd;hasRequiredRipemd=1;var r=requireUtils(),t=requireCommon$1(),n=r.rotl32,i=r.sum32,s=r.sum32_3,a=r.sum32_4,f=t.BlockHash;function l(){if(!(this instanceof l))return new l;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r.inherits(l,f),ripemd.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(R,A){for(var D=this.h[0],C=this.h[1],q=this.h[2],M=this.h[3],F=this.h[4],k=D,$=C,L=q,G=M,B=F,S=0;S<80;S++){var _=i(n(a(D,d(S,C,q,M),R[p[S]+A],o(S)),v[S]),F);D=F,F=M,M=n(q,10),q=C,C=_,_=i(n(a(k,d(79-S,$,L,G),R[c[S]+A],u(S)),y[S]),B),k=B,B=G,G=n(L,10),L=$,$=_}_=s(this.h[1],q,G),this.h[1]=s(this.h[2],M,B),this.h[2]=s(this.h[3],F,k),this.h[3]=s(this.h[4],D,$),this.h[4]=s(this.h[0],C,L),this.h[0]=_},l.prototype._digest=function(R){return R==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};function d(m,R,A,D){return m<=15?R^A^D:m<=31?R&A|~R&D:m<=47?(R|~A)^D:m<=63?R&D|A&~D:R^(A|~D)}function o(m){return m<=15?0:m<=31?1518500249:m<=47?1859775393:m<=63?2400959708:2840853838}function u(m){return m<=15?1352829926:m<=31?1548603684:m<=47?1836072691:m<=63?2053994217:0}var p=[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],c=[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],v=[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],y=[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];return ripemd}var hmac$2,hasRequiredHmac$1;function requireHmac$1(){if(hasRequiredHmac$1)return hmac$2;hasRequiredHmac$1=1;var r=requireUtils(),t=requireMinimalisticAssert();function n(i,s,a){if(!(this instanceof n))return new n(i,s,a);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(s,a))}return hmac$2=n,n.prototype._init=function(s){s.length>this.blockSize&&(s=new this.Hash().update(s).digest()),t(s.length<=this.blockSize);for(var a=s.length;a<this.blockSize;a++)s.push(0);for(a=0;a<s.length;a++)s[a]^=54;for(this.inner=new this.Hash().update(s),a=0;a<s.length;a++)s[a]^=106;this.outer=new this.Hash().update(s)},n.prototype.update=function(s,a){return this.inner.update(s,a),this},n.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)},hmac$2}var hasRequiredHash;function requireHash(){return hasRequiredHash||(hasRequiredHash=1,function(r){var t=r;t.utils=requireUtils(),t.common=requireCommon$1(),t.sha=requireSha(),t.ripemd=requireRipemd(),t.hmac=requireHmac$1(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(hash)),hash}var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}var hasRequiredCurves;function requireCurves(){return hasRequiredCurves||(hasRequiredCurves=1,function(r){var t=r,n=requireHash(),i=requireCurve(),s=requireUtils$1(),a=s.assert;function f(o){o.type==="short"?this.curve=new i.short(o):o.type==="edwards"?this.curve=new i.edwards(o):this.curve=new i.mont(o),this.g=this.curve.g,this.n=this.curve.n,this.hash=o.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=f;function l(o,u){Object.defineProperty(t,o,{configurable:!0,enumerable:!0,get:function(){var p=new f(u);return Object.defineProperty(t,o,{configurable:!0,enumerable:!0,value:p}),p}})}l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d;try{d=requireSecp256k1()}catch{d=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})}(curves)),curves}var hmacDrbg,hasRequiredHmacDrbg;function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var r=requireHash(),t=requireUtils$2(),n=requireMinimalisticAssert();function i(s){if(!(this instanceof i))return new i(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var a=t.toArray(s.entropy,s.entropyEnc||"hex"),f=t.toArray(s.nonce,s.nonceEnc||"hex"),l=t.toArray(s.pers,s.persEnc||"hex");n(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(a,f,l)}return hmacDrbg=i,i.prototype._init=function(a,f,l){var d=a.concat(f).concat(l);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},i.prototype._update=function(a){var f=this._hmac().update(this.V).update([0]);a&&(f=f.update(a)),this.K=f.digest(),this.V=this._hmac().update(this.V).digest(),a&&(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(a,f,l,d){typeof f!="string"&&(d=l,l=f,f=null),a=t.toArray(a,f),l=t.toArray(l,d),n(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(l||[])),this._reseed=1},i.prototype.generate=function(a,f,l,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof f!="string"&&(d=l,l=f,f=null),l&&(l=t.toArray(l,d||"hex"),this._update(l));for(var o=[];o.length<a;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var u=o.slice(0,a);return this._update(l),this._reseed++,t.encode(u,f)},hmacDrbg}var key$1,hasRequiredKey$1;function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var r=requireBn$2(),t=requireUtils$1(),n=t.assert;function i(s,a){this.ec=s,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}return key$1=i,i.fromPublic=function(a,f,l){return f instanceof i?f:new i(a,{pub:f,pubEnc:l})},i.fromPrivate=function(a,f,l){return f instanceof i?f:new i(a,{priv:f,privEnc:l})},i.prototype.validate=function(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(a,f){return typeof a=="string"&&(f=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),f?this.pub.encode(f,a):this.pub},i.prototype.getPrivate=function(a){return a==="hex"?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(a,f){this.priv=new r(a,f||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(a,f){if(a.x||a.y){this.ec.curve.type==="mont"?n(a.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&n(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y);return}this.pub=this.ec.curve.decodePoint(a,f)},i.prototype.derive=function(a){return a.validate()||n(a.validate(),"public point not validated"),a.mul(this.priv).getX()},i.prototype.sign=function(a,f,l){return this.ec.sign(a,this,f,l)},i.prototype.verify=function(a,f,l){return this.ec.verify(a,f,this,void 0,l)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var r=requireBn$2(),t=requireUtils$1(),n=t.assert;function i(d,o){if(d instanceof i)return d;this._importDER(d,o)||(n(d.r&&d.s,"Signature without r or s"),this.r=new r(d.r,16),this.s=new r(d.s,16),d.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=d.recoveryParam)}signature$1=i;function s(){this.place=0}function a(d,o){var u=d[o.place++];if(!(u&128))return u;var p=u&15;if(p===0||p>4||d[o.place]===0)return!1;for(var c=0,v=0,y=o.place;v<p;v++,y++)c<<=8,c|=d[y],c>>>=0;return c<=127?!1:(o.place=y,c)}function f(d){for(var o=0,u=d.length-1;!d[o]&&!(d[o+1]&128)&&o<u;)o++;return o===0?d:d.slice(o)}i.prototype._importDER=function(o,u){o=t.toArray(o,u);var p=new s;if(o[p.place++]!==48)return!1;var c=a(o,p);if(c===!1||c+p.place!==o.length||o[p.place++]!==2)return!1;var v=a(o,p);if(v===!1||(o[p.place]&128)!==0)return!1;var y=o.slice(p.place,v+p.place);if(p.place+=v,o[p.place++]!==2)return!1;var m=a(o,p);if(m===!1||o.length!==m+p.place||(o[p.place]&128)!==0)return!1;var R=o.slice(p.place,m+p.place);if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;if(R[0]===0)if(R[1]&128)R=R.slice(1);else return!1;return this.r=new r(y),this.s=new r(R),this.recoveryParam=null,!0};function l(d,o){if(o<128){d.push(o);return}var u=1+(Math.log(o)/Math.LN2>>>3);for(d.push(u|128);--u;)d.push(o>>>(u<<3)&255);d.push(o)}return i.prototype.toDER=function(o){var u=this.r.toArray(),p=this.s.toArray();for(u[0]&128&&(u=[0].concat(u)),p[0]&128&&(p=[0].concat(p)),u=f(u),p=f(p);!p[0]&&!(p[1]&128);)p=p.slice(1);var c=[2];l(c,u.length),c=c.concat(u),c.push(2),l(c,p.length);var v=c.concat(p),y=[48];return l(y,v.length),y=y.concat(v),t.encode(y,o)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var r=requireBn$2(),t=requireHmacDrbg(),n=requireUtils$1(),i=requireCurves(),s=requireBrorand(),a=n.assert,f=requireKey$1(),l=requireSignature$1();function d(o){if(!(this instanceof d))return new d(o);typeof o=="string"&&(a(Object.prototype.hasOwnProperty.call(i,o),"Unknown curve "+o),o=i[o]),o instanceof i.PresetCurve&&(o={curve:o}),this.curve=o.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=o.curve.g,this.g.precompute(o.curve.n.bitLength()+1),this.hash=o.hash||o.curve.hash}return ec=d,d.prototype.keyPair=function(u){return new f(this,u)},d.prototype.keyFromPrivate=function(u,p){return f.fromPrivate(this,u,p)},d.prototype.keyFromPublic=function(u,p){return f.fromPublic(this,u,p)},d.prototype.genKeyPair=function(u){u||(u={});for(var p=new t({hash:this.hash,pers:u.pers,persEnc:u.persEnc||"utf8",entropy:u.entropy||s(this.hash.hmacStrength),entropyEnc:u.entropy&&u.entropyEnc||"utf8",nonce:this.n.toArray()}),c=this.n.byteLength(),v=this.n.sub(new r(2));;){var y=new r(p.generate(c));if(!(y.cmp(v)>0))return y.iaddn(1),this.keyFromPrivate(y)}},d.prototype._truncateToN=function(u,p,c){var v;if(r.isBN(u)||typeof u=="number")u=new r(u,16),v=u.byteLength();else if(typeof u=="object")v=u.length,u=new r(u,16);else{var y=u.toString();v=y.length+1>>>1,u=new r(y,16)}typeof c!="number"&&(c=v*8);var m=c-this.n.bitLength();return m>0&&(u=u.ushrn(m)),!p&&u.cmp(this.n)>=0?u.sub(this.n):u},d.prototype.sign=function(u,p,c,v){if(typeof c=="object"&&(v=c,c=null),v||(v={}),typeof u!="string"&&typeof u!="number"&&!r.isBN(u)){a(typeof u=="object"&&u&&typeof u.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),a(u.length>>>0===u.length);for(var y=0;y<u.length;y++)a((u[y]&255)===u[y])}p=this.keyFromPrivate(p,c),u=this._truncateToN(u,!1,v.msgBitLength),a(!u.isNeg(),"Can not sign a negative message");var m=this.n.byteLength(),R=p.getPrivate().toArray("be",m),A=u.toArray("be",m);a(new r(A).eq(u),"Can not sign message");for(var D=new t({hash:this.hash,entropy:R,nonce:A,pers:v.pers,persEnc:v.persEnc||"utf8"}),C=this.n.sub(new r(1)),q=0;;q++){var M=v.k?v.k(q):new r(D.generate(this.n.byteLength()));if(M=this._truncateToN(M,!0),!(M.cmpn(1)<=0||M.cmp(C)>=0)){var F=this.g.mul(M);if(!F.isInfinity()){var k=F.getX(),$=k.umod(this.n);if($.cmpn(0)!==0){var L=M.invm(this.n).mul($.mul(p.getPrivate()).iadd(u));if(L=L.umod(this.n),L.cmpn(0)!==0){var G=(F.getY().isOdd()?1:0)|(k.cmp($)!==0?2:0);return v.canonical&&L.cmp(this.nh)>0&&(L=this.n.sub(L),G^=1),new l({r:$,s:L,recoveryParam:G})}}}}}},d.prototype.verify=function(u,p,c,v,y){y||(y={}),u=this._truncateToN(u,!1,y.msgBitLength),c=this.keyFromPublic(c,v),p=new l(p,"hex");var m=p.r,R=p.s;if(m.cmpn(1)<0||m.cmp(this.n)>=0||R.cmpn(1)<0||R.cmp(this.n)>=0)return!1;var A=R.invm(this.n),D=A.mul(u).umod(this.n),C=A.mul(m).umod(this.n),q;return this.curve._maxwellTrick?(q=this.g.jmulAdd(D,c.getPublic(),C),q.isInfinity()?!1:q.eqXToP(m)):(q=this.g.mulAdd(D,c.getPublic(),C),q.isInfinity()?!1:q.getX().umod(this.n).cmp(m)===0)},d.prototype.recoverPubKey=function(o,u,p,c){a((3&p)===p,"The recovery param is more than two bits"),u=new l(u,c);var v=this.n,y=new r(o),m=u.r,R=u.s,A=p&1,D=p>>1;if(m.cmp(this.curve.p.umod(this.curve.n))>=0&&D)throw new Error("Unable to find sencond key candinate");D?m=this.curve.pointFromX(m.add(this.curve.n),A):m=this.curve.pointFromX(m,A);var C=u.r.invm(v),q=v.sub(y).mul(C).umod(v),M=R.mul(C).umod(v);return this.g.mulAdd(q,m,M)},d.prototype.getKeyRecoveryParam=function(o,u,p,c){if(u=new l(u,c),u.recoveryParam!==null)return u.recoveryParam;for(var v=0;v<4;v++){var y;try{y=this.recoverPubKey(o,u,v)}catch{continue}if(y.eq(p))return v}throw new Error("Unable to find valid recovery factor")},ec}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var r=requireUtils$1(),t=r.assert,n=r.parseBytes,i=r.cachedProperty;function s(a,f){this.eddsa=a,this._secret=n(f.secret),a.isPoint(f.pub)?this._pub=f.pub:this._pubBytes=n(f.pub)}return s.fromPublic=function(f,l){return l instanceof s?l:new s(f,{pub:l})},s.fromSecret=function(f,l){return l instanceof s?l:new s(f,{secret:l})},s.prototype.secret=function(){return this._secret},i(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(s,"privBytes",function(){var f=this.eddsa,l=this.hash(),d=f.encodingLength-1,o=l.slice(0,f.encodingLength);return o[0]&=248,o[d]&=127,o[d]|=64,o}),i(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(f){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(f,this)},s.prototype.verify=function(f,l){return this.eddsa.verify(f,l,this)},s.prototype.getSecret=function(f){return t(this._secret,"KeyPair is public only"),r.encode(this.secret(),f)},s.prototype.getPublic=function(f){return r.encode(this.pubBytes(),f)},key=s,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var r=requireBn$2(),t=requireUtils$1(),n=t.assert,i=t.cachedProperty,s=t.parseBytes;function a(f,l){this.eddsa=f,typeof l!="object"&&(l=s(l)),Array.isArray(l)&&(n(l.length===f.encodingLength*2,"Signature has invalid size"),l={R:l.slice(0,f.encodingLength),S:l.slice(f.encodingLength)}),n(l.R&&l.S,"Signature without R or S"),f.isPoint(l.R)&&(this._R=l.R),l.S instanceof r&&(this._S=l.S),this._Rencoded=Array.isArray(l.R)?l.R:l.Rencoded,this._Sencoded=Array.isArray(l.S)?l.S:l.Sencoded}return i(a,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i(a,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i(a,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i(a,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},a.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},signature=a,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var r=requireHash(),t=requireCurves(),n=requireUtils$1(),i=n.assert,s=n.parseBytes,a=requireKey(),f=requireSignature();function l(d){if(i(d==="ed25519","only tested with ed25519 so far"),!(this instanceof l))return new l(d);d=t[d].curve,this.curve=d,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=r.sha512}return eddsa=l,l.prototype.sign=function(o,u){o=s(o);var p=this.keyFromSecret(u),c=this.hashInt(p.messagePrefix(),o),v=this.g.mul(c),y=this.encodePoint(v),m=this.hashInt(y,p.pubBytes(),o).mul(p.priv()),R=c.add(m).umod(this.curve.n);return this.makeSignature({R:v,S:R,Rencoded:y})},l.prototype.verify=function(o,u,p){if(o=s(o),u=this.makeSignature(u),u.S().gte(u.eddsa.curve.n)||u.S().isNeg())return!1;var c=this.keyFromPublic(p),v=this.hashInt(u.Rencoded(),c.pubBytes(),o),y=this.g.mul(u.S()),m=u.R().add(c.pub().mul(v));return m.eq(y)},l.prototype.hashInt=function(){for(var o=this.hash(),u=0;u<arguments.length;u++)o.update(arguments[u]);return n.intFromLE(o.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(o){return a.fromPublic(this,o)},l.prototype.keyFromSecret=function(o){return a.fromSecret(this,o)},l.prototype.makeSignature=function(o){return o instanceof f?o:new f(this,o)},l.prototype.encodePoint=function(o){var u=o.getY().toArray("le",this.encodingLength);return u[this.encodingLength-1]|=o.getX().isOdd()?128:0,u},l.prototype.decodePoint=function(o){o=n.parseBytes(o);var u=o.length-1,p=o.slice(0,u).concat(o[u]&-129),c=(o[u]&128)!==0,v=n.intFromLE(p);return this.curve.pointFromY(v,c)},l.prototype.encodeInt=function(o){return o.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(o){return n.intFromLE(o)},l.prototype.isPoint=function(o){return o instanceof this.pointClass},eddsa}var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(r){var t=r;t.version=require$$0$1.version,t.utils=requireUtils$1(),t.rand=requireBrorand(),t.curve=requireCurve(),t.curves=requireCurves(),t.ec=requireEc(),t.eddsa=requireEddsa()}(elliptic)),elliptic}var bn$1={exports:{}},bn=bn$1.exports,hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,function(r){(function(t,n){function i(_,h){if(!_)throw new Error(h||"Assertion failed")}function s(_,h){_.super_=h;var g=function(){};g.prototype=h.prototype,_.prototype=new g,_.prototype.constructor=_}function a(_,h,g){if(a.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(_||0,h||10,g||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=requireDist().Buffer}catch{}a.isBN=function(h){return h instanceof a?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===a.wordSize&&Array.isArray(h.words)},a.max=function(h,g){return h.cmp(g)>0?h:g},a.min=function(h,g){return h.cmp(g)<0?h:g},a.prototype._init=function(h,g,I){if(typeof h=="number")return this._initNumber(h,g,I);if(typeof h=="object")return this._initArray(h,g,I);g==="hex"&&(g=16),i(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var w=0;h[0]==="-"&&(w++,this.negative=1),w<h.length&&(g===16?this._parseHex(h,w,I):(this._parseBase(h,g,w),I==="le"&&this._initArray(this.toArray(),g,I)))},a.prototype._initNumber=function(h,g,I){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(i(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),g,I)},a.prototype._initArray=function(h,g,I){if(i(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E,N,x=0;if(I==="be")for(w=h.length-1,E=0;w>=0;w-=3)N=h[w]|h[w-1]<<8|h[w-2]<<16,this.words[E]|=N<<x&67108863,this.words[E+1]=N>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);else if(I==="le")for(w=0,E=0;w<h.length;w+=3)N=h[w]|h[w+1]<<8|h[w+2]<<16,this.words[E]|=N<<x&67108863,this.words[E+1]=N>>>26-x&67108863,x+=24,x>=26&&(x-=26,E++);return this._strip()};function l(_,h){var g=_.charCodeAt(h);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;i(!1,"Invalid character in "+_)}function d(_,h,g){var I=l(_,g);return g-1>=h&&(I|=l(_,g-1)<<4),I}a.prototype._parseHex=function(h,g,I){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var E=0,N=0,x;if(I==="be")for(w=h.length-1;w>=g;w-=2)x=d(h,g,w)<<E,this.words[N]|=x&67108863,E>=18?(E-=18,N+=1,this.words[N]|=x>>>26):E+=8;else{var T=h.length-g;for(w=T%2===0?g+1:g;w<h.length;w+=2)x=d(h,g,w)<<E,this.words[N]|=x&67108863,E>=18?(E-=18,N+=1,this.words[N]|=x>>>26):E+=8}this._strip()};function o(_,h,g,I){for(var w=0,E=0,N=Math.min(_.length,g),x=h;x<N;x++){var T=_.charCodeAt(x)-48;w*=I,T>=49?E=T-49+10:T>=17?E=T-17+10:E=T,i(T>=0&&E<I,"Invalid character"),w+=E}return w}a.prototype._parseBase=function(h,g,I){this.words=[0],this.length=1;for(var w=0,E=1;E<=67108863;E*=g)w++;w--,E=E/g|0;for(var N=h.length-I,x=N%w,T=Math.min(N,N-x)+I,b=0,O=I;O<T;O+=w)b=o(h,O,O+w,g),this.imuln(E),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(x!==0){var P=1;for(b=o(h,O,h.length,g),O=0;O<x;O++)P*=g;this.imuln(P),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},a.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red};function u(_,h){_.words=h.words,_.length=h.length,_.negative=h.negative,_.red=h.red}if(a.prototype._move=function(h){u(h,this)},a.prototype.clone=function(){var h=new a(null);return this.copy(h),h},a.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch{a.prototype.inspect=p}else a.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(h,g){h=h||10,g=g|0||1;var I;if(h===16||h==="hex"){I="";for(var w=0,E=0,N=0;N<this.length;N++){var x=this.words[N],T=((x<<w|E)&16777215).toString(16);E=x>>>24-w&16777215,w+=2,w>=26&&(w-=26,N--),E!==0||N!==this.length-1?I=c[6-T.length]+T+I:I=T+I}for(E!==0&&(I=E.toString(16)+I);I.length%g!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(h===(h|0)&&h>=2&&h<=36){var b=v[h],O=y[h];I="";var P=this.clone();for(P.negative=0;!P.isZero();){var K=P.modrn(O).toString(h);P=P.idivn(O),P.isZero()?I=K+I:I=c[b-K.length]+K+I}for(this.isZero()&&(I="0"+I);I.length%g!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},a.prototype.toJSON=function(){return this.toString(16,2)},f&&(a.prototype.toBuffer=function(h,g){return this.toArrayLike(f,h,g)}),a.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)};var m=function(h,g){return h.allocUnsafe?h.allocUnsafe(g):new h(g)};a.prototype.toArrayLike=function(h,g,I){this._strip();var w=this.byteLength(),E=I||Math.max(1,w);i(w<=E,"byte array longer than desired length"),i(E>0,"Requested array length <= 0");var N=m(h,E),x=g==="le"?"LE":"BE";return this["_toArrayLike"+x](N,w),N},a.prototype._toArrayLikeLE=function(h,g){for(var I=0,w=0,E=0,N=0;E<this.length;E++){var x=this.words[E]<<N|w;h[I++]=x&255,I<h.length&&(h[I++]=x>>8&255),I<h.length&&(h[I++]=x>>16&255),N===6?(I<h.length&&(h[I++]=x>>24&255),w=0,N=0):(w=x>>>24,N+=2)}if(I<h.length)for(h[I++]=w;I<h.length;)h[I++]=0},a.prototype._toArrayLikeBE=function(h,g){for(var I=h.length-1,w=0,E=0,N=0;E<this.length;E++){var x=this.words[E]<<N|w;h[I--]=x&255,I>=0&&(h[I--]=x>>8&255),I>=0&&(h[I--]=x>>16&255),N===6?(I>=0&&(h[I--]=x>>24&255),w=0,N=0):(w=x>>>24,N+=2)}if(I>=0)for(h[I--]=w;I>=0;)h[I--]=0},Math.clz32?a.prototype._countBits=function(h){return 32-Math.clz32(h)}:a.prototype._countBits=function(h){var g=h,I=0;return g>=4096&&(I+=13,g>>>=13),g>=64&&(I+=7,g>>>=7),g>=8&&(I+=4,g>>>=4),g>=2&&(I+=2,g>>>=2),I+g},a.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,I=0;return(g&8191)===0&&(I+=13,g>>>=13),(g&127)===0&&(I+=7,g>>>=7),(g&15)===0&&(I+=4,g>>>=4),(g&3)===0&&(I+=2,g>>>=2),(g&1)===0&&I++,I},a.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function R(_){for(var h=new Array(_.bitLength()),g=0;g<h.length;g++){var I=g/26|0,w=g%26;h[g]=_.words[I]>>>w&1}return h}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var I=this._zeroBits(this.words[g]);if(h+=I,I!==26)break}return h},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},a.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this._strip()},a.prototype.ior=function(h){return i((this.negative|h.negative)===0),this.iuor(h)},a.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},a.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},a.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var I=0;I<g.length;I++)this.words[I]=this.words[I]&h.words[I];return this.length=g.length,this._strip()},a.prototype.iand=function(h){return i((this.negative|h.negative)===0),this.iuand(h)},a.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},a.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},a.prototype.iuxor=function(h){var g,I;this.length>h.length?(g=this,I=h):(g=h,I=this);for(var w=0;w<I.length;w++)this.words[w]=g.words[w]^I.words[w];if(this!==g)for(;w<g.length;w++)this.words[w]=g.words[w];return this.length=g.length,this._strip()},a.prototype.ixor=function(h){return i((this.negative|h.negative)===0),this.iuxor(h)},a.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},a.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},a.prototype.inotn=function(h){i(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,I=h%26;this._expand(g),I>0&&g--;for(var w=0;w<g;w++)this.words[w]=~this.words[w]&67108863;return I>0&&(this.words[w]=~this.words[w]&67108863>>26-I),this._strip()},a.prototype.notn=function(h){return this.clone().inotn(h)},a.prototype.setn=function(h,g){i(typeof h=="number"&&h>=0);var I=h/26|0,w=h%26;return this._expand(I+1),g?this.words[I]=this.words[I]|1<<w:this.words[I]=this.words[I]&~(1<<w),this._strip()},a.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var I,w;this.length>h.length?(I=this,w=h):(I=h,w=this);for(var E=0,N=0;N<w.length;N++)g=(I.words[N]|0)+(w.words[N]|0)+E,this.words[N]=g&67108863,E=g>>>26;for(;E!==0&&N<I.length;N++)g=(I.words[N]|0)+E,this.words[N]=g&67108863,E=g>>>26;if(this.length=I.length,E!==0)this.words[this.length]=E,this.length++;else if(I!==this)for(;N<I.length;N++)this.words[N]=I.words[N];return this},a.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},a.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var I=this.cmp(h);if(I===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,E;I>0?(w=this,E=h):(w=h,E=this);for(var N=0,x=0;x<E.length;x++)g=(w.words[x]|0)-(E.words[x]|0)+N,N=g>>26,this.words[x]=g&67108863;for(;N!==0&&x<w.length;x++)g=(w.words[x]|0)+N,N=g>>26,this.words[x]=g&67108863;if(N===0&&x<w.length&&w!==this)for(;x<w.length;x++)this.words[x]=w.words[x];return this.length=Math.max(this.length,x),w!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(h){return this.clone().isub(h)};function A(_,h,g){g.negative=h.negative^_.negative;var I=_.length+h.length|0;g.length=I,I=I-1|0;var w=_.words[0]|0,E=h.words[0]|0,N=w*E,x=N&67108863,T=N/67108864|0;g.words[0]=x;for(var b=1;b<I;b++){for(var O=T>>>26,P=T&67108863,K=Math.min(b,h.length-1),V=Math.max(0,b-_.length+1);V<=K;V++){var U=b-V|0;w=_.words[U]|0,E=h.words[V]|0,N=w*E+P,O+=N/67108864|0,P=N&67108863}g.words[b]=P|0,T=O|0}return T!==0?g.words[b]=T|0:g.length--,g._strip()}var D=function(h,g,I){var w=h.words,E=g.words,N=I.words,x=0,T,b,O,P=w[0]|0,K=P&8191,V=P>>>13,U=w[1]|0,j=U&8191,X=U>>>13,Z=w[2]|0,z=Z&8191,W=Z>>>13,Y=w[3]|0,te=Y&8191,re=Y>>>13,ie=w[4]|0,se=ie&8191,fe=ie>>>13,ne=w[5]|0,de=ne&8191,ue=ne>>>13,ce=w[6]|0,he=ce&8191,pe=ce>>>13,ge=w[7]|0,me=ge&8191,ve=ge>>>13,Le=w[8]|0,Ae=Le&8191,be=Le>>>13,ke=w[9]|0,Ne=ke&8191,_e=ke>>>13,Ue=E[0]|0,Ce=Ue&8191,xe=Ue>>>13,Ge=E[1]|0,qe=Ge&8191,Se=Ge>>>13,He=E[2]|0,Oe=He&8191,Ee=He>>>13,Ve=E[3]|0,Me=Ve&8191,Te=Ve>>>13,je=E[4]|0,Be=je&8191,J=je>>>13,H=E[5]|0,Q=H&8191,ee=H>>>13,ae=E[6]|0,oe=ae&8191,le=ae>>>13,Ie=E[7]|0,we=Ie&8191,ye=Ie>>>13,Fe=E[8]|0,Re=Fe&8191,De=Fe>>>13,Ke=E[9]|0,Pe=Ke&8191,$e=Ke>>>13;I.negative=h.negative^g.negative,I.length=19,T=Math.imul(K,Ce),b=Math.imul(K,xe),b=b+Math.imul(V,Ce)|0,O=Math.imul(V,xe);var Qe=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,T=Math.imul(j,Ce),b=Math.imul(j,xe),b=b+Math.imul(X,Ce)|0,O=Math.imul(X,xe),T=T+Math.imul(K,qe)|0,b=b+Math.imul(K,Se)|0,b=b+Math.imul(V,qe)|0,O=O+Math.imul(V,Se)|0;var ze=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ze>>>26)|0,ze&=67108863,T=Math.imul(z,Ce),b=Math.imul(z,xe),b=b+Math.imul(W,Ce)|0,O=Math.imul(W,xe),T=T+Math.imul(j,qe)|0,b=b+Math.imul(j,Se)|0,b=b+Math.imul(X,qe)|0,O=O+Math.imul(X,Se)|0,T=T+Math.imul(K,Oe)|0,b=b+Math.imul(K,Ee)|0,b=b+Math.imul(V,Oe)|0,O=O+Math.imul(V,Ee)|0;var We=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(We>>>26)|0,We&=67108863,T=Math.imul(te,Ce),b=Math.imul(te,xe),b=b+Math.imul(re,Ce)|0,O=Math.imul(re,xe),T=T+Math.imul(z,qe)|0,b=b+Math.imul(z,Se)|0,b=b+Math.imul(W,qe)|0,O=O+Math.imul(W,Se)|0,T=T+Math.imul(j,Oe)|0,b=b+Math.imul(j,Ee)|0,b=b+Math.imul(X,Oe)|0,O=O+Math.imul(X,Ee)|0,T=T+Math.imul(K,Me)|0,b=b+Math.imul(K,Te)|0,b=b+Math.imul(V,Me)|0,O=O+Math.imul(V,Te)|0;var Ye=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,T=Math.imul(se,Ce),b=Math.imul(se,xe),b=b+Math.imul(fe,Ce)|0,O=Math.imul(fe,xe),T=T+Math.imul(te,qe)|0,b=b+Math.imul(te,Se)|0,b=b+Math.imul(re,qe)|0,O=O+Math.imul(re,Se)|0,T=T+Math.imul(z,Oe)|0,b=b+Math.imul(z,Ee)|0,b=b+Math.imul(W,Oe)|0,O=O+Math.imul(W,Ee)|0,T=T+Math.imul(j,Me)|0,b=b+Math.imul(j,Te)|0,b=b+Math.imul(X,Me)|0,O=O+Math.imul(X,Te)|0,T=T+Math.imul(K,Be)|0,b=b+Math.imul(K,J)|0,b=b+Math.imul(V,Be)|0,O=O+Math.imul(V,J)|0;var Xe=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,T=Math.imul(de,Ce),b=Math.imul(de,xe),b=b+Math.imul(ue,Ce)|0,O=Math.imul(ue,xe),T=T+Math.imul(se,qe)|0,b=b+Math.imul(se,Se)|0,b=b+Math.imul(fe,qe)|0,O=O+Math.imul(fe,Se)|0,T=T+Math.imul(te,Oe)|0,b=b+Math.imul(te,Ee)|0,b=b+Math.imul(re,Oe)|0,O=O+Math.imul(re,Ee)|0,T=T+Math.imul(z,Me)|0,b=b+Math.imul(z,Te)|0,b=b+Math.imul(W,Me)|0,O=O+Math.imul(W,Te)|0,T=T+Math.imul(j,Be)|0,b=b+Math.imul(j,J)|0,b=b+Math.imul(X,Be)|0,O=O+Math.imul(X,J)|0,T=T+Math.imul(K,Q)|0,b=b+Math.imul(K,ee)|0,b=b+Math.imul(V,Q)|0,O=O+Math.imul(V,ee)|0;var Je=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Je>>>26)|0,Je&=67108863,T=Math.imul(he,Ce),b=Math.imul(he,xe),b=b+Math.imul(pe,Ce)|0,O=Math.imul(pe,xe),T=T+Math.imul(de,qe)|0,b=b+Math.imul(de,Se)|0,b=b+Math.imul(ue,qe)|0,O=O+Math.imul(ue,Se)|0,T=T+Math.imul(se,Oe)|0,b=b+Math.imul(se,Ee)|0,b=b+Math.imul(fe,Oe)|0,O=O+Math.imul(fe,Ee)|0,T=T+Math.imul(te,Me)|0,b=b+Math.imul(te,Te)|0,b=b+Math.imul(re,Me)|0,O=O+Math.imul(re,Te)|0,T=T+Math.imul(z,Be)|0,b=b+Math.imul(z,J)|0,b=b+Math.imul(W,Be)|0,O=O+Math.imul(W,J)|0,T=T+Math.imul(j,Q)|0,b=b+Math.imul(j,ee)|0,b=b+Math.imul(X,Q)|0,O=O+Math.imul(X,ee)|0,T=T+Math.imul(K,oe)|0,b=b+Math.imul(K,le)|0,b=b+Math.imul(V,oe)|0,O=O+Math.imul(V,le)|0;var Ze=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,T=Math.imul(me,Ce),b=Math.imul(me,xe),b=b+Math.imul(ve,Ce)|0,O=Math.imul(ve,xe),T=T+Math.imul(he,qe)|0,b=b+Math.imul(he,Se)|0,b=b+Math.imul(pe,qe)|0,O=O+Math.imul(pe,Se)|0,T=T+Math.imul(de,Oe)|0,b=b+Math.imul(de,Ee)|0,b=b+Math.imul(ue,Oe)|0,O=O+Math.imul(ue,Ee)|0,T=T+Math.imul(se,Me)|0,b=b+Math.imul(se,Te)|0,b=b+Math.imul(fe,Me)|0,O=O+Math.imul(fe,Te)|0,T=T+Math.imul(te,Be)|0,b=b+Math.imul(te,J)|0,b=b+Math.imul(re,Be)|0,O=O+Math.imul(re,J)|0,T=T+Math.imul(z,Q)|0,b=b+Math.imul(z,ee)|0,b=b+Math.imul(W,Q)|0,O=O+Math.imul(W,ee)|0,T=T+Math.imul(j,oe)|0,b=b+Math.imul(j,le)|0,b=b+Math.imul(X,oe)|0,O=O+Math.imul(X,le)|0,T=T+Math.imul(K,we)|0,b=b+Math.imul(K,ye)|0,b=b+Math.imul(V,we)|0,O=O+Math.imul(V,ye)|0;var er=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(er>>>26)|0,er&=67108863,T=Math.imul(Ae,Ce),b=Math.imul(Ae,xe),b=b+Math.imul(be,Ce)|0,O=Math.imul(be,xe),T=T+Math.imul(me,qe)|0,b=b+Math.imul(me,Se)|0,b=b+Math.imul(ve,qe)|0,O=O+Math.imul(ve,Se)|0,T=T+Math.imul(he,Oe)|0,b=b+Math.imul(he,Ee)|0,b=b+Math.imul(pe,Oe)|0,O=O+Math.imul(pe,Ee)|0,T=T+Math.imul(de,Me)|0,b=b+Math.imul(de,Te)|0,b=b+Math.imul(ue,Me)|0,O=O+Math.imul(ue,Te)|0,T=T+Math.imul(se,Be)|0,b=b+Math.imul(se,J)|0,b=b+Math.imul(fe,Be)|0,O=O+Math.imul(fe,J)|0,T=T+Math.imul(te,Q)|0,b=b+Math.imul(te,ee)|0,b=b+Math.imul(re,Q)|0,O=O+Math.imul(re,ee)|0,T=T+Math.imul(z,oe)|0,b=b+Math.imul(z,le)|0,b=b+Math.imul(W,oe)|0,O=O+Math.imul(W,le)|0,T=T+Math.imul(j,we)|0,b=b+Math.imul(j,ye)|0,b=b+Math.imul(X,we)|0,O=O+Math.imul(X,ye)|0,T=T+Math.imul(K,Re)|0,b=b+Math.imul(K,De)|0,b=b+Math.imul(V,Re)|0,O=O+Math.imul(V,De)|0;var rr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(rr>>>26)|0,rr&=67108863,T=Math.imul(Ne,Ce),b=Math.imul(Ne,xe),b=b+Math.imul(_e,Ce)|0,O=Math.imul(_e,xe),T=T+Math.imul(Ae,qe)|0,b=b+Math.imul(Ae,Se)|0,b=b+Math.imul(be,qe)|0,O=O+Math.imul(be,Se)|0,T=T+Math.imul(me,Oe)|0,b=b+Math.imul(me,Ee)|0,b=b+Math.imul(ve,Oe)|0,O=O+Math.imul(ve,Ee)|0,T=T+Math.imul(he,Me)|0,b=b+Math.imul(he,Te)|0,b=b+Math.imul(pe,Me)|0,O=O+Math.imul(pe,Te)|0,T=T+Math.imul(de,Be)|0,b=b+Math.imul(de,J)|0,b=b+Math.imul(ue,Be)|0,O=O+Math.imul(ue,J)|0,T=T+Math.imul(se,Q)|0,b=b+Math.imul(se,ee)|0,b=b+Math.imul(fe,Q)|0,O=O+Math.imul(fe,ee)|0,T=T+Math.imul(te,oe)|0,b=b+Math.imul(te,le)|0,b=b+Math.imul(re,oe)|0,O=O+Math.imul(re,le)|0,T=T+Math.imul(z,we)|0,b=b+Math.imul(z,ye)|0,b=b+Math.imul(W,we)|0,O=O+Math.imul(W,ye)|0,T=T+Math.imul(j,Re)|0,b=b+Math.imul(j,De)|0,b=b+Math.imul(X,Re)|0,O=O+Math.imul(X,De)|0,T=T+Math.imul(K,Pe)|0,b=b+Math.imul(K,$e)|0,b=b+Math.imul(V,Pe)|0,O=O+Math.imul(V,$e)|0;var tr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(tr>>>26)|0,tr&=67108863,T=Math.imul(Ne,qe),b=Math.imul(Ne,Se),b=b+Math.imul(_e,qe)|0,O=Math.imul(_e,Se),T=T+Math.imul(Ae,Oe)|0,b=b+Math.imul(Ae,Ee)|0,b=b+Math.imul(be,Oe)|0,O=O+Math.imul(be,Ee)|0,T=T+Math.imul(me,Me)|0,b=b+Math.imul(me,Te)|0,b=b+Math.imul(ve,Me)|0,O=O+Math.imul(ve,Te)|0,T=T+Math.imul(he,Be)|0,b=b+Math.imul(he,J)|0,b=b+Math.imul(pe,Be)|0,O=O+Math.imul(pe,J)|0,T=T+Math.imul(de,Q)|0,b=b+Math.imul(de,ee)|0,b=b+Math.imul(ue,Q)|0,O=O+Math.imul(ue,ee)|0,T=T+Math.imul(se,oe)|0,b=b+Math.imul(se,le)|0,b=b+Math.imul(fe,oe)|0,O=O+Math.imul(fe,le)|0,T=T+Math.imul(te,we)|0,b=b+Math.imul(te,ye)|0,b=b+Math.imul(re,we)|0,O=O+Math.imul(re,ye)|0,T=T+Math.imul(z,Re)|0,b=b+Math.imul(z,De)|0,b=b+Math.imul(W,Re)|0,O=O+Math.imul(W,De)|0,T=T+Math.imul(j,Pe)|0,b=b+Math.imul(j,$e)|0,b=b+Math.imul(X,Pe)|0,O=O+Math.imul(X,$e)|0;var ir=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ir>>>26)|0,ir&=67108863,T=Math.imul(Ne,Oe),b=Math.imul(Ne,Ee),b=b+Math.imul(_e,Oe)|0,O=Math.imul(_e,Ee),T=T+Math.imul(Ae,Me)|0,b=b+Math.imul(Ae,Te)|0,b=b+Math.imul(be,Me)|0,O=O+Math.imul(be,Te)|0,T=T+Math.imul(me,Be)|0,b=b+Math.imul(me,J)|0,b=b+Math.imul(ve,Be)|0,O=O+Math.imul(ve,J)|0,T=T+Math.imul(he,Q)|0,b=b+Math.imul(he,ee)|0,b=b+Math.imul(pe,Q)|0,O=O+Math.imul(pe,ee)|0,T=T+Math.imul(de,oe)|0,b=b+Math.imul(de,le)|0,b=b+Math.imul(ue,oe)|0,O=O+Math.imul(ue,le)|0,T=T+Math.imul(se,we)|0,b=b+Math.imul(se,ye)|0,b=b+Math.imul(fe,we)|0,O=O+Math.imul(fe,ye)|0,T=T+Math.imul(te,Re)|0,b=b+Math.imul(te,De)|0,b=b+Math.imul(re,Re)|0,O=O+Math.imul(re,De)|0,T=T+Math.imul(z,Pe)|0,b=b+Math.imul(z,$e)|0,b=b+Math.imul(W,Pe)|0,O=O+Math.imul(W,$e)|0;var nr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(nr>>>26)|0,nr&=67108863,T=Math.imul(Ne,Me),b=Math.imul(Ne,Te),b=b+Math.imul(_e,Me)|0,O=Math.imul(_e,Te),T=T+Math.imul(Ae,Be)|0,b=b+Math.imul(Ae,J)|0,b=b+Math.imul(be,Be)|0,O=O+Math.imul(be,J)|0,T=T+Math.imul(me,Q)|0,b=b+Math.imul(me,ee)|0,b=b+Math.imul(ve,Q)|0,O=O+Math.imul(ve,ee)|0,T=T+Math.imul(he,oe)|0,b=b+Math.imul(he,le)|0,b=b+Math.imul(pe,oe)|0,O=O+Math.imul(pe,le)|0,T=T+Math.imul(de,we)|0,b=b+Math.imul(de,ye)|0,b=b+Math.imul(ue,we)|0,O=O+Math.imul(ue,ye)|0,T=T+Math.imul(se,Re)|0,b=b+Math.imul(se,De)|0,b=b+Math.imul(fe,Re)|0,O=O+Math.imul(fe,De)|0,T=T+Math.imul(te,Pe)|0,b=b+Math.imul(te,$e)|0,b=b+Math.imul(re,Pe)|0,O=O+Math.imul(re,$e)|0;var ar=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ar>>>26)|0,ar&=67108863,T=Math.imul(Ne,Be),b=Math.imul(Ne,J),b=b+Math.imul(_e,Be)|0,O=Math.imul(_e,J),T=T+Math.imul(Ae,Q)|0,b=b+Math.imul(Ae,ee)|0,b=b+Math.imul(be,Q)|0,O=O+Math.imul(be,ee)|0,T=T+Math.imul(me,oe)|0,b=b+Math.imul(me,le)|0,b=b+Math.imul(ve,oe)|0,O=O+Math.imul(ve,le)|0,T=T+Math.imul(he,we)|0,b=b+Math.imul(he,ye)|0,b=b+Math.imul(pe,we)|0,O=O+Math.imul(pe,ye)|0,T=T+Math.imul(de,Re)|0,b=b+Math.imul(de,De)|0,b=b+Math.imul(ue,Re)|0,O=O+Math.imul(ue,De)|0,T=T+Math.imul(se,Pe)|0,b=b+Math.imul(se,$e)|0,b=b+Math.imul(fe,Pe)|0,O=O+Math.imul(fe,$e)|0;var sr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(sr>>>26)|0,sr&=67108863,T=Math.imul(Ne,Q),b=Math.imul(Ne,ee),b=b+Math.imul(_e,Q)|0,O=Math.imul(_e,ee),T=T+Math.imul(Ae,oe)|0,b=b+Math.imul(Ae,le)|0,b=b+Math.imul(be,oe)|0,O=O+Math.imul(be,le)|0,T=T+Math.imul(me,we)|0,b=b+Math.imul(me,ye)|0,b=b+Math.imul(ve,we)|0,O=O+Math.imul(ve,ye)|0,T=T+Math.imul(he,Re)|0,b=b+Math.imul(he,De)|0,b=b+Math.imul(pe,Re)|0,O=O+Math.imul(pe,De)|0,T=T+Math.imul(de,Pe)|0,b=b+Math.imul(de,$e)|0,b=b+Math.imul(ue,Pe)|0,O=O+Math.imul(ue,$e)|0;var or=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(or>>>26)|0,or&=67108863,T=Math.imul(Ne,oe),b=Math.imul(Ne,le),b=b+Math.imul(_e,oe)|0,O=Math.imul(_e,le),T=T+Math.imul(Ae,we)|0,b=b+Math.imul(Ae,ye)|0,b=b+Math.imul(be,we)|0,O=O+Math.imul(be,ye)|0,T=T+Math.imul(me,Re)|0,b=b+Math.imul(me,De)|0,b=b+Math.imul(ve,Re)|0,O=O+Math.imul(ve,De)|0,T=T+Math.imul(he,Pe)|0,b=b+Math.imul(he,$e)|0,b=b+Math.imul(pe,Pe)|0,O=O+Math.imul(pe,$e)|0;var ur=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(ur>>>26)|0,ur&=67108863,T=Math.imul(Ne,we),b=Math.imul(Ne,ye),b=b+Math.imul(_e,we)|0,O=Math.imul(_e,ye),T=T+Math.imul(Ae,Re)|0,b=b+Math.imul(Ae,De)|0,b=b+Math.imul(be,Re)|0,O=O+Math.imul(be,De)|0,T=T+Math.imul(me,Pe)|0,b=b+Math.imul(me,$e)|0,b=b+Math.imul(ve,Pe)|0,O=O+Math.imul(ve,$e)|0;var fr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(fr>>>26)|0,fr&=67108863,T=Math.imul(Ne,Re),b=Math.imul(Ne,De),b=b+Math.imul(_e,Re)|0,O=Math.imul(_e,De),T=T+Math.imul(Ae,Pe)|0,b=b+Math.imul(Ae,$e)|0,b=b+Math.imul(be,Pe)|0,O=O+Math.imul(be,$e)|0;var lr=(x+T|0)+((b&8191)<<13)|0;x=(O+(b>>>13)|0)+(lr>>>26)|0,lr&=67108863,T=Math.imul(Ne,Pe),b=Math.imul(Ne,$e),b=b+Math.imul(_e,Pe)|0,O=Math.imul(_e,$e);var cr=(x+T|0)+((b&8191)<<13)|0;return x=(O+(b>>>13)|0)+(cr>>>26)|0,cr&=67108863,N[0]=Qe,N[1]=ze,N[2]=We,N[3]=Ye,N[4]=Xe,N[5]=Je,N[6]=Ze,N[7]=er,N[8]=rr,N[9]=tr,N[10]=ir,N[11]=nr,N[12]=ar,N[13]=sr,N[14]=or,N[15]=ur,N[16]=fr,N[17]=lr,N[18]=cr,x!==0&&(N[19]=x,I.length++),I};Math.imul||(D=A);function C(_,h,g){g.negative=h.negative^_.negative,g.length=_.length+h.length;for(var I=0,w=0,E=0;E<g.length-1;E++){var N=w;w=0;for(var x=I&67108863,T=Math.min(E,h.length-1),b=Math.max(0,E-_.length+1);b<=T;b++){var O=E-b,P=_.words[O]|0,K=h.words[b]|0,V=P*K,U=V&67108863;N=N+(V/67108864|0)|0,U=U+x|0,x=U&67108863,N=N+(U>>>26)|0,w+=N>>>26,N&=67108863}g.words[E]=x,I=N,N=w}return I!==0?g.words[E]=I:g.length--,g._strip()}function q(_,h,g){return C(_,h,g)}a.prototype.mulTo=function(h,g){var I,w=this.length+h.length;return this.length===10&&h.length===10?I=D(this,h,g):w<63?I=A(this,h,g):w<1024?I=C(this,h,g):I=q(this,h,g),I},a.prototype.mul=function(h){var g=new a(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},a.prototype.mulf=function(h){var g=new a(null);return g.words=new Array(this.length+h.length),q(this,h,g)},a.prototype.imul=function(h){return this.clone().mulTo(h,this)},a.prototype.imuln=function(h){var g=h<0;g&&(h=-h),i(typeof h=="number"),i(h<67108864);for(var I=0,w=0;w<this.length;w++){var E=(this.words[w]|0)*h,N=(E&67108863)+(I&67108863);I>>=26,I+=E/67108864|0,I+=N>>>26,this.words[w]=N&67108863}return I!==0&&(this.words[w]=I,this.length++),this.length=h===0?1:this.length,g?this.ineg():this},a.prototype.muln=function(h){return this.clone().imuln(h)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(h){var g=R(h);if(g.length===0)return new a(1);for(var I=this,w=0;w<g.length&&g[w]===0;w++,I=I.sqr());if(++w<g.length)for(var E=I.sqr();w<g.length;w++,E=E.sqr())g[w]!==0&&(I=I.mul(E));return I},a.prototype.iushln=function(h){i(typeof h=="number"&&h>=0);var g=h%26,I=(h-g)/26,w=67108863>>>26-g<<26-g,E;if(g!==0){var N=0;for(E=0;E<this.length;E++){var x=this.words[E]&w,T=(this.words[E]|0)-x<<g;this.words[E]=T|N,N=x>>>26-g}N&&(this.words[E]=N,this.length++)}if(I!==0){for(E=this.length-1;E>=0;E--)this.words[E+I]=this.words[E];for(E=0;E<I;E++)this.words[E]=0;this.length+=I}return this._strip()},a.prototype.ishln=function(h){return i(this.negative===0),this.iushln(h)},a.prototype.iushrn=function(h,g,I){i(typeof h=="number"&&h>=0);var w;g?w=(g-g%26)/26:w=0;var E=h%26,N=Math.min((h-E)/26,this.length),x=67108863^67108863>>>E<<E,T=I;if(w-=N,w=Math.max(0,w),T){for(var b=0;b<N;b++)T.words[b]=this.words[b];T.length=N}if(N!==0)if(this.length>N)for(this.length-=N,b=0;b<this.length;b++)this.words[b]=this.words[b+N];else this.words[0]=0,this.length=1;var O=0;for(b=this.length-1;b>=0&&(O!==0||b>=w);b--){var P=this.words[b]|0;this.words[b]=O<<26-E|P>>>E,O=P&x}return T&&O!==0&&(T.words[T.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(h,g,I){return i(this.negative===0),this.iushrn(h,g,I)},a.prototype.shln=function(h){return this.clone().ishln(h)},a.prototype.ushln=function(h){return this.clone().iushln(h)},a.prototype.shrn=function(h){return this.clone().ishrn(h)},a.prototype.ushrn=function(h){return this.clone().iushrn(h)},a.prototype.testn=function(h){i(typeof h=="number"&&h>=0);var g=h%26,I=(h-g)/26,w=1<<g;if(this.length<=I)return!1;var E=this.words[I];return!!(E&w)},a.prototype.imaskn=function(h){i(typeof h=="number"&&h>=0);var g=h%26,I=(h-g)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(g!==0&&I++,this.length=Math.min(I,this.length),g!==0){var w=67108863^67108863>>>g<<g;this.words[this.length-1]&=w}return this._strip()},a.prototype.maskn=function(h){return this.clone().imaskn(h)},a.prototype.iaddn=function(h){return i(typeof h=="number"),i(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},a.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},a.prototype.isubn=function(h){if(i(typeof h=="number"),i(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},a.prototype.addn=function(h){return this.clone().iaddn(h)},a.prototype.subn=function(h){return this.clone().isubn(h)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(h,g,I){var w=h.length+I,E;this._expand(w);var N,x=0;for(E=0;E<h.length;E++){N=(this.words[E+I]|0)+x;var T=(h.words[E]|0)*g;N-=T&67108863,x=(N>>26)-(T/67108864|0),this.words[E+I]=N&67108863}for(;E<this.length-I;E++)N=(this.words[E+I]|0)+x,x=N>>26,this.words[E+I]=N&67108863;if(x===0)return this._strip();for(i(x===-1),x=0,E=0;E<this.length;E++)N=-(this.words[E]|0)+x,x=N>>26,this.words[E]=N&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(h,g){var I=this.length-h.length,w=this.clone(),E=h,N=E.words[E.length-1]|0,x=this._countBits(N);I=26-x,I!==0&&(E=E.ushln(I),w.iushln(I),N=E.words[E.length-1]|0);var T=w.length-E.length,b;if(g!=="mod"){b=new a(null),b.length=T+1,b.words=new Array(b.length);for(var O=0;O<b.length;O++)b.words[O]=0}var P=w.clone()._ishlnsubmul(E,1,T);P.negative===0&&(w=P,b&&(b.words[T]=1));for(var K=T-1;K>=0;K--){var V=(w.words[E.length+K]|0)*67108864+(w.words[E.length+K-1]|0);for(V=Math.min(V/N|0,67108863),w._ishlnsubmul(E,V,K);w.negative!==0;)V--,w.negative=0,w._ishlnsubmul(E,1,K),w.isZero()||(w.negative^=1);b&&(b.words[K]=V)}return b&&b._strip(),w._strip(),g!=="div"&&I!==0&&w.iushrn(I),{div:b||null,mod:w}},a.prototype.divmod=function(h,g,I){if(i(!h.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var w,E,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,g),g!=="mod"&&(w=N.div.neg()),g!=="div"&&(E=N.mod.neg(),I&&E.negative!==0&&E.iadd(h)),{div:w,mod:E}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),g),g!=="mod"&&(w=N.div.neg()),{div:w,mod:N.mod}):(this.negative&h.negative)!==0?(N=this.neg().divmod(h.neg(),g),g!=="div"&&(E=N.mod.neg(),I&&E.negative!==0&&E.isub(h)),{div:N.div,mod:E}):h.length>this.length||this.cmp(h)<0?{div:new a(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new a(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new a(this.modrn(h.words[0]))}:this._wordDiv(h,g)},a.prototype.div=function(h){return this.divmod(h,"div",!1).div},a.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},a.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},a.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var I=g.div.negative!==0?g.mod.isub(h):g.mod,w=h.ushrn(1),E=h.andln(1),N=I.cmp(w);return N<0||E===1&&N===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},a.prototype.modrn=function(h){var g=h<0;g&&(h=-h),i(h<=67108863);for(var I=(1<<26)%h,w=0,E=this.length-1;E>=0;E--)w=(I*w+(this.words[E]|0))%h;return g?-w:w},a.prototype.modn=function(h){return this.modrn(h)},a.prototype.idivn=function(h){var g=h<0;g&&(h=-h),i(h<=67108863);for(var I=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+I*67108864;this.words[w]=E/h|0,I=E%h}return this._strip(),g?this.ineg():this},a.prototype.divn=function(h){return this.clone().idivn(h)},a.prototype.egcd=function(h){i(h.negative===0),i(!h.isZero());var g=this,I=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var w=new a(1),E=new a(0),N=new a(0),x=new a(1),T=0;g.isEven()&&I.isEven();)g.iushrn(1),I.iushrn(1),++T;for(var b=I.clone(),O=g.clone();!g.isZero();){for(var P=0,K=1;(g.words[0]&K)===0&&P<26;++P,K<<=1);if(P>0)for(g.iushrn(P);P-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(b),E.isub(O)),w.iushrn(1),E.iushrn(1);for(var V=0,U=1;(I.words[0]&U)===0&&V<26;++V,U<<=1);if(V>0)for(I.iushrn(V);V-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(b),x.isub(O)),N.iushrn(1),x.iushrn(1);g.cmp(I)>=0?(g.isub(I),w.isub(N),E.isub(x)):(I.isub(g),N.isub(w),x.isub(E))}return{a:N,b:x,gcd:I.iushln(T)}},a.prototype._invmp=function(h){i(h.negative===0),i(!h.isZero());var g=this,I=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var w=new a(1),E=new a(0),N=I.clone();g.cmpn(1)>0&&I.cmpn(1)>0;){for(var x=0,T=1;(g.words[0]&T)===0&&x<26;++x,T<<=1);if(x>0)for(g.iushrn(x);x-- >0;)w.isOdd()&&w.iadd(N),w.iushrn(1);for(var b=0,O=1;(I.words[0]&O)===0&&b<26;++b,O<<=1);if(b>0)for(I.iushrn(b);b-- >0;)E.isOdd()&&E.iadd(N),E.iushrn(1);g.cmp(I)>=0?(g.isub(I),w.isub(E)):(I.isub(g),E.isub(w))}var P;return g.cmpn(1)===0?P=w:P=E,P.cmpn(0)<0&&P.iadd(h),P},a.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),I=h.clone();g.negative=0,I.negative=0;for(var w=0;g.isEven()&&I.isEven();w++)g.iushrn(1),I.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;I.isEven();)I.iushrn(1);var E=g.cmp(I);if(E<0){var N=g;g=I,I=N}else if(E===0||I.cmpn(1)===0)break;g.isub(I)}while(!0);return I.iushln(w)},a.prototype.invm=function(h){return this.egcd(h).a.umod(h)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(h){return this.words[0]&h},a.prototype.bincn=function(h){i(typeof h=="number");var g=h%26,I=(h-g)/26,w=1<<g;if(this.length<=I)return this._expand(I+1),this.words[I]|=w,this;for(var E=w,N=I;E!==0&&N<this.length;N++){var x=this.words[N]|0;x+=E,E=x>>>26,x&=67108863,this.words[N]=x}return E!==0&&(this.words[N]=E,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var I;if(this.length>1)I=1;else{g&&(h=-h),i(h<=67108863,"Number is too big");var w=this.words[0]|0;I=w===h?0:w<h?-1:1}return this.negative!==0?-I|0:I},a.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},a.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,I=this.length-1;I>=0;I--){var w=this.words[I]|0,E=h.words[I]|0;if(w!==E){w<E?g=-1:w>E&&(g=1);break}}return g},a.prototype.gtn=function(h){return this.cmpn(h)===1},a.prototype.gt=function(h){return this.cmp(h)===1},a.prototype.gten=function(h){return this.cmpn(h)>=0},a.prototype.gte=function(h){return this.cmp(h)>=0},a.prototype.ltn=function(h){return this.cmpn(h)===-1},a.prototype.lt=function(h){return this.cmp(h)===-1},a.prototype.lten=function(h){return this.cmpn(h)<=0},a.prototype.lte=function(h){return this.cmp(h)<=0},a.prototype.eqn=function(h){return this.cmpn(h)===0},a.prototype.eq=function(h){return this.cmp(h)===0},a.red=function(h){return new B(h)},a.prototype.toRed=function(h){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(h){return this.red=h,this},a.prototype.forceRed=function(h){return i(!this.red,"Already a number in reduction context"),this._forceRed(h)},a.prototype.redAdd=function(h){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},a.prototype.redIAdd=function(h){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},a.prototype.redSub=function(h){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},a.prototype.redISub=function(h){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},a.prototype.redShl=function(h){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},a.prototype.redMul=function(h){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},a.prototype.redIMul=function(h){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(h){return i(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var M={k256:null,p224:null,p192:null,p25519:null};function F(_,h){this.name=_,this.p=new a(h,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var h=new a(null);return h.words=new Array(Math.ceil(this.n/13)),h},F.prototype.ireduce=function(h){var g=h,I;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),I=g.bitLength();while(I>this.n);var w=I<this.n?-1:g.ucmp(this.p);return w===0?(g.words[0]=0,g.length=1):w>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},F.prototype.split=function(h,g){h.iushrn(this.n,0,g)},F.prototype.imulK=function(h){return h.imul(this.k)};function k(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(k,F),k.prototype.split=function(h,g){for(var I=4194303,w=Math.min(h.length,9),E=0;E<w;E++)g.words[E]=h.words[E];if(g.length=w,h.length<=9){h.words[0]=0,h.length=1;return}var N=h.words[9];for(g.words[g.length++]=N&I,E=10;E<h.length;E++){var x=h.words[E]|0;h.words[E-10]=(x&I)<<4|N>>>22,N=x}N>>>=22,h.words[E-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},k.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,I=0;I<h.length;I++){var w=h.words[I]|0;g+=w*977,h.words[I]=g&67108863,g=w*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function $(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s($,F);function L(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(L,F);function G(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(G,F),G.prototype.imulK=function(h){for(var g=0,I=0;I<h.length;I++){var w=(h.words[I]|0)*19+g,E=w&67108863;w>>>=26,h.words[I]=E,g=w}return g!==0&&(h.words[h.length++]=g),h},a._prime=function(h){if(M[h])return M[h];var g;if(h==="k256")g=new k;else if(h==="p224")g=new $;else if(h==="p192")g=new L;else if(h==="p25519")g=new G;else throw new Error("Unknown prime "+h);return M[h]=g,g};function B(_){if(typeof _=="string"){var h=a._prime(_);this.m=h.p,this.prime=h}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}B.prototype._verify1=function(h){i(h.negative===0,"red works only with positives"),i(h.red,"red works only with red numbers")},B.prototype._verify2=function(h,g){i((h.negative|g.negative)===0,"red works only with positives"),i(h.red&&h.red===g.red,"red works only with red numbers")},B.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(u(h,h.umod(this.m)._forceRed(this)),h)},B.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},B.prototype.add=function(h,g){this._verify2(h,g);var I=h.add(g);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},B.prototype.iadd=function(h,g){this._verify2(h,g);var I=h.iadd(g);return I.cmp(this.m)>=0&&I.isub(this.m),I},B.prototype.sub=function(h,g){this._verify2(h,g);var I=h.sub(g);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},B.prototype.isub=function(h,g){this._verify2(h,g);var I=h.isub(g);return I.cmpn(0)<0&&I.iadd(this.m),I},B.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},B.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},B.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},B.prototype.isqr=function(h){return this.imul(h,h.clone())},B.prototype.sqr=function(h){return this.mul(h,h)},B.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(i(g%2===1),g===3){var I=this.m.add(new a(1)).iushrn(2);return this.pow(h,I)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);i(!w.isZero());var N=new a(1).toRed(this),x=N.redNeg(),T=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new a(2*b*b).toRed(this);this.pow(b,T).cmp(x)!==0;)b.redIAdd(x);for(var O=this.pow(b,w),P=this.pow(h,w.addn(1).iushrn(1)),K=this.pow(h,w),V=E;K.cmp(N)!==0;){for(var U=K,j=0;U.cmp(N)!==0;j++)U=U.redSqr();i(j<V);var X=this.pow(O,new a(1).iushln(V-j-1));P=P.redMul(X),O=X.redSqr(),K=K.redMul(O),V=j}return P},B.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},B.prototype.pow=function(h,g){if(g.isZero())return new a(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var I=4,w=new Array(1<<I);w[0]=new a(1).toRed(this),w[1]=h;for(var E=2;E<w.length;E++)w[E]=this.mul(w[E-1],h);var N=w[0],x=0,T=0,b=g.bitLength()%26;for(b===0&&(b=26),E=g.length-1;E>=0;E--){for(var O=g.words[E],P=b-1;P>=0;P--){var K=O>>P&1;if(N!==w[0]&&(N=this.sqr(N)),K===0&&x===0){T=0;continue}x<<=1,x|=K,T++,!(T!==I&&(E!==0||P!==0))&&(N=this.mul(N,w[x]),T=0,x=0)}b=26}return N},B.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},B.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},a.mont=function(h){return new S(h)};function S(_){B.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(S,B),S.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},S.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},S.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var I=h.imul(g),w=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=I.isub(w).iushrn(this.shift),N=E;return E.cmp(this.m)>=0?N=E.isub(this.m):E.cmpn(0)<0&&(N=E.iadd(this.m)),N._forceRed(this)},S.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new a(0)._forceRed(this);var I=h.mul(g),w=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=I.isub(w).iushrn(this.shift),N=E;return E.cmp(this.m)>=0?N=E.isub(this.m):E.cmpn(0)<0&&(N=E.iadd(this.m)),N._forceRed(this)},S.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(r,bn)}(bn$1)),bn$1.exports}var asn1$1={},asn1={},api$1={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(r,t){if(r.indexOf)return r.indexOf(t);for(var n=0;n<r.length;n++)if(r[n]===t)return n;return-1},Object_keys=function(r){if(Object.keys)return Object.keys(r);var t=[];for(var n in r)t.push(n);return t},forEach=function(r,t){if(r.forEach)return r.forEach(t);for(var n=0;n<r.length;n++)t(r[n],n,r)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(r,t,n){Object.defineProperty(r,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch{return function(t,n,i){t[n]=i}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(r){if(!(r instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,i=n.eval,s=n.execScript;!i&&s&&(s.call(n,"null"),i=n.eval),forEach(Object_keys(r),function(l){n[l]=r[l]}),forEach(globals,function(l){r[l]&&(n[l]=r[l])});var a=Object_keys(n),f=i.call(n,this.code);return forEach(Object_keys(n),function(l){(l in r||indexOf(a,l)===-1)&&(r[l]=n[l])}),forEach(globals,function(l){l in r||defineProp(r,l,n[l])}),document.body.removeChild(t),f},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(r){var t=Script.createContext(r),n=this.runInContext(t);return r&&forEach(Object_keys(t),function(i){r[i]=t[i]}),n},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(t){var n=Script(t);return n[r].apply(n,[].slice.call(arguments,1))}}),exports.isContext=function(r){return r instanceof Context},exports.createScript=function(r){return exports.Script(r)},exports.createContext=Script.createContext=function(r){var t=new Context;return typeof r=="object"&&forEach(Object_keys(r),function(n){t[n]=r[n]}),t}}(vmBrowserify)),vmBrowserify}var hasRequiredApi$1;function requireApi$1(){return hasRequiredApi$1||(hasRequiredApi$1=1,function(r){var t=requireAsn1$1(),n=requireInherits_browser(),i=r;i.define=function(f,l){return new s(f,l)};function s(a,f){this.name=a,this.body=f,this.decoders={},this.encoders={}}s.prototype._createNamed=function(f){var l;try{l=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
37
37
  this._initNamed(entity);
38
38
  })`)}catch{l=function(o){this._initNamed(o)}}return n(l,f),l.prototype._initNamed=function(o){f.call(this,o)},new l(this)},s.prototype._getDecoder=function(f){return f=f||"der",this.decoders.hasOwnProperty(f)||(this.decoders[f]=this._createNamed(t.decoders[f])),this.decoders[f]},s.prototype.decode=function(f,l,d){return this._getDecoder(l).decode(f,d)},s.prototype._getEncoder=function(f){return f=f||"der",this.encoders.hasOwnProperty(f)||(this.encoders[f]=this._createNamed(t.encoders[f])),this.encoders[f]},s.prototype.encode=function(f,l,d){return this._getEncoder(l).encode(f,d)}}(api$1)),api$1}var base={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var r=requireInherits_browser();function t(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}reporter.Reporter=t,t.prototype.isError=function(s){return s instanceof n},t.prototype.save=function(){var s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},t.prototype.restore=function(s){var a=this._reporterState;a.obj=s.obj,a.path=a.path.slice(0,s.pathLen)},t.prototype.enterKey=function(s){return this._reporterState.path.push(s)},t.prototype.exitKey=function(s){var a=this._reporterState;a.path=a.path.slice(0,s-1)},t.prototype.leaveKey=function(s,a,f){var l=this._reporterState;this.exitKey(s),l.obj!==null&&(l.obj[a]=f)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){var s=this._reporterState,a=s.obj;return s.obj={},a},t.prototype.leaveObject=function(s){var a=this._reporterState,f=a.obj;return a.obj=s,f},t.prototype.error=function(s){var a,f=this._reporterState,l=s instanceof n;if(l?a=s:a=new n(f.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),s.message||s,s.stack),!f.options.partial)throw a;return l||f.errors.push(a),a},t.prototype.wrapResult=function(s){var a=this._reporterState;return a.options.partial?{result:this.isError(s)?null:s,errors:a.errors}:s};function n(i,s){this.path=i,this.rethrow(s)}return r(n,Error),n.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var r=requireInherits_browser(),t=requireBase().Reporter,n=requireDist().Buffer;function i(a,f){if(t.call(this,f),!n.isBuffer(a)){this.error("Input not Buffer");return}this.base=a,this.offset=0,this.length=a.length}r(i,t),buffer.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},i.prototype.restore=function(f){var l=new i(this.base);return l.offset=f.offset,l.length=this.offset,this.offset=f.offset,t.prototype.restore.call(this,f.reporter),l},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(f){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(f||"DecoderBuffer overrun")},i.prototype.skip=function(f,l){if(!(this.offset+f<=this.length))return this.error(l||"DecoderBuffer overrun");var d=new i(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+f,this.offset+=f,d},i.prototype.raw=function(f){return this.base.slice(f?f.offset:this.offset,this.length)};function s(a,f){if(Array.isArray(a))this.length=0,this.value=a.map(function(l){return l instanceof s||(l=new s(l,f)),this.length+=l.length,l},this);else if(typeof a=="number"){if(!(0<=a&&a<=255))return f.error("non-byte EncoderBuffer value");this.value=a,this.length=1}else if(typeof a=="string")this.value=a,this.length=n.byteLength(a);else if(n.isBuffer(a))this.value=a,this.length=a.length;else return f.error("Unsupported type: "+typeof a)}return buffer.EncoderBuffer=s,s.prototype.join=function(f,l){return f||(f=new n(this.length)),l||(l=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(f,l),l+=d.length}):(typeof this.value=="number"?f[l]=this.value:typeof this.value=="string"?f.write(this.value,l):n.isBuffer(this.value)&&this.value.copy(f,l),l+=this.length)),f},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var r=requireBase().Reporter,t=requireBase().EncoderBuffer,n=requireBase().DecoderBuffer,i=requireMinimalisticAssert(),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),f=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(o,u){var p={};this._baseState=p,p.enc=o,p.parent=u||null,p.children=null,p.tag=null,p.args=null,p.reverseArgs=null,p.choice=null,p.optional=!1,p.any=!1,p.obj=!1,p.use=null,p.useDecoder=null,p.key=null,p.default=null,p.explicit=null,p.implicit=null,p.contains=null,p.parent||(p.children=[],this._wrap())}node=l;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return l.prototype.clone=function(){var u=this._baseState,p={};d.forEach(function(v){p[v]=u[v]});var c=new this.constructor(p.parent);return c._baseState=p,c},l.prototype._wrap=function(){var u=this._baseState;a.forEach(function(p){this[p]=function(){var v=new this.constructor(this);return u.children.push(v),v[p].apply(v,arguments)}},this)},l.prototype._init=function(u){var p=this._baseState;i(p.parent===null),u.call(this),p.children=p.children.filter(function(c){return c._baseState.parent===this},this),i.equal(p.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(u){var p=this._baseState,c=u.filter(function(v){return v instanceof this.constructor},this);u=u.filter(function(v){return!(v instanceof this.constructor)},this),c.length!==0&&(i(p.children===null),p.children=c,c.forEach(function(v){v._baseState.parent=this},this)),u.length!==0&&(i(p.args===null),p.args=u,p.reverseArgs=u.map(function(v){if(typeof v!="object"||v.constructor!==Object)return v;var y={};return Object.keys(v).forEach(function(m){m==(m|0)&&(m|=0);var R=v[m];y[R]=m}),y}))},f.forEach(function(o){l.prototype[o]=function(){var p=this._baseState;throw new Error(o+" not implemented for encoding: "+p.enc)}}),s.forEach(function(o){l.prototype[o]=function(){var p=this._baseState,c=Array.prototype.slice.call(arguments);return i(p.tag===null),p.tag=o,this._useArgs(c),this}}),l.prototype.use=function(u){i(u);var p=this._baseState;return i(p.use===null),p.use=u,this},l.prototype.optional=function(){var u=this._baseState;return u.optional=!0,this},l.prototype.def=function(u){var p=this._baseState;return i(p.default===null),p.default=u,p.optional=!0,this},l.prototype.explicit=function(u){var p=this._baseState;return i(p.explicit===null&&p.implicit===null),p.explicit=u,this},l.prototype.implicit=function(u){var p=this._baseState;return i(p.explicit===null&&p.implicit===null),p.implicit=u,this},l.prototype.obj=function(){var u=this._baseState,p=Array.prototype.slice.call(arguments);return u.obj=!0,p.length!==0&&this._useArgs(p),this},l.prototype.key=function(u){var p=this._baseState;return i(p.key===null),p.key=u,this},l.prototype.any=function(){var u=this._baseState;return u.any=!0,this},l.prototype.choice=function(u){var p=this._baseState;return i(p.choice===null),p.choice=u,this._useArgs(Object.keys(u).map(function(c){return u[c]})),this},l.prototype.contains=function(u){var p=this._baseState;return i(p.use===null),p.contains=u,this},l.prototype._decode=function(u,p){var c=this._baseState;if(c.parent===null)return u.wrapResult(c.children[0]._decode(u,p));var v=c.default,y=!0,m=null;if(c.key!==null&&(m=u.enterKey(c.key)),c.optional){var R=null;if(c.explicit!==null?R=c.explicit:c.implicit!==null?R=c.implicit:c.tag!==null&&(R=c.tag),R===null&&!c.any){var A=u.save();try{c.choice===null?this._decodeGeneric(c.tag,u,p):this._decodeChoice(u,p),y=!0}catch{y=!1}u.restore(A)}else if(y=this._peekTag(u,R,c.any),u.isError(y))return y}var D;if(c.obj&&y&&(D=u.enterObject()),y){if(c.explicit!==null){var C=this._decodeTag(u,c.explicit);if(u.isError(C))return C;u=C}var q=u.offset;if(c.use===null&&c.choice===null){if(c.any)var A=u.save();var M=this._decodeTag(u,c.implicit!==null?c.implicit:c.tag,c.any);if(u.isError(M))return M;c.any?v=u.raw(A):u=M}if(p&&p.track&&c.tag!==null&&p.track(u.path(),q,u.length,"tagged"),p&&p.track&&c.tag!==null&&p.track(u.path(),u.offset,u.length,"content"),c.any?v=v:c.choice===null?v=this._decodeGeneric(c.tag,u,p):v=this._decodeChoice(u,p),u.isError(v))return v;if(!c.any&&c.choice===null&&c.children!==null&&c.children.forEach(function($){$._decode(u,p)}),c.contains&&(c.tag==="octstr"||c.tag==="bitstr")){var F=new n(v);v=this._getUse(c.contains,u._reporterState.obj)._decode(F,p)}}return c.obj&&y&&(v=u.leaveObject(D)),c.key!==null&&(v!==null||y===!0)?u.leaveKey(m,c.key,v):m!==null&&u.exitKey(m),v},l.prototype._decodeGeneric=function(u,p,c){var v=this._baseState;return u==="seq"||u==="set"?null:u==="seqof"||u==="setof"?this._decodeList(p,u,v.args[0],c):/str$/.test(u)?this._decodeStr(p,u,c):u==="objid"&&v.args?this._decodeObjid(p,v.args[0],v.args[1],c):u==="objid"?this._decodeObjid(p,null,null,c):u==="gentime"||u==="utctime"?this._decodeTime(p,u,c):u==="null_"?this._decodeNull(p,c):u==="bool"?this._decodeBool(p,c):u==="objDesc"?this._decodeStr(p,u,c):u==="int"||u==="enum"?this._decodeInt(p,v.args&&v.args[0],c):v.use!==null?this._getUse(v.use,p._reporterState.obj)._decode(p,c):p.error("unknown tag: "+u)},l.prototype._getUse=function(u,p){var c=this._baseState;return c.useDecoder=this._use(u,p),i(c.useDecoder._baseState.parent===null),c.useDecoder=c.useDecoder._baseState.children[0],c.implicit!==c.useDecoder._baseState.implicit&&(c.useDecoder=c.useDecoder.clone(),c.useDecoder._baseState.implicit=c.implicit),c.useDecoder},l.prototype._decodeChoice=function(u,p){var c=this._baseState,v=null,y=!1;return Object.keys(c.choice).some(function(m){var R=u.save(),A=c.choice[m];try{var D=A._decode(u,p);if(u.isError(D))return!1;v={type:m,value:D},y=!0}catch{return u.restore(R),!1}return!0},this),y?v:u.error("Choice not matched")},l.prototype._createEncoderBuffer=function(u){return new t(u,this.reporter)},l.prototype._encode=function(u,p,c){var v=this._baseState;if(!(v.default!==null&&v.default===u)){var y=this._encodeValue(u,p,c);if(y!==void 0&&!this._skipDefault(y,p,c))return y}},l.prototype._encodeValue=function(u,p,c){var v=this._baseState;if(v.parent===null)return v.children[0]._encode(u,p||new r);var A=null;if(this.reporter=p,v.optional&&u===void 0)if(v.default!==null)u=v.default;else return;var y=null,m=!1;if(v.any)A=this._createEncoderBuffer(u);else if(v.choice)A=this._encodeChoice(u,p);else if(v.contains)y=this._getUse(v.contains,c)._encode(u,p),m=!0;else if(v.children)y=v.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,p,u);if(q._baseState.key===null)return p.error("Child should have a key");var M=p.enterKey(q._baseState.key);if(typeof u!="object")return p.error("Child expected, but input is not object");var F=q._encode(u[q._baseState.key],p,u);return p.leaveKey(M),F},this).filter(function(q){return q}),y=this._createEncoderBuffer(y);else if(v.tag==="seqof"||v.tag==="setof"){if(!(v.args&&v.args.length===1))return p.error("Too many args for : "+v.tag);if(!Array.isArray(u))return p.error("seqof/setof, but data is not Array");var R=this.clone();R._baseState.implicit=null,y=this._createEncoderBuffer(u.map(function(q){var M=this._baseState;return this._getUse(M.args[0],u)._encode(q,p)},R))}else v.use!==null?A=this._getUse(v.use,c)._encode(u,p):(y=this._encodePrimitive(v.tag,u),m=!0);var A;if(!v.any&&v.choice===null){var D=v.implicit!==null?v.implicit:v.tag,C=v.implicit===null?"universal":"context";D===null?v.use===null&&p.error("Tag could be omitted only for .use()"):v.use===null&&(A=this._encodeComposite(D,m,C,y))}return v.explicit!==null&&(A=this._encodeComposite(v.explicit,!1,"context",A)),A},l.prototype._encodeChoice=function(u,p){var c=this._baseState,v=c.choice[u.type];return v||i(!1,u.type+" not found in "+JSON.stringify(Object.keys(c.choice))),v._encode(u.value,p)},l.prototype._encodePrimitive=function(u,p){var c=this._baseState;if(/str$/.test(u))return this._encodeStr(p,u);if(u==="objid"&&c.args)return this._encodeObjid(p,c.reverseArgs[0],c.args[1]);if(u==="objid")return this._encodeObjid(p,null,null);if(u==="gentime"||u==="utctime")return this._encodeTime(p,u);if(u==="null_")return this._encodeNull();if(u==="int"||u==="enum")return this._encodeInt(p,c.args&&c.reverseArgs[0]);if(u==="bool")return this._encodeBool(p);if(u==="objDesc")return this._encodeStr(p,u);throw new Error("Unsupported tag: "+u)},l.prototype._isNumstr=function(u){return/^[0-9 ]*$/.test(u)},l.prototype._isPrintstr=function(u){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(u)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(r){var t=r;t.Reporter=requireReporter().Reporter,t.DecoderBuffer=requireBuffer().DecoderBuffer,t.EncoderBuffer=requireBuffer().EncoderBuffer,t.Node=requireNode()}(base)),base}var constants={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(r){var t=requireConstants();r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=t._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=t._reverse(r.tag)}(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(r){var t=r;t._reverse=function(i){var s={};return Object.keys(i).forEach(function(a){(a|0)==a&&(a=a|0);var f=i[a];s[f]=a}),s},t.der=requireDer$2()}(constants)),constants}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var r=requireInherits_browser(),t=requireAsn1$1(),n=t.base,i=t.bignum,s=t.constants.der;function a(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new f,this.tree._init(o.body)}der_1$1=a,a.prototype.decode=function(u,p){return u instanceof n.DecoderBuffer||(u=new n.DecoderBuffer(u,p)),this.tree._decode(u,p)};function f(o){n.Node.call(this,"der",o)}r(f,n.Node),f.prototype._peekTag=function(u,p,c){if(u.isEmpty())return!1;var v=u.save(),y=l(u,'Failed to peek tag: "'+p+'"');return u.isError(y)?y:(u.restore(v),y.tag===p||y.tagStr===p||y.tagStr+"of"===p||c)},f.prototype._decodeTag=function(u,p,c){var v=l(u,'Failed to decode tag of "'+p+'"');if(u.isError(v))return v;var y=d(u,v.primitive,'Failed to get length of "'+p+'"');if(u.isError(y))return y;if(!c&&v.tag!==p&&v.tagStr!==p&&v.tagStr+"of"!==p)return u.error('Failed to match tag: "'+p+'"');if(v.primitive||y!==null)return u.skip(y,'Failed to match body of: "'+p+'"');var m=u.save(),R=this._skipUntilEnd(u,'Failed to skip indefinite length body: "'+this.tag+'"');return u.isError(R)?R:(y=u.offset-m.offset,u.restore(m),u.skip(y,'Failed to match body of: "'+p+'"'))},f.prototype._skipUntilEnd=function(u,p){for(;;){var c=l(u,p);if(u.isError(c))return c;var v=d(u,c.primitive,p);if(u.isError(v))return v;var y;if(c.primitive||v!==null?y=u.skip(v):y=this._skipUntilEnd(u,p),u.isError(y))return y;if(c.tagStr==="end")break}},f.prototype._decodeList=function(u,p,c,v){for(var y=[];!u.isEmpty();){var m=this._peekTag(u,"end");if(u.isError(m))return m;var R=c.decode(u,"der",v);if(u.isError(R)&&m)break;y.push(R)}return y},f.prototype._decodeStr=function(u,p){if(p==="bitstr"){var c=u.readUInt8();return u.isError(c)?c:{unused:c,data:u.raw()}}else if(p==="bmpstr"){var v=u.raw();if(v.length%2===1)return u.error("Decoding of string type: bmpstr length mismatch");for(var y="",m=0;m<v.length/2;m++)y+=String.fromCharCode(v.readUInt16BE(m*2));return y}else if(p==="numstr"){var R=u.raw().toString("ascii");return this._isNumstr(R)?R:u.error("Decoding of string type: numstr unsupported characters")}else{if(p==="octstr")return u.raw();if(p==="objDesc")return u.raw();if(p==="printstr"){var A=u.raw().toString("ascii");return this._isPrintstr(A)?A:u.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(p)?u.raw().toString():u.error("Decoding of string type: "+p+" unsupported")}},f.prototype._decodeObjid=function(u,p,c){for(var v,y=[],m=0;!u.isEmpty();){var R=u.readUInt8();m<<=7,m|=R&127,(R&128)===0&&(y.push(m),m=0)}R&128&&y.push(m);var A=y[0]/40|0,D=y[0]%40;if(c?v=y:v=[A,D].concat(y.slice(1)),p){var C=p[v.join(" ")];C===void 0&&(C=p[v.join(".")]),C!==void 0&&(v=C)}return v},f.prototype._decodeTime=function(u,p){var c=u.raw().toString();if(p==="gentime")var v=c.slice(0,4)|0,y=c.slice(4,6)|0,m=c.slice(6,8)|0,R=c.slice(8,10)|0,A=c.slice(10,12)|0,D=c.slice(12,14)|0;else if(p==="utctime"){var v=c.slice(0,2)|0,y=c.slice(2,4)|0,m=c.slice(4,6)|0,R=c.slice(6,8)|0,A=c.slice(8,10)|0,D=c.slice(10,12)|0;v<70?v=2e3+v:v=1900+v}else return u.error("Decoding "+p+" time is not supported yet");return Date.UTC(v,y-1,m,R,A,D,0)},f.prototype._decodeNull=function(u){return null},f.prototype._decodeBool=function(u){var p=u.readUInt8();return u.isError(p)?p:p!==0},f.prototype._decodeInt=function(u,p){var c=u.raw(),v=new i(c);return p&&(v=p[v.toString(10)]||v),v},f.prototype._use=function(u,p){return typeof u=="function"&&(u=u(p)),u._getDecoder("der").tree};function l(o,u){var p=o.readUInt8(u);if(o.isError(p))return p;var c=s.tagClass[p>>6],v=(p&32)===0;if((p&31)===31){var y=p;for(p=0;(y&128)===128;){if(y=o.readUInt8(u),o.isError(y))return y;p<<=7,p|=y&127}}else p&=31;var m=s.tag[p];return{cls:c,primitive:v,tag:p,tagStr:m}}function d(o,u,p){var c=o.readUInt8(p);if(o.isError(c))return c;if(!u&&c===128)return null;if((c&128)===0)return c;var v=c&127;if(v>4)return o.error("length octect is too long");c=0;for(var y=0;y<v;y++){c<<=8;var m=o.readUInt8(p);if(o.isError(m))return m;c|=m}return c}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var r=requireInherits_browser(),t=requireDist().Buffer,n=requireDer$1();function i(s){n.call(this,s),this.enc="pem"}return r(i,n),pem$1=i,i.prototype.decode=function(a,f){for(var l=a.toString().split(/[\r\n]+/g),d=f.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,u=-1,p=-1,c=0;c<l.length;c++){var v=l[c].match(o);if(v!==null&&v[2]===d)if(u===-1){if(v[1]!=="BEGIN")break;u=c}else{if(v[1]!=="END")break;p=c;break}}if(u===-1||p===-1)throw new Error("PEM section not found for: "+d);var y=l.slice(u+1,p).join("");y.replace(/[^a-z0-9\+\/=]+/gi,"");var m=new t(y,"base64");return n.prototype.decode.call(this,m,f)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(r){var t=r;t.der=requireDer$1(),t.pem=requirePem$1()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var r=requireInherits_browser(),t=requireDist().Buffer,n=requireAsn1$1(),i=n.base,s=n.constants.der;function a(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new f,this.tree._init(o.body)}der_1=a,a.prototype.encode=function(u,p){return this.tree._encode(u,p).join()};function f(o){i.Node.call(this,"der",o)}r(f,i.Node),f.prototype._encodeComposite=function(u,p,c,v){var y=d(u,p,c,this.reporter);if(v.length<128){var A=new t(2);return A[0]=y,A[1]=v.length,this._createEncoderBuffer([A,v])}for(var m=1,R=v.length;R>=256;R>>=8)m++;var A=new t(2+m);A[0]=y,A[1]=128|m;for(var R=1+m,D=v.length;D>0;R--,D>>=8)A[R]=D&255;return this._createEncoderBuffer([A,v])},f.prototype._encodeStr=function(u,p){if(p==="bitstr")return this._createEncoderBuffer([u.unused|0,u.data]);if(p==="bmpstr"){for(var c=new t(u.length*2),v=0;v<u.length;v++)c.writeUInt16BE(u.charCodeAt(v),v*2);return this._createEncoderBuffer(c)}else return p==="numstr"?this._isNumstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: numstr supports only digits and space"):p==="printstr"?this._isPrintstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(p)?this._createEncoderBuffer(u):p==="objDesc"?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: "+p+" unsupported")},f.prototype._encodeObjid=function(u,p,c){if(typeof u=="string"){if(!p)return this.reporter.error("string objid given, but no values map found");if(!p.hasOwnProperty(u))return this.reporter.error("objid not found in values map");u=p[u].split(/[\s\.]+/g);for(var v=0;v<u.length;v++)u[v]|=0}else if(Array.isArray(u)){u=u.slice();for(var v=0;v<u.length;v++)u[v]|=0}if(!Array.isArray(u))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(u));if(!c){if(u[1]>=40)return this.reporter.error("Second objid identifier OOB");u.splice(0,2,u[0]*40+u[1])}for(var y=0,v=0;v<u.length;v++){var m=u[v];for(y++;m>=128;m>>=7)y++}for(var R=new t(y),A=R.length-1,v=u.length-1;v>=0;v--){var m=u[v];for(R[A--]=m&127;(m>>=7)>0;)R[A--]=128|m&127}return this._createEncoderBuffer(R)};function l(o){return o<10?"0"+o:o}f.prototype._encodeTime=function(u,p){var c,v=new Date(u);return p==="gentime"?c=[l(v.getFullYear()),l(v.getUTCMonth()+1),l(v.getUTCDate()),l(v.getUTCHours()),l(v.getUTCMinutes()),l(v.getUTCSeconds()),"Z"].join(""):p==="utctime"?c=[l(v.getFullYear()%100),l(v.getUTCMonth()+1),l(v.getUTCDate()),l(v.getUTCHours()),l(v.getUTCMinutes()),l(v.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(c,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(u,p){if(typeof u=="string"){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(u))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(u));u=p[u]}if(typeof u!="number"&&!t.isBuffer(u)){var c=u.toArray();!u.sign&&c[0]&128&&c.unshift(0),u=new t(c)}if(t.isBuffer(u)){var v=u.length;u.length===0&&v++;var m=new t(v);return u.copy(m),u.length===0&&(m[0]=0),this._createEncoderBuffer(m)}if(u<128)return this._createEncoderBuffer(u);if(u<256)return this._createEncoderBuffer([0,u]);for(var v=1,y=u;y>=256;y>>=8)v++;for(var m=new Array(v),y=m.length-1;y>=0;y--)m[y]=u&255,u>>=8;return m[0]&128&&m.unshift(0),this._createEncoderBuffer(new t(m))},f.prototype._encodeBool=function(u){return this._createEncoderBuffer(u?255:0)},f.prototype._use=function(u,p){return typeof u=="function"&&(u=u(p)),u._getEncoder("der").tree},f.prototype._skipDefault=function(u,p,c){var v=this._baseState,y;if(v.default===null)return!1;var m=u.join();if(v.defaultBuffer===void 0&&(v.defaultBuffer=this._encodeValue(v.default,p,c).join()),m.length!==v.defaultBuffer.length)return!1;for(y=0;y<m.length;y++)if(m[y]!==v.defaultBuffer[y])return!1;return!0};function d(o,u,p,c){var v;if(o==="seqof"?o="seq":o==="setof"&&(o="set"),s.tagByName.hasOwnProperty(o))v=s.tagByName[o];else if(typeof o=="number"&&(o|0)===o)v=o;else return c.error("Unknown tag: "+o);return v>=31?c.error("Multi-octet tag encoding unsupported"):(u||(v|=32),v|=s.tagClassByName[p||"universal"]<<6,v)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var r=requireInherits_browser(),t=requireDer();function n(i){t.call(this,i),this.enc="pem"}return r(n,t),pem=n,n.prototype.encode=function(s,a){for(var f=t.prototype.encode.call(this,s),l=f.toString("base64"),d=["-----BEGIN "+a.label+"-----"],o=0;o<l.length;o+=64)d.push(l.slice(o,o+64));return d.push("-----END "+a.label+"-----"),d.join(`
@@ -52,7 +52,7 @@ https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={D
52
52
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
53
53
  * derived from CryptoJS.mode.CTR
54
54
  * Jan Hruby jhruby.web@gmail.com
55
- */return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function s(l){if((l>>24&255)===255){var d=l>>16&255,o=l>>8&255,u=l&255;d===255?(d=0,o===255?(o=0,u===255?u=0:++u):++o):++d,l=0,l+=d<<16,l+=o<<8,l+=u}else l+=1<<24;return l}function a(l){return(l[0]=s(l[0]))===0&&(l[1]=s(l[1])),l}var f=i.Encryptor=i.extend({processBlock:function(l,d){var o=this._cipher,u=o.blockSize,p=this._iv,c=this._counter;p&&(c=this._counter=p.slice(0),this._iv=void 0),a(c);var v=c.slice(0);o.encryptBlock(v,0);for(var y=0;y<u;y++)l[d+y]^=v[y]}});return i.Decryptor=f,i}(),n.mode.CTRGladman})}(modeCtrGladman$1)),modeCtrGladman$1.exports}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeOfb,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),s=i.Encryptor=i.extend({processBlock:function(a,f){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._keystream;o&&(u=this._keystream=o.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var p=0;p<d;p++)a[f+p]^=u[p]}});return i.Decryptor=s,i}(),n.mode.OFB})}(modeOfb$1)),modeOfb$1.exports}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeEcb,function(n){return n.mode.ECB=function(){var i=n.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(s,a){this._cipher.encryptBlock(s,a)}}),i.Decryptor=i.extend({processBlock:function(s,a){this._cipher.decryptBlock(s,a)}}),i}(),n.mode.ECB})}(modeEcb$1)),modeEcb$1.exports}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padAnsix923,function(n){return n.pad.AnsiX923={pad:function(i,s){var a=i.sigBytes,f=s*4,l=f-a%f,d=a+l-1;i.clamp(),i.words[d>>>2]|=l<<24-d%4*8,i.sigBytes+=l},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Ansix923})}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso10126,function(n){return n.pad.Iso10126={pad:function(i,s){var a=s*4,f=a-i.sigBytes%a;i.concat(n.lib.WordArray.random(f-1)).concat(n.lib.WordArray.create([f<<24],1))},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Iso10126})}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso97971,function(n){return n.pad.Iso97971={pad:function(i,s){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,s)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padZeropadding,function(n){return n.pad.ZeroPadding={pad:function(i,s){var a=s*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var s=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(s[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padNopadding,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(formatHex,function(n){return function(i){var s=n,a=s.lib,f=a.CipherParams,l=s.enc,d=l.Hex,o=s.format;o.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var p=d.parse(u);return f.create({ciphertext:p})}}}(),n.format.Hex})}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(aes,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,f=i.algo,l=[],d=[],o=[],u=[],p=[],c=[],v=[],y=[],m=[],R=[];(function(){for(var C=[],q=0;q<256;q++)q<128?C[q]=q<<1:C[q]=q<<1^283;for(var M=0,F=0,q=0;q<256;q++){var k=F^F<<1^F<<2^F<<3^F<<4;k=k>>>8^k&255^99,l[M]=k,d[k]=M;var $=C[M],L=C[$],G=C[L],B=C[k]*257^k*16843008;o[M]=B<<24|B>>>8,u[M]=B<<16|B>>>16,p[M]=B<<8|B>>>24,c[M]=B;var B=G*16843009^L*65537^$*257^M*16843008;v[k]=B<<24|B>>>8,y[k]=B<<16|B>>>16,m[k]=B<<8|B>>>24,R[k]=B,M?(M=$^C[C[C[G^$]]],F^=C[C[F]]):M=F=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],D=f.AES=a.extend({_doReset:function(){var C;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var q=this._keyPriorReset=this._key,M=q.words,F=q.sigBytes/4,k=this._nRounds=F+6,$=(k+1)*4,L=this._keySchedule=[],G=0;G<$;G++)G<F?L[G]=M[G]:(C=L[G-1],G%F?F>6&&G%F==4&&(C=l[C>>>24]<<24|l[C>>>16&255]<<16|l[C>>>8&255]<<8|l[C&255]):(C=C<<8|C>>>24,C=l[C>>>24]<<24|l[C>>>16&255]<<16|l[C>>>8&255]<<8|l[C&255],C^=A[G/F|0]<<24),L[G]=L[G-F]^C);for(var B=this._invKeySchedule=[],S=0;S<$;S++){var G=$-S;if(S%4)var C=L[G];else var C=L[G-4];S<4||G<=4?B[S]=C:B[S]=v[l[C>>>24]]^y[l[C>>>16&255]]^m[l[C>>>8&255]]^R[l[C&255]]}}},encryptBlock:function(C,q){this._doCryptBlock(C,q,this._keySchedule,o,u,p,c,l)},decryptBlock:function(C,q){var M=C[q+1];C[q+1]=C[q+3],C[q+3]=M,this._doCryptBlock(C,q,this._invKeySchedule,v,y,m,R,d);var M=C[q+1];C[q+1]=C[q+3],C[q+3]=M},_doCryptBlock:function(C,q,M,F,k,$,L,G){for(var B=this._nRounds,S=C[q]^M[0],_=C[q+1]^M[1],h=C[q+2]^M[2],g=C[q+3]^M[3],I=4,w=1;w<B;w++){var E=F[S>>>24]^k[_>>>16&255]^$[h>>>8&255]^L[g&255]^M[I++],N=F[_>>>24]^k[h>>>16&255]^$[g>>>8&255]^L[S&255]^M[I++],x=F[h>>>24]^k[g>>>16&255]^$[S>>>8&255]^L[_&255]^M[I++],T=F[g>>>24]^k[S>>>16&255]^$[_>>>8&255]^L[h&255]^M[I++];S=E,_=N,h=x,g=T}var E=(G[S>>>24]<<24|G[_>>>16&255]<<16|G[h>>>8&255]<<8|G[g&255])^M[I++],N=(G[_>>>24]<<24|G[h>>>16&255]<<16|G[g>>>8&255]<<8|G[S&255])^M[I++],x=(G[h>>>24]<<24|G[g>>>16&255]<<16|G[S>>>8&255]<<8|G[_&255])^M[I++],T=(G[g>>>24]<<24|G[S>>>16&255]<<16|G[_>>>8&255]<<8|G[h&255])^M[I++];C[q]=E,C[q+1]=N,C[q+2]=x,C[q+3]=T},keySize:256/32});i.AES=a._createHelper(D)}(),n.AES})}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(tripledes,function(n){return function(){var i=n,s=i.lib,a=s.WordArray,f=s.BlockCipher,l=i.algo,d=[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],u=[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}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=l.DES=f.extend({_doReset:function(){for(var A=this._key,D=A.words,C=[],q=0;q<56;q++){var M=d[q]-1;C[q]=D[M>>>5]>>>31-M%32&1}for(var F=this._subKeys=[],k=0;k<16;k++){for(var $=F[k]=[],L=u[k],q=0;q<24;q++)$[q/6|0]|=C[(o[q]-1+L)%28]<<31-q%6,$[4+(q/6|0)]|=C[28+(o[q+24]-1+L)%28]<<31-q%6;$[0]=$[0]<<1|$[0]>>>31;for(var q=1;q<7;q++)$[q]=$[q]>>>(q-1)*4+3;$[7]=$[7]<<5|$[7]>>>27}for(var G=this._invSubKeys=[],q=0;q<16;q++)G[q]=F[15-q]},encryptBlock:function(A,D){this._doCryptBlock(A,D,this._subKeys)},decryptBlock:function(A,D){this._doCryptBlock(A,D,this._invSubKeys)},_doCryptBlock:function(A,D,C){this._lBlock=A[D],this._rBlock=A[D+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var q=0;q<16;q++){for(var M=C[q],F=this._lBlock,k=this._rBlock,$=0,L=0;L<8;L++)$|=p[L][((k^M[L])&c[L])>>>0];this._lBlock=k,this._rBlock=F^$}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),A[D]=this._lBlock,A[D+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(A,D){var C=(this._lBlock>>>A^this._rBlock)&D;this._rBlock^=C,this._lBlock^=C<<A}function m(A,D){var C=(this._rBlock>>>A^this._lBlock)&D;this._lBlock^=C,this._rBlock^=C<<A}i.DES=f._createHelper(v);var R=l.TripleDES=f.extend({_doReset:function(){var A=this._key,D=A.words;if(D.length!==2&&D.length!==4&&D.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=D.slice(0,2),q=D.length<4?D.slice(0,2):D.slice(2,4),M=D.length<6?D.slice(0,2):D.slice(4,6);this._des1=v.createEncryptor(a.create(C)),this._des2=v.createEncryptor(a.create(q)),this._des3=v.createEncryptor(a.create(M))},encryptBlock:function(A,D){this._des1.encryptBlock(A,D),this._des2.decryptBlock(A,D),this._des3.encryptBlock(A,D)},decryptBlock:function(A,D){this._des3.decryptBlock(A,D),this._des2.encryptBlock(A,D),this._des1.decryptBlock(A,D)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=f._createHelper(R)}(),n.TripleDES})}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rc4,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,f=i.algo,l=f.RC4=a.extend({_doReset:function(){for(var u=this._key,p=u.words,c=u.sigBytes,v=this._S=[],y=0;y<256;y++)v[y]=y;for(var y=0,m=0;y<256;y++){var R=y%c,A=p[R>>>2]>>>24-R%4*8&255;m=(m+v[y]+A)%256;var D=v[y];v[y]=v[m],v[m]=D}this._i=this._j=0},_doProcessBlock:function(u,p){u[p]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,p=this._i,c=this._j,v=0,y=0;y<4;y++){p=(p+1)%256,c=(c+u[p])%256;var m=u[p];u[p]=u[c],u[c]=m,v|=u[(u[p]+u[c])%256]<<24-y*8}return this._i=p,this._j=c,v}i.RC4=a._createHelper(l);var o=f.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});i.RC4Drop=a._createHelper(o)}(),n.RC4})}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbit,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,f=i.algo,l=[],d=[],o=[],u=f.Rabbit=a.extend({_doReset:function(){for(var c=this._key.words,v=this.cfg.iv,y=0;y<4;y++)c[y]=(c[y]<<8|c[y]>>>24)&16711935|(c[y]<<24|c[y]>>>8)&4278255360;var m=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],R=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)R[y]^=m[y+4&7];if(v){var A=v.words,D=A[0],C=A[1],q=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=q>>>16|M&4294901760,k=M<<16|q&65535;R[0]^=q,R[1]^=F,R[2]^=M,R[3]^=k,R[4]^=q,R[5]^=F,R[6]^=M,R[7]^=k;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(c,v){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,c[v+m]^=l[m]},blockSize:128/32,ivSize:64/32});function p(){for(var c=this._X,v=this._C,y=0;y<8;y++)d[y]=v[y];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<d[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<d[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<d[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<d[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<d[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<d[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<d[6]>>>0?1:0)|0,this._b=v[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var m=c[y]+v[y],R=m&65535,A=m>>>16,D=((R*R>>>17)+R*A>>>15)+A*A,C=((m&4294901760)*m|0)+((m&65535)*m|0);o[y]=D^C}c[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,c[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,c[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,c[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,c[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,c[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,c[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,c[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}i.Rabbit=a._createHelper(u)}(),n.Rabbit})}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbitLegacy,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,f=i.algo,l=[],d=[],o=[],u=f.RabbitLegacy=a.extend({_doReset:function(){var c=this._key.words,v=this.cfg.iv,y=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],m=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var R=0;R<4;R++)p.call(this);for(var R=0;R<8;R++)m[R]^=y[R+4&7];if(v){var A=v.words,D=A[0],C=A[1],q=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=q>>>16|M&4294901760,k=M<<16|q&65535;m[0]^=q,m[1]^=F,m[2]^=M,m[3]^=k,m[4]^=q,m[5]^=F,m[6]^=M,m[7]^=k;for(var R=0;R<4;R++)p.call(this)}},_doProcessBlock:function(c,v){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,c[v+m]^=l[m]},blockSize:128/32,ivSize:64/32});function p(){for(var c=this._X,v=this._C,y=0;y<8;y++)d[y]=v[y];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<d[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<d[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<d[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<d[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<d[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<d[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<d[6]>>>0?1:0)|0,this._b=v[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var m=c[y]+v[y],R=m&65535,A=m>>>16,D=((R*R>>>17)+R*A>>>15)+A*A,C=((m&4294901760)*m|0)+((m&65535)*m|0);o[y]=D^C}c[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,c[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,c[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,c[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,c[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,c[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,c[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,c[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}i.RabbitLegacy=a._createHelper(u)}(),n.RabbitLegacy})}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(blowfish,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,f=i.algo;const l=16,d=[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 u={pbox:[],sbox:[]};function p(R,A){let D=A>>24&255,C=A>>16&255,q=A>>8&255,M=A&255,F=R.sbox[0][D]+R.sbox[1][C];return F=F^R.sbox[2][q],F=F+R.sbox[3][M],F}function c(R,A,D){let C=A,q=D,M;for(let F=0;F<l;++F)C=C^R.pbox[F],q=p(R,C)^q,M=C,C=q,q=M;return M=C,C=q,q=M,q=q^R.pbox[l],C=C^R.pbox[l+1],{left:C,right:q}}function v(R,A,D){let C=A,q=D,M;for(let F=l+1;F>1;--F)C=C^R.pbox[F],q=p(R,C)^q,M=C,C=q,q=M;return M=C,C=q,q=M,q=q^R.pbox[1],C=C^R.pbox[0],{left:C,right:q}}function y(R,A,D){for(let k=0;k<4;k++){R.sbox[k]=[];for(let $=0;$<256;$++)R.sbox[k][$]=o[k][$]}let C=0;for(let k=0;k<l+2;k++)R.pbox[k]=d[k]^A[C],C++,C>=D&&(C=0);let q=0,M=0,F=0;for(let k=0;k<l+2;k+=2)F=c(R,q,M),q=F.left,M=F.right,R.pbox[k]=q,R.pbox[k+1]=M;for(let k=0;k<4;k++)for(let $=0;$<256;$+=2)F=c(R,q,M),q=F.left,M=F.right,R.sbox[k][$]=q,R.sbox[k][$+1]=M;return!0}var m=f.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var R=this._keyPriorReset=this._key,A=R.words,D=R.sigBytes/4;y(u,A,D)}},encryptBlock:function(R,A){var D=c(u,R[A],R[A+1]);R[A]=D.left,R[A+1]=D.right},decryptBlock:function(R,A){var D=v(u,R[A],R[A+1]);R[A]=D.left,R[A+1]=D.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=a._createHelper(m)}(),n.Blowfish})}(blowfish$1)),blowfish$1.exports}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())})(cryptoJs,function(n){return n})}(cryptoJs$1)),cryptoJs$1.exports}requireCryptoJs();requireBrowser$b();function tryAcquireLock(r,t,n){return openDatabaseWithTransactionScope(["mutex"],"readwrite",async i=>{const s=await i.store.mutex.get(r),a=()=>i.store.mutex.put({resource:r,owner:t,expiresAt:now()+n});return s?s.owner===t||s.expiresAt<now()?(await a(),!0):!1:(await a(),!0)})}function releaseLock(r){return openDatabaseScope(t=>t.delete("mutex",r))}var GraphQLSchemaAttachmentKind=(r=>(r.SDL_SCHEMA="sdl-schema",r.STATISTICS="statistics",r.ITEMS="items",r))(GraphQLSchemaAttachmentKind||{});function isGraphQLSchemaSdlAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.SDL_SCHEMA}function setIndexedGraphQLSchemaEntity(r,t,n,i){return openDatabaseWithTransactionScope(["schema","schema-attachment"],"readwrite",async s=>{const a=await s.store.schema.get(r);!a||a.hash!==t||a.indexed||await Promise.all([s.store.schema.put({...a,indexed:!0}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.ITEMS,value:n}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.STATISTICS,value:i}),s.done])})}function getGraphQLSchemaEntity(r){const t=harmonizeSchemaUrl(r);return getEntityByKey("schema",t)}async function getGraphQLSdlSchema(r){const t=harmonizeSchemaUrl(r),n=await getEntityByKey("schema-attachment",[t,GraphQLSchemaAttachmentKind.SDL_SCHEMA]);return isGraphQLSchemaSdlAttachmentEntity(n)?n.value:void 0}RelativeDateTimeRange.last30Minutes;RelativeDateTimeRange.last30Minutes,RelativeDateTimeRange.today,RelativeDateTimeRange.today,RelativeDateTimeRange.today;function isAsyncIterable$1(r){return r!==null&&typeof r=="object"&&isFunction(Object(r)[Symbol.asyncIterator])}function isPlainObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function isFunction(r){return typeof r=="function"}function requireLock(r,t,n){const i=FIVE_SECONDS,s=createId("mutex");return acquireLock(r,s,i).then(async()=>{const a=new TimeoutAbortController(i);try{const[f]=await Promise.all([t(a.signal.toAbortSignal()).then(l=>(a.cancel(),l)),a.signal.toPromise()]);return f}catch(f){throw isTimeoutAbortError(f)?new LockExpiredError(r):f}finally{a.cancel(),await releaseLock(r)}})}async function acquireLock(r,t,n){for(;!await tryAcquireLock(r,t,n);)await delay(FIFTY_MILLISECONDS)}class LockExpiredError extends Error{constructor(t){super(`Lock for resource "${t}" has been expired`)}}async function tryGetUserSessionAndRefresh(r){const t=await getCurrentTenant();if(!t)return null;let n=await getUserSession(t);if(!n)return null;if(isSessionExpired(n)&&(n=await refreshSession(n),isSessionExpired(n)))throw new UserSessionExpiredError;return n}async function refreshSession(r,t){return requireLock("refresh-session",n);async function n(i){const s=i;let a=await getUserSession(r)||r;if(!isSessionExpired(a)&&a.requiresSignIn)return a;const f=new Headers,l=new URLSearchParams;f.append(HEADER_CONTENT_TYPE,"application/x-www-form-urlencoded"),l.append("client_id","3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5"),l.append("grant_type","refresh_token"),l.append("refresh_token",a.refreshToken);try{const d=await fetch(`${a.issuer}/connect/token`,{method:"POST",headers:f,body:l,signal:s});if(d.ok){const o=await d.json();if(isToken(o))return replaceUserSession({...a,requiresSignIn:!1,idToken:o.id_token,accessToken:o.access_token,refreshToken:o.refresh_token,expiresAt:now()+o.expires_in*ONE_SECOND})}else if(d.status===400&&(a=await getUserSession(r)||r,isSessionExpired(a)))return replaceUserSession({...a,requiresSignIn:!0,lastTriedToRefresh:now()});return a}catch(d){console.error(d)}return a=await getUserSession(r)||r,isSessionExpired(a)?replaceUserSession({...a,lastTriedToRefresh:now()}):a}}function isToken(r){return isPlainObject(r)&&"access_token"in r}class UserSessionExpiredError extends Error{constructor(){super("User session has been expired")}}async function getHttpOptions(r){const t=await tryGetUserSessionAndRefresh(),n=isURL(r)?r:new URL(r,t?.apiUrl??"https://api.chillicream.com").href,i=getHeaders(t?.accessToken);return{uri:n,headers:i}}function getHeaders(r){const t=new Headers;if(t.set("CCC-Agent",APP_AGENT),t.set("GraphQL-Agent",APP_AGENT),t.set("GraphQL-Client-Id",APP_GRAPHQL_CLIENT_ID),t.set("GraphQL-Client-Version",APP_VERSION),t.set("GraphQL-Defer-RFC","v2"),r)t.set("Authorization",`Bearer ${r}`);else throw new UserSessionExpiredError;return t}var RelayConcreteNode_1,hasRequiredRelayConcreteNode;function requireRelayConcreteNode(){if(hasRequiredRelayConcreteNode)return RelayConcreteNode_1;hasRequiredRelayConcreteNode=1;var r={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"};return RelayConcreteNode_1=r,RelayConcreteNode_1}var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var r=function(t,n,i,s,a,f,l,d){if(!t){var o;if(n===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,s,a,f,l,d],p=0;o=new Error(n.replace(/%s/g,function(){return u[p++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}};return browser=r,browser}var emptyFunction_1,hasRequiredEmptyFunction;function requireEmptyFunction(){if(hasRequiredEmptyFunction)return emptyFunction_1;hasRequiredEmptyFunction=1;function r(n){return function(){return n}}var t=function(){};return t.thatReturns=r,t.thatReturnsFalse=r(!1),t.thatReturnsTrue=r(!0),t.thatReturnsNull=r(null),t.thatReturnsThis=function(){return this},t.thatReturnsArgument=function(n){return n},emptyFunction_1=t,emptyFunction_1}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var r=requireEmptyFunction(),t=r;return warning_1=t,warning_1}var GraphQLTag,hasRequiredGraphQLTag;function requireGraphQLTag(){if(hasRequiredGraphQLTag)return GraphQLTag;hasRequiredGraphQLTag=1;var r=requireRelayConcreteNode(),t=requireBrowser();requireWarning();function n(y){t(!1)}function i(y){var m=y;return typeof m=="function"?m=m():m.default&&(m=m.default),m}function s(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.FRAGMENT}function a(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.REQUEST}function f(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.UPDATABLE_QUERY}function l(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.INLINE_DATA_FRAGMENT}function d(y){var m=i(y);return s(m)||t(!1),m}function o(y){var m,R=d(y),A=(m=R.metadata)===null||m===void 0?void 0:m.refetch,D=A?.connection;return A===null||typeof A!="object"||D===null||typeof D!="object"?null:R}function u(y){var m,R=d(y),A=(m=R.metadata)===null||m===void 0?void 0:m.refetch;return A===null||typeof A!="object"?null:R}function p(y){var m=i(y);return a(m)||t(!1),m}function c(y){var m=i(y);return f(m)||t(!1),m}function v(y){var m=i(y);return l(m)||t(!1),m}return GraphQLTag={getFragment:d,getInlineDataFragment:v,getNode:i,getPaginationFragment:o,getRefetchableFragment:u,getRequest:p,getUpdatableQuery:c,graphql:n,isFragment:s,isInlineDataFragment:l,isRequest:a,isUpdatableQuery:f},GraphQLTag}var interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(r){function t(n){return n&&n.__esModule?n:{default:n}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(interopRequireDefault)),interopRequireDefault.exports}var objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(r){function t(n){"@babel/helpers - typeof";return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(_typeof)),_typeof.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(r){var t=require_typeof().default;function n(i,s){if(t(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var f=a.call(i,s||"default");if(t(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(r){var t=require_typeof().default,n=requireToPrimitive();function i(s){var a=n(s,"string");return t(a)=="symbol"?a:a+""}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(r){var t=requireToPropertyKey();function n(i,s,a){return(s=t(s))in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(r){var t=requireDefineProperty();function n(s,a){var f=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);a&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable})),f.push.apply(f,l)}return f}function i(s){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?n(Object(f),!0).forEach(function(l){t(s,l,f[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(f,l))})}return s}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(objectSpread2)),objectSpread2.exports}var createForOfIteratorHelper={exports:{}},unsupportedIterableToArray={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(r){function t(n,i){(i==null||i>n.length)&&(i=n.length);for(var s=0,a=Array(i);s<i;s++)a[s]=n[s];return a}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(r){var t=requireArrayLikeToArray();function n(i,s){if(i){if(typeof i=="string")return t(i,s);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(i,s):void 0}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var hasRequiredCreateForOfIteratorHelper;function requireCreateForOfIteratorHelper(){return hasRequiredCreateForOfIteratorHelper||(hasRequiredCreateForOfIteratorHelper=1,function(r){var t=requireUnsupportedIterableToArray();function n(i,s){var a=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!a){if(Array.isArray(i)||(a=t(i))||s&&i&&typeof i.length=="number"){a&&(i=a);var f=0,l=function(){};return{s:l,n:function(){return f>=i.length?{done:!0}:{done:!1,value:i[f++]}},e:function(c){throw c},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
55
+ */return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function s(l){if((l>>24&255)===255){var d=l>>16&255,o=l>>8&255,u=l&255;d===255?(d=0,o===255?(o=0,u===255?u=0:++u):++o):++d,l=0,l+=d<<16,l+=o<<8,l+=u}else l+=1<<24;return l}function a(l){return(l[0]=s(l[0]))===0&&(l[1]=s(l[1])),l}var f=i.Encryptor=i.extend({processBlock:function(l,d){var o=this._cipher,u=o.blockSize,p=this._iv,c=this._counter;p&&(c=this._counter=p.slice(0),this._iv=void 0),a(c);var v=c.slice(0);o.encryptBlock(v,0);for(var y=0;y<u;y++)l[d+y]^=v[y]}});return i.Decryptor=f,i}(),n.mode.CTRGladman})}(modeCtrGladman$1)),modeCtrGladman$1.exports}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeOfb,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),s=i.Encryptor=i.extend({processBlock:function(a,f){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._keystream;o&&(u=this._keystream=o.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var p=0;p<d;p++)a[f+p]^=u[p]}});return i.Decryptor=s,i}(),n.mode.OFB})}(modeOfb$1)),modeOfb$1.exports}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeEcb,function(n){return n.mode.ECB=function(){var i=n.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(s,a){this._cipher.encryptBlock(s,a)}}),i.Decryptor=i.extend({processBlock:function(s,a){this._cipher.decryptBlock(s,a)}}),i}(),n.mode.ECB})}(modeEcb$1)),modeEcb$1.exports}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padAnsix923,function(n){return n.pad.AnsiX923={pad:function(i,s){var a=i.sigBytes,f=s*4,l=f-a%f,d=a+l-1;i.clamp(),i.words[d>>>2]|=l<<24-d%4*8,i.sigBytes+=l},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Ansix923})}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso10126,function(n){return n.pad.Iso10126={pad:function(i,s){var a=s*4,f=a-i.sigBytes%a;i.concat(n.lib.WordArray.random(f-1)).concat(n.lib.WordArray.create([f<<24],1))},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Iso10126})}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso97971,function(n){return n.pad.Iso97971={pad:function(i,s){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,s)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padZeropadding,function(n){return n.pad.ZeroPadding={pad:function(i,s){var a=s*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var s=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(s[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padNopadding,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(formatHex,function(n){return function(i){var s=n,a=s.lib,f=a.CipherParams,l=s.enc,d=l.Hex,o=s.format;o.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var p=d.parse(u);return f.create({ciphertext:p})}}}(),n.format.Hex})}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(aes,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,f=i.algo,l=[],d=[],o=[],u=[],p=[],c=[],v=[],y=[],m=[],R=[];(function(){for(var C=[],q=0;q<256;q++)q<128?C[q]=q<<1:C[q]=q<<1^283;for(var M=0,F=0,q=0;q<256;q++){var k=F^F<<1^F<<2^F<<3^F<<4;k=k>>>8^k&255^99,l[M]=k,d[k]=M;var $=C[M],L=C[$],G=C[L],B=C[k]*257^k*16843008;o[M]=B<<24|B>>>8,u[M]=B<<16|B>>>16,p[M]=B<<8|B>>>24,c[M]=B;var B=G*16843009^L*65537^$*257^M*16843008;v[k]=B<<24|B>>>8,y[k]=B<<16|B>>>16,m[k]=B<<8|B>>>24,R[k]=B,M?(M=$^C[C[C[G^$]]],F^=C[C[F]]):M=F=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],D=f.AES=a.extend({_doReset:function(){var C;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var q=this._keyPriorReset=this._key,M=q.words,F=q.sigBytes/4,k=this._nRounds=F+6,$=(k+1)*4,L=this._keySchedule=[],G=0;G<$;G++)G<F?L[G]=M[G]:(C=L[G-1],G%F?F>6&&G%F==4&&(C=l[C>>>24]<<24|l[C>>>16&255]<<16|l[C>>>8&255]<<8|l[C&255]):(C=C<<8|C>>>24,C=l[C>>>24]<<24|l[C>>>16&255]<<16|l[C>>>8&255]<<8|l[C&255],C^=A[G/F|0]<<24),L[G]=L[G-F]^C);for(var B=this._invKeySchedule=[],S=0;S<$;S++){var G=$-S;if(S%4)var C=L[G];else var C=L[G-4];S<4||G<=4?B[S]=C:B[S]=v[l[C>>>24]]^y[l[C>>>16&255]]^m[l[C>>>8&255]]^R[l[C&255]]}}},encryptBlock:function(C,q){this._doCryptBlock(C,q,this._keySchedule,o,u,p,c,l)},decryptBlock:function(C,q){var M=C[q+1];C[q+1]=C[q+3],C[q+3]=M,this._doCryptBlock(C,q,this._invKeySchedule,v,y,m,R,d);var M=C[q+1];C[q+1]=C[q+3],C[q+3]=M},_doCryptBlock:function(C,q,M,F,k,$,L,G){for(var B=this._nRounds,S=C[q]^M[0],_=C[q+1]^M[1],h=C[q+2]^M[2],g=C[q+3]^M[3],I=4,w=1;w<B;w++){var E=F[S>>>24]^k[_>>>16&255]^$[h>>>8&255]^L[g&255]^M[I++],N=F[_>>>24]^k[h>>>16&255]^$[g>>>8&255]^L[S&255]^M[I++],x=F[h>>>24]^k[g>>>16&255]^$[S>>>8&255]^L[_&255]^M[I++],T=F[g>>>24]^k[S>>>16&255]^$[_>>>8&255]^L[h&255]^M[I++];S=E,_=N,h=x,g=T}var E=(G[S>>>24]<<24|G[_>>>16&255]<<16|G[h>>>8&255]<<8|G[g&255])^M[I++],N=(G[_>>>24]<<24|G[h>>>16&255]<<16|G[g>>>8&255]<<8|G[S&255])^M[I++],x=(G[h>>>24]<<24|G[g>>>16&255]<<16|G[S>>>8&255]<<8|G[_&255])^M[I++],T=(G[g>>>24]<<24|G[S>>>16&255]<<16|G[_>>>8&255]<<8|G[h&255])^M[I++];C[q]=E,C[q+1]=N,C[q+2]=x,C[q+3]=T},keySize:256/32});i.AES=a._createHelper(D)}(),n.AES})}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(tripledes,function(n){return function(){var i=n,s=i.lib,a=s.WordArray,f=s.BlockCipher,l=i.algo,d=[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],u=[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}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=l.DES=f.extend({_doReset:function(){for(var A=this._key,D=A.words,C=[],q=0;q<56;q++){var M=d[q]-1;C[q]=D[M>>>5]>>>31-M%32&1}for(var F=this._subKeys=[],k=0;k<16;k++){for(var $=F[k]=[],L=u[k],q=0;q<24;q++)$[q/6|0]|=C[(o[q]-1+L)%28]<<31-q%6,$[4+(q/6|0)]|=C[28+(o[q+24]-1+L)%28]<<31-q%6;$[0]=$[0]<<1|$[0]>>>31;for(var q=1;q<7;q++)$[q]=$[q]>>>(q-1)*4+3;$[7]=$[7]<<5|$[7]>>>27}for(var G=this._invSubKeys=[],q=0;q<16;q++)G[q]=F[15-q]},encryptBlock:function(A,D){this._doCryptBlock(A,D,this._subKeys)},decryptBlock:function(A,D){this._doCryptBlock(A,D,this._invSubKeys)},_doCryptBlock:function(A,D,C){this._lBlock=A[D],this._rBlock=A[D+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var q=0;q<16;q++){for(var M=C[q],F=this._lBlock,k=this._rBlock,$=0,L=0;L<8;L++)$|=p[L][((k^M[L])&c[L])>>>0];this._lBlock=k,this._rBlock=F^$}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),A[D]=this._lBlock,A[D+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(A,D){var C=(this._lBlock>>>A^this._rBlock)&D;this._rBlock^=C,this._lBlock^=C<<A}function m(A,D){var C=(this._rBlock>>>A^this._lBlock)&D;this._lBlock^=C,this._rBlock^=C<<A}i.DES=f._createHelper(v);var R=l.TripleDES=f.extend({_doReset:function(){var A=this._key,D=A.words;if(D.length!==2&&D.length!==4&&D.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=D.slice(0,2),q=D.length<4?D.slice(0,2):D.slice(2,4),M=D.length<6?D.slice(0,2):D.slice(4,6);this._des1=v.createEncryptor(a.create(C)),this._des2=v.createEncryptor(a.create(q)),this._des3=v.createEncryptor(a.create(M))},encryptBlock:function(A,D){this._des1.encryptBlock(A,D),this._des2.decryptBlock(A,D),this._des3.encryptBlock(A,D)},decryptBlock:function(A,D){this._des3.decryptBlock(A,D),this._des2.encryptBlock(A,D),this._des1.decryptBlock(A,D)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=f._createHelper(R)}(),n.TripleDES})}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rc4,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,f=i.algo,l=f.RC4=a.extend({_doReset:function(){for(var u=this._key,p=u.words,c=u.sigBytes,v=this._S=[],y=0;y<256;y++)v[y]=y;for(var y=0,m=0;y<256;y++){var R=y%c,A=p[R>>>2]>>>24-R%4*8&255;m=(m+v[y]+A)%256;var D=v[y];v[y]=v[m],v[m]=D}this._i=this._j=0},_doProcessBlock:function(u,p){u[p]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,p=this._i,c=this._j,v=0,y=0;y<4;y++){p=(p+1)%256,c=(c+u[p])%256;var m=u[p];u[p]=u[c],u[c]=m,v|=u[(u[p]+u[c])%256]<<24-y*8}return this._i=p,this._j=c,v}i.RC4=a._createHelper(l);var o=f.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});i.RC4Drop=a._createHelper(o)}(),n.RC4})}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbit,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,f=i.algo,l=[],d=[],o=[],u=f.Rabbit=a.extend({_doReset:function(){for(var c=this._key.words,v=this.cfg.iv,y=0;y<4;y++)c[y]=(c[y]<<8|c[y]>>>24)&16711935|(c[y]<<24|c[y]>>>8)&4278255360;var m=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],R=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)R[y]^=m[y+4&7];if(v){var A=v.words,D=A[0],C=A[1],q=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=q>>>16|M&4294901760,k=M<<16|q&65535;R[0]^=q,R[1]^=F,R[2]^=M,R[3]^=k,R[4]^=q,R[5]^=F,R[6]^=M,R[7]^=k;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(c,v){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,c[v+m]^=l[m]},blockSize:128/32,ivSize:64/32});function p(){for(var c=this._X,v=this._C,y=0;y<8;y++)d[y]=v[y];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<d[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<d[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<d[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<d[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<d[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<d[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<d[6]>>>0?1:0)|0,this._b=v[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var m=c[y]+v[y],R=m&65535,A=m>>>16,D=((R*R>>>17)+R*A>>>15)+A*A,C=((m&4294901760)*m|0)+((m&65535)*m|0);o[y]=D^C}c[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,c[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,c[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,c[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,c[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,c[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,c[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,c[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}i.Rabbit=a._createHelper(u)}(),n.Rabbit})}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbitLegacy,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,f=i.algo,l=[],d=[],o=[],u=f.RabbitLegacy=a.extend({_doReset:function(){var c=this._key.words,v=this.cfg.iv,y=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],m=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var R=0;R<4;R++)p.call(this);for(var R=0;R<8;R++)m[R]^=y[R+4&7];if(v){var A=v.words,D=A[0],C=A[1],q=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=q>>>16|M&4294901760,k=M<<16|q&65535;m[0]^=q,m[1]^=F,m[2]^=M,m[3]^=k,m[4]^=q,m[5]^=F,m[6]^=M,m[7]^=k;for(var R=0;R<4;R++)p.call(this)}},_doProcessBlock:function(c,v){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,c[v+m]^=l[m]},blockSize:128/32,ivSize:64/32});function p(){for(var c=this._X,v=this._C,y=0;y<8;y++)d[y]=v[y];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<d[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<d[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<d[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<d[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<d[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<d[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<d[6]>>>0?1:0)|0,this._b=v[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var m=c[y]+v[y],R=m&65535,A=m>>>16,D=((R*R>>>17)+R*A>>>15)+A*A,C=((m&4294901760)*m|0)+((m&65535)*m|0);o[y]=D^C}c[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,c[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,c[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,c[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,c[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,c[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,c[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,c[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}i.RabbitLegacy=a._createHelper(u)}(),n.RabbitLegacy})}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(blowfish,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,f=i.algo;const l=16,d=[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 u={pbox:[],sbox:[]};function p(R,A){let D=A>>24&255,C=A>>16&255,q=A>>8&255,M=A&255,F=R.sbox[0][D]+R.sbox[1][C];return F=F^R.sbox[2][q],F=F+R.sbox[3][M],F}function c(R,A,D){let C=A,q=D,M;for(let F=0;F<l;++F)C=C^R.pbox[F],q=p(R,C)^q,M=C,C=q,q=M;return M=C,C=q,q=M,q=q^R.pbox[l],C=C^R.pbox[l+1],{left:C,right:q}}function v(R,A,D){let C=A,q=D,M;for(let F=l+1;F>1;--F)C=C^R.pbox[F],q=p(R,C)^q,M=C,C=q,q=M;return M=C,C=q,q=M,q=q^R.pbox[1],C=C^R.pbox[0],{left:C,right:q}}function y(R,A,D){for(let k=0;k<4;k++){R.sbox[k]=[];for(let $=0;$<256;$++)R.sbox[k][$]=o[k][$]}let C=0;for(let k=0;k<l+2;k++)R.pbox[k]=d[k]^A[C],C++,C>=D&&(C=0);let q=0,M=0,F=0;for(let k=0;k<l+2;k+=2)F=c(R,q,M),q=F.left,M=F.right,R.pbox[k]=q,R.pbox[k+1]=M;for(let k=0;k<4;k++)for(let $=0;$<256;$+=2)F=c(R,q,M),q=F.left,M=F.right,R.sbox[k][$]=q,R.sbox[k][$+1]=M;return!0}var m=f.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var R=this._keyPriorReset=this._key,A=R.words,D=R.sigBytes/4;y(u,A,D)}},encryptBlock:function(R,A){var D=c(u,R[A],R[A+1]);R[A]=D.left,R[A+1]=D.right},decryptBlock:function(R,A){var D=v(u,R[A],R[A+1]);R[A]=D.left,R[A+1]=D.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=a._createHelper(m)}(),n.Blowfish})}(blowfish$1)),blowfish$1.exports}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())})(cryptoJs,function(n){return n})}(cryptoJs$1)),cryptoJs$1.exports}requireCryptoJs();requireBrowser$b();function tryAcquireLock(r,t,n){return openDatabaseWithTransactionScope(["mutex"],"readwrite",async i=>{const s=await i.store.mutex.get(r),a=()=>i.store.mutex.put({resource:r,owner:t,expiresAt:now()+n});return s?s.owner===t||s.expiresAt<now()?(await a(),!0):!1:(await a(),!0)})}function releaseLock(r){return openDatabaseScope(t=>t.delete("mutex",r))}var GraphQLSchemaAttachmentKind=(r=>(r.SDL_SCHEMA="sdl-schema",r.STATISTICS="statistics",r.ITEMS="items",r))(GraphQLSchemaAttachmentKind||{});function isGraphQLSchemaSdlAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.SDL_SCHEMA}function setIndexedGraphQLSchemaEntity(r,t,n,i){return openDatabaseWithTransactionScope(["schema","schema-attachment"],"readwrite",async s=>{const a=await s.store.schema.get(r);!a||a.hash!==t||a.indexed||await Promise.all([s.store.schema.put({...a,indexed:!0}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.ITEMS,value:n}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.STATISTICS,value:i}),s.done])})}function getGraphQLSchemaEntity(r){const t=harmonizeSchemaUrl(r);return getEntityByKey("schema",t)}async function getGraphQLSdlSchema(r){const t=harmonizeSchemaUrl(r),n=await getEntityByKey("schema-attachment",[t,GraphQLSchemaAttachmentKind.SDL_SCHEMA]);return isGraphQLSchemaSdlAttachmentEntity(n)?n.value:void 0}RelativeDateTimeRange.last30Minutes;RelativeDateTimeRange.last30Minutes,RelativeDateTimeRange.today,RelativeDateTimeRange.today,RelativeDateTimeRange.today;function isAsyncIterable$1(r){return r!==null&&typeof r=="object"&&isFunction(Object(r)[Symbol.asyncIterator])}function isPlainObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function isFunction(r){return typeof r=="function"}function requireLock(r,t,n){const i=FIVE_SECONDS,s=createId("mutex");return acquireLock(r,s,i).then(async()=>{const a=new TimeoutAbortController(i);try{const[f]=await Promise.all([t(a.signal.toAbortSignal()).then(l=>(a.cancel(),l)),a.signal.toPromise()]);return f}catch(f){throw isTimeoutAbortError(f)?new LockExpiredError(r):f}finally{a.cancel(),await releaseLock(r)}})}async function acquireLock(r,t,n){for(;!await tryAcquireLock(r,t,n);)await delay(FIFTY_MILLISECONDS)}class LockExpiredError extends Error{constructor(t){super(`Lock for resource "${t}" has been expired`)}}async function tryGetUserSessionAndRefresh(r){const t=await getCurrentTenant();if(!t)return null;let n=await getUserSession(t);if(!n)return null;if(isSessionExpired(n)&&(n=await refreshSession(n),isSessionExpired(n)))throw new UserSessionExpiredError;return n}async function refreshSession(r,t){return requireLock("refresh-session",n);async function n(i){const s=i;let a=await getUserSession(r)||r;if(!isSessionExpired(a)&&a.requiresSignIn)return a;const f=new Headers,l=new URLSearchParams;f.append(HEADER_CONTENT_TYPE,"application/x-www-form-urlencoded"),l.append("client_id","d8b1d8dd-c26d-4b54-8cde-5f3c8eb054ba"),l.append("grant_type","refresh_token"),l.append("refresh_token",a.refreshToken);try{const d=await fetch(`${a.issuer}/connect/token`,{method:"POST",headers:f,body:l,signal:s});if(d.ok){const o=await d.json();if(isToken(o))return replaceUserSession({...a,requiresSignIn:!1,idToken:o.id_token,accessToken:o.access_token,refreshToken:o.refresh_token,expiresAt:now()+o.expires_in*ONE_SECOND})}else if(d.status===400&&(a=await getUserSession(r)||r,isSessionExpired(a)))return replaceUserSession({...a,requiresSignIn:!0,lastTriedToRefresh:now()});return a}catch(d){console.error(d)}return a=await getUserSession(r)||r,isSessionExpired(a)?replaceUserSession({...a,lastTriedToRefresh:now()}):a}}function isToken(r){return isPlainObject(r)&&"access_token"in r}class UserSessionExpiredError extends Error{constructor(){super("User session has been expired")}}async function getHttpOptions(r){const t=await tryGetUserSessionAndRefresh(),n=isURL(r)?r:new URL(r,t?.apiUrl??"https://api.chillicream.com").href,i=getHeaders(t?.accessToken);return{uri:n,headers:i}}function getHeaders(r){const t=new Headers;if(t.set("CCC-Agent",APP_AGENT),t.set("GraphQL-Agent",APP_AGENT),t.set("GraphQL-Client-Id",APP_GRAPHQL_CLIENT_ID),t.set("GraphQL-Client-Version",APP_VERSION),t.set("GraphQL-Defer-RFC","v2"),r)t.set("Authorization",`Bearer ${r}`);else throw new UserSessionExpiredError;return t}var RelayConcreteNode_1,hasRequiredRelayConcreteNode;function requireRelayConcreteNode(){if(hasRequiredRelayConcreteNode)return RelayConcreteNode_1;hasRequiredRelayConcreteNode=1;var r={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"};return RelayConcreteNode_1=r,RelayConcreteNode_1}var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var r=function(t,n,i,s,a,f,l,d){if(!t){var o;if(n===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,s,a,f,l,d],p=0;o=new Error(n.replace(/%s/g,function(){return u[p++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}};return browser=r,browser}var emptyFunction_1,hasRequiredEmptyFunction;function requireEmptyFunction(){if(hasRequiredEmptyFunction)return emptyFunction_1;hasRequiredEmptyFunction=1;function r(n){return function(){return n}}var t=function(){};return t.thatReturns=r,t.thatReturnsFalse=r(!1),t.thatReturnsTrue=r(!0),t.thatReturnsNull=r(null),t.thatReturnsThis=function(){return this},t.thatReturnsArgument=function(n){return n},emptyFunction_1=t,emptyFunction_1}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var r=requireEmptyFunction(),t=r;return warning_1=t,warning_1}var GraphQLTag,hasRequiredGraphQLTag;function requireGraphQLTag(){if(hasRequiredGraphQLTag)return GraphQLTag;hasRequiredGraphQLTag=1;var r=requireRelayConcreteNode(),t=requireBrowser();requireWarning();function n(y){t(!1)}function i(y){var m=y;return typeof m=="function"?m=m():m.default&&(m=m.default),m}function s(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.FRAGMENT}function a(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.REQUEST}function f(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.UPDATABLE_QUERY}function l(y){var m=i(y);return typeof m=="object"&&m!==null&&m.kind===r.INLINE_DATA_FRAGMENT}function d(y){var m=i(y);return s(m)||t(!1),m}function o(y){var m,R=d(y),A=(m=R.metadata)===null||m===void 0?void 0:m.refetch,D=A?.connection;return A===null||typeof A!="object"||D===null||typeof D!="object"?null:R}function u(y){var m,R=d(y),A=(m=R.metadata)===null||m===void 0?void 0:m.refetch;return A===null||typeof A!="object"?null:R}function p(y){var m=i(y);return a(m)||t(!1),m}function c(y){var m=i(y);return f(m)||t(!1),m}function v(y){var m=i(y);return l(m)||t(!1),m}return GraphQLTag={getFragment:d,getInlineDataFragment:v,getNode:i,getPaginationFragment:o,getRefetchableFragment:u,getRequest:p,getUpdatableQuery:c,graphql:n,isFragment:s,isInlineDataFragment:l,isRequest:a,isUpdatableQuery:f},GraphQLTag}var interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(r){function t(n){return n&&n.__esModule?n:{default:n}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(interopRequireDefault)),interopRequireDefault.exports}var objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(r){function t(n){"@babel/helpers - typeof";return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(_typeof)),_typeof.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(r){var t=require_typeof().default;function n(i,s){if(t(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var f=a.call(i,s||"default");if(t(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(r){var t=require_typeof().default,n=requireToPrimitive();function i(s){var a=n(s,"string");return t(a)=="symbol"?a:a+""}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(r){var t=requireToPropertyKey();function n(i,s,a){return(s=t(s))in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(r){var t=requireDefineProperty();function n(s,a){var f=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);a&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable})),f.push.apply(f,l)}return f}function i(s){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?n(Object(f),!0).forEach(function(l){t(s,l,f[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(f,l))})}return s}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(objectSpread2)),objectSpread2.exports}var createForOfIteratorHelper={exports:{}},unsupportedIterableToArray={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(r){function t(n,i){(i==null||i>n.length)&&(i=n.length);for(var s=0,a=Array(i);s<i;s++)a[s]=n[s];return a}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(r){var t=requireArrayLikeToArray();function n(i,s){if(i){if(typeof i=="string")return t(i,s);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(i,s):void 0}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var hasRequiredCreateForOfIteratorHelper;function requireCreateForOfIteratorHelper(){return hasRequiredCreateForOfIteratorHelper||(hasRequiredCreateForOfIteratorHelper=1,function(r){var t=requireUnsupportedIterableToArray();function n(i,s){var a=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!a){if(Array.isArray(i)||(a=t(i))||s&&i&&typeof i.length=="number"){a&&(i=a);var f=0,l=function(){};return{s:l,n:function(){return f>=i.length?{done:!0}:{done:!1,value:i[f++]}},e:function(c){throw c},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
56
56
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,o=!0,u=!1;return{s:function(){a=a.call(i)},n:function(){var c=a.next();return o=c.done,c},e:function(c){u=!0,d=c},f:function(){try{o||a.return==null||a.return()}finally{if(u)throw d}}}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(createForOfIteratorHelper)),createForOfIteratorHelper.exports}var handlePotentialSnapshotErrors_1,hasRequiredHandlePotentialSnapshotErrors;function requireHandlePotentialSnapshotErrors(){if(hasRequiredHandlePotentialSnapshotErrors)return handlePotentialSnapshotErrors_1;hasRequiredHandlePotentialSnapshotErrors=1;var r=requireInteropRequireDefault().default,t=r(requireObjectSpread2()),n=r(requireCreateForOfIteratorHelper()),i=requireBrowser();function s(l,d,o){var u=(0,n.default)(d),p;try{for(u.s();!(p=u.n()).done;){var c=p.value;l.relayFieldLogger((0,t.default)((0,t.default)({},c),{},{uiContext:o}))}}catch(R){u.e(R)}finally{u.f()}var v=(0,n.default)(d),y;try{for(v.s();!(y=v.n()).done;){var m=y.value;if(a(m))switch(m.kind){case"relay_resolver.error":throw new Error("Relay: Resolver error at path '".concat(m.fieldPath,"' in '").concat(m.owner,"'. Message: ").concat(m.error.message));case"relay_field_payload.error":throw new Error("Relay: Unexpected response payload - check server logs for details.");case"missing_expected_data.throw":throw new Error("Relay: Missing expected data at path '".concat(m.fieldPath,"' in '").concat(m.owner,"'."));case"missing_required_field.throw":throw new Error("Relay: Missing @required value at path '".concat(m.fieldPath,"' in '").concat(m.owner,"'."));case"missing_required_field.log":case"missing_expected_data.log":break;default:m.kind,i(!1)}}}catch(R){v.e(R)}finally{v.f()}}function a(l){switch(l.kind){case"relay_resolver.error":case"relay_field_payload.error":return l.shouldThrow&&!l.handled;case"missing_expected_data.throw":case"missing_required_field.throw":return!l.handled;case"missing_required_field.log":case"missing_expected_data.log":return!1;default:throw l.kind,new Error("Relay: Unexpected event kind")}}function f(l,d,o){d!=null&&s(l,d,o)}return handlePotentialSnapshotErrors_1={eventShouldThrow:a,handlePotentialSnapshotErrors:f},handlePotentialSnapshotErrors_1}var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(r){var t=requireArrayLikeToArray();function n(i){if(Array.isArray(i))return t(i)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(r){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(iterableToArray)),iterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(r){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(nonIterableSpread)),nonIterableSpread.exports}var hasRequiredToConsumableArray;function requireToConsumableArray(){return hasRequiredToConsumableArray||(hasRequiredToConsumableArray=1,function(r){var t=requireArrayWithoutHoles(),n=requireIterableToArray(),i=requireUnsupportedIterableToArray(),s=requireNonIterableSpread();function a(f){return t(f)||n(f)||i(f)||s()}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(toConsumableArray)),toConsumableArray.exports}var RelayDefaultHandleKey,hasRequiredRelayDefaultHandleKey;function requireRelayDefaultHandleKey(){return hasRequiredRelayDefaultHandleKey||(hasRequiredRelayDefaultHandleKey=1,RelayDefaultHandleKey={DEFAULT_HANDLE_KEY:""}),RelayDefaultHandleKey}var getRelayHandleKey_1,hasRequiredGetRelayHandleKey;function requireGetRelayHandleKey(){if(hasRequiredGetRelayHandleKey)return getRelayHandleKey_1;hasRequiredGetRelayHandleKey=1;var r=requireRelayDefaultHandleKey(),t=r.DEFAULT_HANDLE_KEY,n=requireBrowser();function i(s,a,f){return a&&a!==t?"__".concat(a,"_").concat(s):(f==null&&n(!1),"__".concat(f,"_").concat(s))}return getRelayHandleKey_1=i,getRelayHandleKey_1}var RelayFeatureFlags_1,hasRequiredRelayFeatureFlags;function requireRelayFeatureFlags(){if(hasRequiredRelayFeatureFlags)return RelayFeatureFlags_1;hasRequiredRelayFeatureFlags=1;var r={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_STORE_ID_COLLISION_LOGGING:!1,ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!0,ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX:!0,ENABLE_USE_PAGINATION_IS_LOADING_FIX:!1,DISALLOW_NESTED_UPDATES:!1,ENABLE_TYPENAME_PREFIXED_DATA_ID:!1,ENABLE_UI_CONTEXT_ON_RELAY_LOGGER:!1,CHECK_ALL_FRAGMENTS_FOR_MISSING_CLIENT_EDGES:!1,FILTER_OUT_RELAY_RESOLVER_RECORDS:!1,OPTIMIZE_NOTIFY:!1,ENABLE_FIELD_GRANULAR_NOTIFICATIONS:!1,ENABLE_READER_FRAGMENTS_LOGGING:!1};return RelayFeatureFlags_1=r,RelayFeatureFlags_1}var stableCopy_1,hasRequiredStableCopy;function requireStableCopy(){if(hasRequiredStableCopy)return stableCopy_1;hasRequiredStableCopy=1;function r(n){if(!n||typeof n!="object")return n;if(Array.isArray(n))return n.map(r);for(var i=Object.keys(n).sort(),s={},a=0;a<i.length;a++)s[i[a]]=r(n[i[a]]);return s}function t(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;if(!n||typeof n!="object")return!1;if(i.has(n))return!0;var s=new Set(i);s.add(n);var a=Array.isArray(n)?n:Object.values(n);return a.some(function(f){return t(f,s)})}return stableCopy_1={hasCycle:t,stableCopy:r},stableCopy_1}var RelayStoreUtils_1,hasRequiredRelayStoreUtils;function requireRelayStoreUtils(){if(hasRequiredRelayStoreUtils)return RelayStoreUtils_1;hasRequiredRelayStoreUtils=1;var r=requireInteropRequireDefault().default,t=r(requireToConsumableArray()),n=requireGetRelayHandleKey(),i=requireRelayConcreteNode(),s=requireRelayFeatureFlags(),a=requireStableCopy(),f=a.stableCopy,l=requireBrowser(),d=i.VARIABLE,o=i.LITERAL,u=i.OBJECT_VALUE,p=i.LIST_VALUE,c="__errors",v="__fieldGranularNotifications",y="__module_component_",m="__module_operation_",R="$r:";function A(h,g){if(h.kind===d)return L(h.variableName,g);if(h.kind===o)return h.value;if(h.kind===u){var I={};return h.fields.forEach(function(E){I[E.name]=A(E,g)}),I}else if(h.kind===p){var w=[];return h.items.forEach(function(E){E!=null&&w.push(A(E,g))}),w}}function D(h,g,I){var w={};return I&&(w[_.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),h&&h.forEach(function(E){w[E.name]=A(E,g)}),w}function C(h,g){var I=h.dynamicKey,w=h.handle,E=h.key,N=h.name,x=h.args,T=h.filters,b=n(w,E,N),O=null;return x&&T&&x.length!==0&&T.length!==0&&(O=x.filter(function(P){return T.indexOf(P.name)>-1})),I&&(O=O!=null?[I].concat((0,t.default)(O)):[I]),O===null?b:$(b,D(O,g))}function q(h,g){if(h.storageKey)return h.storageKey;var I=F(h),w=h.name;return I&&I.length!==0?$(w,D(I,g)):w}function M(h,g){var I=q(h,g);return s.ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX?"$r:"+I:I}function F(h){if(h.kind==="RelayResolver"||h.kind==="RelayLiveResolver"){var g;if(h.args==null){var I;return(I=h.fragment)===null||I===void 0?void 0:I.args}return((g=h.fragment)===null||g===void 0?void 0:g.args)==null?h.args:h.args.concat(h.fragment.args)}var w=typeof h.args>"u"?void 0:h.args;return w}function k(h,g){return $(h,f(g))}function $(h,g){if(!g)return h;var I=[];for(var w in g)if(g.hasOwnProperty(w)){var E=g[w];if(E!=null){var N;I.push(w+":"+((N=JSON.stringify(E))!==null&&N!==void 0?N:"undefined"))}}return I.length===0?h:h+"(".concat(I.join(","),")")}function L(h,g){return g.hasOwnProperty(h)||l(!1),f(g[h])}function G(h){return"".concat(y).concat(h)}function B(h){return"".concat(m).concat(h)}function S(h,g){return"__fn:".concat(h,":").concat(g)}var _={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:c,FIELD_GRANULAR_NOTIFICATIONS_KEY:v,ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",RELAY_RESOLVER_RECORD_TYPENAME:"__RELAY_RESOLVER__",RELAY_READ_TIME_RESOLVER_KEY_PREFIX:R,formatStorageKey:$,getArgumentValue:A,getArgumentValues:D,getHandleStorageKey:C,getStorageKey:q,getReadTimeResolverStorageKey:M,getStableStorageKey:k,getModuleComponentKey:G,getModuleOperationKey:B,getFieldNotificationKey:S};return RelayStoreUtils_1=_,RelayStoreUtils_1}var RelayConcreteVariables,hasRequiredRelayConcreteVariables;function requireRelayConcreteVariables(){if(hasRequiredRelayConcreteVariables)return RelayConcreteVariables;hasRequiredRelayConcreteVariables=1;var r=requireInteropRequireDefault().default,t=r(requireObjectSpread2()),n=requireRelayStoreUtils(),i=n.getArgumentValues,s=requireBrowser();function a(d,o,u){if(d.argumentDefinitions==null)return u;var p;return d.argumentDefinitions.forEach(function(c){if(!u.hasOwnProperty(c.name))switch(p=p||(0,t.default)({},u),c.kind){case"LocalArgument":p[c.name]=c.defaultValue;break;case"RootArgument":if(!o.hasOwnProperty(c.name)){p[c.name]=void 0;break}p[c.name]=o[c.name];break;default:s(!1)}}),p||u}function f(d,o,u){var p={};return d.argumentDefinitions.forEach(function(c){var v=c.defaultValue;u[c.name]!=null&&(v=u[c.name]),p[c.name]=v}),o!=null&&Object.keys(o).forEach(function(c){p[c]=o[c].get()}),p}function l(d,o,u){if(o==null)return d;var p=(0,t.default)({},d),c=u?i(u,d):{};return o.forEach(function(v){var y,m=(y=c[v.name])!==null&&y!==void 0?y:v.defaultValue;p[v.name]=m}),p}return RelayConcreteVariables={getFragmentVariables:a,getLocalVariables:l,getOperationVariables:f},RelayConcreteVariables}var areEqual_1,hasRequiredAreEqual;function requireAreEqual(){if(hasRequiredAreEqual)return areEqual_1;hasRequiredAreEqual=1;var r=[],t=[];/**
58
58
  * Checks if two values are equal. Values may be primitives, arrays, or objects.