line_push/node_modules/js-crypto-pbkdf/dist/jscpbkdf.bundle.min.js
2022-07-17 13:16:16 +08:00

15 lines
70 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("crypto")):"function"==typeof define&&define.amd?define(["crypto"],e):"object"==typeof exports?exports.jscpbkdf=e(require("crypto")):t.jscpbkdf=e(t.crypto)}(this,function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/home/circleci/repo/packages/js-crypto-pbkdf/dist",r(r.s=18)}([function(t,e,r){"use strict";var n=r(3),i=r(42);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function u(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function s(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var u=t.charCodeAt(i);u<128?r[n++]=u:u<2048?(r[n++]=u>>6|192,r[n++]=63&u|128):o(t,i)?(u=65536+((1023&u)<<10)+(1023&t.charCodeAt(++i)),r[n++]=u>>18|240,r[n++]=u>>12&63|128,r[n++]=u>>6&63|128,r[n++]=63&u|128):(r[n++]=u>>12|224,r[n++]=u>>6&63|128,r[n++]=63&u|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=a(t[r].toString(16));return e},e.htonl=u,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=u(i)),r+=s(i.toString(16))}return r},e.zero2=a,e.zero8=s,e.join32=function(t,e,r,i){var o=r-e;n(o%4==0);for(var u=new Array(o/4),a=0,s=e;a<u.length;a++,s+=4){var f;f="big"===i?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],u[a]=f>>>0}return u},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,u=(o<n?1:0)+r+i;t[e]=u>>>0,t[e+1]=o},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,o,u,a){var s=0,f=e;return s+=(f=f+n>>>0)<e?1:0,s+=(f=f+o>>>0)<o?1:0,t+r+i+u+(s+=(f=f+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,i,o,u,a){return e+n+o+a>>>0},e.sum64_5_hi=function(t,e,r,n,i,o,u,a,s,f){var h=0,c=e;return h+=(c=c+n>>>0)<e?1:0,h+=(c=c+o>>>0)<o?1:0,h+=(c=c+a>>>0)<a?1:0,t+r+i+u+s+(h+=(c=c+f>>>0)<f?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,i,o,u,a,s,f){return e+n+o+a+f>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},function(t,e,r){t.exports=r(19)},function(t,e){function r(t,e,r,n,i,o,u){try{var a=t[o](u),s=a.value}catch(t){return void r(t)}a.done?e(s):Promise.resolve(s).then(n,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var u=t.apply(e,n);function a(t){r(u,i,o,a,s,"next",t)}function s(t){r(u,i,o,a,s,"throw",t)}a(void 0)})}}},function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){"use strict";var n=r(0),i=r(3);function o(){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}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(t,e,r){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var n=r(29),i=r(30),o=r(31);function u(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(u()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=s.prototype:(null===t&&(t=new s(e)),t.length=e),t}function s(t,e,r){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=l(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),i=(t=a(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(s.isBuffer(e)){var r=0|p(e.length);return 0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?a(t,0):l(t,e);if("Buffer"===e.type&&o(e.data))return l(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(h(e),t=a(t,e<0?0:0|p(e)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|p(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(n)return Y(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return U(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){var o,u=1,a=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,a/=2,s/=2,r/=2}function f(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(i){var h=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===s)return h*u}else-1!==h&&(o-=o-h),h=-1}else for(r+s>a&&(r=a-s),o=r;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(f(t,o+l)!==f(e,l)){c=!1;break}if(c)return o}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))return u;t[r+u]=a}return u}function b(t,e,r,n){return W(Y(e,t.length-r),t,r,n)}function _(t,e,r,n){return W(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return _(t,e,r,n)}function S(t,e,r,n){return W(D(e),t,r,n)}function E(t,e,r,n){return W(function(t,e){for(var r,n,i,o=[],u=0;u<t.length&&!((e-=2)<0);++u)r=t.charCodeAt(u),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function B(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,u,a,s,f=t[i],h=null,c=f>239?4:f>223?3:f>191?2:1;if(i+c<=r)switch(c){case 1:f<128&&(h=f);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&f)<<6|63&o)>127&&(h=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&f)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:o=t[i+1],u=t[i+2],a=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&a)&&(s=(15&f)<<18|(63&o)<<12|(63&u)<<6|63&a)>65535&&s<1114112&&(h=s)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=P));return r}(n)}e.Buffer=s,e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),u(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,r){return f(null,t,e,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,e,r){return function(t,e,r,n){return h(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},s.allocUnsafe=function(t){return c(null,t)},s.allocUnsafeSlow=function(t){return c(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var u=t[r];if(!s.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,i),i+=u.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},s.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):g.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},s.prototype.compare=function(t,e,r,n,i){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(r>>>=0)-(e>>>=0),a=Math.min(o,u),f=this.slice(n,i),h=t.slice(e,r),c=0;c<a;++c)if(f[c]!==h[c]){o=f[c],u=h[c];break}return o<u?-1:u<o?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function U(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function k(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=N(t[o]);return i}function R(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function O(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function M(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function j(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,e,r,n,o){return o||j(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function L(t,e,r,n,o){return o||j(t,0,r,8),i.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),s.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=s.prototype;else{var i=e-t;r=new s(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},s.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):z(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=0,u=1,a=0;for(this[e]=255&t;++o<r&&(u*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/u>>0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=r-1,u=1,a=0;for(this[e+o]=255&t;--o>=0&&(u*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/u>>0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):z(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):z(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var u=s.isBuffer(t)?t:Y(new s(t,n).toString()),a=u.length;for(o=0;o<r-e;++o)this[o+e]=u[o%a]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function N(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((r=t.charCodeAt(u))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function D(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(52))},function(t,e,r){"use strict";t.exports=function(t,e){return function(r,n){var i=2*n,o=2*e;r[i]=t[o],r[i+1]=t[o+1]}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compute",{enumerable:!0,get:function(){return n.compute}}),e.default=void 0;var n=r(22),i={compute:n.compute};e.default=i},function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(10));e.encoder=i;var o=n(r(21));e.formatter=o,e.default={encoder:i,formatter:o}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compute",{enumerable:!0,get:function(){return n.compute}}),Object.defineProperty(e,"verify",{enumerable:!0,get:function(){return n.verify}}),e.default=void 0;var n=r(49),i={compute:n.compute,verify:n.verify};e.default=i},function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(20));e.encodeBase64=function(t){var r="";return r="string"==typeof t?t:e.arrayBufferToString(t),i.getEnvBtoa()(r)},e.decodeBase64=function(t){var r=i.getEnvAtob()(t),n=e.stringToArrayBuffer(r);return u(n)};var o=function(t){if(t instanceof Uint8Array)return t;if(ArrayBuffer.isView(t)&&void 0!==t.buffer)return new Uint8Array(t.buffer);if(t instanceof ArrayBuffer)return new Uint8Array(t);throw new Error("Input must be an ArrayBuffer or a TypedArray")},u=function(t){for(var e=!0,r=0;r<t.length;r++)if(t[r]>126||t[r]<32&&13!==t[r]&&10!==t[r]){e=!1;break}var n=null;if(e){n="";for(r=0;r<t.length;r++)n+=String.fromCharCode(t[r])}else n=t;return n};e.encodeBase64Url=function(t){return e.encodeBase64(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.decodeBase64Url=function(t){return t=t.replace(/-/g,"+").replace(/_/g,"/"),e.decodeBase64(t)},e.arrayBufferToHexString=function(t){for(var e=o(t),r="",n=0;n<e.length;n++){var i=(255&e[n]).toString(16);r+=i=1===i.length?"0"+i:i}return r},e.hexStringToArrayBuffer=function(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e.push(parseInt(t.substr(n,2),16));return new Uint8Array(e)},e.arrayBufferToString=function(t){var e=o(t),r=new Array(e.length);return e.forEach(function(t,e){r[e]=t}),String.fromCharCode.apply(null,r)},e.stringToArrayBuffer=function(t){return new Uint8Array(t.length).map(function(e,r){return t.charCodeAt(r)})}},function(t,e){t.exports=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRootWebCryptoAll=e.getWebCryptoAll=e.getMsCrypto=e.getWebCrypto=e.getNodeCrypto=e.default=void 0;var n=function(){return"undefined"!=typeof window?void 0:r(23)};e.getNodeCrypto=n;var i=function(){if("undefined"!=typeof window)return window.crypto?window.crypto.subtle:void 0};e.getWebCrypto=i;var o=function(){if("undefined"!=typeof window)return window.msCrypto?window.msCrypto.subtle:window.crypto?window.crypto.subtle:void 0};e.getWebCryptoAll=o;var u=function(){if("undefined"!=typeof window)return window.msCrypto?window.msCrypto:window.crypto?window.crypto:void 0};e.getRootWebCryptoAll=u;var a=function(){if("undefined"!=typeof window&&!window.crypto)return window.msCrypto?window.msCrypto.subtle:void 0};e.getMsCrypto=a;var s={getNodeCrypto:n,getWebCrypto:i,getMsCrypto:a,getWebCryptoAll:o,getRootWebCryptoAll:u};e.default=s},function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},function(t,e,r){"use strict";var n=r(0).rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function u(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?u(e,r,n):2===t?o(e,r,n):void 0},e.ch32=i,e.maj32=o,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,r){"use strict";var n=r(0),i=r(4),o=r(15),u=r(3),a=n.sum32,s=n.sum32_4,f=n.sum32_5,h=o.ch32,c=o.maj32,l=o.s0_256,p=o.s1_256,d=o.g0_256,g=o.g1_256,y=i.BlockHash,v=[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 w(){if(!(this instanceof w))return new w;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(w,y),t.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=s(g(r[n-2]),r[n-7],d(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],v=this.h[3],w=this.h[4],m=this.h[5],b=this.h[6],_=this.h[7];for(u(this.k.length===r.length),n=0;n<r.length;n++){var A=f(_,p(w),h(w,m,b),this.k[n],r[n]),S=a(l(i),c(i,o,y));_=b,b=m,m=w,w=a(v,A),v=y,y=o,o=i,i=a(A,S)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],y),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],m),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],_)},w.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(0),i=r(4),o=r(3),u=n.rotr64_hi,a=n.rotr64_lo,s=n.shr64_hi,f=n.shr64_lo,h=n.sum64,c=n.sum64_hi,l=n.sum64_lo,p=n.sum64_4_hi,d=n.sum64_4_lo,g=n.sum64_5_hi,y=n.sum64_5_lo,v=i.BlockHash,w=[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 m(){if(!(this instanceof m))return new m;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=w,this.W=new Array(160)}function b(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,r,n,i,o){var u=e&n^~e&o;return u<0&&(u+=4294967296),u}function A(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function S(t,e,r,n,i,o){var u=e&n^e&o^n&o;return u<0&&(u+=4294967296),u}function E(t,e){var r=u(t,e,28)^u(e,t,2)^u(e,t,7);return r<0&&(r+=4294967296),r}function x(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function B(t,e){var r=u(t,e,14)^u(t,e,18)^u(e,t,9);return r<0&&(r+=4294967296),r}function P(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function T(t,e){var r=u(t,e,1)^u(t,e,8)^s(t,e,7);return r<0&&(r+=4294967296),r}function U(t,e){var r=a(t,e,1)^a(t,e,8)^f(t,e,7);return r<0&&(r+=4294967296),r}function k(t,e){var r=u(t,e,19)^u(e,t,29)^s(t,e,6);return r<0&&(r+=4294967296),r}function R(t,e){var r=a(t,e,19)^a(e,t,29)^f(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(m,v),t.exports=m,m.blockSize=1024,m.outSize=512,m.hmacStrength=192,m.padLength=128,m.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=k(r[n-4],r[n-3]),o=R(r[n-4],r[n-3]),u=r[n-14],a=r[n-13],s=T(r[n-30],r[n-29]),f=U(r[n-30],r[n-29]),h=r[n-32],c=r[n-31];r[n]=p(i,o,u,a,s,f,h,c),r[n+1]=d(i,o,u,a,s,f,h,c)}},m.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],u=this.h[2],a=this.h[3],s=this.h[4],f=this.h[5],p=this.h[6],d=this.h[7],v=this.h[8],w=this.h[9],m=this.h[10],T=this.h[11],U=this.h[12],k=this.h[13],R=this.h[14],O=this.h[15];o(this.k.length===r.length);for(var C=0;C<r.length;C+=2){var M=R,z=O,j=B(v,w),I=P(v,w),L=b(v,w,m,T,U),H=_(v,w,m,T,U,k),N=this.k[C],Y=this.k[C+1],D=r[C],W=r[C+1],F=g(M,z,j,I,L,H,N,Y,D,W),q=y(M,z,j,I,L,H,N,Y,D,W);M=E(n,i),z=x(n,i),j=A(n,i,u,a,s),I=S(n,i,u,a,s,f);var G=c(M,z,j,I),K=l(M,z,j,I);R=U,O=k,U=m,k=T,m=v,T=w,v=c(p,d,F,q),w=l(d,d,F,q),p=s,d=f,s=u,f=a,u=n,a=i,n=c(F,q,G,K),i=l(F,q,G,K)}h(this.h,0,n,i),h(this.h,2,u,a),h(this.h,4,s,f),h(this.h,6,p,d),h(this.h,8,v,w),h(this.h,10,m,T),h(this.h,12,U,k),h(this.h,14,R,O)},m.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){t.exports=r(51)},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),u=new P(n||[]);return o._invoke=function(t,e,r){var n=h;return function(i,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return U()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var a=E(u,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?p:c,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(t,r,u),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",c="suspendedYield",l="executing",p="completed",d={};function g(){}function y(){}function v(){}var w={};w[o]=function(){return this};var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==r&&n.call(b,o)&&(w=b);var _=v.prototype=g.prototype=Object.create(w);function A(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t){var e;this._invoke=function(r,i){function o(){return new Promise(function(e,o){!function e(r,i,o,u){var a=f(t[r],t,i);if("throw"!==a.type){var s=a.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?Promise.resolve(h.__await).then(function(t){e("next",t,o,u)},function(t){e("throw",t,o,u)}):Promise.resolve(h).then(function(t){s.value=t,o(s)},function(t){return e("throw",t,o,u)})}u(a.arg)}(r,i,e,o)})}return e=e?e.then(o,o):o()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=f(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function T(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,u=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return u.next=u}}return{next:U}}function U(){return{value:e,done:!0}}return y.prototype=_.constructor=v,v.constructor=y,v[a]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},A(S.prototype),S.prototype[u]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,i){var o=new S(s(e,r,n,i));return t.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},A(_),_[a]="Generator",_[o]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(B),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var s=n.call(u,"catchLoc"),f=n.call(u,"finallyLoc");if(s&&f){if(this.prev<u.catchLoc)return i(u.catchLoc,!0);if(this.prev<u.finallyLoc)return i(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return i(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return i(u.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;B(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnvBtoa=function(){return"undefined"!=typeof window?window.btoa:n},e.getEnvAtob=function(){return"undefined"!=typeof window?window.atob:i};var n=function(t){if("undefined"==typeof Buffer)throw new Error("UnsupportedEnvironment");var e=Object.prototype.toString.call(t).slice(8,-1);return(Buffer.isBuffer(t)?t:["ArrayBuffer","TypedArray","Uint8Array","Int8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].indexOf(e)>=0?Buffer.from(t):Buffer.from(t.toString(),"binary")).toString("base64")},i=function(t){if("undefined"==typeof Buffer)throw new Error("UnsupportedEnvironment");return Buffer.from(t,"base64").toString("binary")}},function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(10)),o={public:"PUBLIC KEY",private:"PRIVATE KEY",encryptedPrivate:"ENCRYPTED PRIVATE KEY",certificate:"CERTIFICATE",certRequest:"CERTIFICATE REQUEST"};e.pemToBin=function(t){var e=a(t);return i.decodeBase64(e)},e.binToPem=function(t,e){var r=i.encodeBase64(t);return u(r,e)};var u=function(t,e){if(Object.keys(o).indexOf(e)<0)throw new Error("Unsupported type");for(var r=o[e],n="-----BEGIN "+r+"-----\n";t.length>0;)n+=t.substring(0,64)+"\n",t=t.substring(64);return n=n+"-----END "+r+"-----"},a=function(t){var e=RegExp("^-----[s]*BEGIN[^-]*-----$","gm"),r=RegExp("^-----[s]*END[^-]*-----$","gm");try{var n=t.split(e)[1].split(r)[0];return n=n.replace(/\r?\n/g,"")}catch(t){throw new Error("Invalid format as PEM")}}},function(t,e,r){"use strict";var n=r(11),i=r(12);Object.defineProperty(e,"__esModule",{value:!0}),e.compute=void 0;var o=i(r(1)),u=i(r(2)),a=n(r(13)),s=i(r(24)),f=i(r(25)),h=r(28),c=i(r(41)),l=function(){var t=(0,u.default)(o.default.mark(function t(e){var r,n,i,u,f,h,c,l=arguments;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=l.length>1&&void 0!==l[1]?l[1]:"SHA-256",!(Object.keys(s.default.hashes).indexOf(r)<0)){t.next=3;break}throw new Error("UnsupportedHashAlgorithm");case 3:if(e instanceof Uint8Array){t.next=5;break}throw new Error("UnsupportedMessageType");case 5:if(n=a.getWebCrypto(),i=a.getNodeCrypto(),u=a.getMsCrypto(),c=!0,void 0===n||"function"!=typeof n.digest||void 0!==u){t.next=15;break}return t.next=12,n.digest(r,e).catch(function(t){h=t.message,c=!1});case 12:f=t.sent,t.next=26;break;case 15:if(void 0===i){t.next=19;break}try{f=d(r,e,i)}catch(t){h=t.message,c=!1}t.next=26;break;case 19:if(void 0===u||"function"!=typeof u.digest){t.next=25;break}return t.next=22,p(r,e,u).catch(function(t){h=t.message,c=!1});case 22:f=t.sent,t.next=26;break;case 25:c=!1;case 26:if(c){t.next=35;break}t.prev=27,f=g(r,e),t.next=35;break;case 31:throw t.prev=31,t.t0=t.catch(27),h="".concat(h," => ").concat(t.t0.message),new Error("UnsupportedEnvironment: ".concat(h));case 35:return t.abrupt("return",new Uint8Array(f));case 36:case"end":return t.stop()}},t,null,[[27,31]])}));return function(e){return t.apply(this,arguments)}}();e.compute=l;var p=function(t,e,r){return new Promise(function(n,i){var o=r.digest(t,e);o.oncomplete=function(t){n(t.target.result)},o.onerror=function(t){i(t)}})},d=function(t,e,r){var n=s.default.hashes[t].nodeName,i=r.createHash(n);return i.update(e),i.digest()},g=function(t,e){var n;if("MD5"===t)n=(0,f.default)(Array.from(e),{asBytes:!0});else if(["SHA3-512","SHA3-384","SHA3-256","SHA3-224"].indexOf(t)>=0){var i=new h.SHA3(8*s.default.hashes[t].hashSize),o=r(5).Buffer;i.update(o.from(e)),n=i.digest("binary")}else n=c.default[s.default.hashes[t].nodeName]().update(e).digest();return new Uint8Array(n)}},function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64},"SHA3-384":{nodeName:"sha3-384",hashSize:48},"SHA3-256":{nodeName:"sha3-256",hashSize:32},"SHA3-224":{nodeName:"sha3-224",hashSize:28},"SHA-256":{nodeName:"sha256",hashSize:32},"SHA-384":{nodeName:"sha384",hashSize:48},"SHA-512":{nodeName:"sha512",hashSize:64},"SHA-1":{nodeName:"sha1",hashSize:20},MD5:{nodeName:"md5",hashSize:16}}}},function(t,e,r){var n,i,o,u,a;n=r(26),i=r(14).utf8,o=r(27),u=r(14).bin,(a=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?u.stringToBytes(t):i.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),s=8*t.length,f=1732584193,h=-271733879,c=-1732584194,l=271733878,p=0;p<r.length;p++)r[p]=16711935&(r[p]<<8|r[p]>>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[s>>>5]|=128<<s%32,r[14+(s+64>>>9<<4)]=s;var d=a._ff,g=a._gg,y=a._hh,v=a._ii;for(p=0;p<r.length;p+=16){var w=f,m=h,b=c,_=l;f=d(f,h,c,l,r[p+0],7,-680876936),l=d(l,f,h,c,r[p+1],12,-389564586),c=d(c,l,f,h,r[p+2],17,606105819),h=d(h,c,l,f,r[p+3],22,-1044525330),f=d(f,h,c,l,r[p+4],7,-176418897),l=d(l,f,h,c,r[p+5],12,1200080426),c=d(c,l,f,h,r[p+6],17,-1473231341),h=d(h,c,l,f,r[p+7],22,-45705983),f=d(f,h,c,l,r[p+8],7,1770035416),l=d(l,f,h,c,r[p+9],12,-1958414417),c=d(c,l,f,h,r[p+10],17,-42063),h=d(h,c,l,f,r[p+11],22,-1990404162),f=d(f,h,c,l,r[p+12],7,1804603682),l=d(l,f,h,c,r[p+13],12,-40341101),c=d(c,l,f,h,r[p+14],17,-1502002290),f=g(f,h=d(h,c,l,f,r[p+15],22,1236535329),c,l,r[p+1],5,-165796510),l=g(l,f,h,c,r[p+6],9,-1069501632),c=g(c,l,f,h,r[p+11],14,643717713),h=g(h,c,l,f,r[p+0],20,-373897302),f=g(f,h,c,l,r[p+5],5,-701558691),l=g(l,f,h,c,r[p+10],9,38016083),c=g(c,l,f,h,r[p+15],14,-660478335),h=g(h,c,l,f,r[p+4],20,-405537848),f=g(f,h,c,l,r[p+9],5,568446438),l=g(l,f,h,c,r[p+14],9,-1019803690),c=g(c,l,f,h,r[p+3],14,-187363961),h=g(h,c,l,f,r[p+8],20,1163531501),f=g(f,h,c,l,r[p+13],5,-1444681467),l=g(l,f,h,c,r[p+2],9,-51403784),c=g(c,l,f,h,r[p+7],14,1735328473),f=y(f,h=g(h,c,l,f,r[p+12],20,-1926607734),c,l,r[p+5],4,-378558),l=y(l,f,h,c,r[p+8],11,-2022574463),c=y(c,l,f,h,r[p+11],16,1839030562),h=y(h,c,l,f,r[p+14],23,-35309556),f=y(f,h,c,l,r[p+1],4,-1530992060),l=y(l,f,h,c,r[p+4],11,1272893353),c=y(c,l,f,h,r[p+7],16,-155497632),h=y(h,c,l,f,r[p+10],23,-1094730640),f=y(f,h,c,l,r[p+13],4,681279174),l=y(l,f,h,c,r[p+0],11,-358537222),c=y(c,l,f,h,r[p+3],16,-722521979),h=y(h,c,l,f,r[p+6],23,76029189),f=y(f,h,c,l,r[p+9],4,-640364487),l=y(l,f,h,c,r[p+12],11,-421815835),c=y(c,l,f,h,r[p+15],16,530742520),f=v(f,h=y(h,c,l,f,r[p+2],23,-995338651),c,l,r[p+0],6,-198630844),l=v(l,f,h,c,r[p+7],10,1126891415),c=v(c,l,f,h,r[p+14],15,-1416354905),h=v(h,c,l,f,r[p+5],21,-57434055),f=v(f,h,c,l,r[p+12],6,1700485571),l=v(l,f,h,c,r[p+3],10,-1894986606),c=v(c,l,f,h,r[p+10],15,-1051523),h=v(h,c,l,f,r[p+1],21,-2054922799),f=v(f,h,c,l,r[p+8],6,1873313359),l=v(l,f,h,c,r[p+15],10,-30611744),c=v(c,l,f,h,r[p+6],15,-1560198380),h=v(h,c,l,f,r[p+13],21,1309151649),f=v(f,h,c,l,r[p+4],6,-145523070),l=v(l,f,h,c,r[p+11],10,-1120210379),c=v(c,l,f,h,r[p+2],15,718787259),h=v(h,c,l,f,r[p+9],21,-343485551),f=f+w>>>0,h=h+m>>>0,c=c+b>>>0,l=l+_>>>0}return n.endian([f,h,c,l])})._ff=function(t,e,r,n,i,o,u){var a=t+(e&r|~e&n)+(i>>>0)+u;return(a<<o|a>>>32-o)+e},a._gg=function(t,e,r,n,i,o,u){var a=t+(e&n|r&~n)+(i>>>0)+u;return(a<<o|a>>>32-o)+e},a._hh=function(t,e,r,n,i,o,u){var a=t+(e^r^n)+(i>>>0)+u;return(a<<o|a>>>32-o)+e},a._ii=function(t,e,r,n,i,o,u){var a=t+(r^(e|~n))+(i>>>0)+u;return(a<<o|a>>>32-o)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(a(t,e));return e&&e.asBytes?r:e&&e.asString?u.bytesToString(r):n.bytesToHex(r)}},function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?e.push(r.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,i=0;n<t.length;i=++n%4)0!=i&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|r.indexOf(t.charAt(n))>>>6-2*i);return e}},t.exports=n},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA3=void 0;var n,i=r(5),o=(n=r(32))&&n.__esModule?n:{default:n};var u=function(t){var e=t.padding;return function t(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:512;if(!this||this.constructor!==t)return new t(n);var u=new o.default({capacity:n,padding:e});return this.update=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(i.Buffer.isBuffer(t))return u.absorb(t),r;if("string"==typeof t)return r.update(i.Buffer.from(t,e));throw new TypeError("Not a string or buffer")},this.digest=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"binary",e=u.squeeze();return t&&"binary"!==t?e.toString(t):e},this.reset=function(){return u.reset(),r},this}},a=u({padding:1}),s=u({padding:6});e.SHA3=s;var f=a;s.SHA3Hash=f},function(t,e,r){"use strict";e.toByteArray=function(t){for(var e,r=f(t),n=r[0],u=r[1],a=new o(function(t,e,r){return 3*(e+r)/4-r}(0,n,u)),s=0,h=u>0?n-4:n,c=0;c<h;c+=4)e=i[t.charCodeAt(c)]<<18|i[t.charCodeAt(c+1)]<<12|i[t.charCodeAt(c+2)]<<6|i[t.charCodeAt(c+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===u&&(e=i[t.charCodeAt(c)]<<2|i[t.charCodeAt(c+1)]>>4,a[s++]=255&e);1===u&&(e=i[t.charCodeAt(c)]<<10|i[t.charCodeAt(c+1)]<<4|i[t.charCodeAt(c+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],u=0,a=r-i;u<a;u+=16383)o.push(h(t,u,u+16383>a?a:u+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=u.length;a<s;++a)n[a]=u[a],i[u.charCodeAt(a)]=a;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function h(t,e,r){for(var i,o,u=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),u.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return u.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,u,a=8*i-n-1,s=(1<<a)-1,f=s>>1,h=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+c],c+=l,h-=8);for(u=o&(1<<-h)-1,o>>=-h,h+=n;h>0;u=256*u+t[e+c],c+=l,h-=8);if(0===o)o=1-f;else{if(o===s)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),o-=f}return(p?-1:1)*u*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var u,a,s,f=8*o-i-1,h=(1<<f)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=h):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),(e+=u+c>=1?l/s:l*Math.pow(2,1-c))*s>=2&&(u++,s/=2),u+c>=h?(a=0,u=h):u+c>=1?(a=(e*s-1)*Math.pow(2,i),u+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(u=u<<i|a,f+=i;f>0;t[r+p]=255&u,p+=d,u/=256,f-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=r(5),o=(n=r(33))&&n.__esModule?n:{default:n};var u=[224,256,384,512],a=function(t,e){for(var r=0;r<t.length;r+=8){var n=r/4;e[n]^=t[r+7]<<24|t[r+6]<<16|t[r+5]<<8|t[r+4],e[n+1]^=t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]}},s=function(t){var e=this,r=t.capacity,n=t.padding;if(!u.includes(r))throw new Error("Unsupported hash length");var s=(0,o.default)(),f=r/8,h=200-2*f,c=0,l=new Uint32Array(50),p=i.Buffer.allocUnsafe(h);return this.absorb=function(t){for(var r=0;r<t.length;r++)p[c]=t[r],(c+=1)>=h&&(a(p,l),s(l),c=0);return e},this.squeeze=function(){var t={queue:i.Buffer.allocUnsafe(h),state:new Uint32Array(50)};p.copy(t.queue);for(var e=0;e<l.length;e++)t.state[e]=l[e];return t.queue.fill(0,c),t.queue[c]|=n,t.queue[h-1]|=128,a(t.queue,t.state),s(t.state),function(t,e){for(var r=i.Buffer.allocUnsafe(e),n=0;n<e;n+=8){var o=n/4;r[n]=t[o+1],r[n+1]=t[o+1]>>>8,r[n+2]=t[o+1]>>>16,r[n+3]=t[o+1]>>>24,r[n+4]=t[o],r[n+5]=t[o]>>>8,r[n+6]=t[o]>>>16,r[n+7]=t[o]>>>24}return r}(t.state,f)},this.reset=function(){return p.fill(0),l.fill(0),c=0,e},this};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(r(34)),i=a(r(35)),o=a(r(37)),u=a(r(40));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){var t=new Uint32Array(10),e=new Uint32Array(10),r=new Uint32Array(2);return function(a){for(var s=0;s<24;s++)(0,u.default)({A:a,C:t,D:e,W:r}),(0,o.default)({A:a,C:t,W:r}),(0,n.default)({A:a,C:t}),(0,i.default)({A:a,roundIndex:s});t.fill(0),e.fill(0),r.fill(0)}};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(6))&&n.__esModule?n:{default:n};var o=function(t){for(var e=t.A,r=t.C,n=0;n<25;n+=5){for(var o=0;o<5;o++)(0,i.default)(e,n+o)(r,o);for(var u=0;u<5;u++){var a=2*(n+u),s=(u+1)%5*2,f=(u+2)%5*2;e[a]^=~r[s]&r[f],e[a+1]^=~r[s+1]&r[f+1]}}};e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(36))&&n.__esModule?n:{default:n};var o=function(t){var e=t.A,r=2*t.roundIndex;e[0]^=i.default[r],e[1]^=i.default[r+1]};e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]);e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(r(38)),i=u(r(39)),o=u(r(6));function u(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=t.A,r=t.C,u=t.W;(0,o.default)(e,1)(u,0);for(var a=0,s=0,f=0,h=32,c=0;c<24;c++){var l=n.default[c],p=i.default[c];(0,o.default)(e,l)(r,0),a=u[0],s=u[1],h=32-p,u[f=p<32?0:1]=a<<p|s>>>h,u[(f+1)%2]=s<<p|a>>>h,(0,o.default)(u,0)(e,l),(0,o.default)(r,0)(u,0)}};e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1];e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44];e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(6))&&n.__esModule?n:{default:n};var o=function(t){for(var e=t.A,r=t.C,n=t.D,o=t.W,u=0,a=0,s=0;s<5;s++){var f=2*s,h=2*(s+5),c=2*(s+10),l=2*(s+15),p=2*(s+20);r[f]=e[f]^e[h]^e[c]^e[l]^e[p],r[f+1]=e[f+1]^e[h+1]^e[c+1]^e[l+1]^e[p+1]}for(var d=0;d<5;d++){(0,i.default)(r,(d+1)%5)(o,0),u=o[0],a=o[1],o[0]=u<<1|a>>>31,o[1]=a<<1|u>>>31,n[2*d]=r[(d+4)%5*2]^o[0],n[2*d+1]=r[(d+4)%5*2+1]^o[1];for(var g=0;g<25;g+=5)e[2*(g+d)]^=n[2*d],e[2*(g+d)+1]^=n[2*d+1]}};e.default=o},function(t,e,r){var n=e;n.utils=r(0),n.common=r(4),n.sha=r(43),n.ripemd=r(47),n.hmac=r(48),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";e.sha1=r(44),e.sha224=r(45),e.sha256=r(16),e.sha384=r(46),e.sha512=r(17)},function(t,e,r){"use strict";var n=r(0),i=r(4),o=r(15),u=n.rotl32,a=n.sum32,s=n.sum32_5,f=o.ft_1,h=i.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,h),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],h=this.h[2],l=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var d=~~(n/20),g=s(u(i,5),f(d,o,h,l),p,r[n],c[d]);p=l,l=h,h=u(o,30),o=i,i=g}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],h),this.h[3]=a(this.h[3],l),this.h[4]=a(this.h[4],p)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(0),i=r(16);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(0),i=r(17);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(0),i=r(4),o=n.rotl32,u=n.sum32,a=n.sum32_3,s=n.sum32_4,f=i.BlockHash;function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(h,f),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],f=this.h[3],h=this.h[4],w=r,m=n,b=i,_=f,A=h,S=0;S<80;S++){var E=u(o(s(r,c(S,n,i,f),t[d[S]+e],l(S)),y[S]),h);r=h,h=f,f=o(i,10),i=n,n=E,E=u(o(s(w,c(79-S,m,b,_),t[g[S]+e],p(S)),v[S]),A),w=A,A=_,_=o(b,10),b=m,m=E}E=a(this.h[1],i,_),this.h[1]=a(this.h[2],f,A),this.h[2]=a(this.h[3],h,w),this.h[3]=a(this.h[4],r,m),this.h[4]=a(this.h[0],n,b),this.h[0]=E},h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var d=[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],g=[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],y=[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],v=[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]},function(t,e,r){"use strict";var n=r(0),i=r(3);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e,r){"use strict";var n=r(11),i=r(12);Object.defineProperty(e,"__esModule",{value:!0}),e.verify=e.compute=void 0;var o=i(r(1)),u=i(r(2)),a=i(r(50)),s=n(r(13)),f=i(r(7)),h=function(){var t=(0,u.default)(o.default.mark(function t(e,r){var n,i,u,f,h,l,p,d,g,y,v,w=arguments;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=w.length>2&&void 0!==w[2]?w[2]:"SHA-256",i=s.getWebCryptoAll(),u=s.getNodeCrypto(),f=!0,void 0===i||"function"!=typeof i.importKey||"function"!=typeof i.sign){t.next=38;break}if(void 0!==window.msCrypto){t.next=21;break}return t.prev=6,t.next=9,i.importKey("raw",e,{name:"HMAC",hash:{name:n}},!1,["sign","verify"]);case 9:return h=t.sent,t.next=12,i.sign({name:"HMAC",hash:{name:n}},h,r);case 12:return l=t.sent,t.abrupt("return",new Uint8Array(l));case 16:t.prev=16,t.t0=t.catch(6),f=!1;case 19:t.next=36;break;case 21:return t.prev=21,p=function(t,e,r,n,o){return new Promise(function(u,a){var s=i.importKey(t,e,r,n,o);s.oncomplete=function(t){u(t.target.result)},s.onerror=function(){a("KeyImportingFailed")}})},d=function(t,e,r){return new Promise(function(n,o){var u=i.sign({name:"HMAC",hash:{name:t}},e,r);u.oncomplete=function(t){n(new Uint8Array(t.target.result))},u.onerror=function(){o("ComputingHMACFailed")}})},t.next=26,p("raw",e,{name:"HMAC",hash:{name:n}},!1,["sign","verify"]);case 26:return g=t.sent,t.next=29,d(n,g,r);case 29:return y=t.sent,t.abrupt("return",new Uint8Array(y));case 33:t.prev=33,t.t1=t.catch(21),f=!1;case 36:t.next=50;break;case 38:if(void 0===u){t.next=49;break}return t.prev=39,v=u.createHmac(a.default.hashes[n].nodeName,e),t.abrupt("return",new Uint8Array(v.update(r).digest()));case 44:t.prev=44,t.t2=t.catch(39),f=!1;case 47:t.next=50;break;case 49:f=!1;case 50:if(f){t.next=60;break}return t.prev=51,t.next=54,c(e,r,n);case 54:return t.abrupt("return",t.sent);case 57:throw t.prev=57,t.t3=t.catch(51),new Error("UnsupportedEnvironments");case 60:case"end":return t.stop()}},t,null,[[6,16],[21,33],[39,44],[51,57]])}));return function(e,r){return t.apply(this,arguments)}}();e.compute=h;var c=function(){var t=(0,u.default)(o.default.mark(function t(e,r,n){var i,u,s,h,c,l,p,d;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=a.default.hashes[n].blockSize,u=a.default.hashes[n].hashSize,!(e.length>i)){t.next=6;break}return t.next=5,f.default.compute(e,n);case 5:e=t.sent;case 6:return(s=new Uint8Array(i)).set(e),h=s.map(function(t){return 255&(54^t)}),c=s.map(function(t){return 255&(92^t)}),(l=new Uint8Array(i+r.length)).set(h),l.set(r,i),t.next=15,f.default.compute(l,n);case 15:return p=t.sent,(d=new Uint8Array(i+u)).set(c),d.set(p,i),t.abrupt("return",f.default.compute(d,n));case 20:case"end":return t.stop()}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),l=function(){var t=(0,u.default)(o.default.mark(function t(e,r,n){var i,u,a=arguments;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=a.length>3&&void 0!==a[3]?a[3]:"SHA-256",n instanceof Uint8Array){t.next=3;break}throw new Error("InvalidInputMac");case 3:return t.next=5,h(e,r,i);case 5:return u=t.sent,t.abrupt("return",n.toString()===u.toString());case 7:case"end":return t.stop()}},t)}));return function(e,r,n){return t.apply(this,arguments)}}();e.verify=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64,blockSize:72},"SHA3-384":{nodeName:"sha3-384",hashSize:48,blockSize:104},"SHA3-256":{nodeName:"sha3-256",hashSize:32,blockSize:136},"SHA3-224":{nodeName:"sha3-224",hashSize:28,blockSize:144},"SHA-256":{nodeName:"sha256",hashSize:32,blockSize:64},"SHA-384":{nodeName:"sha384",hashSize:48,blockSize:128},"SHA-512":{nodeName:"sha512",hashSize:64,blockSize:128},"SHA-1":{nodeName:"sha1",hashSize:20,blockSize:64},MD5:{nodeName:"md5",hashSize:16,blockSize:64}}}},function(t,e,r){"use strict";r.r(e);var n=r(1),i=r.n(n),o=r(2),u=r.n(o),a=r(8),s=r.n(a),f=r(7),h=r.n(f),c=r(9),l=r.n(c),p={hashes:{"SHA3-512":{hashSize:64},"SHA3-384":{hashSize:48},"SHA3-256":{hashSize:32},"SHA3-224":{hashSize:28},"SHA-256":{hashSize:32},"SHA-384":{hashSize:48},"SHA-512":{hashSize:64},"SHA-1":{hashSize:20},MD5:{hashSize:16}}},d=function(){var t=u()(i.a.mark(function t(e,r,n,o,a){var f,h,c,d,y,w,m;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(v(e,r,n,o,a),"string"==typeof e&&(e=s.a.encoder.stringToArrayBuffer(e)),f=p.hashes[a].hashSize,!(o>(Math.pow(2,32)-1)*f)){t.next=5;break}throw new Error("DerivedKeyTooLong");case 5:for(h=Math.ceil(o/f),c=o-(h-1)*f,d=function(){var t=u()(i.a.mark(function t(o){var u,s,f,h;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(u=new Uint8Array(r.length+4)).set(r),u.set(g(o+1,4),r.length),t.next=5,l.a.compute(e,u,a);case 5:s=t.sent,f=new Uint8Array(s),h=1;case 8:if(!(h<n)){t.next=16;break}return t.next=11,l.a.compute(e,s,a);case 11:s=t.sent,f=s.map(function(t,e){return t^f[e]});case 13:h++,t.next=8;break;case 16:return t.abrupt("return",{index:o,value:f});case 17:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),y=[],w=new Uint8Array(o),m=0;m<h;m++)y.push(d(m));return t.next=13,Promise.all(y);case 13:return t.sent.forEach(function(t){t.index!==h-1?w.set(t.value,t.index*f):w.set(t.value.slice(0,c),t.index*f)}),t.abrupt("return",w);case 16:case"end":return t.stop()}},t)}));return function(e,r,n,i,o){return t.apply(this,arguments)}}(),g=function(t,e){for(var r=new Uint8Array(e),n=0;n<e;n++)r[n]=t>>8*(e-n-1);return r},y=function(){var t=u()(i.a.mark(function t(e,r,n,o,u){var a,f;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(v(e,r,n,o,u),"string"==typeof e&&(e=s.a.encoder.stringToArrayBuffer(e)),!(o>p.hashes[u].hashSize)){t.next=4;break}throw new Error("DerivedKeyTooLong");case 4:(a=new Uint8Array(e.length+r.length)).set(e),a.set(r,e.length),f=0;case 8:if(!(f<n)){t.next=15;break}return t.next=11,h.a.compute(a,u);case 11:a=t.sent;case 12:f++,t.next=8;break;case 15:return t.abrupt("return",a.slice(0,o));case 16:case"end":return t.stop()}},t)}));return function(e,r,n,i,o){return t.apply(this,arguments)}}(),v=function(t,e,r,n,i){if("string"!=typeof t&&!(t instanceof Uint8Array))throw new Error("PasswordIsNotUint8ArrayNorString");if(!(e instanceof Uint8Array))throw new Error("SaltMustBeUint8Array");if("number"!=typeof r||r<=0)throw new Error("InvalidIterationCount");if("number"!=typeof n||n<=0)throw new Error("InvalidDerivedKeyLength");if(Object.keys(p.hashes).indexOf(i)<0)throw new Error("UnsupportedHashAlgorithm");return!0};r.d(e,"pbkdf2",function(){return d}),r.d(e,"pbkdf1",function(){return y});e.default={pbkdf2:d,pbkdf1:y}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r}])});