text: !function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var t;typeof window!=="undefined"?(t=window):typeof global!=="undefined"?(t=global):typeof self!=="undefined"?(t=self):(t=this);t.bip32=e()}}(function(){return(function(){function e(t,n,r){function u(i,d){if(!n[i]){if(!t[i]){var o="function"==typeof require&&require;if(!d&&o)return o(i,!0);if(f)return f(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var a=n[i]={exports:{}};t[i][0].call(a.exports,function(e){var n=t[i][1][e];return u(n||e)},a,a.exports,e,t,n,r)}return n[i].exports}for(var f="function"==typeof require&&require,i=0;i<r.length;i++)u(r[i]);return u}return e})()({1:[function(e,t,n){"use strict";n.byteLength=a;n.toByteArray=s;n.fromByteArray=m;var r=[],u=[],f=typeof Uint8Array!=='undefined'?Uint8Array:Array,i='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var d=0,o=i.length;d<o;++d)r[d]=i[d],u[i.charCodeAt(d)]=d;u[45]=62;u[95]=63;function c(e){var t=e.length;if(t%4>0){throw new Error('Invalid string. Length must be a multiple of 4')}var n=e.indexOf('=');n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function a(e){var t=c(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function s(e){var t,n=c(e),r=n[0],i=n[1],d=new f(l(e,r,i)),o=0,a=i>0?r-4:r;for(var s=0;s<a;s+=4)t=u[e.charCodeAt(s)]<<18|u[e.charCodeAt(s+1)]<<12|u[e.charCodeAt(s+2)]<<6|u[e.charCodeAt(s+3)],d[o++]=t>>16&255,d[o++]=t>>8&255,d[o++]=t&255;i===2&&(t=u[e.charCodeAt(s)]<<2|u[e.charCodeAt(s+1)]>>4,d[o++]=t&255);i===1&&(t=u[e.charCodeAt(s)]<<10|u[e.charCodeAt(s+1)]<<4|u[e.charCodeAt(s+2)]>>2,d[o++]=t>>8&255,d[o++]=t&255);return d}function b(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function p(e,t,n){var r,u=[];for(var f=t;f<n;f+=3)r=(e[f]<<16&16711680)+(e[f+1]<<8&65280)+(e[f+2]&255),u.push(b(r));return u.join('')}function m(e){var t,n=e.length,u=n%3,f=[],i=16383;for(var d=0,o=n-u;d<o;d+=i)f.push(p(e,d,d+i>o?o:d+i));u===1?(t=e[n-1],f.push(r[t>>2]+r[t<<4&63]+'==')):u===2&&(t=(e[n-2]<<8)+e[n-1],f.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+'='));return f.join('')}},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){(function(t){"use strict";var r=e('base64-js'),u=e('ieee754');n.Buffer=t;n.SlowBuffer=g;n.INSPECT_MAX_BYTES=50;var f=2147483647;n.kMaxLength=f;t.TYPED_ARRAY_SUPPORT=i();!t.TYPED_ARRAY_SUPPORT&&typeof console!=='undefined'&&typeof console.error==='function'&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42}catch(e){return!1}}Object.defineProperty(t.prototype,'parent',{enumerable:!0,get:function(){if(!t.isBuffer(this))return void 0;return this.buffer}});Object.defineProperty(t.prototype,'offset',{enumerable:!0,get:function(){if(!t.isBuffer(this))return void 0;return this.byteOffset}});function d(e){if(e>f){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var n=new Uint8Array(e);n.__proto__=t.prototype;return n}function t(e,t,n){if(typeof e==='number'){if(typeof t==='string'){throw new TypeError('The "string" argument must be of type string. Received type number')}return l(e)}return o(e,t,n)}typeof Symbol!=='undefined'&&Symbol.species!=null&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1});t.poolSize=8192;function o(e,n,r){if(typeof e==='string'){return s(e,n)}if(ArrayBuffer.isView(e)){return b(e)}if(e==null){throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)){return p(e,n,r)}if(typeof e==='number'){throw new TypeError('The "value" argument must not be of type number. Received type number')}var u=e.valueOf&&e.valueOf();if(u!=null&&u!==e){return t.from(u,n,r)}var f=m(e);if(f)return f;if(typeof Symbol!=='undefined'&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==='function'){return t.from(e[Symbol.toPrimitive]('string'),n,r)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}t.from=function(e,t,n){return o(e,t,n)};t.prototype.__proto__=Uint8Array.prototype;t.__proto__=Uint8Array;function c(e){if(typeof e!=='number'){throw new TypeError('"size" argument must be of type number')}else if(e<0){throw new RangeError('The value "'+e+'" is invalid for option "size"')}}function a(e,t,n){c(e);if(e<=0){return d(e)}if(t!==void 0){return typeof n==='string'?d(e).fill(t,n):d(e).fill(t)}return d(e)}t.alloc=function(e,t,n){return a(e,t,n)};function l(e){c(e);return d(e<0?0:h(e)|0)}t.allocUnsafe=function(e){return l(e)};t.allocUnsafeSlow=function(e){return l(e)};function s(e,n){(typeof n!=='string'||n==='')&&(n='utf8');if(!t.isEncoding(n)){throw new TypeError('Unknown encoding: '+n)}var r=y(e,n)|0,u=d(r),f=u.write(e,n);f!==r&&(u=u.slice(0,f));return u}function b(e){var t=e.length<0?0:h(e.length)|0,n=d(t);for(var r=0;r<t;r+=1)n[r]=e[r]&255;return n}function p(e,n,r){if(n<0||e.byteLength<n){throw new RangeError('"offset" is outside of buffer bounds')}if(e.byteLength<n+(r||0)){throw new RangeError('"length" is outside of buffer bounds')}var u;n===void 0&&r===void 0?(u=new Uint8Array(e)):r===void 0?(u=new Uint8Array(e,n)):(u=new Uint8Array(e,n,r));u.__proto__=t.prototype;return u}function m(e){if(t.isBuffer(e)){var n=h(e.length)|0,r=d(n);if(r.length===0){return r}e.copy(r,0,0,n);return r}if(e.length!==void 0){if(typeof e.length!=='number'||Q(e.length)){return d(0)}return b(e)}if(e.type==='Buffer'&&Array.isArray(e.data)){return b(e.data)}}function h(e){if(e>=f){throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+' bytes')}return e|0}function g(e){+e!=e&&(e=0);return t.alloc(+e)}t.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==t.prototype};t.compare=function(e,n){Y(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength));Y(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength));if(!t.isBuffer(e)||!t.isBuffer(n)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(e===n)return 0;var r=e.length,u=n.length;for(var f=0,i=Math.min(r,u);f<i;++f){if(e[f]!==n[f]){r=e[f];u=n[f];break}}if(r<u)return-1;if(u<r)return 1;return 0};t.isEncoding=function(e){switch(String(e).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}};t.concat=function(e,n){if(!Array.isArray(e)){throw new TypeError('"list" argument must be an Array of Buffers')}if(e.length===0){return t.alloc(0)}var r;if(n===void 0){n=0;for(r=0;r<e.length;++r)n+=e[r].length}var u=t.allocUnsafe(n),f=0;for(r=0;r<e.length;++r){var i=e[r];Y(i,Uint8Array)&&(i=t.from(i));if(!t.isBuffer(i)){throw new TypeError('"list" argument must be an Array of Buffers')}i.copy(u,f);f+=i.length}return u};function y(e,n){if(t.isBuffer(e)){return e.length}if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer)){return e.byteLength}if(typeof e!=='string'){throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type "+typeof e)}var r=e.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&r===0)return 0;var f=!1;for(;;){switch(n){case 'ascii':;case 'latin1':;case 'binary':return r;case 'utf8':;case 'utf-8':return H(e).length;case 'ucs2':;case 'ucs-2':;case 'utf16le':;case 'utf-16le':return r*2;case 'hex':return r>>>1;case 'base64':return Z(e).length;default:if(f){return u?-1:H(e).length};n=(''+n).toLowerCase();f=!0}}}t.byteLength=y;function _(e,t,n){var r=!1;(t===void 0||t<0)&&(t=0);if(t>this.length){return''}(n===void 0||n>this.length)&&(n=this.length);if(n<=0){return''}n>>>=0;t>>>=0;if(n<=t){return''}e||(e='utf8');while(!0){switch(e){case 'hex':return N(this,t,n);case 'utf8':;case 'utf-8':return E(this,t,n);case 'ascii':return z(this,t,n);case 'latin1':;case 'binary':return R(this,t,n);case 'base64':return q(this,t,n);case 'ucs2':;case 'ucs-2':;case 'utf16le':;case 'utf-16le':return P(this,t,n);default:if(r)throw new TypeError('Unknown encoding: '+e);e=(e+'').toLowerCase();r=!0}}}t.prototype._isBuffer=!0;function w(e,t,n){var r=e[t];e[t]=e[n];e[n]=r}t.prototype.swap16=function(){var e=this.length;if(e%2!==0){throw new RangeError('Buffer size must be a multiple of 16-bits')}for(var t=0;t<e;t+=2)w(this,t,t+1);return this};t.prototype.swap32=function(){var e=this.length;if(e%4!==0){throw new RangeError('Buffer size must be a multiple of 32-bits')}for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this};t.prototype.swap64=function(){var e=this.length;if(e%8!==0){throw new RangeError('Buffer size must be a multiple of 64-bits')}for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this};t.prototype.toString=function(){var e=this.length;if(e===0)return'';if(arguments.length===0)return E(this,0,e);return _.apply(this,arguments)};t.prototype.toLocaleString=t.prototype.toString;t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError('Argument must be a Buffer');if(this===e)return!0;return t.compare(this,e)===0};t.prototype.inspect=function(){var e='',t=n.INSPECT_MAX_BYTES;e=this.toString('hex',0,t).replace(/(.{2})/g,'$1 ').trim();this.length>t&&(e+=' ... ');return'<Buffer '+e+'>'};t.prototype.compare=function(e,n,r,u,f){Y(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength));if(!t.isBuffer(e)){throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type "+typeof e)}n===void 0&&(n=0);r===void 0&&(r=e?e.length:0);u===void 0&&(u=0);f===void 0&&(f=this.length);if(n<0||r>e.length||u<0||f>this.length){throw new RangeError('out of range index')}if(u>=f&&n>=r){return 0}if(u>=f){return-1}if(n>=r){return 1}n>>>=0;r>>>=0;u>>>=0;f>>>=0;if(this===e)return 0;var i=f-u,d=r-n,o=Math.min(i,d),c=this.slice(u,f),a=e.slice(n,r);for(var l=0;l<o;++l){if(c[l]!==a[l]){i=c[l];d=a[l];break}}if(i<d)return-1;if(d<i)return 1;return 0};function v(e,n,r,u,f){if(e.length===0)return-1;typeof r==='string'?(u=r,r=0):r>2147483647?(r=2147483647):r<-2147483648&&(r=-2147483648);r=+r;Q(r)&&(r=f?0:e.length-1);r<0&&(r=e.length+r);if(r>=e.length){if(f)return-1;else r=e.length-1}else if(r<0){if(f)r=0;else return-1}typeof n==='string'&&(n=t.from(n,u));if(t.isBuffer(n)){if(n.length===0){return-1}return S(e,n,r,u,f)}else if(typeof n==='number'){n&=255;if(typeof Uint8Array.prototype.indexOf==='function'){if(f){return Uint8Array.prototype.indexOf.call(e,n,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,n,r)}}return S(e,[n],r,u,f)}throw new TypeError('val must be string, number or Buffer')}function S(e,t,n,r,u){var f=1,i=e.length,d=t.length;if(r!==void 0){r=String(r).toLowerCase();if(r==='ucs2'||r==='ucs-2'||r==='utf16le'||r==='utf-16le'){if(e.length<2||t.length<2){return-1}f=2;i/=2;d/=2;n/=2}}function o(e,t){if(f===1){return e[t]}else{return e.readUInt16BE(t*f)}}var c;if(u){var a=-1;for(c=n;c<i;c++){if(o(e,c)===o(t,a===-1?0:c-a)){a===-1&&(a=c);if(c-a+1===d)return a*f}else a!==-1&&(c-=c-a),a=-1}}else{n+d>i&&(n=i-d);for(c=n;c>=0;c--){var l=!0;for(var s=0;s<d;s++){if(o(e,c+s)!==o(t,s)){l=!1;break}}if(l)return c}}return-1}t.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};t.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)};t.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)};function x(e,t,n,r){n=Number(n)||0;var u=e.length-n;r?(r=Number(r),r>u&&(r=u)):(r=u);var f=t.length;r>f/2&&(r=f/2);for(var i=0;i<r;++i){var d=parseInt(t.substr(i*2,2),16);if(Q(d))return i;e[n+i]=d}return i}function I(e,t,n,r){return V(H(t,e.length-n),e,n,r)}function A(e,t,n,r){return V(K(t),e,n,r)}function M(e,t,n,r){return A(e,t,n,r)}function k(e,t,n,r){return V(Z(t),e,n,r)}function B(e,t,n,r){return V(X(t,e.length-n),e,n,r)}t.prototype.write=function(e,t,n,r){if(t===void 0)r='utf8',n=this.length,t=0;else if(n===void 0&&typeof t==='string')r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r='utf8')):(r=n,n=void 0);else{throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported')}var u=this.length-t;(n===void 0||n>u)&&(n=u);if(e.length>0&&(n<0||t<0)||t>this.length){throw new RangeError('Attempt to write outside buffer bounds')}r||(r='utf8');var f=!1;for(;;){switch(r){case 'hex':return x(this,e,t,n);case 'utf8':;case 'utf-8':return I(this,e,t,n);case 'ascii':return A(this,e,t,n);case 'latin1':;case 'binary':return M(this,e,t,n);case 'base64':return k(this,e,t,n);case 'ucs2':;case 'ucs-2':;case 'utf16le':;case 'utf-16le':return B(this,e,t,n);default:if(f)throw new TypeError('Unknown encoding: '+r);r=(''+r).toLowerCase();f=!0}}};t.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};function q(e,t,n){if(t===0&&n===e.length){return r.fromByteArray(e)}else{return r.fromByteArray(e.slice(t,n))}}function E(e,t,n){n=Math.min(e.length,n);var r=[],u=t;while(u<n){var f=e[u],i=null,d=f>239?4:f>223?3:f>191?2:1;if(u+d<=n){var o,c,a,l;switch(d){case 1:f<128&&(i=f);break;case 2:o=e[u+1];(o&192)===128&&(l=(f&31)<<6|o&63,l>127&&(i=l));break;case 3:o=e[u+1];c=e[u+2];(o&192)===128&&(c&192)===128&&(l=(f&15)<<12|(o&63)<<6|c&63,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:o=e[u+1];c=e[u+2];a=e[u+3];(o&192)===128&&(c&192)===128&&(a&192)===128&&(l=(f&15)<<18|(o&63)<<12|(c&63)<<6|a&63,l>65535&&l<1114112&&(i=l))}}i===null?(i=65533,d=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|i&1023);r.push(i);u+=d}return j(r)}var L=4096;function j(e){var t=e.length;if(t<=L){return String.fromCharCode.apply(String,e)}var n='',r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=L));return n}function z(e,t,n){var r='';n=Math.min(e.length,n);for(var u=t;u<n;++u)r+=String.fromCharCode(e[u]&127);return r}function R(e,t,n){var r='';n=Math.min(e.length,n);for(var u=t;u<n;++u)r+=String.fromCharCode(e[u]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||n>r)&&(n=r);var u='';for(var f=t;f<n;++f)u+=J(e[f]);return u}function P(e,t,n){var r=e.slice(t,n),u='';for(var f=0;f<r.length;f+=2)u+=String.fromCharCode(r[f]+r[f+1]*256);return u}t.prototype.slice=function(e,n){var r=this.length;e=~~e;n=n===void 0?r:~~n;e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r);n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r);n<e&&(n=e);var u=this.subarray(e,n);u.__proto__=t.prototype;return u};function T(e,t,n){if(e%1!==0||e<0)throw new RangeError('offset is not uint');if(e+t>n)throw new RangeError('Trying to access beyond buffer length')}t.prototype.readUIntLE=function(e,t,n){e>>>=0;t>>>=0;n||T(e,t,this.length);var r=this[e],u=1,f=0;while(++f<t&&(u*=256))r+=this[e+f]*u;return r};t.prototype.readUIntBE=function(e,t,n){e>>>=0;t>>>=0;n||T(e,t,this.length);var r=this[e+--t],u=1;while(t>0&&(u*=256))r+=this[e+--t]*u;return r};t.prototype.readUInt8=function(e,t){e>>>=0;t||T(e,1,this.length);return this[e]};t.prototype.readUInt16LE=function(e,t){e>>>=0;t||T(e,2,this.length);return this[e]|this[e+1]<<8};t.prototype.readUInt16BE=function(e,t){e>>>=0;t||T(e,2,this.length);return this[e]<<8|this[e+1]};t.prototype.readUInt32LE=function(e,t){e>>>=0;t||T(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};t.prototype.readUInt32BE=function(e,t){e>>>=0;t||T(e,4,this.length);return this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};t.prototype.readIntLE=function(e,t,n){e>>>=0;t>>>=0;n||T(e,t,this.length);var r=this[e],u=1,f=0;while(++f<t&&(u*=256))r+=this[e+f]*u;u*=128;r>=u&&(r-=Math.pow(2,8*t));return r};t.prototype.readIntBE=function(e,t,n){e>>>=0;t>>>=0;n||T(e,t,this.length);var r=t,u=1,f=this[e+--r];while(r>0&&(u*=256))f+=this[e+--r]*u;u*=128;f>=u&&(f-=Math.pow(2,8*t));return f};t.prototype.readInt8=function(e,t){e>>>=0;t||T(e,1,this.length);if(!(this[e]&128))return this[e];return(255-this[e]+1)*-1};t.prototype.readInt16LE=function(e,t){e>>>=0;t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};t.prototype.readInt16BE=function(e,t){e>>>=0;t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};t.prototype.readInt32LE=function(e,t){e>>>=0;t||T(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};t.prototype.readInt32BE=function(e,t){e>>>=0;t||T(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};t.prototype.readFloatLE=function(e,t){e>>>=0;t||T(e,4,this.length);return u.read(this,e,!0,23,4)};t.prototype.readFloatBE=function(e,t){e>>>=0;t||T(e,4,this.length);return u.read(this,e,!1,23,4)};t.prototype.readDoubleLE=function(e,t){e>>>=0;t||T(e,8,this.length);return u.read(this,e,!0,52,8)};t.prototype.readDoubleBE=function(e,t){e>>>=0;t||T(e,8,this.length);return u.read(this,e,!1,52,8)};function C(e,n,r,u,f,i){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>f||n<i)throw new RangeError('"value" argument is out of bounds');if(r+u>e.length)throw new RangeError('Index out of range')}t.prototype.writeUIntLE=function(e,t,n,r){e=+e;t>>>=0;n>>>=0;if(!r){var u=Math.pow(2,8*n)-1;C(this,e,t,n,u,0)}var f=1,i=0;this[t]=e&255;while(++i<n&&(f*=256))this[t+i]=e/f&255;return t+n};t.prototype.writeUIntBE=function(e,t,n,r){e=+e;t>>>=0;n>>>=0;if(!r){var u=Math.pow(2,8*n)-1;C(this,e,t,n,u,0)}var f=n-1,i=1;this[t+f]=e&255;while(--f>=0&&(i*=256))this[t+f]=e/i&255;return t+n};t.prototype.writeUInt8=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,1,255,0);this[t]=e&255;return t+1};t.prototype.writeUInt16LE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,2,65535,0);this[t]=e&255;this[t+1]=e>>>8;return t+2};t.prototype.writeUInt16BE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,2,65535,0);this[t]=e>>>8;this[t+1]=e&255;return t+2};t.prototype.writeUInt32LE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,4,4294967295,0);this[t+3]=e>>>24;this[t+2]=e>>>16;this[t+1]=e>>>8;this[t]=e&255;return t+4};t.prototype.writeUInt32BE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,4,4294967295,0);this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=e&255;return t+4};t.prototype.writeIntLE=function(e,t,n,r){e=+e;t>>>=0;if(!r){var u=Math.pow(2,8*n-1);C(this,e,t,n,u-1,-u)}var f=0,i=1,d=0;this[t]=e&255;while(++f<n&&(i*=256))e<0&&d===0&&this[t+f-1]!==0&&(d=1),this[t+f]=(e/i>>0)-d&255;return t+n};t.prototype.writeIntBE=function(e,t,n,r){e=+e;t>>>=0;if(!r){var u=Math.pow(2,8*n-1);C(this,e,t,n,u-1,-u)}var f=n-1,i=1,d=0;this[t+f]=e&255;while(--f>=0&&(i*=256))e<0&&d===0&&this[t+f+1]!==0&&(d=1),this[t+f]=(e/i>>0)-d&255;return t+n};t.prototype.writeInt8=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,1,127,-128);e<0&&(e=255+e+1);this[t]=e&255;return t+1};t.prototype.writeInt16LE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,2,32767,-32768);this[t]=e&255;this[t+1]=e>>>8;return t+2};t.prototype.writeInt16BE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,2,32767,-32768);this[t]=e>>>8;this[t+1]=e&255;return t+2};t.prototype.writeInt32LE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,4,2147483647,-2147483648);this[t]=e&255;this[t+1]=e>>>8;this[t+2]=e>>>16;this[t+3]=e>>>24;return t+4};t.prototype.writeInt32BE=function(e,t,n){e=+e;t>>>=0;n||C(this,e,t,4,2147483647,-2147483648);e<0&&(e=4294967295+e+1);this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=e&255;return t+4};function O(e,t,n,r,u,f){if(n+r>e.length)throw new RangeError('Index out of range');if(n<0)throw new RangeError('Index out of range')}function U(e,t,n,r,f){t=+t;n>>>=0;f||O(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38);u.write(e,t,n,r,23,4);return n+4}t.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)};t.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)};function D(e,t,n,r,f){t=+t;n>>>=0;f||O(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308);u.write(e,t,n,r,52,8);return n+8}t.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)};t.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)};t.prototype.copy=function(e,n,r,u){if(!t.isBuffer(e))throw new TypeError('argument should be a Buffer');r||(r=0);!u&&u!==0&&(u=this.length);n>=e.length&&(n=e.length);n||(n=0);u>0&&u<r&&(u=r);if(u===r)return 0;if(e.length===0||this.length===0)return 0;if(n<0){throw new RangeError('targetStart out of bounds')}if(r<0||r>=this.length)throw new RangeError('Index out of range');if(u<0)throw new RangeError('sourceEnd out of bounds');u>this.length&&(u=this.length);e.length-n<u-r&&(u=e.length-n+r);var f=u-r;if(this===e&&typeof Uint8Array.prototype.copyWithin==='function')this.copyWithin(n,r,u);else if(this===e&&r<n&&n<u){for(var i=f-1;i>=0;--i)e[i+n]=this[i+r]}else Uint8Array.prototype.set.call(e,this.subarray(r,u),n);return f};t.prototype.fill=function(e,n,r,u){if(typeof e==='string'){typeof n==='string'?(u=n,n=0,r=this.length):typeof r==='string'&&(u=r,r=this.length);if(u!==void 0&&typeof u!=='string'){throw new TypeError('encoding must be a string')}if(typeof u==='string'&&!t.isEncoding(u)){throw new TypeError('Unknown encoding: '+u)}if(e.length===1){var f=e.charCodeAt(0);(u==='utf8'&&f<128||u==='latin1')&&(e=f)}}else typeof e==='number'&&(e&=255);if(n<0||this.length<n||this.length<r){throw new RangeError('Out of range index')}if(r<=n){return this}n>>>=0;r=r===void 0?this.length:r>>>0;e||(e=0);var i;if(typeof e==='number'){for(i=n;i<r;++i)this[i]=e}else{var d=t.isBuffer(e)?e:t.from(e,u),o=d.length;if(o===0){throw new TypeError('The value "'+e+'" is invalid for argument "value"')}for(i=0;i<r-n;++i)this[i+n]=d[i%o]}return this};var F=/[^+/0-9A-Za-z-_]/g;function W(e){e=e.split('=')[0];e=e.trim().replace(F,'');if(e.length<2)return'';while(e.length%4!==0)e+='=';return e}function J(e){if(e<16)return'0'+e.toString(16);return e.toString(16)}function H(e,t){t=t||1/0;var n,r=e.length,u=null,f=[];for(var i=0;i<r;++i){n=e.charCodeAt(i);if(n>55295&&n<57344){if(!u){if(n>56319){(t-=3)>-1&&f.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&f.push(239,191,189);continue}u=n;continue}if(n<56320){(t-=3)>-1&&f.push(239,191,189);u=n;continue}n=(u-55296<<10|n-56320)+65536}else u&&((t-=3)>-1&&f.push(239,191,189));u=null;if(n<128){if((t-=1)<0)break;f.push(n)}else if(n<2048){if((t-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else{throw new Error('Invalid code point')}}return f}function K(e){var t=[];for(var n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function X(e,t){var n,r,u,f=[];for(var i=0;i<e.length;++i){if((t-=2)<0)break;n=e.charCodeAt(i);r=n>>8;u=n%256;f.push(u);f.push(r)}return f}function Z(e){return r.toByteArray(W(e))}function V(e,t,n,r){for(var u=0;u<r;++u){if(u+n>=t.length||u>=e.length)break;t[u+n]=e[u]}return u}function Y(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Q(e){return e!==e}}).call(this,e("buffer").Buffer)},{"base64-js":1,"buffer":3,"ieee754":6}],4:[function(e,t,n){(function(e){function t(e){if(Array.isArray){return Array.isArray(e)}return h(e)==='[object Array]'}n.isArray=t;function r(e){return typeof e==='boolean'}n.isBoolean=r;function u(e){return e===null}n.isNull=u;function f(e){return e==null}n.isNullOrUndefined=f;function i(e){return typeof e==='number'}n.isNumber=i;function d(e){return typeof e==='string'}n.isString=d;function o(e){return typeof e==='symbol'}n.isSymbol=o;function c(e){return e===void 0}n.isUndefined=c;function a(e){return h(e)==='[object RegExp]'}n.isRegExp=a;function l(e){return typeof e==='object'&&e!==null}n.isObject=l;function s(e){return h(e)==='[object Date]'}n.isDate=s;function b(e){return h(e)==='[object Error]'||e instanceof Error}n.isError=b;function p(e){return typeof e==='function'}n.isFunction=p;function m(e){return e===null||typeof e==='boolean'||typeof e==='number'||typeof e==='string'||typeof e==='symbol'||typeof e==='undefined'}n.isPrimitive=m;n.isBuffer=e.isBuffer;function h(e){return Object.prototype.toString.call(e)}}).call(this,{"isBuffer":e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":8}],5:[function(e,t,n){var r=Object.create||I,u=Object.keys||A,f=Function.prototype.bind||M;function i(){(!this._events||!Object.prototype.hasOwnProperty.call(this,'_events'))&&(this._events=r(null),this._eventsCount=0);this._maxListeners=this._maxListeners||void 0}t.exports=i;i.EventEmitter=i;i.prototype._events=void 0;i.prototype._maxListeners=void 0;var d=10,o;try{var c={};Object.defineProperty&&Object.defineProperty(c,'x',{value:0});o=c.x===0}catch(e){o=!1};o?Object.defineProperty(i,'defaultMaxListeners',{enumerable:!0,get:function(){return d},set:function(e){if(typeof e!=='number'||e<0||e!==e)throw new TypeError('"defaultMaxListeners" must be a positive number');d=e}}):(i.defaultMaxListeners=d);i.prototype.setMaxListeners=function(e){if(typeof e!=='number'||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');this._maxListeners=e;return this};function a(e){if(e._maxListeners===void 0)return i.defaultMaxListeners;return e._maxListeners}i.prototype.getMaxListeners=function(){return a(this)};function l(e,t,n){if(t)e.call(n);else{var r=e.length,u=S(e,r);for(var f=0;f<r;++f)u[f].call(n)}}function s(e,t,n,r){if(t)e.call(n,r);else{var u=e.length,f=S(e,u);for(var i=0;i<u;++i)f[i].call(n,r)}}function b(e,t,n,r,u){if(t)e.call(n,r,u);else{var f=e.length,i=S(e,f);for(var d=0;d<f;++d)i[d].call(n,r,u)}}function p(e,t,n,r,u,f){if(t)e.call(n,r,u,f);else{var i=e.length,d=S(e,i);for(var o=0;o<i;++o)d[o].call(n,r,u,f)}}function m(e,t,n,r){if(t)e.apply(n,r);else{var u=e.length,f=S(e,u);for(var i=0;i<u;++i)f[i].apply(n,r)}}i.prototype.emit=function(e){var t,n,r,u,f,i,d=e==='error';i=this._events;if(i)d=d&&i.error==null;else if(!d)return!1;if(d){arguments.length>1&&(t=arguments[1]);if(t instanceof Error){throw t}else{var o=new Error('Unhandled "error" event. ('+t+')');o.context=t;throw o}return!1}n=i[e];if(!n)return!1;var c=typeof n==='function';r=arguments.length;switch(r){case 1:l(n,c,this);break;case 2:s(n,c,this,arguments[1]);break;case 3:b(n,c,this,arguments[1],arguments[2]);break;case 4:p(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:u=new Array(r-1);for(f=1;f<r;f++)u[f-1]=arguments[f];m(n,c,this,u)}return!0};function h(e,t,n,u){var f,i,d;if(typeof n!=='function')throw new TypeError('"listener" argument must be a function');i=e._events;i?(i.newListener&&(e.emit('newListener',t,n.listener?n.listener:n),i=e._events),d=i[t]):(i=e._events=r(null),e._eventsCount=0);if(!d)d=i[t]=n,++e._eventsCount;else{typeof d==='function'?(d=i[t]=u?[n,d]:[d,n]):(u?d.unshift(n):d.push(n));if(!d.warned){f=a(e);if(f&&f>0&&d.length>f){d.warned=!0;var o=new Error('Possible EventEmitter memory leak detected. '+d.length+' "'+String(t)+'" listeners '+'added. Use emitter.setMaxListeners() to '+'increase limit.');o.name='MaxListenersExceededWarning';o.emitter=e;o.type=t;o.count=d.length;typeof console==='object'&&console.warn&&console.warn('%s: %s',o.name,o.message)}}}return e}i.prototype.addListener=function(e,t){return h(this,e,t,!1)};i.prototype.on=i.prototype.addListener;i.prototype.prependListener=function(e,t){return h(this,e,t,!0)};function g(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=!0;switch(arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:var t=new Array(arguments.length);for(var e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},u=f.call(g,r);u.listener=n;r.wrapFn=u;return u}i.prototype.once=function(e,t){if(typeof t!=='function')throw new TypeError('"listener" argument must be a function');this.on(e,y(this,e,t));return this};i.prototype.prependOnceListener=function(e,t){if(typeof t!=='function')throw new TypeError('"listener" argument must be a function');this.prependListener(e,y(this,e,t));return this};i.prototype.removeListener=function(e,t){var n,u,f,i,d;if(typeof t!=='function')throw new TypeError('"listener" argument must be a function');u=this._events;if(!u)return this;n=u[e];if(!n)return this;if(n===t||n.listener===t)--this._eventsCount===0?(this._events=r(null)):(delete u[e],u.removeListener&&this.emit('removeListener',e,n.listener||t));else if(typeof n!=='function'){f=-1;for(i=n.length-1;i>=0;i--){if(n[i]===t||n[i].listener===t){d=n[i].listener;f=i;break}}if(f<0)return this;f===0?n.shift():v(n,f);n.length===1&&(u[e]=n[0]);u.removeListener&&this.emit('removeListener',e,d||t)}return this};i.prototype.removeAllListeners=function(e){var t,n,f;n=this._events;if(!n)return this;if(!n.removeListener){arguments.length===0?(this._events=r(null),this._eventsCount=0):n[e]&&(--this._eventsCount===0?(this._events=r(null)):delete n[e]);return this}if(arguments.length===0){var i=u(n),d;for(f=0;f<i.length;++f){d=i[f];if(d==='removeListener')continue;this.removeAllListeners(d)}this.removeAllListeners('removeListener');this._events=r(null);this._eventsCount=0;return this}t=n[e];if(typeof t==='function')this.removeListener(e,t);else if(t){for(f=t.length-1;f>=0;f--)this.removeListener(e,t[f])}return this};function _(e,t,n){var r=e._events;if(!r)return[];var u=r[t];if(!u)return[];if(typeof u==='function')return n?[u.listener||u]:[u];return n?x(u):S(u,u.length)}i.prototype.listeners=function(e){return _(this,e,!0)};i.prototype.rawListeners=function(e){return _(this,e,!1)};i.listenerCount=function(e,t){if(typeof e.listenerCount==='function'){return e.listenerCount(t)}else{return w.call(e,t)}};i.prototype.listenerCount=w;function w(e){var t=this._events;if(t){var n=t[e];if(typeof n==='function'){return 1}else if(n){return n.length}}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function v(e,t){for(var n=t,r=n+1,u=e.length;r<u;n+=1, r+=1)e[n]=e[r];e.pop()}function S(e,t){var n=new Array(t);for(var r=0;r<t;++r)n[r]=e[r];return n}function x(e){var t=new Array(e.length);for(var n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function I(e){var t=function(){};t.prototype=e;return new t}function A(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n}function M(e){var t=this;return function(){return t.apply(e,arguments)}}},{}],6:[function(e,t,n){n.read=function(e,t,n,r,u){var f,i,d=u*8-r-1,o=(1<<d)-1,c=o>>1,a=-7,l=n?u-1:0,s=n?-1:1,b=e[t+l];l+=s;f=b&(1<<-a)-1;b>>=-a;a+=d;for(;a>0;f=f*256+e[t+l], l+=s, a-=8);;i=f&(1<<-a)-1;f>>=-a;a+=r;for(;a>0;i=i*256+e[t+l], l+=s, a-=8);;if(f===0)f=1-c;else if(f===o){return i?NaN:(b?-1:1)*1/0}else i+=Math.pow(2,r),f-=c;return(b?-1:1)*i*Math.pow(2,f-r)};n.write=function(e,t,n,r,u,f){var i,d,o,c=f*8-u-1,a=(1<<c)-1,l=a>>1,s=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=r?0:f-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);isNaN(t)||t===1/0?(d=isNaN(t)?1:0,i=a):(i=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-i))<1&&(i--,o*=2),i+l>=1?(t+=s/o):(t+=s*Math.pow(2,1-l)),t*o>=2&&(i++,o/=2),i+l>=a?(d=0,i=a):i+l>=1?(d=(t*o-1)*Math.pow(2,u),i+=l):(d=t*Math.pow(2,l-1)*Math.pow(2,u),i=0));for(;u>=8;e[n+b]=d&255, b+=p, d/=256, u-=8);;i=i<<u|d;c+=u;for(;c>0;e[n+b]=i&255, b+=p, i/=256, c-=8);;e[n+b-p]|=m*128}},{}],7:[function(e,t,n){typeof Object.create==='function'?(t.exports=function(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}):(t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype;e.prototype=new n;e.prototype.constructor=e})},{}],8:[function(e,t,n){t.exports=function(e){return e!=null&&(r(e)||u(e)||!!e._isBuffer)};function r(e){return!!e.constructor&&typeof e.constructor.isBuffer==='function'&&e.constructor.isBuffer(e)}function u(e){return typeof e.readFloatLE==='function'&&typeof e.slice==='function'&&r(e.slice(0,0))}},{}],9:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return r.call(e)=='[object Array]'}},{}],10:[function(e,t,n){(function(e){"use strict";!e.version||e.version.indexOf('v0.')===0||e.version.indexOf('v1.')===0&&e.version.indexOf('v1.8.')!==0?(t.exports={nextTick:n}):(t.exports=e);function n(t,n,r,u){if(typeof t!=='function'){throw new TypeError('"callback" argument must be a function')}var f=arguments.length,i,d;switch(f){case 0:;case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,u)});default:i=new Array(f-1);d=0;while(d<i.length)i[d++]=arguments[d];return e.nextTick(function(){t.apply(null,i)})}}}).call(this,e('_process'))},{"_process":11}],11:[function(e,t,n){var r=t.exports={},u,f;function i(){throw new Error('setTimeout has not been defined')}function d(){throw new Error('clearTimeout has not been defined')}!function(){try{typeof setTimeout==='function'?(u=setTimeout):(u=i)}catch(e){u=i};try{typeof clearTimeout==='function'?(f=clearTimeout):(f=d)}catch(e){f=d}}();function o(e){if(u===setTimeout){return setTimeout(e,0)}if((u===i||!u)&&setTimeout){u=setTimeout;return setTimeout(e,0)}try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function c(e){if(f===clearTimeout){return clearTimeout(e)}if((f===d||!f)&&clearTimeout){f=clearTimeout;return clearTimeout(e)}try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}var a=[],l=!1,s,b=-1;function p(){if(!l||!s){return}l=!1;s.length?(a=s.concat(a)):(b=-1);a.length&&m()}function m(){if(l){return}var e=o(p);l=!0;var t=a.length;while(t){s=a;a=[];while(++b<t)s&&s[b].run();b=-1;t=a.length}s=null;l=!1;c(e)}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n]}a.push(new h(e,t));a.length===1&&!l&&o(m)};function h(e,t){this.fun=e;this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)};r.title='browser';r.browser=!0;r.env={};r.argv=[];r.version='';r.versions={};function g(){}r.on=g;r.addListener=g;r.once=g;r.off=g;r.removeListener=g;r.removeAllListeners=g;r.emit=g;r.prependListener=g;r.prependOnceListener=g;r.listeners=function(e){return[]};r.binding=function(e){throw new Error('process.binding is not supported')};r.cwd=function(){return'/'};r.chdir=function(e){throw new Error('process.chdir is not supported')};r.umask=function(){return 0}},{}],12:[function(e,t,n){t.exports=e('./lib/_stream_duplex.js')},{"./lib/_stream_duplex.js":13}],13:[function(e,t,n){"use strict";var r=e('process-nextick-args'),u=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=l;var f=e('core-util-is');f.inherits=e('inherits');var i=e('./_stream_readable'),d=e('./_stream_writable');f.inherits(l,i);function l(e){if(!(this instanceof l))return new l(e);i.call(this,e);d.call(this,e);e&&e.readable===!1&&(this.readable=!1);e&&e.writable===!1&&(this.writable=!1);this.allowHalfOpen=!0;e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1);this.once('end',s)}Object.defineProperty(l.prototype,'writableHighWaterMark',{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function s(){if(this.allowHalfOpen||this._writableState.ended)return;r.nextTick(b,this)}function b(e){e.end()}Object.defineProperty(l.prototype,'destroyed',{get:function(){if(this._readableState===void 0||this._writableState===void 0){return!1}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===void 0||this._writableState===void 0){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});l.prototype._destroy=function(e,t){this.push(null);this.end();r.nextTick(t,e)}},{"./_stream_readable":15,"./_stream_writable":17,"core-util-is":4,"inherits":7,"process-nextick-args":10}],14:[function(e,t,n){"use strict";t.exports=f;var r=e('./_stream_transform'),u=e('core-util-is');u.inherits=e('inherits');u.inherits(f,r);function f(e){if(!(this instanceof f))return new f(e);r.call(this,e)}f.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":16,"core-util-is":4,"inherits":7}],15:[function(e,t,n){(function(n,r){"use strict";var u=e('process-nextick-args');t.exports=S;var f=e('isarray'),i;S.ReadableState=v;e('events').EventEmitter;var d=function(e,t){return e.listeners(t).length},o=e('./internal/streams/stream'),c=e('safe-buffer').Buffer,a=r.Uint8Array||function(){};function l(e){return c.from(e)}function s(e){return c.isBuffer(e)||e instanceof a}var b=e('core-util-is');b.inherits=e('inherits');var p=e('util'),m=void 0;p&&p.debuglog?(m=p.debuglog('stream')):(m=function(){});var h=e('./internal/streams/BufferList'),g=e('./internal/streams/destroy'),y;b.inherits(S,o);var _=['error','close','destroy','pause','resume'];function w(e,t,n){if(typeof e.prependListener==='function')return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):f(e._events[t])?e._events[t].unshift(n):(e._events[t]=[n,e._events[t]])}function v(t,n){i=i||e('./_stream_duplex');t=t||{};var r=n instanceof i;this.objectMode=!!t.objectMode;r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var u=t.highWaterMark,f=t.readableHighWaterMark,d=this.objectMode?16:16384;u||u===0?(this.highWaterMark=u):r&&(f||f===0)?(this.highWaterMark=f):(this.highWaterMark=d);this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new h;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=t.defaultEncoding||'utf8';this.awaitDrain=0;this.readingMore=!1;this.decoder=null;this.encoding=null;t.encoding&&(y||(y=e('string_decoder/').StringDecoder),this.decoder=new y(t.encoding),this.encoding=t.encoding)}function S(t){i=i||e('./_stream_duplex');if(!(this instanceof S))return new S(t);this._readableState=new v(t,this);this.readable=!0;t&&(typeof t.read==='function'&&(this._read=t.read),typeof t.destroy==='function'&&(this._destroy=t.destroy));o.call(this)}Object.defineProperty(S.prototype,'destroyed',{get:function(){if(this._readableState===void 0){return!1}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});S.prototype.destroy=g.destroy;S.prototype._undestroy=g.undestroy;S.prototype._destroy=function(e,t){this.push(null);t(e)};S.prototype.push=function(e,t){var n=this._readableState,r;n.objectMode?(r=!0):(typeof e==='string'&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=c.from(e,t),t=''),r=!0));return x(this,e,t,!1,r)};S.prototype.unshift=function(e){return x(this,e,null,!0,!1)};function x(e,t,n,r,u){var f=e._readableState;if(t===null)f.reading=!1,E(e,f);else{var i;u||(i=A(f,t));i?e.emit('error',i):f.objectMode||t&&t.length>0?(typeof t!=='string'&&!f.objectMode&&Object.getPrototypeOf(t)!==c.prototype&&(t=l(t)),r?(f.endEmitted?e.emit('error',new Error('stream.unshift() after end event')):I(e,f,t,!0)):f.ended?e.emit('error',new Error('stream.push() after EOF')):(f.reading=!1,f.decoder&&!n?(t=f.decoder.write(t),f.objectMode||t.length!==0?I(e,f,t,!1):z(e,f)):I(e,f,t,!1))):r||(f.reading=!1)}return M(f)}function I(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit('data',n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&L(e));z(e,t)}function A(e,t){var n;!s(t)&&typeof t!=='string'&&t!==void 0&&!e.objectMode&&(n=new TypeError('Invalid non-string/buffer chunk'));return n}function M(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1};S.prototype.setEncoding=function(t){y||(y=e('string_decoder/').StringDecoder);this._readableState.decoder=new y(t);this._readableState.encoding=t;return this};var k=8388608;function B(e){e>=k?(e=k):(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++);return e}function q(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}e>t.highWaterMark&&(t.highWaterMark=B(e));if(e<=t.length)return e;if(!t.ended){t.needReadable=!0;return 0}return t.length}S.prototype.read=function(e){m('read',e);e=parseInt(e,10);var t=this._readableState,n=e;e!==0&&(t.emittedReadable=!1);if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){m('read: emitReadable',t.length,t.ended);t.length===0&&t.ended?J(this):L(this);return null}e=q(e,t);if(e===0&&t.ended){t.length===0&&J(this);return null}var r=t.needReadable;m('need readable',r);(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,m('length less than watermark',r));t.ended||t.reading?(r=!1,m('reading or ended',r)):r&&(m('do read'),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=q(n,t)));var u;e>0?(u=U(e,t)):(u=null);u===null?(t.needReadable=!0,e=0):(t.length-=e);t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&J(this));u!==null&&this.emit('data',u);return u};function E(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0;L(e)}function L(e){var t=e._readableState;t.needReadable=!1;t.emittedReadable||(m('emitReadable',t.flowing),t.emittedReadable=!0,t.sync?u.nextTick(j,e):j(e))}function j(e){m('emit readable');e.emit('readable');O(e)}function z(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(R,e,t))}function R(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){m('maybeReadMore read 0');e.read(0);if(n===t.length)break;else n=t.length}t.readingMore=!1}S.prototype._read=function(e){this.emit('error',new Error('_read() is not implemented'))};S.prototype.pipe=function(e,t){var r=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e);break}f.pipesCount+=1;m('pipe count=%d opts=%j',f.pipesCount,t);var i=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,o=i?a:v;f.endEmitted?u.nextTick(o):r.once('end',o);e.on('unpipe',c);function c(e,t){m('onunpipe');e===r&&(t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,b()))}function a(){m('onend');e.end()}var l=N(r);e.on('drain',l);var s=!1;function b(){m('cleanup');e.removeListener('close',y);e.removeListener('finish',_);e.removeListener('drain',l);e.removeListener('error',g);e.removeListener('unpipe',c);r.removeListener('end',a);r.removeListener('end',v);r.removeListener('data',h);s=!0;f.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var p=!1;r.on('data',h);function h(t){m('ondata');p=!1;var n=e.write(t);!1===n&&!p&&((f.pipesCount===1&&f.pipes===e||f.pipesCount>1&&K(f.pipes,e)!==-1)&&!s&&(m('false write response, pause',r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){m('onerror',t);v();e.removeListener('error',g);d(e,'error')===0&&e.emit('error',t)}w(e,'error',g);function y(){e.removeListener('finish',_);v()}e.once('close',y);function _(){m('onfinish');e.removeListener('close',y);v()}e.once('finish',_);function v(){m('unpipe');r.unpipe(e)}e.emit('pipe',r);f.flowing||(m('pipe resume'),r.resume());return e};function N(e){return function(){var t=e._readableState;m('pipeOnDrain',t.awaitDrain);t.awaitDrain&&t.awaitDrain--;t.awaitDrain===0&&d(e,'data')&&(t.flowing=!0,O(e))}}S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;e||(e=t.pipes);t.pipes=null;t.pipesCount=0;t.flowing=!1;e&&e.emit('unpipe',this,n);return this}if(!e){var r=t.pipes,u=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=!1;for(var f=0;f<u;f++)r[f].emit('unpipe',this,n);return this}var i=K(t.pipes,e);if(i===-1)return this;t.pipes.splice(i,1);t.pipesCount-=1;t.pipesCount===1&&(t.pipes=t.pipes[0]);e.emit('unpipe',this,n);return this};S.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t);if(e==='data')this._readableState.flowing!==!1&&this.resume();else if(e==='readable'){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&L(this):u.nextTick(P,this))}return n};S.prototype.addListener=S.prototype.on;function P(e){m('readable nexttick read 0');e.read(0)}S.prototype.resume=function(){var e=this._readableState;e.flowing||(m('resume'),e.flowing=!0,T(this,e));return this};function T(e,t){t.resumeScheduled||(t.resumeScheduled=!0,u.nextTick(C,e,t))}function C(e,t){t.reading||(m('resume read 0'),e.read(0));t.resumeScheduled=!1;t.awaitDrain=0;e.emit('resume');O(e);t.flowing&&!t.reading&&e.read(0)}S.prototype.pause=function(){m('call pause flowing=%j',this._readableState.flowing);!1!==this._readableState.flowing&&(m('pause'),this._readableState.flowing=!1,this.emit('pause'));return this};function O(e){var t=e._readableState;m('flow',t.flowing);while(t.flowing&&e.read()!==null);}S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on('end',function(){m('wrapped end');if(n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)});e.on('data',function(u){m('wrapped data');n.decoder&&(u=n.decoder.write(u));if(n.objectMode&&(u===null||u===void 0))return;else if(!n.objectMode&&(!u||!u.length))return;var f=t.push(u);f||(r=!0,e.pause())});for(var u in e)this[u]===void 0&&typeof e[u]==='function'&&(this[u]=function(t){return function(){return e[t].apply(e,arguments)}}(u));for(var f=0;f<_.length;f++)e.on(_[f],this.emit.bind(this,_[f]));this._read=function(t){m('wrapped _read',t);r&&(r=!1,e.resume())};return this};Object.defineProperty(S.prototype,'readableHighWaterMark',{enumerable:!1,get:function(){return this._readableState.highWaterMark}});S._fromList=U;function U(e,t){if(t.length===0)return null;var n;t.objectMode?(n=t.buffer.shift()):!e||e>=t.length?(t.decoder?(n=t.buffer.join('')):t.buffer.length===1?(n=t.buffer.head.data):(n=t.buffer.concat(t.length)),t.buffer.clear()):(n=D(e,t.buffer,t.decoder));return n}function D(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?(r=t.shift()):(r=n?F(e,t):W(e,t));return r}function F(e,t){var n=t.head,r=1,u=n.data;e-=u.length;while(n=n.next){var f=n.data,i=e>f.length?f.length:e;i===f.length?(u+=f):(u+=f.slice(0,e));e-=i;if(e===0){i===f.length?(++r,n.next?(t.head=n.next):(t.head=t.tail=null)):(t.head=n,n.data=f.slice(i));break}++r}t.length-=r;return u}function W(e,t){var n=c.allocUnsafe(e),r=t.head,u=1;r.data.copy(n);e-=r.data.length;while(r=r.next){var f=r.data,i=e>f.length?f.length:e;f.copy(n,n.length-e,0,i);e-=i;if(e===0){i===f.length?(++u,r.next?(t.head=r.next):(t.head=t.tail=null)):(t.head=r,r.data=f.slice(i));break}++u}t.length-=u;return n}function J(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,u.nextTick(H,t,e))}function H(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit('end'))}function K(e,t){for(var n=0,r=e.length;n<r;n++){if(e[n]===t)return n}return-1}}).call(this,e('_process'),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./_stream_duplex":13,"./internal/streams/BufferList":18,"./internal/streams/destroy":19,"./internal/streams/stream":20,"_process":11,"core-util-is":4,"events":5,"inherits":7,"isarray":9,"process-nextick-args":10,"safe-buffer":26,"string_decoder/":21,"util":2}],16:[function(e,t,n){"use strict";t.exports=i;var r=e('./_stream_duplex'),u=e('core-util-is');u.inherits=e('inherits');u.inherits(i,r);function f(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r){return this.emit('error',new Error('write callback called multiple times'))}n.writechunk=null;n.writecb=null;t!=null&&this.push(t);r(e);var u=this._readableState;u.reading=!1;(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);r.call(this,e);this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=!0;this._readableState.sync=!1;e&&(typeof e.transform==='function'&&(this._transform=e.transform),typeof e.flush==='function'&&(this._flush=e.flush));this.on('prefinish',d)}function d(){var e=this;typeof this._flush==='function'?this._flush(function(t,n){o(e,t,n)}):o(this,null,null)}i.prototype.push=function(e,t){this._transformState.needTransform=!1;return r.prototype.push.call(this,e,t)};i.prototype._transform=function(e,t,n){throw new Error('_transform() is not implemented')};i.prototype._write=function(e,t,n){var r=this._transformState;r.writecb=n;r.writechunk=e;r.writeencoding=t;if(!r.transforming){var u=this._readableState;(r.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}};i.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):(t.needTransform=!0)};i.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e);n.emit('close')})};function o(e,t,n){if(t)return e.emit('error',t);n!=null&&e.push(n);if(e._writableState.length)throw new Error('Calling transform done when ws.length != 0');if(e._transformState.transforming)throw new Error('Calling transform done when still transforming');return e.push(null)}},{"./_stream_duplex":13,"core-util-is":4,"inherits":7}],17:[function(e,t,n){(function(n,r,u){"use strict";var f=e('process-nextick-args');t.exports=w;function i(e){var t=this;this.next=null;this.entry=null;this.finish=function(){T(t,e)}}var d=!n.browser&&['v0.10','v0.9.'].indexOf(n.version.slice(0,5))>-1?u:f.nextTick,o;w.WritableState=y;var c=e('core-util-is');c.inherits=e('inherits');var a={deprecate:e('util-deprecate')},l=e('./internal/streams/stream'),s=e('safe-buffer').Buffer,b=r.Uint8Array||function(){};function p(e){return s.from(e)}function m(e){return s.isBuffer(e)||e instanceof b}var h=e('./internal/streams/destroy');c.inherits(w,l);function g(){}function y(t,n){o=o||e('./_stream_duplex');t=t||{};var r=n instanceof o;this.objectMode=!!t.objectMode;r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var u=t.highWaterMark,f=t.writableHighWaterMark,d=this.objectMode?16:16384;u||u===0?(this.highWaterMark=u):r&&(f||f===0)?(this.highWaterMark=f):(this.highWaterMark=d);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 c=t.decodeStrings===!1;this.decodeStrings=!c;this.defaultEncoding=t.defaultEncoding||'utf8';this.length=0;this.writing=!1;this.corked=0;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(e){B(n,e)};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 i(this)}y.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t};!function(){try{Object.defineProperty(y.prototype,'buffer',{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.",'DEP0003')})}catch(e){}}();var _;typeof Symbol==='function'&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==='function'?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){if(_.call(this,e))return!0;if(this!==w)return!1;return e&&e._writableState instanceof y}})):(_=function(e){return e instanceof this});function w(t){o=o||e('./_stream_duplex');if(!_.call(w,this)&&!(this instanceof o)){return new w(t)}this._writableState=new y(t,this);this.writable=!0;t&&(typeof t.write==='function'&&(this._write=t.write),typeof t.writev==='function'&&(this._writev=t.writev),typeof t.destroy==='function'&&(this._destroy=t.destroy),typeof t.final==='function'&&(this._final=t.final));l.call(this)}w.prototype.pipe=function(){this.emit('error',new Error('Cannot pipe, not readable'))};function v(e,t){var n=new Error('write after end');e.emit('error',n);f.nextTick(t,n)}function S(e,t,n,r){var u=!0,i=!1;n===null?(i=new TypeError('May not write null values to stream')):typeof n!=='string'&&n!==void 0&&!t.objectMode&&(i=new TypeError('Invalid non-string/buffer chunk'));i&&(e.emit('error',i),f.nextTick(r,i),u=!1);return u}w.prototype.write=function(e,t,n){var r=this._writableState,u=!1,f=!r.objectMode&&m(e);f&&!s.isBuffer(e)&&(e=p(e));typeof t==='function'&&(n=t,t=null);f?(t='buffer'):t||(t=r.defaultEncoding);typeof n!=='function'&&(n=g);r.ended?v(this,n):(f||S(this,r,e,n))&&(r.pendingcb++,u=I(this,r,f,e,t,n));return u};w.prototype.cork=function(){var e=this._writableState;e.corked++};w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&L(this,e))};w.prototype.setDefaultEncoding=function(e){typeof e==='string'&&(e=e.toLowerCase());if(!(['hex','utf8','utf-8','ascii','binary','base64','ucs2','ucs-2','utf16le','utf-16le','raw'].indexOf((e+'').toLowerCase())>-1))throw new TypeError('Unknown encoding: '+e);this._writableState.defaultEncoding=e;return this};function x(e,t,n){!e.objectMode&&e.decodeStrings!==!1&&typeof t==='string'&&(t=s.from(t,n));return t}Object.defineProperty(w.prototype,'writableHighWaterMark',{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I(e,t,n,r,u,f){if(!n){var i=x(t,r,u);r!==i&&(n=!0,u='buffer',r=i)}var d=t.objectMode?1:r.length;t.length+=d;var o=t.length<t.highWaterMark;o||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:u,isBuf:n,callback:f,next:null};c?(c.next=t.lastBufferedRequest):(t.bufferedRequest=t.lastBufferedRequest);t.bufferedRequestCount+=1}else A(e,t,!1,d,r,u,f);return o}function A(e,t,n,r,u,f,i){t.writelen=r;t.writecb=i;t.writing=!0;t.sync=!0;n?e._writev(u,t.onwrite):e._write(u,f,t.onwrite);t.sync=!1}function M(e,t,n,r,u){--t.pendingcb;n?(f.nextTick(u,r),f.nextTick(N,e,t),e._writableState.errorEmitted=!0,e.emit('error',r)):(u(r),e._writableState.errorEmitted=!0,e.emit('error',r),N(e,t))}function k(e){e.writing=!1;e.writecb=null;e.length-=e.writelen;e.writelen=0}function B(e,t){var n=e._writableState,r=n.sync,u=n.writecb;k(n);if(t)M(e,n,r,t,u);else{var f=j(n);!f&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&L(e,n);r?d(q,e,n,f,u):q(e,n,f,u)}}function q(e,t,n,r){n||E(e,t);t.pendingcb--;r();N(e,t)}function E(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit('drain'))}function L(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,u=new Array(r),f=t.corkedRequestsFree;f.entry=n;var d=0,o=!0;while(n)u[d]=n,n.isBuf||(o=!1),n=n.next,d+=1;u.allBuffers=o;A(e,t,!0,t.length,u,'',f.finish);t.pendingcb++;t.lastBufferedRequest=null;f.next?(t.corkedRequestsFree=f.next,f.next=null):(t.corkedRequestsFree=new i(t));t.bufferedRequestCount=0}else{while(n){var c=n.chunk,a=n.encoding,l=n.callback,s=t.objectMode?1:c.length;A(e,t,!1,s,c,a,l);n=n.next;t.bufferedRequestCount--;if(t.writing){break}}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n;t.bufferProcessing=!1}w.prototype._write=function(e,t,n){n(new Error('_write() is not implemented'))};w.prototype._writev=null;w.prototype.end=function(e,t,n){var r=this._writableState;typeof e==='function'?(n=e,e=null,t=null):typeof t==='function'&&(n=t,t=null);e!==null&&e!==void 0&&this.write(e,t);r.corked&&(r.corked=1,this.uncork());!r.ending&&!r.finished&&P(this,r,n)};function j(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function z(e,t){e._final(function(n){t.pendingcb--;n&&e.emit('error',n);t.prefinished=!0;e.emit('prefinish');N(e,t)})}function R(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==='function'?(t.pendingcb++,t.finalCalled=!0,f.nextTick(z,e,t)):(t.prefinished=!0,e.emit('prefinish')))}function N(e,t){var n=j(t);n&&(R(e,t),t.pendingcb===0&&(t.finished=!0,e.emit('finish')));return n}function P(e,t,n){t.ending=!0;N(e,t);n&&(t.finished?f.nextTick(n):e.once('finish',n));t.ended=!0;e.writable=!1}function T(e,t,n){var r=e.entry;e.entry=null;while(r){var u=r.callback;t.pendingcb--;u(n);r=r.next}t.corkedRequestsFree?(t.corkedRequestsFree.next=e):(t.corkedRequestsFree=e)}Object.defineProperty(w.prototype,'destroyed',{get:function(){if(this._writableState===void 0){return!1}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});w.prototype.destroy=h.destroy;w.prototype._undestroy=h.undestroy;w.prototype._destroy=function(e,t){this.end();t(e)}}).call(this,e('_process'),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},e("timers").setImmediate)},{"./_stream_duplex":13,"./internal/streams/destroy":19,"./internal/streams/stream":20,"_process":11,"core-util-is":4,"inherits":7,"process-nextick-args":10,"safe-buffer":26,"timers":29,"util-deprecate":30}],18:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var u=e('safe-buffer').Buffer,f=e('util');function i(e,t,n){e.copy(t,n)}t.exports=function(){function e(){r(this,e);this.head=null;this.tail=null;this.length=0}e.prototype.push=function(e){var t={data:e,next:null};this.length>0?(this.tail.next=t):(this.head=t);this.tail=t;++this.length};e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t);this.head=t;++this.length};e.prototype.shift=function(){if(this.length===0)return;var e=this.head.data;this.length===1?(this.head=this.tail=null):(this.head=this.head.next);--this.length;return e};e.prototype.clear=function(){this.head=this.tail=null;this.length=0};e.prototype.join=function(e){if(this.length===0)return'';var t=this.head,n=''+t.data;while(t=t.next)n+=e+t.data;return n};e.prototype.concat=function(e){if(this.length===0)return u.alloc(0);if(this.length===1)return this.head.data;var t=u.allocUnsafe(e>>>0),n=this.head,r=0;while(n)i(n.data,t,r),r+=n.data.length,n=n.next;return t};return e}();f&&f.inspect&&f.inspect.custom&&(t.exports.prototype[f.inspect.custom]=function(){var e=f.inspect({length:this.length});return this.constructor.name+' '+e})},{"safe-buffer":26,"util":2}],19:[function(e,t,n){"use strict";var r=e('process-nextick-args');function u(e,t){var n=this,u=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;if(u||f){t?t(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&r.nextTick(i,this,e);return this}this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(e||null,function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)});return this}function f(){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.finished=!1,this._writableState.errorEmitted=!1)}function i(e,t){e.emit('error',t)}t.exports={destroy:u,undestroy:f}},{"process-nextick-args":10}],20:[function(e,t,n){t.exports=e('events').EventEmitter},{"events":5}],21:[function(e,t,n){"use strict";var r=e('safe-buffer').Buffer,u=r.isEncoding||function(e){e=''+e;switch(e&&e.toLowerCase()){case 'hex':;case 'utf8':;case 'utf-8':;case 'ascii':;case 'binary':;case 'base64':;case 'ucs2':;case 'ucs-2':;case 'utf16le':;case 'utf-16le':;case 'raw':return!0;default:return!1}};function f(e){if(!e)return'utf8';var t;while(!0){switch(e){case 'utf8':;case 'utf-8':return'utf8';case 'ucs2':;case 'ucs-2':;case 'utf16le':;case 'utf-16le':return'utf16le';case 'latin1':;case 'binary':return'latin1';case 'base64':;case 'ascii':;case 'hex':return e;default:if(t)return;e=(''+e).toLowerCase();t=!0}}}function i(e){var t=f(e);if(typeof t!=='string'&&(r.isEncoding===u||!u(e)))throw new Error('Unknown encoding: '+e);return t||e}n.StringDecoder=d;function d(e){this.encoding=i(e);var t;switch(this.encoding){case 'utf16le':this.text=p;this.end=m;t=4;break;case 'utf8':this.fillLast=l;t=4;break;case 'base64':this.text=h;this.end=g;t=3;break;default:this.write=y;this.end=_;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=r.allocUnsafe(t)}d.prototype.write=function(e){if(e.length===0)return'';var t,n;if(this.lastNeed){t=this.fillLast(e);if(t===void 0)return'';n=this.lastNeed;this.lastNeed=0}else n=0;if(n<e.length)return t?t+this.text(e,n):this.text(e,n);return t||''};d.prototype.end=b;d.prototype.text=s;d.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function o(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r<n)return 0;var u=o(t[r]);if(u>=0){u>0&&(e.lastNeed=u-1);return u}if(--r<n||u===-2)return 0;u=o(t[r]);if(u>=0){u>0&&(e.lastNeed=u-2);return u}if(--r<n||u===-2)return 0;u=o(t[r]);if(u>=0){u>0&&(u===2?(u=0):(e.lastNeed=u-3));return u}return 0}function a(e,t,n){if((t[0]&192)!==128){e.lastNeed=0;return'\ufffd'}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return'\ufffd'}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return'\ufffd'}}}}function l(e){var t=this.lastTotal-this.lastNeed,n=a(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function s(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString('utf8',t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);e.copy(this.lastChar,0,r);return e.toString('utf8',t,r)}function b(e){var t=e&&e.length?this.write(e):'';if(this.lastNeed)return t+'\ufffd';return t}function p(e,t){if((e.length-t)%2===0){var n=e.toString('utf16le',t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return n.slice(0,-1)}}return n}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString('utf16le',t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):'';if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString('utf16le',0,n)}return t}function h(e,t){var n=(e.length-t)%3;if(n===0)return e.toString('base64',t);this.lastNeed=3-n;this.lastTotal=3;n===1?(this.lastChar[0]=e[e.length-1]):(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]);return e.toString('base64',t,e.length-n)}function g(e){var t=e&&e.length?this.write(e):'';if(this.lastNeed)return t+this.lastChar.toString('base64',0,3-this.lastNeed);return t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):''}},{"safe-buffer":26}],22:[function(e,t,n){t.exports=e('./readable').PassThrough},{"./readable":23}],23:[function(e,t,n){n=t.exports=e('./lib/_stream_readable.js');n.Stream=n;n.Readable=n;n.Writable=e('./lib/_stream_writable.js');n.Duplex=e('./lib/_stream_duplex.js');n.Transform=e('./lib/_stream_transform.js');n.PassThrough=e('./lib/_stream_passthrough.js')},{"./lib/_stream_duplex.js":13,"./lib/_stream_passthrough.js":14,"./lib/_stream_readable.js":15,"./lib/_stream_transform.js":16,"./lib/_stream_writable.js":17}],24:[function(e,t,n){t.exports=e('./readable').Transform},{"./readable":23}],25:[function(e,t,n){t.exports=e('./lib/_stream_writable.js')},{"./lib/_stream_writable.js":17}],26:[function(e,t,n){var r=e('buffer'),u=r.Buffer;function f(e,t){for(var n in e)t[n]=e[n]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?(t.exports=r):(f(r,n),n.Buffer=i);function i(e,t,n){return u(e,t,n)}f(u,i);i.from=function(e,t,n){if(typeof e==='number'){throw new TypeError('Argument must not be a number')}return u(e,t,n)};i.alloc=function(e,t,n){if(typeof e!=='number'){throw new TypeError('Argument must be a number')}var r=u(e);t!==void 0?(typeof n==='string'?r.fill(t,n):r.fill(t)):r.fill(0);return r};i.allocUnsafe=function(e){if(typeof e!=='number'){throw new TypeError('Argument must be a number')}return u(e)};i.allocUnsafeSlow=function(e){if(typeof e!=='number'){throw new TypeError('Argument must be a number')}return r.SlowBuffer(e)}},{"buffer":3}],27:[function(e,t,n){t.exports=f;var r=e('events').EventEmitter,u=e('inherits');u(f,r);f.Readable=e('readable-stream/readable.js');f.Writable=e('readable-stream/writable.js');f.Duplex=e('readable-stream/duplex.js');f.Transform=e('readable-stream/transform.js');f.PassThrough=e('readable-stream/passthrough.js');f.Stream=f;function f(){r.call(this)}f.prototype.pipe=function(e,t){var n=this;function u(t){e.writable&&(!1===e.write(t)&&n.pause&&n.pause())}n.on('data',u);function f(){n.readable&&n.resume&&n.resume()}e.on('drain',f);!e._isStdio&&(!t||t.end!==!1)&&(n.on('end',d),n.on('close',o));var i=!1;function d(){if(i)return;i=!0;e.end()}function o(){if(i)return;i=!0;typeof e.destroy==='function'&&e.destroy()}function c(e){a();if(r.listenerCount(this,'error')===0){throw e}}n.on('error',c);e.on('error',c);function a(){n.removeListener('data',u);e.removeListener('drain',f);n.removeListener('end',d);n.removeListener('close',o);n.removeListener('error',c);e.removeListener('error',c);n.removeListener('end',a);n.removeListener('close',a);e.removeListener('close',a)}n.on('end',a);n.on('close',a);e.on('close',a);e.emit('pipe',n);return e}},{"events":5,"inherits":7,"readable-stream/duplex.js":12,"readable-stream/passthrough.js":22,"readable-stream/readable.js":23,"readable-stream/transform.js":24,"readable-stream/writable.js":25}],28:[function(e,t,n){arguments[4][21][0].apply(n,arguments)},{"dup":21,"safe-buffer":26}],29:[function(e,t,n){(function(t,r){var u=e('process/browser.js').nextTick,f=Function.prototype.apply,i=Array.prototype.slice,d={},o=0;n.setTimeout=function(){return new c(f.call(setTimeout,window,arguments),clearTimeout)};n.setInterval=function(){return new c(f.call(setInterval,window,arguments),clearInterval)};n.clearTimeout=n.clearInterval=function(e){e.close()};function c(e,t){this._id=e;this._clearFn=t}c.prototype.unref=c.prototype.ref=function(){};c.prototype.close=function(){this._clearFn.call(window,this._id)};n.enroll=function(e,t){clearTimeout(e._idleTimeoutId);e._idleTimeout=t};n.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))};n.setImmediate=typeof t==="function"?t:function(e){var t=o++,r=arguments.length<2?!1:i.call(arguments,1);d[t]=!0;u(function(){d[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))});return t};n.clearImmediate=typeof r==="function"?r:function(e){delete d[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":11,"timers":29}],30:[function(e,t,n){(function(e){t.exports=n;function n(e,t){if(r('noDeprecation')){return e}var n=!1;function u(){if(!n){if(r('throwDeprecation')){throw new Error(t)}else r('traceDeprecation')?console.trace(t):console.warn(t);n=!0}return e.apply(this,arguments)}return u}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1};var n=e.localStorage[t];if(null==n)return!1;return String(n).toLowerCase()==='true'}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],31:[function(e,t,n){let r=e('safe-buffer').Buffer;t.exports=function(e){if(e.length>=255)throw new TypeError('Alphabet too long');let t=new Uint8Array(256);t.fill(255);for(let n=0;n<e.length;n++){let r=e.charAt(n),u=r.charCodeAt(0);if(t[u]!==255)throw new TypeError(r+' is ambiguous');t[u]=n}let n=e.length,u=e.charAt(0),f=Math.log(n)/Math.log(256),i=Math.log(256)/Math.log(n);function d(t){if(!r.isBuffer(t))throw new TypeError('Expected Buffer');if(t.length===0)return'';let f=0,d=0,o=0,c=t.length;while(o!==c&&t[o]===0)o++,f++;let a=(c-o)*i+1>>>0,l=new Uint8Array(a);while(o!==c){let e=t[o],r=0;for(let t=a-1;(e!==0||r<d)&&t!==-1;t--, r++)e+=256*l[t]>>>0,l[t]=e%n>>>0,e=e/n>>>0;if(e!==0)throw new Error('Non-zero carry');d=r;o++}let s=a-d;while(s!==a&&l[s]===0)s++;let b=u.repeat(f);for(;s<a;++s)b+=e.charAt(l[s]);return b}function o(e){if(typeof e!=='string')throw new TypeError('Expected String');if(e.length===0)return r.alloc(0);let i=0;if(e[i]===' ')return;let d=0,o=0;while(e[i]===u)d++,i++;let c=(e.length-i)*f+1>>>0,a=new Uint8Array(c);while(e[i]){let r=t[e.charCodeAt(i)];if(r===255)return;let u=0;for(let e=c-1;(r!==0||u<o)&&e!==-1;e--, u++)r+=n*a[e]>>>0,a[e]=r%256>>>0,r=r/256>>>0;if(r!==0)throw new Error('Non-zero carry');o=u;i++}if(e[i]===' ')return;let l=c-o;while(l!==c&&a[l]===0)l++;let s=r.allocUnsafe(d+(c-l));s.fill(0,0,d);let b=d;while(l!==c)s[b++]=a[l++];return s}function c(e){let t=o(e);if(t)return t;throw new Error('Non-base'+n+' character')}return{encode:d,decodeUnsafe:o,decode:c}}},{"safe-buffer":79}],32:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=e("./crypto"),u=e('bs58check'),f=e('tiny-secp256k1'),i=e('typeforce'),d=e('wif'),o=i.BufferN(32),c=i.compile({wif:i.UInt8,bip32:{public:i.UInt32,private:i.UInt32}}),a={wif:128,bip32:{public:76067358,private:76066276}},l=2147483648,s=Math.pow(2,31)-1;function b(e){return i.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function p(e){return i.UInt32(e)&&e<=s}class m{constructor(e,t,n,r,u = 0,f = 0,d = 0){this.__D=e;this.__Q=t;this.chainCode=n;this.network=r;this.__DEPTH=u;this.__INDEX=f;this.__PARENT_FINGERPRINT=d;i(c,r)}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){this.__Q===void 0&&(this.__Q=f.pointFromScalar(this.__D,!0));return this.__Q}get privateKey(){return this.__D}get identifier(){return r.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}isNeutered(){return this.__D===void 0}neutered(){return w(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){let e=this.network,n=!this.isNeutered()?e.bip32.private:e.bip32.public,r=t.allocUnsafe(78);r.writeUInt32BE(n,0);r.writeUInt8(this.depth,4);r.writeUInt32BE(this.parentFingerprint,5);r.writeUInt32BE(this.index,9);this.chainCode.copy(r,13);this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46));return u.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError('Missing private key');return d.encode(this.network.wif,this.privateKey,!0)}derive(e){i(i.UInt32,e);let n=e>=l,u=t.allocUnsafe(37);if(n){if(this.isNeutered())throw new TypeError('Missing private key for hardened child key');u[0]=0;this.privateKey.copy(u,1);u.writeUInt32BE(e,33)}else this.publicKey.copy(u,0),u.writeUInt32BE(e,33);let d=r.hmacSHA512(this.chainCode,u),o=d.slice(0,32),c=d.slice(32);if(!f.isPrivate(o))return this.derive(e+1);let a;if(!this.isNeutered()){let t=f.privateAdd(this.privateKey,o);if(t==null)return this.derive(e+1);a=y(t,c,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{let t=f.pointAddScalar(this.publicKey,o,!0);if(t===null)return this.derive(e+1);a=w(t,c,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return a}deriveHardened(e){i(p,e);return this.derive(e+l)}derivePath(e){i(b,e);let t=e.split('/');if(t[0]==='m'){if(this.parentFingerprint)throw new TypeError('Expected master, got child');t=t.slice(1)}return t.reduce((e,t)=>{let n;if(t.slice(-1)==="'"){n=parseInt(t.slice(0,-1),10);return e.deriveHardened(n)}else{n=parseInt(t,10);return e.derive(n)}},this)}sign(e){return f.sign(e,this.privateKey)}verify(e,t){return f.verify(e,this.publicKey,t)}}function h(e,t){let n=u.decode(e);if(n.length!==78)throw new TypeError('Invalid buffer length');t=t||a;let r=n.readUInt32BE(0);if(r!==t.bip32.private&&r!==t.bip32.public)throw new TypeError('Invalid network version');let f=n[4],i=n.readUInt32BE(5);if(f===0){if(i!==0)throw new TypeError('Invalid parent fingerprint')}let d=n.readUInt32BE(9);if(f===0&&d!==0)throw new TypeError('Invalid index');let o=n.slice(13,45),c;if(r===t.bip32.private){if(n.readUInt8(45)!==0)throw new TypeError('Invalid private key');let e=n.slice(46,78);c=y(e,o,t,f,d,i)}else{let e=n.slice(45,78);c=w(e,o,t,f,d,i)}return c}n.fromBase58=h;function g(e,t,n){return y(e,t,n)}n.fromPrivateKey=g;function y(e,t,n,r,u,d){i({privateKey:o,chainCode:o},{privateKey:e,chainCode:t});n=n||a;if(!f.isPrivate(e))throw new TypeError('Private key not in range [1, n)');return new m(e,void 0,t,n,r,u,d)}function _(e,t,n){return w(e,t,n)}n.fromPublicKey=_;function w(e,t,n,r,u,d){i({publicKey:i.BufferN(33),chainCode:o},{publicKey:e,chainCode:t});n=n||a;if(!f.isPoint(e))throw new TypeError('Point is not on the curve');return new m(void 0,e,t,n,r,u,d)}function v(e,n){i(i.Buffer,e);if(e.length<16)throw new TypeError('Seed should be at least 128 bits');if(e.length>64)throw new TypeError('Seed should be at most 512 bits');n=n||a;let u=r.hmacSHA512(t.from('Bitcoin seed','utf8'),e),f=u.slice(0,32),d=u.slice(32);return g(f,d,n)}n.fromSeed=v}).call(this,e("buffer").Buffer)},{"./crypto":33,"bs58check":38,"buffer":3,"tiny-secp256k1":88,"typeforce":92,"wif":94}],33:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=e('create-hash'),u=e('create-hmac');function f(e){let t=r('sha256').update(e).digest();try{return r('rmd160').update(t).digest()}catch(e){return r('ripemd160').update(t).digest()}}n.hash160=f;function i(e,t){return u('sha512',e).update(t).digest()}n.hmacSHA512=i},{"create-hash":40,"create-hmac":42}],34:[function(e,t,n){!function(t,n){"use strict";function r(e,t){if(!e)throw new Error(t||'Assertion failed')}function u(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype;e.prototype=new n;e.prototype.constructor=e}function f(e,t,n){if(f.isBN(e)){return e}this.negative=0;this.words=null;this.length=0;this.red=null;e!==null&&((t==='le'||t==='be')&&(n=t,t=10),this._init(e||0,t||10,n||'be'))}typeof t==='object'?(t.exports=f):(n.BN=f);f.BN=f;f.wordSize=26;var i;try{i=e('buffer').Buffer}catch(e){};f.isBN=function(e){if(e instanceof f){return!0}return e!==null&&typeof e==='object'&&e.constructor.wordSize===f.wordSize&&Array.isArray(e.words)};f.max=function(e,t){if(e.cmp(t)>0)return e;return t};f.min=function(e,t){if(e.cmp(t)<0)return e;return t};f.prototype._init=function(e,t,n){if(typeof e==='number'){return this._initNumber(e,t,n)}if(typeof e==='object'){return this._initArray(e,t,n)}t==='hex'&&(t=16);r(t===(t|0)&&t>=2&&t<=36);e=e.toString().replace(/\s+/g,'');var u=0;e[0]==='-'&&u++;t===16?this._parseHex(e,u):this._parseBase(e,t,u);e[0]==='-'&&(this.negative=1);this.strip();if(n!=='le')return;this._initArray(this.toArray(),t,n)};f.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e);e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3);if(n!=='le')return;this._initArray(this.toArray(),t,n)};f.prototype._initArray=function(e,t,n){r(typeof e.length==='number');if(e.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(e.length/3);this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var f,i,d=0;if(n==='be'){for(u=e.length-1, f=0;u>=0;u-=3)i=e[u]|e[u-1]<<8|e[u-2]<<16,this.words[f]|=i<<d&67108863,this.words[f+1]=i>>>26-d&67108863,d+=24,d>=26&&(d-=26,f++)}else if(n==='le'){for(u=0, f=0;u<e.length;u+=3)i=e[u]|e[u+1]<<8|e[u+2]<<16,this.words[f]|=i<<d&67108863,this.words[f+1]=i>>>26-d&67108863,d+=24,d>=26&&(d-=26,f++)}return this.strip()};function d(e,t,n){var r=0,u=Math.min(e.length,n);for(var f=t;f<u;f++){var i=e.charCodeAt(f)-48;r<<=4;i>=49&&i<=54?(r|=i-49+10):i>=17&&i<=22?(r|=i-17+10):(r|=i&15)}return r}f.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6);this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,u,f=0;for(n=e.length-6, r=0;n>=t;n-=6)u=d(e,n,n+6),this.words[r]|=u<<f&67108863,this.words[r+1]|=u>>>26-f&4194303,f+=24,f>=26&&(f-=26,r++);n+6!==t&&(u=d(e,t,n+6),this.words[r]|=u<<f&67108863,this.words[r+1]|=u>>>26-f&4194303);this.strip()};function o(e,t,n,r){var u=0,f=Math.min(e.length,n);for(var i=t;i<f;i++){var d=e.charCodeAt(i)-48;u*=r;d>=49?(u+=d-49+10):d>=17?(u+=d-17+10):(u+=d)}return u}f.prototype._parseBase=function(e,t,n){this.words=[0];this.length=1;for(var r=0,u=1;u<=67108863;u*=t)r++;r--;u=u/t|0;var f=e.length-n,i=f%r,d=Math.min(f,f-i)+n,c=0;for(var a=n;a<d;a+=r)c=o(e,a,a+r,t),this.imuln(u),this.words[0]+c<67108864?(this.words[0]+=c):this._iaddn(c);if(i!==0){var l=1;c=o(e,a,e.length,t);for(a=0;a<i;a++)l*=t;this.imuln(l);this.words[0]+c<67108864?(this.words[0]+=c):this._iaddn(c)}};f.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length;e.negative=this.negative;e.red=this.red};f.prototype.clone=function(){var e=new f(null);this.copy(e);return e};f.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this};f.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()};f.prototype._normSign=function(){this.length===1&&this.words[0]===0&&(this.negative=0);return this};f.prototype.inspect=function(){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'],a=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,6.4e7,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,2.43e7,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(e,t){e=e||10;t=t|0||1;var n;if(e===16||e==='hex'){n='';var u=0,f=0;for(var i=0;i<this.length;i++){var d=this.words[i],o=((d<<u|f)&16777215).toString(16);f=d>>>24-u&16777215;f!==0||i!==this.length-1?(n=c[6-o.length]+o+n):(n=o+n);u+=2;u>=26&&(u-=26,i--)}f!==0&&(n=f.toString(16)+n);while(n.length%t!==0)n='0'+n;this.negative!==0&&(n='-'+n);return n}if(e===(e|0)&&e>=2&&e<=36){var s=a[e],b=l[e];n='';var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(b).toString(e);p=p.idivn(b);p.isZero()?(n=m+n):(n=c[s-m.length]+m+n)}this.isZero()&&(n='0'+n);while(n.length%t!==0)n='0'+n;this.negative!==0&&(n='-'+n);return n}r(!1,'Base should be between 2 and 36')};f.prototype.toNumber=function(){var e=this.words[0];this.length===2?(e+=this.words[1]*67108864):this.length===3&&this.words[2]===1?(e+=4503599627370496+this.words[1]*67108864):this.length>2&&r(!1,'Number can only safely store up to 53 bits');return this.negative!==0?-e:e};f.prototype.toJSON=function(){return this.toString(16)};f.prototype.toBuffer=function(e,t){r(typeof i!=='undefined');return this.toArrayLike(i,e,t)};f.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};f.prototype.toArrayLike=function(e,t,n){var u=this.byteLength(),f=n||Math.max(1,u);r(u<=f,'byte array longer than desired length');r(f>0,'Requested array length <= 0');this.strip();var i=t==='le',d=new e(f),o,c,a=this.clone();if(!i){for(c=0;c<f-u;c++)d[c]=0;for(c=0;!a.isZero();c++)o=a.andln(255),a.iushrn(8),d[f-c-1]=o}else{for(c=0;!a.isZero();c++)o=a.andln(255),a.iushrn(8),d[c]=o;for(;c<f;c++)d[c]=0}return d};Math.clz32?(f.prototype._countBits=function(e){return 32-Math.clz32(e)}):(f.prototype._countBits=function(e){var t=e,n=0;t>=4096&&(n+=13,t>>>=13);t>=64&&(n+=7,t>>>=7);t>=8&&(n+=4,t>>>=4);t>=2&&(n+=2,t>>>=2);return n+t});f.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;(t&8191)===0&&(n+=13,t>>>=13);(t&127)===0&&(n+=7,t>>>=7);(t&15)===0&&(n+=4,t>>>=4);(t&3)===0&&(n+=2,t>>>=2);(t&1)===0&&n++;return n};f.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function s(e){var t=new Array(e.bitLength());for(var n=0;n<t.length;n++){var r=n/26|0,u=n%26;t[n]=(e.words[r]&1<<u)>>>u}return t}f.prototype.zeroBits=function(){if(this.isZero())return 0;var e=0;for(var t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);e+=n;if(n!==26)break}return e};f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)};f.prototype.toTwos=function(e){if(this.negative!==0){return this.abs().inotn(e).iaddn(1)}return this.clone()};f.prototype.fromTwos=function(e){if(this.testn(e-1)){return this.notn(e).iaddn(1).ineg()}return this.clone()};f.prototype.isNeg=function(){return this.negative!==0};f.prototype.neg=function(){return this.clone().ineg()};f.prototype.ineg=function(){this.isZero()||(this.negative^=1);return this};f.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()};f.prototype.ior=function(e){r((this.negative|e.negative)===0);return this.iuor(e)};f.prototype.or=function(e){if(this.length>e.length)return this.clone().ior(e);return e.clone().ior(this)};f.prototype.uor=function(e){if(this.length>e.length)return this.clone().iuor(e);return e.clone().iuor(this)};f.prototype.iuand=function(e){var t;this.length>e.length?(t=e):(t=this);for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];this.length=t.length;return this.strip()};f.prototype.iand=function(e){r((this.negative|e.negative)===0);return this.iuand(e)};f.prototype.and=function(e){if(this.length>e.length)return this.clone().iand(e);return e.clone().iand(this)};f.prototype.uand=function(e){if(this.length>e.length)return this.clone().iuand(e);return e.clone().iuand(this)};f.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t){for(;r<t.length;r++)this.words[r]=t.words[r]}this.length=t.length;return this.strip()};f.prototype.ixor=function(e){r((this.negative|e.negative)===0);return this.iuxor(e)};f.prototype.xor=function(e){if(this.length>e.length)return this.clone().ixor(e);return e.clone().ixor(this)};f.prototype.uxor=function(e){if(this.length>e.length)return this.clone().iuxor(e);return e.clone().iuxor(this)};f.prototype.inotn=function(e){r(typeof e==='number'&&e>=0);var t=Math.ceil(e/26)|0,n=e%26;this._expand(t);n>0&&t--;for(var u=0;u<t;u++)this.words[u]=~this.words[u]&67108863;n>0&&(this.words[u]=~this.words[u]&67108863>>26-n);return this.strip()};f.prototype.notn=function(e){return this.clone().inotn(e)};f.prototype.setn=function(e,t){r(typeof e==='number'&&e>=0);var n=e/26|0,u=e%26;this._expand(n+1);t?(this.words[n]=this.words[n]|1<<u):(this.words[n]=this.words[n]&~(1<<u));return this.strip()};f.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0){this.negative=0;t=this.isub(e);this.negative^=1;return this._normSign()}else if(this.negative===0&&e.negative!==0){e.negative=0;t=this.isub(e);e.negative=1;return t._normSign()}var n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);var u=0;for(var f=0;f<r.length;f++)t=(n.words[f]|0)+(r.words[f]|0)+u,this.words[f]=t&67108863,u=t>>>26;for(;u!==0&&f<n.length;f++)t=(n.words[f]|0)+u,this.words[f]=t&67108863,u=t>>>26;this.length=n.length;if(u!==0)this.words[this.length]=u,this.length++;else if(n!==this){for(;f<n.length;f++)this.words[f]=n.words[f]}return this};f.prototype.add=function(e){var t;if(e.negative!==0&&this.negative===0){e.negative=0;t=this.sub(e);e.negative^=1;return t}else if(e.negative===0&&this.negative!==0){this.negative=0;t=e.sub(this);this.negative=1;return t}if(this.length>e.length)return this.clone().iadd(e);return e.clone().iadd(this)};f.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);e.negative=1;return t._normSign()}else if(this.negative!==0){this.negative=0;this.iadd(e);this.negative=1;return this._normSign()}var n=this.cmp(e);if(n===0){this.negative=0;this.length=1;this.words[0]=0;return this}var r,u;n>0?(r=this,u=e):(r=e,u=this);var f=0;for(var i=0;i<u.length;i++)t=(r.words[i]|0)-(u.words[i]|0)+f,f=t>>26,this.words[i]=t&67108863;for(;f!==0&&i<r.length;i++)t=(r.words[i]|0)+f,f=t>>26,this.words[i]=t&67108863;if(f===0&&i<r.length&&r!==this){for(;i<r.length;i++)this.words[i]=r.words[i]}this.length=Math.max(this.length,i);r!==this&&(this.negative=1);return this.strip()};f.prototype.sub=function(e){return this.clone().isub(e)};function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r;r=r-1|0;var u=e.words[0]|0,f=t.words[0]|0,i=u*f,d=i&67108863,o=i/67108864|0;n.words[0]=d;for(var c=1;c<r;c++){var a=o>>>26,l=o&67108863,s=Math.min(c,t.length-1);for(var b=Math.max(0,c-e.length+1);b<=s;b++){var p=c-b|0;u=e.words[p]|0;f=t.words[b]|0;i=u*f+l;a+=i/67108864|0;l=i&67108863}n.words[c]=l|0;o=a|0}o!==0?(n.words[c]=o|0):n.length--;return n.strip()}var p=function(e,t,n){var r=e.words,u=t.words,f=n.words,i=0,d,o,c,a=r[0]|0,l=a&8191,s=a>>>13,b=r[1]|0,p=b&8191,m=b>>>13,h=r[2]|0,g=h&8191,y=h>>>13,_=r[3]|0,w=_&8191,v=_>>>13,S=r[4]|0,x=S&8191,I=S>>>13,A=r[5]|0,M=A&8191,k=A>>>13,B=r[6]|0,q=B&8191,E=B>>>13,L=r[7]|0,j=L&8191,z=L>>>13,R=r[8]|0,N=R&8191,P=R>>>13,T=r[9]|0,C=T&8191,O=T>>>13,U=u[0]|0,D=U&8191,F=U>>>13,W=u[1]|0,J=W&8191,H=W>>>13,K=u[2]|0,X=K&8191,Z=K>>>13,V=u[3]|0,Y=V&8191,Q=V>>>13,G=u[4]|0,$=G&8191,ee=G>>>13,te=u[5]|0,ne=te&8191,re=te>>>13,ue=u[6]|0,fe=ue&8191,ie=ue>>>13,de=u[7]|0,oe=de&8191,ce=de>>>13,ae=u[8]|0,le=ae&8191,se=ae>>>13,be=u[9]|0,pe=be&8191,me=be>>>13;n.negative=e.negative^t.negative;n.length=19;d=Math.imul(l,D);o=Math.imul(l,F);o=o+Math.imul(s,D)|0;c=Math.imul(s,F);var he=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(he>>>26)|0;he&=67108863;d=Math.imul(p,D);o=Math.imul(p,F);o=o+Math.imul(m,D)|0;c=Math.imul(m,F);d=d+Math.imul(l,J)|0;o=o+Math.imul(l,H)|0;o=o+Math.imul(s,J)|0;c=c+Math.imul(s,H)|0;var ge=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(ge>>>26)|0;ge&=67108863;d=Math.imul(g,D);o=Math.imul(g,F);o=o+Math.imul(y,D)|0;c=Math.imul(y,F);d=d+Math.imul(p,J)|0;o=o+Math.imul(p,H)|0;o=o+Math.imul(m,J)|0;c=c+Math.imul(m,H)|0;d=d+Math.imul(l,X)|0;o=o+Math.imul(l,Z)|0;o=o+Math.imul(s,X)|0;c=c+Math.imul(s,Z)|0;var ye=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(ye>>>26)|0;ye&=67108863;d=Math.imul(w,D);o=Math.imul(w,F);o=o+Math.imul(v,D)|0;c=Math.imul(v,F);d=d+Math.imul(g,J)|0;o=o+Math.imul(g,H)|0;o=o+Math.imul(y,J)|0;c=c+Math.imul(y,H)|0;d=d+Math.imul(p,X)|0;o=o+Math.imul(p,Z)|0;o=o+Math.imul(m,X)|0;c=c+Math.imul(m,Z)|0;d=d+Math.imul(l,Y)|0;o=o+Math.imul(l,Q)|0;o=o+Math.imul(s,Y)|0;c=c+Math.imul(s,Q)|0;var _e=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(_e>>>26)|0;_e&=67108863;d=Math.imul(x,D);o=Math.imul(x,F);o=o+Math.imul(I,D)|0;c=Math.imul(I,F);d=d+Math.imul(w,J)|0;o=o+Math.imul(w,H)|0;o=o+Math.imul(v,J)|0;c=c+Math.imul(v,H)|0;d=d+Math.imul(g,X)|0;o=o+Math.imul(g,Z)|0;o=o+Math.imul(y,X)|0;c=c+Math.imul(y,Z)|0;d=d+Math.imul(p,Y)|0;o=o+Math.imul(p,Q)|0;o=o+Math.imul(m,Y)|0;c=c+Math.imul(m,Q)|0;d=d+Math.imul(l,$)|0;o=o+Math.imul(l,ee)|0;o=o+Math.imul(s,$)|0;c=c+Math.imul(s,ee)|0;var we=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(we>>>26)|0;we&=67108863;d=Math.imul(M,D);o=Math.imul(M,F);o=o+Math.imul(k,D)|0;c=Math.imul(k,F);d=d+Math.imul(x,J)|0;o=o+Math.imul(x,H)|0;o=o+Math.imul(I,J)|0;c=c+Math.imul(I,H)|0;d=d+Math.imul(w,X)|0;o=o+Math.imul(w,Z)|0;o=o+Math.imul(v,X)|0;c=c+Math.imul(v,Z)|0;d=d+Math.imul(g,Y)|0;o=o+Math.imul(g,Q)|0;o=o+Math.imul(y,Y)|0;c=c+Math.imul(y,Q)|0;d=d+Math.imul(p,$)|0;o=o+Math.imul(p,ee)|0;o=o+Math.imul(m,$)|0;c=c+Math.imul(m,ee)|0;d=d+Math.imul(l,ne)|0;o=o+Math.imul(l,re)|0;o=o+Math.imul(s,ne)|0;c=c+Math.imul(s,re)|0;var ve=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(ve>>>26)|0;ve&=67108863;d=Math.imul(q,D);o=Math.imul(q,F);o=o+Math.imul(E,D)|0;c=Math.imul(E,F);d=d+Math.imul(M,J)|0;o=o+Math.imul(M,H)|0;o=o+Math.imul(k,J)|0;c=c+Math.imul(k,H)|0;d=d+Math.imul(x,X)|0;o=o+Math.imul(x,Z)|0;o=o+Math.imul(I,X)|0;c=c+Math.imul(I,Z)|0;d=d+Math.imul(w,Y)|0;o=o+Math.imul(w,Q)|0;o=o+Math.imul(v,Y)|0;c=c+Math.imul(v,Q)|0;d=d+Math.imul(g,$)|0;o=o+Math.imul(g,ee)|0;o=o+Math.imul(y,$)|0;c=c+Math.imul(y,ee)|0;d=d+Math.imul(p,ne)|0;o=o+Math.imul(p,re)|0;o=o+Math.imul(m,ne)|0;c=c+Math.imul(m,re)|0;d=d+Math.imul(l,fe)|0;o=o+Math.imul(l,ie)|0;o=o+Math.imul(s,fe)|0;c=c+Math.imul(s,ie)|0;var Se=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Se>>>26)|0;Se&=67108863;d=Math.imul(j,D);o=Math.imul(j,F);o=o+Math.imul(z,D)|0;c=Math.imul(z,F);d=d+Math.imul(q,J)|0;o=o+Math.imul(q,H)|0;o=o+Math.imul(E,J)|0;c=c+Math.imul(E,H)|0;d=d+Math.imul(M,X)|0;o=o+Math.imul(M,Z)|0;o=o+Math.imul(k,X)|0;c=c+Math.imul(k,Z)|0;d=d+Math.imul(x,Y)|0;o=o+Math.imul(x,Q)|0;o=o+Math.imul(I,Y)|0;c=c+Math.imul(I,Q)|0;d=d+Math.imul(w,$)|0;o=o+Math.imul(w,ee)|0;o=o+Math.imul(v,$)|0;c=c+Math.imul(v,ee)|0;d=d+Math.imul(g,ne)|0;o=o+Math.imul(g,re)|0;o=o+Math.imul(y,ne)|0;c=c+Math.imul(y,re)|0;d=d+Math.imul(p,fe)|0;o=o+Math.imul(p,ie)|0;o=o+Math.imul(m,fe)|0;c=c+Math.imul(m,ie)|0;d=d+Math.imul(l,oe)|0;o=o+Math.imul(l,ce)|0;o=o+Math.imul(s,oe)|0;c=c+Math.imul(s,ce)|0;var xe=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(xe>>>26)|0;xe&=67108863;d=Math.imul(N,D);o=Math.imul(N,F);o=o+Math.imul(P,D)|0;c=Math.imul(P,F);d=d+Math.imul(j,J)|0;o=o+Math.imul(j,H)|0;o=o+Math.imul(z,J)|0;c=c+Math.imul(z,H)|0;d=d+Math.imul(q,X)|0;o=o+Math.imul(q,Z)|0;o=o+Math.imul(E,X)|0;c=c+Math.imul(E,Z)|0;d=d+Math.imul(M,Y)|0;o=o+Math.imul(M,Q)|0;o=o+Math.imul(k,Y)|0;c=c+Math.imul(k,Q)|0;d=d+Math.imul(x,$)|0;o=o+Math.imul(x,ee)|0;o=o+Math.imul(I,$)|0;c=c+Math.imul(I,ee)|0;d=d+Math.imul(w,ne)|0;o=o+Math.imul(w,re)|0;o=o+Math.imul(v,ne)|0;c=c+Math.imul(v,re)|0;d=d+Math.imul(g,fe)|0;o=o+Math.imul(g,ie)|0;o=o+Math.imul(y,fe)|0;c=c+Math.imul(y,ie)|0;d=d+Math.imul(p,oe)|0;o=o+Math.imul(p,ce)|0;o=o+Math.imul(m,oe)|0;c=c+Math.imul(m,ce)|0;d=d+Math.imul(l,le)|0;o=o+Math.imul(l,se)|0;o=o+Math.imul(s,le)|0;c=c+Math.imul(s,se)|0;var Ie=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Ie>>>26)|0;Ie&=67108863;d=Math.imul(C,D);o=Math.imul(C,F);o=o+Math.imul(O,D)|0;c=Math.imul(O,F);d=d+Math.imul(N,J)|0;o=o+Math.imul(N,H)|0;o=o+Math.imul(P,J)|0;c=c+Math.imul(P,H)|0;d=d+Math.imul(j,X)|0;o=o+Math.imul(j,Z)|0;o=o+Math.imul(z,X)|0;c=c+Math.imul(z,Z)|0;d=d+Math.imul(q,Y)|0;o=o+Math.imul(q,Q)|0;o=o+Math.imul(E,Y)|0;c=c+Math.imul(E,Q)|0;d=d+Math.imul(M,$)|0;o=o+Math.imul(M,ee)|0;o=o+Math.imul(k,$)|0;c=c+Math.imul(k,ee)|0;d=d+Math.imul(x,ne)|0;o=o+Math.imul(x,re)|0;o=o+Math.imul(I,ne)|0;c=c+Math.imul(I,re)|0;d=d+Math.imul(w,fe)|0;o=o+Math.imul(w,ie)|0;o=o+Math.imul(v,fe)|0;c=c+Math.imul(v,ie)|0;d=d+Math.imul(g,oe)|0;o=o+Math.imul(g,ce)|0;o=o+Math.imul(y,oe)|0;c=c+Math.imul(y,ce)|0;d=d+Math.imul(p,le)|0;o=o+Math.imul(p,se)|0;o=o+Math.imul(m,le)|0;c=c+Math.imul(m,se)|0;d=d+Math.imul(l,pe)|0;o=o+Math.imul(l,me)|0;o=o+Math.imul(s,pe)|0;c=c+Math.imul(s,me)|0;var Ae=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Ae>>>26)|0;Ae&=67108863;d=Math.imul(C,J);o=Math.imul(C,H);o=o+Math.imul(O,J)|0;c=Math.imul(O,H);d=d+Math.imul(N,X)|0;o=o+Math.imul(N,Z)|0;o=o+Math.imul(P,X)|0;c=c+Math.imul(P,Z)|0;d=d+Math.imul(j,Y)|0;o=o+Math.imul(j,Q)|0;o=o+Math.imul(z,Y)|0;c=c+Math.imul(z,Q)|0;d=d+Math.imul(q,$)|0;o=o+Math.imul(q,ee)|0;o=o+Math.imul(E,$)|0;c=c+Math.imul(E,ee)|0;d=d+Math.imul(M,ne)|0;o=o+Math.imul(M,re)|0;o=o+Math.imul(k,ne)|0;c=c+Math.imul(k,re)|0;d=d+Math.imul(x,fe)|0;o=o+Math.imul(x,ie)|0;o=o+Math.imul(I,fe)|0;c=c+Math.imul(I,ie)|0;d=d+Math.imul(w,oe)|0;o=o+Math.imul(w,ce)|0;o=o+Math.imul(v,oe)|0;c=c+Math.imul(v,ce)|0;d=d+Math.imul(g,le)|0;o=o+Math.imul(g,se)|0;o=o+Math.imul(y,le)|0;c=c+Math.imul(y,se)|0;d=d+Math.imul(p,pe)|0;o=o+Math.imul(p,me)|0;o=o+Math.imul(m,pe)|0;c=c+Math.imul(m,me)|0;var Me=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Me>>>26)|0;Me&=67108863;d=Math.imul(C,X);o=Math.imul(C,Z);o=o+Math.imul(O,X)|0;c=Math.imul(O,Z);d=d+Math.imul(N,Y)|0;o=o+Math.imul(N,Q)|0;o=o+Math.imul(P,Y)|0;c=c+Math.imul(P,Q)|0;d=d+Math.imul(j,$)|0;o=o+Math.imul(j,ee)|0;o=o+Math.imul(z,$)|0;c=c+Math.imul(z,ee)|0;d=d+Math.imul(q,ne)|0;o=o+Math.imul(q,re)|0;o=o+Math.imul(E,ne)|0;c=c+Math.imul(E,re)|0;d=d+Math.imul(M,fe)|0;o=o+Math.imul(M,ie)|0;o=o+Math.imul(k,fe)|0;c=c+Math.imul(k,ie)|0;d=d+Math.imul(x,oe)|0;o=o+Math.imul(x,ce)|0;o=o+Math.imul(I,oe)|0;c=c+Math.imul(I,ce)|0;d=d+Math.imul(w,le)|0;o=o+Math.imul(w,se)|0;o=o+Math.imul(v,le)|0;c=c+Math.imul(v,se)|0;d=d+Math.imul(g,pe)|0;o=o+Math.imul(g,me)|0;o=o+Math.imul(y,pe)|0;c=c+Math.imul(y,me)|0;var ke=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(ke>>>26)|0;ke&=67108863;d=Math.imul(C,Y);o=Math.imul(C,Q);o=o+Math.imul(O,Y)|0;c=Math.imul(O,Q);d=d+Math.imul(N,$)|0;o=o+Math.imul(N,ee)|0;o=o+Math.imul(P,$)|0;c=c+Math.imul(P,ee)|0;d=d+Math.imul(j,ne)|0;o=o+Math.imul(j,re)|0;o=o+Math.imul(z,ne)|0;c=c+Math.imul(z,re)|0;d=d+Math.imul(q,fe)|0;o=o+Math.imul(q,ie)|0;o=o+Math.imul(E,fe)|0;c=c+Math.imul(E,ie)|0;d=d+Math.imul(M,oe)|0;o=o+Math.imul(M,ce)|0;o=o+Math.imul(k,oe)|0;c=c+Math.imul(k,ce)|0;d=d+Math.imul(x,le)|0;o=o+Math.imul(x,se)|0;o=o+Math.imul(I,le)|0;c=c+Math.imul(I,se)|0;d=d+Math.imul(w,pe)|0;o=o+Math.imul(w,me)|0;o=o+Math.imul(v,pe)|0;c=c+Math.imul(v,me)|0;var Be=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Be>>>26)|0;Be&=67108863;d=Math.imul(C,$);o=Math.imul(C,ee);o=o+Math.imul(O,$)|0;c=Math.imul(O,ee);d=d+Math.imul(N,ne)|0;o=o+Math.imul(N,re)|0;o=o+Math.imul(P,ne)|0;c=c+Math.imul(P,re)|0;d=d+Math.imul(j,fe)|0;o=o+Math.imul(j,ie)|0;o=o+Math.imul(z,fe)|0;c=c+Math.imul(z,ie)|0;d=d+Math.imul(q,oe)|0;o=o+Math.imul(q,ce)|0;o=o+Math.imul(E,oe)|0;c=c+Math.imul(E,ce)|0;d=d+Math.imul(M,le)|0;o=o+Math.imul(M,se)|0;o=o+Math.imul(k,le)|0;c=c+Math.imul(k,se)|0;d=d+Math.imul(x,pe)|0;o=o+Math.imul(x,me)|0;o=o+Math.imul(I,pe)|0;c=c+Math.imul(I,me)|0;var qe=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(qe>>>26)|0;qe&=67108863;d=Math.imul(C,ne);o=Math.imul(C,re);o=o+Math.imul(O,ne)|0;c=Math.imul(O,re);d=d+Math.imul(N,fe)|0;o=o+Math.imul(N,ie)|0;o=o+Math.imul(P,fe)|0;c=c+Math.imul(P,ie)|0;d=d+Math.imul(j,oe)|0;o=o+Math.imul(j,ce)|0;o=o+Math.imul(z,oe)|0;c=c+Math.imul(z,ce)|0;d=d+Math.imul(q,le)|0;o=o+Math.imul(q,se)|0;o=o+Math.imul(E,le)|0;c=c+Math.imul(E,se)|0;d=d+Math.imul(M,pe)|0;o=o+Math.imul(M,me)|0;o=o+Math.imul(k,pe)|0;c=c+Math.imul(k,me)|0;var Ee=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Ee>>>26)|0;Ee&=67108863;d=Math.imul(C,fe);o=Math.imul(C,ie);o=o+Math.imul(O,fe)|0;c=Math.imul(O,ie);d=d+Math.imul(N,oe)|0;o=o+Math.imul(N,ce)|0;o=o+Math.imul(P,oe)|0;c=c+Math.imul(P,ce)|0;d=d+Math.imul(j,le)|0;o=o+Math.imul(j,se)|0;o=o+Math.imul(z,le)|0;c=c+Math.imul(z,se)|0;d=d+Math.imul(q,pe)|0;o=o+Math.imul(q,me)|0;o=o+Math.imul(E,pe)|0;c=c+Math.imul(E,me)|0;var Le=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Le>>>26)|0;Le&=67108863;d=Math.imul(C,oe);o=Math.imul(C,ce);o=o+Math.imul(O,oe)|0;c=Math.imul(O,ce);d=d+Math.imul(N,le)|0;o=o+Math.imul(N,se)|0;o=o+Math.imul(P,le)|0;c=c+Math.imul(P,se)|0;d=d+Math.imul(j,pe)|0;o=o+Math.imul(j,me)|0;o=o+Math.imul(z,pe)|0;c=c+Math.imul(z,me)|0;var je=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(je>>>26)|0;je&=67108863;d=Math.imul(C,le);o=Math.imul(C,se);o=o+Math.imul(O,le)|0;c=Math.imul(O,se);d=d+Math.imul(N,pe)|0;o=o+Math.imul(N,me)|0;o=o+Math.imul(P,pe)|0;c=c+Math.imul(P,me)|0;var ze=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(ze>>>26)|0;ze&=67108863;d=Math.imul(C,pe);o=Math.imul(C,me);o=o+Math.imul(O,pe)|0;c=Math.imul(O,me);var Re=(i+d|0)+((o&8191)<<13)|0;i=(c+(o>>>13)|0)+(Re>>>26)|0;Re&=67108863;f[0]=he;f[1]=ge;f[2]=ye;f[3]=_e;f[4]=we;f[5]=ve;f[6]=Se;f[7]=xe;f[8]=Ie;f[9]=Ae;f[10]=Me;f[11]=ke;f[12]=Be;f[13]=qe;f[14]=Ee;f[15]=Le;f[16]=je;f[17]=ze;f[18]=Re;i!==0&&(f[19]=i,n.length++);return n};Math.imul||(p=b);function m(e,t,n){n.negative=t.negative^e.negative;n.length=e.length+t.length;var r=0,u=0;for(var f=0;f<n.length-1;f++){var i=u;u=0;var d=r&67108863,o=Math.min(f,t.length-1);for(var c=Math.max(0,f-e.length+1);c<=o;c++){var a=f-c,l=e.words[a]|0,s=t.words[c]|0,b=l*s,p=b&67108863;i=i+(b/67108864|0)|0;p=p+d|0;d=p&67108863;i=i+(p>>>26)|0;u+=i>>>26;i&=67108863}n.words[f]=d;r=i;i=u}r!==0?(n.words[f]=r):n.length--;return n.strip()}function h(e,t,n){var r=new g;return r.mulp(e,t,n)}f.prototype.mulTo=function(e,t){var n,r=this.length+e.length;this.length===10&&e.length===10?(n=p(this,e,t)):r<63?(n=b(this,e,t)):r<1024?(n=m(this,e,t)):(n=h(this,e,t));return n};function g(e,t){this.x=e;this.y=t}g.prototype.makeRBT=function(e){var t=new Array(e),n=f.prototype._countBits(e)-1;for(var r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t};g.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;var r=0;for(var u=0;u<t;u++)r|=(e&1)<<t-u-1,e>>=1;return r};g.prototype.permute=function(e,t,n,r,u,f){for(var i=0;i<f;i++)r[i]=t[e[i]],u[i]=n[e[i]]};g.prototype.transform=function(e,t,n,r,u,f){this.permute(f,e,t,n,r,u);for(var i=1;i<u;i<<=1){var d=i<<1,o=Math.cos(2*Math.PI/d),c=Math.sin(2*Math.PI/d);for(var a=0;a<u;a+=d){var l=o,s=c;for(var b=0;b<i;b++){var p=n[a+b],m=r[a+b],h=n[a+b+i],g=r[a+b+i],y=l*h-s*g;g=l*g+s*h;h=y;n[a+b]=p+h;r[a+b]=m+g;n[a+b+i]=p-h;r[a+b+i]=m-g;b!==d&&(y=o*l-c*s,s=o*s+c*l,l=y)}}}};g.prototype.guessLen13b=function(e,t){var n=Math.max(t,e)|1,r=n&1,u=0;for(n=n/2|0;n;n>>>=1)u++;return 1<<u+1+r};g.prototype.conjugate=function(e,t,n){if(n<=1)return;for(var r=0;r<n/2;r++){var u=e[r];e[r]=e[n-r-1];e[n-r-1]=u;u=t[r];t[r]=-t[n-r-1];t[n-r-1]=-u}};g.prototype.normalize13b=function(e,t){var n=0;for(var r=0;r<t/2;r++){var u=Math.round(e[2*r+1]/t)*8192+Math.round(e[2*r]/t)+n;e[r]=u&67108863;u<67108864?(n=0):(n=u/67108864|0)}return e};g.prototype.convert13b=function(e,t,n,u){var f=0;for(var i=0;i<t;i++)f+=(e[i]|0),n[2*i]=f&8191,f>>>=13,n[2*i+1]=f&8191,f>>>=13;for(i=2*t;i<u;++i)n[i]=0;r(f===0);r((f&-8192)===0)};g.prototype.stub=function(e){var t=new Array(e);for(var n=0;n<e;n++)t[n]=0;return t};g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),u=this.makeRBT(r),f=this.stub(r),i=new Array(r),d=new Array(r),o=new Array(r),c=new Array(r),a=new Array(r),l=new Array(r),s=n.words;s.length=r;this.convert13b(e.words,e.length,i,r);this.convert13b(t.words,t.length,c,r);this.transform(i,f,d,o,r,u);this.transform(c,f,a,l,r,u);for(var b=0;b<r;b++){var p=d[b]*a[b]-o[b]*l[b];o[b]=d[b]*l[b]+o[b]*a[b];d[b]=p}this.conjugate(d,o,r);this.transform(d,o,s,f,r,u);this.conjugate(s,f,r);this.normalize13b(s,r);n.negative=e.negative^t.negative;n.length=e.length+t.length;return n.strip()};f.prototype.mul=function(e){var t=new f(null);t.words=new Array(this.length+e.length);return this.mulTo(e,t)};f.prototype.mulf=function(e){var t=new f(null);t.words=new Array(this.length+e.length);return h(this,e,t)};f.prototype.imul=function(e){return this.clone().mulTo(e,this)};f.prototype.imuln=function(e){r(typeof e==='number');r(e<67108864);var t=0;for(var n=0;n<this.length;n++){var u=(this.words[n]|0)*e,f=(u&67108863)+(t&67108863);t>>=26;t+=u/67108864|0;t+=f>>>26;this.words[n]=f&67108863}t!==0&&(this.words[n]=t,this.length++);return this};f.prototype.muln=function(e){return this.clone().imuln(e)};f.prototype.sqr=function(){return this.mul(this)};f.prototype.isqr=function(){return this.imul(this.clone())};f.prototype.pow=function(e){var t=s(e);if(t.length===0)return new f(1);var n=this;for(var r=0;r<t.length;r++, n=n.sqr()){if(t[r]!==0)break}if(++r<t.length){for(var u=n.sqr();r<t.length;r++, u=u.sqr()){if(t[r]===0)continue;n=n.mul(u)}}return n};f.prototype.iushln=function(e){r(typeof e==='number'&&e>=0);var t=e%26,n=(e-t)/26,u=67108863>>>26-t<<26-t,f;if(t!==0){var i=0;for(f=0;f<this.length;f++){var d=this.words[f]&u,o=(this.words[f]|0)-d<<t;this.words[f]=o|i;i=d>>>26-t}i&&(this.words[f]=i,this.length++)}if(n!==0){for(f=this.length-1;f>=0;f--)this.words[f+n]=this.words[f];for(f=0;f<n;f++)this.words[f]=0;this.length+=n}return this.strip()};f.prototype.ishln=function(e){r(this.negative===0);return this.iushln(e)};f.prototype.iushrn=function(e,t,n){r(typeof e==='number'&&e>=0);var u;t?(u=(t-t%26)/26):(u=0);var f=e%26,i=Math.min((e-f)/26,this.length),d=67108863^67108863>>>f<<f,o=n;u-=i;u=Math.max(0,u);if(o){for(var c=0;c<i;c++)o.words[c]=this.words[c];o.length=i}if(!(i===0))if(this.length>i){this.length-=i;for(c=0;c<this.length;c++)this.words[c]=this.words[c+i]}else this.words[0]=0,this.length=1;var a=0;for(c=this.length-1;c>=0&&(a!==0||c>=u);c--){var l=this.words[c]|0;this.words[c]=a<<26-f|l>>>f;a=l&d}o&&a!==0&&(o.words[o.length++]=a);this.length===0&&(this.words[0]=0,this.length=1);return this.strip()};f.prototype.ishrn=function(e,t,n){r(this.negative===0);return this.iushrn(e,t,n)};f.prototype.shln=function(e){return this.clone().ishln(e)};f.prototype.ushln=function(e){return this.clone().iushln(e)};f.prototype.shrn=function(e){return this.clone().ishrn(e)};f.prototype.ushrn=function(e){return this.clone().iushrn(e)};f.prototype.testn=function(e){r(typeof e==='number'&&e>=0);var t=e%26,n=(e-t)/26,u=1<<t;if(this.length<=n)return!1;var f=this.words[n];return!!(f&u)};f.prototype.imaskn=function(e){r(typeof e==='number'&&e>=0);var t=e%26,n=(e-t)/26;r(this.negative===0,'imaskn works only with positive numbers');if(this.length<=n){return this}t!==0&&n++;this.length=Math.min(n,this.length);if(t!==0){var u=67108863^67108863>>>t<<t;this.words[this.length-1]&=u}return this.strip()};f.prototype.maskn=function(e){return this.clone().imaskn(e)};f.prototype.iaddn=function(e){r(typeof e==='number');r(e<67108864);if(e<0)return this.isubn(-e);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<e){this.words[0]=e-(this.words[0]|0);this.negative=0;return this}this.negative=0;this.isubn(e);this.negative=1;return this}return this._iaddn(e)};f.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?(this.words[t+1]=1):this.words[t+1]++;this.length=Math.max(this.length,t+1);return this};f.prototype.isubn=function(e){r(typeof e==='number');r(e<67108864);if(e<0)return this.iaddn(-e);if(this.negative!==0){this.negative=0;this.iaddn(e);this.negative=1;return this}this.words[0]-=e;if(this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else{for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1}return this.strip()};f.prototype.addn=function(e){return this.clone().iaddn(e)};f.prototype.subn=function(e){return this.clone().isubn(e)};f.prototype.iabs=function(){this.negative=0;return this};f.prototype.abs=function(){return this.clone().iabs()};f.prototype._ishlnsubmul=function(e,t,n){var u=e.length+n,f;this._expand(u);var i,d=0;for(f=0;f<e.length;f++){i=(this.words[f+n]|0)+d;var o=(e.words[f]|0)*t;i-=o&67108863;d=(i>>26)-(o/67108864|0);this.words[f+n]=i&67108863}for(;f<this.length-n;f++)i=(this.words[f+n]|0)+d,d=i>>26,this.words[f+n]=i&67108863;if(d===0)return this.strip();r(d===-1);d=0;for(f=0;f<this.length;f++)i=-(this.words[f]|0)+d,d=i>>26,this.words[f]=i&67108863;this.negative=1;return this.strip()};f.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),u=e,i=u.words[u.length-1]|0,d=this._countBits(i);n=26-d;n!==0&&(u=u.ushln(n),r.iushln(n),i=u.words[u.length-1]|0);var o=r.length-u.length,c;if(t!=='mod'){c=new f(null);c.length=o+1;c.words=new Array(c.length);for(var a=0;a<c.length;a++)c.words[a]=0}var l=r.clone()._ishlnsubmul(u,1,o);l.negative===0&&(r=l,c&&(c.words[o]=1));for(var s=o-1;s>=0;s--){var b=(r.words[u.length+s]|0)*67108864+(r.words[u.length+s-1]|0);b=Math.min(b/i|0,67108863);r._ishlnsubmul(u,b,s);while(r.negative!==0)b--,r.negative=0,r._ishlnsubmul(u,1,s),r.isZero()||(r.negative^=1);c&&(c.words[s]=b)}c&&c.strip();r.strip();t!=='div'&&n!==0&&r.iushrn(n);return{div:c||null,mod:r}};f.prototype.divmod=function(e,t,n){r(!e.isZero());if(this.isZero()){return{div:new f(0),mod:new f(0)}}var u,i,d;if(this.negative!==0&&e.negative===0){d=this.neg().divmod(e,t);t!=='mod'&&(u=d.div.neg());t!=='div'&&(i=d.mod.neg(),n&&i.negative!==0&&i.iadd(e));return{div:u,mod:i}}if(this.negative===0&&e.negative!==0){d=this.divmod(e.neg(),t);t!=='mod'&&(u=d.div.neg());return{div:u,mod:d.mod}}if((this.negative&e.negative)!==0){d=this.neg().divmod(e.neg(),t);t!=='div'&&(i=d.mod.neg(),n&&i.negative!==0&&i.isub(e));return{div:d.div,mod:i}}if(e.length>this.length||this.cmp(e)<0){return{div:new f(0),mod:this}}if(e.length===1){if(t==='div'){return{div:this.divn(e.words[0]),mod:null}}if(t==='mod'){return{div:null,mod:new f(this.modn(e.words[0]))}}return{div:this.divn(e.words[0]),mod:new f(this.modn(e.words[0]))}}return this._wordDiv(e,t)};f.prototype.div=function(e){return this.divmod(e,'div',!1).div};f.prototype.mod=function(e){return this.divmod(e,'mod',!1).mod};f.prototype.umod=function(e){return this.divmod(e,'mod',!0).mod};f.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative!==0?t.mod.isub(e):t.mod,r=e.ushrn(1),u=e.andln(1),f=n.cmp(r);if(f<0||u===1&&f===0)return t.div;return t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)};f.prototype.modn=function(e){r(e<=67108863);var t=67108864%e,n=0;for(var u=this.length-1;u>=0;u--)n=(t*n+(this.words[u]|0))%e;return n};f.prototype.idivn=function(e){r(e<=67108863);var t=0;for(var n=this.length-1;n>=0;n--){var u=(this.words[n]|0)+t*67108864;this.words[n]=u/e|0;t=u%e}return this.strip()};f.prototype.divn=function(e){return this.clone().idivn(e)};f.prototype.egcd=function(e){r(e.negative===0);r(!e.isZero());var t=this,n=e.clone();t.negative!==0?(t=t.umod(e)):(t=t.clone());var u=new f(1),i=new f(0),d=new f(0),o=new f(1),c=0;while(t.isEven()&&n.isEven())t.iushrn(1),n.iushrn(1),++c;var a=n.clone(),l=t.clone();while(!t.isZero()){for(var s=0,b=1;(t.words[0]&b)===0&&s<26;++s, b<<=1);;if(s>0){t.iushrn(s);while(s-->0)(u.isOdd()||i.isOdd())&&(u.iadd(a),i.isub(l)),u.iushrn(1),i.iushrn(1)}for(var p=0,m=1;(n.words[0]&m)===0&&p<26;++p, m<<=1);;if(p>0){n.iushrn(p);while(p-->0)(d.isOdd()||o.isOdd())&&(d.iadd(a),o.isub(l)),d.iushrn(1),o.iushrn(1)}t.cmp(n)>=0?(t.isub(n),u.isub(d),i.isub(o)):(n.isub(t),d.isub(u),o.isub(i))}return{a:d,b:o,gcd:n.iushln(c)}};f.prototype._invmp=function(e){r(e.negative===0);r(!e.isZero());var t=this,n=e.clone();t.negative!==0?(t=t.umod(e)):(t=t.clone());var u=new f(1),i=new f(0),d=n.clone();while(t.cmpn(1)>0&&n.cmpn(1)>0){for(var o=0,c=1;(t.words[0]&c)===0&&o<26;++o, c<<=1);;if(o>0){t.iushrn(o);while(o-->0)u.isOdd()&&u.iadd(d),u.iushrn(1)}for(var a=0,l=1;(n.words[0]&l)===0&&a<26;++a, l<<=1);;if(a>0){n.iushrn(a);while(a-->0)i.isOdd()&&i.iadd(d),i.iushrn(1)}t.cmp(n)>=0?(t.isub(n),u.isub(i)):(n.isub(t),i.isub(u))}var s;t.cmpn(1)===0?(s=u):(s=i);s.cmpn(0)<0&&s.iadd(e);return s};f.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0;n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{while(t.isEven())t.iushrn(1);while(n.isEven())n.iushrn(1);var u=t.cmp(n);if(u<0){var f=t;t=n;n=f}else if(u===0||n.cmpn(1)===0){break}t.isub(n)}while(!0);return n.iushln(r)};f.prototype.invm=function(e){return this.egcd(e).a.umod(e)};f.prototype.isEven=function(){return(this.words[0]&1)===0};f.prototype.isOdd=function(){return(this.words[0]&1)===1};f.prototype.andln=function(e){return this.words[0]&e};f.prototype.bincn=function(e){r(typeof e==='number');var t=e%26,n=(e-t)/26,u=1<<t;if(this.length<=n){this._expand(n+1);this.words[n]|=u;return this}var f=u;for(var i=n;f!==0&&i<this.length;i++){var d=this.words[i]|0;d+=f;f=d>>>26;d&=67108863;this.words[i]=d}f!==0&&(this.words[i]=f,this.length++);return this};f.prototype.isZero=function(){return this.length===1&&this.words[0]===0};f.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e);r(e<=67108863,'Number is too big');var u=this.words[0]|0;n=u===e?0:u<e?-1:1}if(this.negative!==0)return-n|0;return n};f.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);if(this.negative!==0)return-t|0;return t};f.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;var t=0;for(var n=this.length-1;n>=0;n--){var r=this.words[n]|0,u=e.words[n]|0;if(r===u)continue;r<u?(t=-1):r>u&&(t=1);break}return t};f.prototype.gtn=function(e){return this.cmpn(e)===1};f.prototype.gt=function(e){return this.cmp(e)===1};f.prototype.gten=function(e){return this.cmpn(e)>=0};f.prototype.gte=function(e){return this.cmp(e)>=0};f.prototype.ltn=function(e){return this.cmpn(e)===-1};f.prototype.lt=function(e){return this.cmp(e)===-1};f.prototype.lten=function(e){return this.cmpn(e)<=0};f.prototype.lte=function(e){return this.cmp(e)<=0};f.prototype.eqn=function(e){return this.cmpn(e)===0};f.prototype.eq=function(e){return this.cmp(e)===0};f.red=function(e){return new I(e)};f.prototype.toRed=function(e){r(!this.red,'Already a number in reduction context');r(this.negative===0,'red works only with positives');return e.convertTo(this)._forceRed(e)};f.prototype.fromRed=function(){r(this.red,'fromRed works only with numbers in reduction context');return this.red.convertFrom(this)};f.prototype._forceRed=function(e){this.red=e;return this};f.prototype.forceRed=function(e){r(!this.red,'Already a number in reduction context');return this._forceRed(e)};f.prototype.redAdd=function(e){r(this.red,'redAdd works only with red numbers');return this.red.add(this,e)};f.prototype.redIAdd=function(e){r(this.red,'redIAdd works only with red numbers');return this.red.iadd(this,e)};f.prototype.redSub=function(e){r(this.red,'redSub works only with red numbers');return this.red.sub(this,e)};f.prototype.redISub=function(e){r(this.red,'redISub works only with red numbers');return this.red.isub(this,e)};f.prototype.redShl=function(e){r(this.red,'redShl works only with red numbers');return this.red.shl(this,e)};f.prototype.redMul=function(e){r(this.red,'redMul works only with red numbers');this.red._verify2(this,e);return this.red.mul(this,e)};f.prototype.redIMul=function(e){r(this.red,'redMul works only with red numbers');this.red._verify2(this,e);return this.red.imul(this,e)};f.prototype.redSqr=function(){r(this.red,'redSqr works only with red numbers');this.red._verify1(this);return this.red.sqr(this)};f.prototype.redISqr=function(){r(this.red,'redISqr works only with red numbers');this.red._verify1(this);return this.red.isqr(this)};f.prototype.redSqrt=function(){r(this.red,'redSqrt works only with red numbers');this.red._verify1(this);return this.red.sqrt(this)};f.prototype.redInvm=function(){r(this.red,'redInvm works only with red numbers');this.red._verify1(this);return this.red.invm(this)};f.prototype.redNeg=function(){r(this.red,'redNeg works only with red numbers');this.red._verify1(this);return this.red.neg(this)};f.prototype.redPow=function(e){r(this.red&&!e.red,'redPow(normalNum)');this.red._verify1(this);return this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e;this.p=new f(t,16);this.n=this.p.bitLength();this.k=new f(1).iushln(this.n).isub(this.p);this.tmp=this._tmp()}_.prototype._tmp=function(){var e=new f(null);e.words=new Array(Math.ceil(this.n/13));return e};_.prototype.ireduce=function(e){var t=e,n;do{this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),n=t.bitLength()}while(n>this.n);var r=n<this.n?-1:t.ucmp(this.p);r===0?(t.words[0]=0,t.length=1):r>0?t.isub(this.p):t.strip();return t};_.prototype.split=function(e,t){e.iushrn(this.n,0,t)};_.prototype.imulK=function(e){return e.imul(this.k)};function w(){_.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f')}u(w,_);w.prototype.split=function(e,t){var n=4194303,r=Math.min(e.length,9);for(var u=0;u<r;u++)t.words[u]=e.words[u];t.length=r;if(e.length<=9){e.words[0]=0;e.length=1;return}var f=e.words[9];t.words[t.length++]=f&n;for(u=10;u<e.length;u++){var i=e.words[u]|0;e.words[u-10]=(i&n)<<4|f>>>22;f=i}f>>>=22;e.words[u-10]=f;f===0&&e.length>10?(e.length-=10):(e.length-=9)};w.prototype.imulK=function(e){e.words[e.length]=0;e.words[e.length+1]=0;e.length+=2;var t=0;for(var n=0;n<e.length;n++){var r=e.words[n]|0;t+=r*977;e.words[n]=t&67108863;t=r*64+(t/67108864|0)}e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--);return e};function v(){_.call(this,'p224','ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001')}u(v,_);function S(){_.call(this,'p192','ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff')}u(S,_);function x(){_.call(this,'25519','7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed')}u(x,_);x.prototype.imulK=function(e){var t=0;for(var n=0;n<e.length;n++){var r=(e.words[n]|0)*19+t,u=r&67108863;r>>>=26;e.words[n]=u;t=r}t!==0&&(e.words[e.length++]=t);return e};f._prime=function(t){if(y[t])return y[t];var e;if(t==='k256')e=new w;else if(t==='p224')e=new v;else if(t==='p192')e=new S;else if(t==='p25519')e=new x;else{throw new Error('Unknown prime '+t)}y[t]=e;return e};function I(e){if(typeof e==='string'){var t=f._prime(e);this.m=t.p;this.prime=t}else r(e.gtn(1),'modulus must be greater than 1'),this.m=e,this.prime=null}I.prototype._verify1=function(e){r(e.negative===0,'red works only with positives');r(e.red,'red works only with red numbers')};I.prototype._verify2=function(e,t){r((e.negative|t.negative)===0,'red works only with positives');r(e.red&&e.red===t.red,'red works only with red numbers')};I.prototype.imod=function(e){if(this.prime)return this.prime.ireduce(e)._forceRed(this);return e.umod(this.m)._forceRed(this)};I.prototype.neg=function(e){if(e.isZero()){return e.clone()}return this.m.sub(e)._forceRed(this)};I.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);n.cmp(this.m)>=0&&n.isub(this.m);return n._forceRed(this)};I.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);n.cmp(this.m)>=0&&n.isub(this.m);return n};I.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);n.cmpn(0)<0&&n.iadd(this.m);return n._forceRed(this)};I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);n.cmpn(0)<0&&n.iadd(this.m);return n};I.prototype.shl=function(e,t){this._verify1(e);return this.imod(e.ushln(t))};I.prototype.imul=function(e,t){this._verify2(e,t);return this.imod(e.imul(t))};I.prototype.mul=function(e,t){this._verify2(e,t);return this.imod(e.mul(t))};I.prototype.isqr=function(e){return this.imul(e,e.clone())};I.prototype.sqr=function(e){return this.mul(e,e)};I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);r(t%2===1);if(t===3){var n=this.m.add(new f(1)).iushrn(2);return this.pow(e,n)}var u=this.m.subn(1),i=0;while(!u.isZero()&&u.andln(1)===0)i++,u.iushrn(1);r(!u.isZero());var d=new f(1).toRed(this),o=d.redNeg(),c=this.m.subn(1).iushrn(1),a=this.m.bitLength();a=new f(2*a*a).toRed(this);while(this.pow(a,c).cmp(o)!==0)a.redIAdd(o);var l=this.pow(a,u),s=this.pow(e,u.addn(1).iushrn(1)),b=this.pow(e,u),p=i;while(b.cmp(d)!==0){var m=b;for(var h=0;m.cmp(d)!==0;h++)m=m.redSqr();r(h<p);var g=this.pow(l,new f(1).iushln(p-h-1));s=s.redMul(g);l=g.redSqr();b=b.redMul(l);p=h}return s};I.prototype.invm=function(e){var t=e._invmp(this.m);if(t.negative!==0){t.negative=0;return this.imod(t).redNeg()}else{return this.imod(t)}};I.prototype.pow=function(e,t){if(t.isZero())return new f(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=4,r=new Array(1<<n);r[0]=new f(1).toRed(this);r[1]=e;for(var u=2;u<r.length;u++)r[u]=this.mul(r[u-1],e);var i=r[0],d=0,o=0,c=t.bitLength()%26;c===0&&(c=26);for(u=t.length-1;u>=0;u--){var a=t.words[u];for(var l=c-1;l>=0;l--){var s=a>>l&1;i!==r[0]&&(i=this.sqr(i));if(s===0&&d===0){o=0;continue}d<<=1;d|=s;o++;if(o!==n&&(u!==0||l!==0))continue;i=this.mul(i,r[d]);o=0;d=0}c=26}return i};I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t};I.prototype.convertFrom=function(e){var t=e.clone();t.red=null;return t};f.mont=function(e){return new A(e)};function A(e){I.call(this,e);this.shift=this.m.bitLength();this.shift%26!==0&&(this.shift+=26-this.shift%26);this.r=new f(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)}u(A,I);A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))};A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));t.red=null;return t};A.prototype.imul=function(e,t){if(e.isZero()||t.isZero()){e.words[0]=0;e.length=1;return e}var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(r).iushrn(this.shift),f=u;u.cmp(this.m)>=0?(f=u.isub(this.m)):u.cmpn(0)<0&&(f=u.iadd(this.m));return f._forceRed(this)};A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new f(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(r).iushrn(this.shift),i=u;u.cmp(this.m)>=0?(i=u.isub(this.m)):u.cmpn(0)<0&&(i=u.iadd(this.m));return i._forceRed(this)};A.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}}(typeof t==='undefined'||t,this)},{"buffer":2}],35:[function(e,t,n){var r;t.exports=function(e){r||(r=new u(null));return r.generate(e)};function u(e){this.rand=e}t.exports.Rand=u;u.prototype.generate=function(e){return this._rand(e)};u.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);var t=new Uint8Array(e);for(var n=0;n<t.length;n++)t[n]=this.rand.getByte();return t};if(typeof self==='object')self.crypto&&self.crypto.getRandomValues?(u.prototype._rand=function(e){var t=new Uint8Array(e);self.crypto.getRandomValues(t);return t}):self.msCrypto&&self.msCrypto.getRandomValues?(u.prototype._rand=function(e){var t=new Uint8Array(e);self.msCrypto.getRandomValues(t);return t}):typeof window==='object'&&(u.prototype._rand=function(){throw new Error('Not implemented yet')});else{try{var f=e('crypto');if(typeof f.randomBytes!=='function')throw new Error('Not supported');u.prototype._rand=function(e){return f.randomBytes(e)}}catch(e){}}},{"crypto":2}],36:[function(e,t,n){var r=e('base-x'),u='123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';t.exports=r(u)},{"base-x":31}],37:[function(e,t,n){"use strict";var r=e('bs58'),u=e('safe-buffer').Buffer;t.exports=function(e){function t(t){var n=e(t);return r.encode(u.concat([t,n],t.length+4))}function n(t){var n=t.slice(0,-4),r=t.slice(-4),u=e(n);if(r[0]^u[0]|r[1]^u[1]|r[2]^u[2]|r[3]^u[3])return;return n}function f(e){var t=r.decodeUnsafe(e);if(!t)return;return n(t)}function i(t){var u=r.decode(t),f=n(u,e);if(!f)throw new Error('Invalid checksum');return f}return{encode:t,decode:i,decodeUnsafe:f}}},{"bs58":36,"safe-buffer":79}],38:[function(e,t,n){"use strict";var r=e('create-hash'),u=e('./base');function f(e){var t=r('sha256').update(e).digest();return r('sha256').update(t).digest()}t.exports=u(f)},{"./base":37,"create-hash":40}],39:[function(e,t,n){var r=e('safe-buffer').Buffer,u=e('stream').Transform,f=e('string_decoder').StringDecoder,i=e('inherits');function d(e){u.call(this);this.hashMode=typeof e==='string';this.hashMode?(this[e]=this._finalOrDigest):(this.final=this._finalOrDigest);this._final&&(this.__final=this._final,this._final=null);this._decoder=null;this._encoding=null}i(d,u);d.prototype.update=function(e,t,n){typeof e==='string'&&(e=r.from(e,t));var u=this._update(e);if(this.hashMode)return this;n&&(u=this._toString(u,n));return u};d.prototype.setAutoPadding=function(){};d.prototype.getAuthTag=function(){throw new Error('trying to get auth tag in unsupported state')};d.prototype.setAuthTag=function(){throw new Error('trying to set auth tag in unsupported state')};d.prototype.setAAD=function(){throw new Error('trying to set aad in unsupported state')};d.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}};d.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e};e(t)};d.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);e&&(t=this._toString(t,e,!0));return t};d.prototype._toString=function(e,t,n){this._decoder||(this._decoder=new f(t),this._encoding=t);if(this._encoding!==t)throw new Error('can\'t switch encodings');var r=this._decoder.write(e);n&&(r+=this._decoder.end());return r};t.exports=d},{"inherits":74,"safe-buffer":79,"stream":27,"string_decoder":28}],40:[function(e,t,n){"use strict";var r=e('inherits'),u=e('md5.js'),f=e('ripemd160'),i=e('sha.js'),d=e('cipher-base');function o(e){d.call(this,'digest');this._hash=e}r(o,d);o.prototype._update=function(e){this._hash.update(e)};o.prototype._final=function(){return this._hash.digest()};t.exports=function(e){e=e.toLowerCase();if(e==='md5')return new u;if(e==='rmd160'||e==='ripemd160')return new f;return new o(i(e))}},{"cipher-base":39,"inherits":74,"md5.js":75,"ripemd160":78,"sha.js":81}],41:[function(e,t,n){var r=e('md5.js');t.exports=function(e){return new r.update(e).digest()}},{"md5.js":75}],42:[function(e,t,n){"use strict";var r=e('inherits'),u=e('./legacy'),f=e('cipher-base'),i=e('safe-buffer').Buffer,d=e('create-hash/md5'),o=e('ripemd160'),c=e('sha.js'),a=i.alloc(128);function l(e,t){f.call(this,'digest');typeof t==='string'&&(t=i.from(t));var n=e==='sha512'||e==='sha384'?128:64;this._alg=e;this._key=t;if(t.length>n){var r=e==='rmd160'?new o:c(e);t=r.update(t).digest()}else t.length<n&&(t=i.concat([t,a],n));var u=this._ipad=i.allocUnsafe(n),d=this._opad=i.allocUnsafe(n);for(var l=0;l<n;l++)u[l]=t[l]^54,d[l]=t[l]^92;this._hash=e==='rmd160'?new o:c(e);this._hash.update(u)}r(l,f);l.prototype._update=function(e){this._hash.update(e)};l.prototype._final=function(){var e=this._hash.digest(),t=this._alg==='rmd160'?new o:c(this._alg);return t.update(this._opad).update(e).digest()};t.exports=function(e,t){e=e.toLowerCase();if(e==='rmd160'||e==='ripemd160'){return new l('rmd160',t)}if(e==='md5'){return new u(d,t)}return new l(e,t)}},{"./legacy":43,"cipher-base":39,"create-hash/md5":41,"inherits":74,"ripemd160":78,"safe-buffer":79,"sha.js":81}],43:[function(e,t,n){"use strict";var r=e('inherits'),u=e('safe-buffer').Buffer,f=e('cipher-base'),i=u.alloc(128),d=64;function o(e,t){f.call(this,'digest');typeof t==='string'&&(t=u.from(t));this._alg=e;this._key=t;t.length>d?(t=e(t)):t.length<d&&(t=u.concat([t,i],d));var n=this._ipad=u.allocUnsafe(d),r=this._opad=u.allocUnsafe(d);for(var o=0;o<d;o++)n[o]=t[o]^54,r[o]=t[o]^92;this._hash=[n]}r(o,f);o.prototype._update=function(e){this._hash.push(e)};o.prototype._final=function(){var e=this._alg(u.concat(this._hash));return this._alg(u.concat([this._opad,e]))};t.exports=o},{"cipher-base":39,"inherits":74,"safe-buffer":79}],44:[function(e,t,n){"use strict";var r=n;r.version=e('../package.json').version;r.utils=e('./elliptic/utils');r.rand=e('brorand');r.curve=e('./elliptic/curve');r.curves=e('./elliptic/curves');r.ec=e('./elliptic/ec');r.eddsa=e('./elliptic/eddsa')},{"../package.json":59,"./elliptic/curve":47,"./elliptic/curves":50,"./elliptic/ec":51,"./elliptic/eddsa":54,"./elliptic/utils":58,"brorand":35}],45:[function(e,t,n){"use strict";var r=e('bn.js'),u=e('../../elliptic'),f=u.utils,i=f.getNAF,d=f.getJSF,o=f.assert;function c(e,t){this.type=e;this.p=new r(t.p,16);this.red=t.prime?r.red(t.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=t.n&&new r(t.n,16);this.g=t.g&&this.pointFromJSON(t.g,t.gRed);this._wnafT1=new Array(4);this._wnafT2=new Array(4);this._wnafT3=new Array(4);this._wnafT4=new Array(4);var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?(this.redN=null):(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}t.exports=c;c.prototype.point=function(){throw new Error('Not implemented')};c.prototype.validate=function(){throw new Error('Not implemented')};c.prototype._fixedNafMul=function(e,t){o(e.precomputed);var n=e._getDoubles(),r=i(t,1),u=(1<<n.step+1)-(n.step%2===0?2:1);u/=3;var f=[];for(var d=0;d<r.length;d+=n.step){var c=0;for(t=d+n.step-1;t>=d;t--)c=(c<<1)+r[t];f.push(c)}var a=this.jpoint(null,null,null),l=this.jpoint(null,null,null);for(var s=u;s>0;s--){for(d=0;d<f.length;d++){c=f[d];c===s?(l=l.mixedAdd(n.points[d])):c===-s&&(l=l.mixedAdd(n.points[d].neg()))}a=a.add(l)}return a.toP()};c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;var u=r.points,f=i(t,n),d=this.jpoint(null,null,null);for(var c=f.length-1;c>=0;c--){for(t=0;c>=0&&f[c]===0;c--)t++;c>=0&&t++;d=d.dblp(t);if(c<0)break;var a=f[c];o(a!==0);e.type==='affine'?(a>0?(d=d.mixedAdd(u[a-1>>1])):(d=d.mixedAdd(u[-a-1>>1].neg()))):(a>0?(d=d.add(u[a-1>>1])):(d=d.add(u[-a-1>>1].neg())))}return e.type==='affine'?d.toP():d};c.prototype._wnafMulAdd=function(e,t,n,r,u){var f=this._wnafT1,o=this._wnafT2,c=this._wnafT3,a=0;for(var l=0;l<r;l++){var s=t[l],b=s._getNAFPoints(e);f[l]=b.wnd;o[l]=b.points}for(l=r-1;l>=1;l-=2){var p=l-1,m=l;if(f[p]!==1||f[m]!==1){c[p]=i(n[p],f[p]);c[m]=i(n[m],f[m]);a=Math.max(c[p].length,a);a=Math.max(c[m].length,a);continue}var h=[t[p],null,null,t[m]];t[p].y.cmp(t[m].y)===0?(h[1]=t[p].add(t[m]),h[2]=t[p].toJ().mixedAdd(t[m].neg())):t[p].y.cmp(t[m].y.redNeg())===0?(h[1]=t[p].toJ().mixedAdd(t[m]),h[2]=t[p].add(t[m].neg())):(h[1]=t[p].toJ().mixedAdd(t[m]),h[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=d(n[p],n[m]);a=Math.max(y[0].length,a);c[p]=new Array(a);c[m]=new Array(a);for(var _=0;_<a;_++){var w=y[0][_]|0,v=y[1][_]|0;c[p][_]=g[(w+1)*3+(v+1)];c[m][_]=0;o[p]=h}}var S=this.jpoint(null,null,null),x=this._wnafT4;for(l=a;l>=0;l--){var I=0;while(l>=0){var A=!0;for(_=0;_<r;_++)x[_]=c[_][l]|0,x[_]!==0&&(A=!1);if(!A)break;I++;l--}l>=0&&I++;S=S.dblp(I);if(l<0)break;for(_=0;_<r;_++){var M=x[_],s;if(M===0)continue;else M>0?(s=o[_][M-1>>1]):M<0&&(s=o[_][-M-1>>1].neg());s.type==='affine'?(S=S.mixedAdd(s)):(S=S.add(s))}}for(l=0;l<r;l++)o[l]=null;if(u)return S;else return S.toP()};function a(e,t){this.curve=e;this.type=t;this.precomputed=null}c.BasePoint=a;a.prototype.eq=function(){throw new Error('Not implemented')};a.prototype.validate=function(){return this.curve.validate(this)};c.prototype.decodePoint=function(e,t){e=f.toArray(e,t);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*n){e[0]===6?o(e[e.length-1]%2===0):e[0]===7&&o(e[e.length-1]%2===1);var r=this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));return r}else if((e[0]===2||e[0]===3)&&e.length-1===n){return this.pointFromX(e.slice(1,1+n),e[0]===3)}throw new Error('Unknown point format')};a.prototype.encodeCompressed=function(e){return this.encode(e,!0)};a.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray('be',t);if(e)return[this.getY().isEven()?2:3].concat(n);return[4].concat(n,this.getY().toArray('be',t)) };a.prototype.encode=function(e,t){return f.encode(this._encode(t),e)};a.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};t.naf=this._getNAFPoints(8);t.doubles=this._getDoubles(4,e);t.beta=this._getBeta();this.precomputed=t;return this};a.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;if(!t)return!1;return t.points.length>=Math.ceil((e.bitLength()+1)/t.step)};a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var n=[this],r=this;for(var u=0;u<t;u+=e){for(var f=0;f<e;f++)r=r.dbl();n.push(r)}return{step:e,points:n}};a.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var t=[this],n=(1<<e)-1,r=n===1?null:this.dbl();for(var u=1;u<n;u++)t[u]=t[u-1].add(r);return{wnd:e,points:t}};a.prototype._getBeta=function(){return null};a.prototype.dblp=function(e){var t=this;for(var n=0;n<e;n++)t=t.dbl();return t}},{"../../elliptic":44,"bn.js":34}],46:[function(e,t,n){"use strict";var r=e('../curve'),u=e('../../elliptic'),f=e('bn.js'),i=e('inherits'),d=r.base,o=u.utils.assert;function c(e){this.twisted=(e.a|0)!==1;this.mOneA=this.twisted&&(e.a|0)===-1;this.extended=this.mOneA;d.call(this,'edwards',e);this.a=new f(e.a,16).umod(this.red.m);this.a=this.a.toRed(this.red);this.c=new f(e.c,16).toRed(this.red);this.c2=this.c.redSqr();this.d=new f(e.d,16).toRed(this.red);this.dd=this.d.redAdd(this.d);o(!this.twisted||this.c.fromRed().cmpn(1)===0);this.oneC=(e.c|0)===1}i(c,d);t.exports=c;c.prototype._mulA=function(e){if(this.mOneA)return e.redNeg();else return this.a.redMul(e)};c.prototype._mulC=function(e){if(this.oneC)return e;else return this.c.redMul(e)};c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)};c.prototype.pointFromX=function(e,t){e=new f(e,16);e.red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),u=this.one.redSub(this.c2.redMul(this.d).redMul(n)),i=r.redMul(u.redInvm()),d=i.redSqrt();if(d.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error('invalid point');var o=d.fromRed().isOdd();(t&&!o||!t&&o)&&(d=d.redNeg());return this.point(e,d)};c.prototype.pointFromY=function(e,t){e=new f(e,16);e.red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),u=n.redMul(this.d).redMul(this.c2).redSub(this.a),i=r.redMul(u.redInvm());if(i.cmp(this.zero)===0){if(t)throw new Error('invalid point');else return this.point(this.zero,e)}var d=i.redSqrt();if(d.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error('invalid point');d.fromRed().isOdd()!==t&&(d=d.redNeg());return this.point(d,e)};c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),u=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return r.cmp(u)===0};function a(e,t,n,r,u){d.BasePoint.call(this,e,'projective');t===null&&n===null&&r===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 f(t,16),this.y=new f(n,16),this.z=r?new f(r,16):this.curve.one,this.t=u&&new f(u,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()))))}i(a,d.BasePoint);c.prototype.pointFromJSON=function(e){return a.fromJSON(this,e)};c.prototype.point=function(e,t,n,r){return new a(this,e,t,n,r)};a.fromJSON=function(e,t){return new a(e,t[0],t[1],t[2])};a.prototype.inspect=function(){if(this.isInfinity())return'<EC Point Infinity>';return'<EC Point x: '+this.x.fromRed().toString(16,2)+' y: '+this.y.fromRed().toString(16,2)+' z: '+this.z.fromRed().toString(16,2)+'>'};a.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};a.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),u=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),f=r.redAdd(t),i=f.redSub(n),d=r.redSub(t),o=u.redMul(i),c=f.redMul(d),a=u.redMul(d),l=i.redMul(f);return this.curve.point(o,c,l,a)};a.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),r,u,f;if(this.curve.twisted){var i=this.curve._mulA(t),d=i.redAdd(n);if(this.zOne)r=e.redSub(t).redSub(n).redMul(d.redSub(this.curve.two)),u=d.redMul(i.redSub(n)),f=d.redSqr().redSub(d).redSub(d);else{var o=this.z.redSqr(),c=d.redSub(o).redISub(o);r=e.redSub(t).redISub(n).redMul(c);u=d.redMul(i.redSub(n));f=d.redMul(c)}}else{i=t.redAdd(n),o=this.curve._mulC(this.z).redSqr(),c=i.redSub(o).redSub(o);r=this.curve._mulC(e.redISub(i)).redMul(c);u=this.curve._mulC(i).redMul(t.redISub(n));f=i.redMul(c)}return this.curve.point(r,u,f)};a.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()};a.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),u=this.z.redMul(e.z.redAdd(e.z)),f=n.redSub(t),i=u.redSub(r),d=u.redAdd(r),o=n.redAdd(t),c=f.redMul(i),a=d.redMul(o),l=f.redMul(o),s=i.redMul(d);return this.curve.point(c,a,s,l)};a.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),r=this.x.redMul(e.x),u=this.y.redMul(e.y),f=this.curve.d.redMul(r).redMul(u),i=n.redSub(f),d=n.redAdd(f),o=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(r).redISub(u),c=t.redMul(i).redMul(o),a,l;this.curve.twisted?(a=t.redMul(d).redMul(u.redSub(this.curve._mulA(r))),l=i.redMul(d)):(a=t.redMul(d).redMul(u.redSub(r)),l=this.curve._mulC(i).redMul(d));return this.curve.point(c,a,l)};a.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.curve.extended)return this._extAdd(e);else return this._projAdd(e)};a.prototype.mul=function(e){if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else return this.curve._wnafMul(this,e)};a.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};a.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};a.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();this.x=this.x.redMul(e);this.y=this.y.redMul(e);this.t&&(this.t=this.t.redMul(e));this.z=this.curve.one;this.zOne=!0;return this};a.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};a.prototype.getX=function(){this.normalize();return this.x.fromRed()};a.prototype.getY=function(){this.normalize();return this.y.fromRed()};a.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};a.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;var n=e.clone(),r=this.curve.redN.redMul(this.z);for(;;){n.iadd(this.curve.n);if(n.cmp(this.curve.p)>=0)return!1;t.redIAdd(r);if(this.x.cmp(t)===0)return!0}};a.prototype.toP=a.prototype.normalize;a.prototype.mixedAdd=a.prototype.add},{"../../elliptic":44,"../curve":47,"bn.js":34,"inherits":74}],47:[function(e,t,n){"use strict";var r=n;r.base=e('./base');r.short=e('./short');r.mont=e('./mont');r.edwards=e('./edwards')},{"./base":45,"./edwards":46,"./mont":48,"./short":49}],48:[function(e,t,n){"use strict";var r=e('../curve'),u=e('bn.js'),f=e('inherits'),i=r.base,d=e('../../elliptic'),o=d.utils;function c(e){i.call(this,'mont',e);this.a=new u(e.a,16).toRed(this.red);this.b=new u(e.b,16).toRed(this.red);this.i4=new u(4).toRed(this.red).redInvm();this.two=new u(2).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}f(c,i);t.exports=c;c.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),u=r.redSqrt();return u.redSqr().cmp(r)===0};function a(e,t,n){i.BasePoint.call(this,e,'projective');t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new u(t,16),this.z=new u(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}f(a,i.BasePoint);c.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)};c.prototype.point=function(e,t){return new a(this,e,t)};c.prototype.pointFromJSON=function(e){return a.fromJSON(this,e)};a.prototype.precompute=function(){};a.prototype._encode=function(){return this.getX().toArray('be',this.curve.p.byteLength())};a.fromJSON=function(e,t){return new a(e,t[0],t[1]||e.one)};a.prototype.inspect=function(){if(this.isInfinity())return'<EC Point Infinity>';return'<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 e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),r=n.redSqr(),u=t.redSub(r),f=t.redMul(r),i=u.redMul(r.redAdd(this.curve.a24.redMul(u)));return this.curve.point(f,i)};a.prototype.add=function(){throw new Error('Not supported on Montgomery curve')};a.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),u=e.x.redAdd(e.z),f=e.x.redSub(e.z),i=f.redMul(n),d=u.redMul(r),o=t.z.redMul(i.redAdd(d).redSqr()),c=t.x.redMul(i.redISub(d).redSqr());return this.curve.point(o,c)};a.prototype.mul=function(e){var t=e.clone(),n=this,r=this.curve.point(null,null),u=this;for(var f=[];t.cmpn(0)!==0;t.iushrn(1))f.push(t.andln(1));for(var i=f.length-1;i>=0;i--)f[i]===0?(n=n.diffAdd(r,u),r=r.dbl()):(r=n.diffAdd(r,u),n=n.dbl());return r};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(e){return this.getX().cmp(e.getX())===0};a.prototype.normalize=function(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};a.prototype.getX=function(){this.normalize();return this.x.fromRed()}},{"../../elliptic":44,"../curve":47,"bn.js":34,"inherits":74}],49:[function(e,t,n){"use strict";var r=e('../curve'),u=e('../../elliptic'),f=e('bn.js'),i=e('inherits'),d=r.base,o=u.utils.assert;function c(e){d.call(this,'short',e);this.a=new f(e.a,16).toRed(this.red);this.b=new f(e.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(e);this._endoWnafT1=new Array(4);this._endoWnafT2=new Array(4)}i(c,d);t.exports=c;c.prototype._getEndomorphism=function(e){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var t,n;if(e.beta)t=new f(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=r[0].cmp(r[1])<0?r[0]:r[1];t=t.toRed(this.red)}if(e.lambda)n=new f(e.lambda,16);else{var u=this._getEndoRoots(this.n);this.g.mul(u[0]).x.cmp(this.g.x.redMul(t))===0?(n=u[0]):(n=u[1],o(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var i;e.basis?(i=e.basis.map(function(e){return{a:new f(e.a,16),b:new f(e.b,16)}})):(i=this._getEndoBasis(n));return{beta:t,lambda:n,basis:i}};c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:f.mont(e),n=new f(2).toRed(t).redInvm(),r=n.redNeg(),u=new f(3).toRed(t).redNeg().redSqrt().redMul(n),i=r.redAdd(u).fromRed(),d=r.redSub(u).fromRed();return[i,d]};c.prototype._getEndoBasis=function(e){var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,r=this.n.clone(),u=new f(1),i=new f(0),d=new f(0),o=new f(1),c,a,l,s,b,p,m,h=0,g,y;while(n.cmpn(0)!==0){var _=r.div(n);g=r.sub(_.mul(n));y=d.sub(_.mul(u));var w=o.sub(_.mul(i));if(!l&&g.cmp(t)<0)c=m.neg(),a=u,l=g.neg(),s=y;else if(l&&++h===2){break}m=g;r=n;n=g;d=u;u=y;o=i;i=w}b=g.neg();p=y;var v=l.sqr().add(s.sqr()),S=b.sqr().add(p.sqr());S.cmp(v)>=0&&(b=c,p=a);l.negative&&(l=l.neg(),s=s.neg());b.negative&&(b=b.neg(),p=p.neg());return[{a:l,b:s},{a:b,b:p}]};c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],u=r.b.mul(e).divRound(this.n),f=n.b.neg().mul(e).divRound(this.n),i=u.mul(n.a),d=f.mul(r.a),o=u.mul(n.b),c=f.mul(r.b),a=e.sub(i).sub(d),l=o.add(c).neg();return{k1:a,k2:l}};c.prototype.pointFromX=function(e,t){e=new f(e,16);e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(r.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error('invalid point');var u=r.fromRed().isOdd();(t&&!u||!t&&u)&&(r=r.redNeg());return this.point(e,r)};c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),u=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return n.redSqr().redISub(u).cmpn(0)===0};c.prototype._endoWnafMulAdd=function(e,t,n){var r=this._endoWnafT1,u=this._endoWnafT2;for(var f=0;f<e.length;f++){var i=this._endoSplit(t[f]),d=e[f],o=d._getBeta();i.k1.negative&&(i.k1.ineg(),d=d.neg(!0));i.k2.negative&&(i.k2.ineg(),o=o.neg(!0));r[f*2]=d;r[f*2+1]=o;u[f*2]=i.k1;u[f*2+1]=i.k2}var c=this._wnafMulAdd(1,r,u,f*2,n);for(var a=0;a<f*2;a++)r[a]=null,u[a]=null;return c};function a(e,t,n,r){d.BasePoint.call(this,e,'affine');t===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new f(t,16),this.y=new f(n,16),r&&(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)}i(a,d.BasePoint);c.prototype.point=function(e,t,n){return new a(this,e,t,n)};c.prototype.pointFromJSON=function(e,t){return a.fromJSON(this,e,t)};a.prototype._getBeta=function(){if(!this.curve.endo)return;var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t;t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t};a.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[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)}}]};a.fromJSON=function(e,t,n){typeof t==='string'&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function u(t){return e.point(t[0],t[1],n)}var f=t[2];r.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[r].concat(f.doubles.points.map(u))},naf:f.naf&&{wnd:f.naf.wnd,points:[r].concat(f.naf.points.map(u))}};return r};a.prototype.inspect=function(){if(this.isInfinity())return'<EC Point Infinity>';return'<EC Point x: '+this.x.fromRed().toString(16,2)+' y: '+this.y.fromRed().toString(16,2)+'>'};a.prototype.isInfinity=function(){return this.inf};a.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)};a.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),u=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),f=u.redSqr().redISub(this.x.redAdd(this.x)),i=u.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,i)};a.prototype.getX=function(){return this.x.fromRed()};a.prototype.getY=function(){return this.y.fromRed()};a.prototype.mul=function(e){e=new f(e,16);if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[e]);else return this.curve._wnafMul(this,e)};a.prototype.mulAdd=function(e,t,n){var r=[this,t],u=[e,n];if(this.curve.endo)return this.curve._endoWnafMulAdd(r,u);else return this.curve._wnafMulAdd(1,r,u,2)};a.prototype.jmulAdd=function(e,t,n){var r=[this,t],u=[e,n];if(this.curve.endo)return this.curve._endoWnafMulAdd(r,u,!0);else return this.curve._wnafMulAdd(1,r,u,2,!0)};a.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};a.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t};a.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function l(e,t,n,r){d.BasePoint.call(this,e,'jacobian');t===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new f(0)):(this.x=new f(t,16),this.y=new f(n,16),this.z=new f(r,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}i(l,d.BasePoint);c.prototype.jpoint=function(e,t,n){return new l(this,e,t,n)};l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)};l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),u=e.x.redMul(n),f=this.y.redMul(t.redMul(e.z)),i=e.y.redMul(n.redMul(this.z)),d=r.redSub(u),o=f.redSub(i);if(d.cmpn(0)===0){if(o.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var c=d.redSqr(),a=c.redMul(d),l=r.redMul(c),s=o.redSqr().redIAdd(a).redISub(l).redISub(l),b=o.redMul(l.redISub(s)).redISub(f.redMul(a)),p=this.z.redMul(e.z).redMul(d);return this.curve.jpoint(s,b,p)};l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),u=this.y,f=e.y.redMul(t).redMul(this.z),i=n.redSub(r),d=u.redSub(f);if(i.cmpn(0)===0){if(d.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var o=i.redSqr(),c=o.redMul(i),a=n.redMul(o),l=d.redSqr().redIAdd(c).redISub(a).redISub(a),s=d.redMul(a.redISub(l)).redISub(u.redMul(c)),b=this.z.redMul(i);return this.curve.jpoint(l,s,b)};l.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t=this;for(var n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,u=this.curve.tinv,f=this.x,i=this.y,d=this.z,o=d.redSqr().redSqr(),c=i.redAdd(i);for(n=0;n<e;n++){var a=f.redSqr(),l=c.redSqr(),s=l.redSqr(),b=a.redAdd(a).redIAdd(a).redIAdd(r.redMul(o)),p=f.redMul(l),m=b.redSqr().redISub(p.redAdd(p)),h=p.redISub(m),g=b.redMul(h);g=g.redIAdd(g).redISub(s);var y=c.redMul(d);n+1<e&&(o=o.redMul(s));f=m;d=y;c=g}return this.curve.jpoint(f,c.redMul(u),d)};l.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()};l.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),u=this.y.redSqr(),f=u.redSqr(),i=this.x.redAdd(u).redSqr().redISub(r).redISub(f);i=i.redIAdd(i);var d=r.redAdd(r).redIAdd(r),o=d.redSqr().redISub(i).redISub(i),c=f.redIAdd(f);c=c.redIAdd(c);c=c.redIAdd(c);e=o;t=d.redMul(i.redISub(o)).redISub(c);n=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),l=this.y.redSqr(),s=l.redSqr(),b=this.x.redAdd(l).redSqr().redISub(a).redISub(s);b=b.redIAdd(b);var p=a.redAdd(a).redIAdd(a),m=p.redSqr(),h=s.redIAdd(s);h=h.redIAdd(h);h=h.redIAdd(h);e=m.redISub(b).redISub(b);t=p.redMul(b.redISub(e)).redISub(h);n=this.y.redMul(this.z);n=n.redIAdd(n)}return this.curve.jpoint(e,t,n)};l.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),u=this.y.redSqr(),f=u.redSqr(),i=this.x.redAdd(u).redSqr().redISub(r).redISub(f);i=i.redIAdd(i);var d=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),o=d.redSqr().redISub(i).redISub(i);e=o;var c=f.redIAdd(f);c=c.redIAdd(c);c=c.redIAdd(c);t=d.redMul(i.redISub(o)).redISub(c);n=this.y.redAdd(this.y)}else{var a=this.z.redSqr(),l=this.y.redSqr(),s=this.x.redMul(l),b=this.x.redSub(a).redMul(this.x.redAdd(a));b=b.redAdd(b).redIAdd(b);var p=s.redIAdd(s);p=p.redIAdd(p);var m=p.redAdd(p);e=b.redSqr().redISub(m);n=this.y.redAdd(this.z).redSqr().redISub(l).redISub(a);var h=l.redSqr();h=h.redIAdd(h);h=h.redIAdd(h);h=h.redIAdd(h);t=b.redMul(p.redISub(e)).redISub(h)}return this.curve.jpoint(e,t,n)};l.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,u=r.redSqr().redSqr(),f=t.redSqr(),i=n.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(e.redMul(u)),o=t.redAdd(t);o=o.redIAdd(o);var c=o.redMul(i),a=d.redSqr().redISub(c.redAdd(c)),l=c.redISub(a),s=i.redSqr();s=s.redIAdd(s);s=s.redIAdd(s);s=s.redIAdd(s);var b=d.redMul(l).redISub(s),p=n.redAdd(n).redMul(r);return this.curve.jpoint(a,b,p)};l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),u=e.redAdd(e).redIAdd(e),f=u.redSqr(),i=this.x.redAdd(t).redSqr().redISub(e).redISub(r);i=i.redIAdd(i);i=i.redAdd(i).redIAdd(i);i=i.redISub(f);var d=i.redSqr(),o=r.redIAdd(r);o=o.redIAdd(o);o=o.redIAdd(o);o=o.redIAdd(o);var c=u.redIAdd(i).redSqr().redISub(f).redISub(d).redISub(o),a=t.redMul(c);a=a.redIAdd(a);a=a.redIAdd(a);var l=this.x.redMul(d).redISub(a);l=l.redIAdd(l);l=l.redIAdd(l);var s=this.y.redMul(c.redMul(o.redISub(c)).redISub(i.redMul(d)));s=s.redIAdd(s);s=s.redIAdd(s);s=s.redIAdd(s);var b=this.z.redAdd(i).redSqr().redISub(n).redISub(d);return this.curve.jpoint(l,s,b)};l.prototype.mul=function(e,t){e=new f(e,t);return this.curve._wnafMul(this,e)};l.prototype.eq=function(e){if(e.type==='affine')return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var r=t.redMul(this.z),u=n.redMul(e.z);return this.y.redMul(u).redISub(e.y.redMul(r)).cmpn(0)===0};l.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(n)===0)return!0;var r=e.clone(),u=this.curve.redN.redMul(t);for(;;){r.iadd(this.curve.n);if(r.cmp(this.curve.p)>=0)return!1;n.redIAdd(u);if(this.x.cmp(n)===0)return!0}};l.prototype.inspect=function(){if(this.isInfinity())return'<EC JPoint Infinity>';return'<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}},{"../../elliptic":44,"../curve":47,"bn.js":34,"inherits":74}],50:[function(e,t,n){"use strict";var r=n,u=e('hash.js'),f=e('../elliptic'),i=f.utils.assert;function d(e){e.type==='short'?(this.curve=new f.curve.short(e)):e.type==='edwards'?(this.curve=new f.curve.edwards(e)):(this.curve=new f.curve.mont(e));this.g=this.curve.g;this.n=this.curve.n;this.hash=e.hash;i(this.g.validate(),'Invalid curve');i(this.g.mul(this.n).isInfinity(),'Invalid curve, G*N != O')}r.PresetCurve=d;function o(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new d(t);Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n});return n}})}o('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:u.sha256,gRed:!1,g:['188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012','07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811']});o('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:u.sha256,gRed:!1,g:['b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21','bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34']});o('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:u.sha256,gRed:!1,g:['6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296','4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5']});o('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:u.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"]});o('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:u.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"]});o('curve25519',{type:'mont',prime:'p25519',p:'7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',a:'76d06',b:'1',n:'1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',hash:u.sha256,gRed:!1,g:['9']});o('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:u.sha256,gRed:!1,g:['216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a','6666666666666666666666666666666666666666666666666666666666666658']});var c;try{c=e('./precomputed/secp256k1')}catch(e){c=void 0};o('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:u.sha256,beta:'7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',lambda:'5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',basis:[{a:'3086d221a7d46bcde86c90e49284eb15',b:'-e4437ed6010e88286f547fa90abfe4c3'},{a:'114ca50f7a8e2f3f657c1108d9d44cfd8',b:'3086d221a7d46bcde86c90e49284eb15'}],gRed:!1,g:['79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798','483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',c]})},{"../elliptic":44,"./precomputed/secp256k1":57,"hash.js":61}],51:[function(e,t,n){"use strict";var r=e('bn.js'),u=e('hmac-drbg'),f=e('../../elliptic'),i=f.utils,d=i.assert,o=e('./key'),c=e('./signature');function a(e){if(!(this instanceof a))return new a(e);typeof e==='string'&&(d(f.curves.hasOwnProperty(e),'Unknown curve '+e),e=f.curves[e]);e instanceof f.curves.PresetCurve&&(e={curve:e});this.curve=e.curve.curve;this.n=this.curve.n;this.nh=this.n.ushrn(1);this.g=this.curve.g;this.g=e.curve.g;this.g.precompute(e.curve.n.bitLength()+1);this.hash=e.hash||e.curve.hash}t.exports=a;a.prototype.keyPair=function(e){return new o(this,e)};a.prototype.keyFromPrivate=function(e,t){return o.fromPrivate(this,e,t)};a.prototype.keyFromPublic=function(e,t){return o.fromPublic(this,e,t)};a.prototype.genKeyPair=function(e){e||(e={});var t=new u({hash:this.hash,pers:e.pers,persEnc:e.persEnc||'utf8',entropy:e.entropy||f.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||'utf8',nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new r(2));do{var d=new r(t.generate(n));if(d.cmp(i)>0)continue;d.iaddn(1);return this.keyFromPrivate(d)}while(!0)};a.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();n>0&&(e=e.ushrn(n));if(!t&&e.cmp(this.n)>=0)return e.sub(this.n);else return e};a.prototype.sign=function(e,t,n,f){typeof n==='object'&&(f=n,n=null);f||(f={});t=this.keyFromPrivate(t,n);e=this._truncateToN(new r(e,16));var i=this.n.byteLength(),d=t.getPrivate().toArray('be',i),o=e.toArray('be',i),a=new u({hash:this.hash,entropy:d,nonce:o,pers:f.pers,persEnc:f.persEnc||'utf8'}),l=this.n.sub(new r(1));for(var s=0;!0;s++){var b=f.k?f.k(s):new r(a.generate(this.n.byteLength()));b=this._truncateToN(b,!0);if(b.cmpn(1)<=0||b.cmp(l)>=0)continue;var p=this.g.mul(b);if(p.isInfinity())continue;var m=p.getX(),h=m.umod(this.n);if(h.cmpn(0)===0)continue;var g=b.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));g=g.umod(this.n);if(g.cmpn(0)===0)continue;var y=(p.getY().isOdd()?1:0)|(m.cmp(h)!==0?2:0);f.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1);return new c({r:h,s:g,recoveryParam:y})}};a.prototype.verify=function(e,t,n,u){e=this._truncateToN(new r(e,16));n=this.keyFromPublic(n,u);t=new c(t,'hex');var f=t.r,i=t.s;if(f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var d=i.invm(this.n),o=d.mul(e).umod(this.n),a=d.mul(f).umod(this.n);if(!this.curve._maxwellTrick){var l=this.g.mulAdd(o,n.getPublic(),a);if(l.isInfinity())return!1;return l.getX().umod(this.n).cmp(f)===0}l=this.g.jmulAdd(o,n.getPublic(),a);if(l.isInfinity())return!1;return l.eqXToP(f)};a.prototype.recoverPubKey=function(e,t,n,u){d((3&n)===n,'The recovery param is more than two bits');t=new c(t,u);var f=this.n,i=new r(e),o=t.r,a=t.s,l=n&1,s=n>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&s)throw new Error('Unable to find sencond key candinate');s?(o=this.curve.pointFromX(o.add(this.curve.n),l)):(o=this.curve.pointFromX(o,l));var b=t.r.invm(f),p=f.sub(i).mul(b).umod(f),m=a.mul(b).umod(f);return this.g.mulAdd(p,o,m)};a.prototype.getKeyRecoveryParam=function(e,t,n,r){t=new c(t,r);if(t.recoveryParam!==null)return t.recoveryParam;for(var u=0;u<4;u++){var f;try{f=this.recoverPubKey(e,t,u)}catch(e){continue};if(f.eq(n))return u}throw new Error('Unable to find valid recovery factor')}},{"../../elliptic":44,"./key":52,"./signature":53,"bn.js":34,"hmac-drbg":73}],52:[function(e,t,n){"use strict";var r=e('bn.js'),u=e('../../elliptic'),f=u.utils,i=f.assert;function d(e,t){this.ec=e;this.priv=null;this.pub=null;t.priv&&this._importPrivate(t.priv,t.privEnc);t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=d;d.fromPublic=function(e,t,n){if(t instanceof d)return t;return new d(e,{pub:t,pubEnc:n})};d.fromPrivate=function(e,t,n){if(t instanceof d)return t;return new d(e,{priv:t,privEnc:n})};d.prototype.validate=function(){var e=this.getPublic();if(e.isInfinity())return{result:!1,reason:'Invalid public key'};if(!e.validate())return{result:!1,reason:'Public key is not a point'};if(!e.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:'Public key * N != O'};return{result:!0,reason:null}};d.prototype.getPublic=function(e,t){typeof e==='string'&&(t=e,e=null);this.pub||(this.pub=this.ec.g.mul(this.priv));if(!t)return this.pub;return this.pub.encode(t,e)};d.prototype.getPrivate=function(e){if(e==='hex')return this.priv.toString(16,2);else return this.priv};d.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16);this.priv=this.priv.umod(this.ec.curve.n)};d.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==='mont'?i(e.x,'Need x coordinate'):(this.ec.curve.type==='short'||this.ec.curve.type==='edwards')&&i(e.x&&e.y,'Need both x and y coordinate');this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};d.prototype.derive=function(e){return e.mul(this.priv).getX()};d.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};d.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};d.prototype.inspect=function(){return'<Key priv: '+(this.priv&&this.priv.toString(16,2))+' pub: '+(this.pub&&this.pub.inspect())+' >'}},{"../../elliptic":44,"bn.js":34}],53:[function(e,t,n){"use strict";var r=e('bn.js'),u=e('../../elliptic'),f=u.utils,i=f.assert;function d(e,t){if(e instanceof d)return e;if(this._importDER(e,t))return;i(e.r&&e.s,'Signature without r or s');this.r=new r(e.r,16);this.s=new r(e.s,16);e.recoveryParam===void 0?(this.recoveryParam=null):(this.recoveryParam=e.recoveryParam)}t.exports=d;function o(){this.place=0}function c(e,t){var n=e[t.place++];if(!(n&128)){return n}var r=n&15,u=0;for(var f=0,i=t.place;f<r;f++, i++)u<<=8,u|=e[i];t.place=i;return u}function a(e){var t=0,n=e.length-1;while(!e[t]&&!(e[t+1]&128)&&t<n)t++;if(t===0){return e}return e.slice(t)}d.prototype._importDER=function(e,t){e=f.toArray(e,t);var n=new o;if(e[n.place++]!==48){return!1}var u=c(e,n);if(u+n.place!==e.length){return!1}if(e[n.place++]!==2){return!1}var i=c(e,n),d=e.slice(n.place,i+n.place);n.place+=i;if(e[n.place++]!==2){return!1}var a=c(e,n);if(e.length!==a+n.place){return!1}var l=e.slice(n.place,a+n.place);d[0]===0&&d[1]&128&&(d=d.slice(1));l[0]===0&&l[1]&128&&(l=l.slice(1));this.r=new r(d);this.s=new r(l);this.recoveryParam=null;return!0};function l(e,t){if(t<128){e.push(t);return}var n=1+(Math.log(t)/Math.LN2>>>3);e.push(n|128);while(--n)e.push(t>>>(n<<3)&255);e.push(t)}d.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();t[0]&128&&(t=[0].concat(t));n[0]&128&&(n=[0].concat(n));t=a(t);n=a(n);while(!n[0]&&!(n[1]&128))n=n.slice(1);var r=[2];l(r,t.length);r=r.concat(t);r.push(2);l(r,n.length);var u=r.concat(n),i=[48];l(i,u.length);i=i.concat(u);return f.encode(i,e)}},{"../../elliptic":44,"bn.js":34}],54:[function(e,t,n){"use strict";var r=e('hash.js'),u=e('../../elliptic'),f=u.utils,i=f.assert,d=f.parseBytes,o=e('./key'),c=e('./signature');function a(e){i(e==='ed25519','only tested with ed25519 so far');if(!(this instanceof a))return new a(e);e=u.curves[e].curve;this.curve=e;this.g=e.g;this.g.precompute(e.n.bitLength()+1);this.pointClass=e.point().constructor;this.encodingLength=Math.ceil(e.n.bitLength()/8);this.hash=r.sha512}t.exports=a;a.prototype.sign=function(e,t){e=d(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),u=this.g.mul(r),f=this.encodePoint(u),i=this.hashInt(f,n.pubBytes(),e).mul(n.priv()),o=r.add(i).umod(this.curve.n);return this.makeSignature({R:u,S:o,Rencoded:f})};a.prototype.verify=function(e,t,n){e=d(e);t=this.makeSignature(t);var r=this.keyFromPublic(n),u=this.hashInt(t.Rencoded(),r.pubBytes(),e),f=this.g.mul(t.S()),i=t.R().add(r.pub().mul(u));return i.eq(f)};a.prototype.hashInt=function(){var e=this.hash();for(var t=0;t<arguments.length;t++)e.update(arguments[t]);return f.intFromLE(e.digest()).umod(this.curve.n)};a.prototype.keyFromPublic=function(e){return o.fromPublic(this,e)};a.prototype.keyFromSecret=function(e){return o.fromSecret(this,e)};a.prototype.makeSignature=function(e){if(e instanceof c)return e;return new c(this,e)};a.prototype.encodePoint=function(e){var t=e.getY().toArray('le',this.encodingLength);t[this.encodingLength-1]|=e.getX().isOdd()?128:0;return t};a.prototype.decodePoint=function(e){e=f.parseBytes(e);var t=e.length-1,n=e.slice(0,t).concat(e[t]&-129),r=(e[t]&128)!==0,u=f.intFromLE(n);return this.curve.pointFromY(u,r)};a.prototype.encodeInt=function(e){return e.toArray('le',this.encodingLength)};a.prototype.decodeInt=function(e){return f.intFromLE(e)};a.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":44,"./key":55,"./signature":56,"hash.js":61}],55:[function(e,t,n){"use strict";var r=e('../../elliptic'),u=r.utils,f=u.assert,i=u.parseBytes,d=u.cachedProperty;function o(e,t){this.eddsa=e;this._secret=i(t.secret);e.isPoint(t.pub)?(this._pub=t.pub):(this._pubBytes=i(t.pub))}o.fromPublic=function(e,t){if(t instanceof o)return t;return new o(e,{pub:t})};o.fromSecret=function(e,t){if(t instanceof o)return t;return new o(e,{secret:t})};o.prototype.secret=function(){return this._secret};d(o,'pubBytes',function(){return this.eddsa.encodePoint(this.pub())});d(o,'pub',function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())});d(o,'privBytes',function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);r[0]&=248;r[n]&=127;r[n]|=64;return r});d(o,'priv',function(){return this.eddsa.decodeInt(this.privBytes())});d(o,'hash',function(){return this.eddsa.hash().update(this.secret()).digest()});d(o,'messagePrefix',function(){return this.hash().slice(this.eddsa.encodingLength)});o.prototype.sign=function(e){f(this._secret,'KeyPair can only verify');return this.eddsa.sign(e,this)};o.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};o.prototype.getSecret=function(e){f(this._secret,'KeyPair is public only');return u.encode(this.secret(),e)};o.prototype.getPublic=function(e){return u.encode(this.pubBytes(),e)};t.exports=o},{"../../elliptic":44}],56:[function(e,t,n){"use strict";var r=e('bn.js'),u=e('../../elliptic'),f=u.utils,i=f.assert,d=f.cachedProperty,o=f.parseBytes;function c(e,t){this.eddsa=e;typeof t!=='object'&&(t=o(t));Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)});i(t.R&&t.S,'Signature without R or S');e.isPoint(t.R)&&(this._R=t.R);t.S instanceof r&&(this._S=t.S);this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded;this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}d(c,'S',function(){return this.eddsa.decodeInt(this.Sencoded())});d(c,'R',function(){return this.eddsa.decodePoint(this.Rencoded())});d(c,'Rencoded',function(){return this.eddsa.encodePoint(this.R())});d(c,'Sencoded',function(){return this.eddsa.encodeInt(this.S())});c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};c.prototype.toHex=function(){return f.encode(this.toBytes(),'hex').toUpperCase()};t.exports=c},{"../../elliptic":44,"bn.js":34}],57:[function(e,t,n){t.exports={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']]}}},{}],58:[function(e,t,n){"use strict";var r=n,u=e('bn.js'),f=e('minimalistic-assert'),i=e('minimalistic-crypto-utils');r.assert=f;r.toArray=i.toArray;r.zero2=i.zero2;r.toHex=i.toHex;r.encode=i.encode;function d(e,t){var n=[],r=1<<t+1,u=e.clone();while(u.cmpn(1)>=0){var f;if(u.isOdd()){var i=u.andln(r-1);i>(r>>1)-1?(f=(r>>1)-i):(f=i);u.isubn(f)}else f=0;n.push(f);var d=u.cmpn(0)!==0&&u.andln(r-1)===0?t+1:1;for(var o=1;o<d;o++)n.push(0);u.iushrn(d)}return n}r.getNAF=d;function o(e,t){var n=[[],[]];e=e.clone();t=t.clone();var r=0,u=0;while(e.cmpn(-r)>0||t.cmpn(-u)>0){var f=e.andln(3)+r&3,i=t.andln(3)+u&3;f===3&&(f=-1);i===3&&(i=-1);var d;if((f&1)===0)d=0;else{var o=e.andln(7)+r&7;(o===3||o===5)&&i===2?(d=-f):(d=f)}n[0].push(d);var c;if((i&1)===0)c=0;else{o=t.andln(7)+u&7;(o===3||o===5)&&f===2?(c=-i):(c=i)}n[1].push(c);2*r===d+1&&(r=1-r);2*u===c+1&&(u=1-u);e.iushrn(1);t.iushrn(1)}return n}r.getJSF=o;function c(e,t,n){var r='_'+t;e.prototype[t]=function(){return this[r]!==void 0?this[r]:this[r]=n.call(this)}}r.cachedProperty=c;function a(e){return typeof e==='string'?r.toArray(e,'hex'):e}r.parseBytes=a;function l(e){return new u(e,'hex','le')}r.intFromLE=l},{"bn.js":34,"minimalistic-assert":76,"minimalistic-crypto-utils":77}],59:[function(e,t,n){t.exports={"_from":"elliptic@^6.4.0","_id":"elliptic@6.4.1","_inBundle":!1,"_integrity":"sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":!0,"raw":"elliptic@^6.4.0","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.4.0","saveSpec":null,"fetchSpec":"^6.4.0"},"_requiredBy":["/browserify-sign","/create-ecdh","/tiny-secp256k1"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz","_shasum":"c2d0b7776911b86722c632c3c06c60f2f819939a","_spec":"elliptic@^6.4.0","_where":"/Users/coreyphillips/Documents/testing/bitimage/minifier/node_modules/tiny-secp256k1","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"bundleDependencies":!1,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"deprecated":!1,"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^2.11.3","grunt":"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2","istanbul":"^0.4.2","jscs":"^2.9.0","jshint":"^2.6.0","mocha":"^2.1.0"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.4.1"}},{}],60:[function(e,t,n){"use strict";var r=e('safe-buffer').Buffer,u=e('stream').Transform,f=e('inherits');function i(e,t){if(!r.isBuffer(e)&&typeof e!=='string'){throw new TypeError(t+' must be a string or a buffer')}}function d(e){u.call(this);this._block=r.allocUnsafe(e);this._blockSize=e;this._blockOffset=0;this._length=[0,0,0,0];this._finalized=!1}f(d,u);d.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e};n(r)};d.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e};e(t)};d.prototype.update=function(e,t){i(e,'Data');if(this._finalized)throw new Error('Digest already called');r.isBuffer(e)||(e=r.from(e,t));var n=this._block,u=0;while(this._blockOffset+e.length-u>=this._blockSize){for(var f=this._blockOffset;f<this._blockSize;)n[f++]=e[u++];this._update();this._blockOffset=0}while(u<e.length)n[this._blockOffset++]=e[u++];for(var d=0,o=e.length*8;o>0;++d)this._length[d]+=o,o=this._length[d]/4294967296|0,o>0&&(this._length[d]-=4294967296*o);return this};d.prototype._update=function(){throw new Error('_update is not implemented')};d.prototype.digest=function(e){if(this._finalized)throw new Error('Digest already called');this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e));this._block.fill(0);this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t};d.prototype._digest=function(){throw new Error('_digest is not implemented')};t.exports=d},{"inherits":74,"safe-buffer":79,"stream":27}],61:[function(e,t,n){var r=n;r.utils=e('./hash/utils');r.common=e('./hash/common');r.sha=e('./hash/sha');r.ripemd=e('./hash/ripemd');r.hmac=e('./hash/hmac');r.sha1=r.sha.sha1;r.sha256=r.sha.sha256;r.sha224=r.sha.sha224;r.sha384=r.sha.sha384;r.sha512=r.sha.sha512;r.ripemd160=r.ripemd.ripemd160},{"./hash/common":62,"./hash/hmac":63,"./hash/ripemd":64,"./hash/sha":65,"./hash/utils":72}],62:[function(e,t,n){"use strict";var r=e('./utils'),u=e('minimalistic-assert');function f(){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}n.BlockHash=f;f.prototype.update=function(e,t){e=r.toArray(e,t);this.pending?(this.pending=this.pending.concat(e)):(this.pending=e);this.pendingTotal+=e.length;if(this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length);this.pending.length===0&&(this.pending=null);e=r.join32(e,0,e.length-n,this.endian);for(var u=0;u<e.length;u+=this._delta32)this._update(e,u,u+this._delta32)}return this};f.prototype.digest=function(e){this.update(this._pad());u(this.pending===null);return this._digest(e)};f.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var u=1;u<n;u++)r[u]=0;e<<=3;if(this.endian==='big'){for(var f=8;f<this.padLength;f++)r[u++]=0;r[u++]=0;r[u++]=0;r[u++]=0;r[u++]=0;r[u++]=e>>>24&255;r[u++]=e>>>16&255;r[u++]=e>>>8&255;r[u++]=e&255}else{r[u++]=e&255;r[u++]=e>>>8&255;r[u++]=e>>>16&255;r[u++]=e>>>24&255;r[u++]=0;r[u++]=0;r[u++]=0;r[u++]=0;for(f=8;f<this.padLength;f++)r[u++]=0}return r}},{"./utils":72,"minimalistic-assert":76}],63:[function(e,t,n){"use strict";var r=e('./utils'),u=e('minimalistic-assert');function f(e,t,n){if(!(this instanceof f))return new f(e,t,n);this.Hash=e;this.blockSize=e.blockSize/8;this.outSize=e.outSize/8;this.inner=null;this.outer=null;this._init(r.toArray(t,n))}t.exports=f;f.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash.update(e).digest());u(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;this.inner=new this.Hash.update(e);for(t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash.update(e)};f.prototype.update=function(e,t){this.inner.update(e,t);return this};f.prototype.digest=function(e){this.outer.update(this.inner.digest());return this.outer.digest(e)}},{"./utils":72,"minimalistic-assert":76}],64:[function(e,t,n){"use strict";var r=e('./utils'),u=e('./common'),f=r.rotl32,i=r.sum32,d=r.sum32_3,o=r.sum32_4,c=u.BlockHash;function a(){if(!(this instanceof a))return new a;c.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.endian='little'}r.inherits(a,c);n.ripemd160=a;a.blockSize=512;a.outSize=160;a.hmacStrength=192;a.padLength=64;a.prototype._update=function(e,t){var n=this.h[0],r=this.h[1],u=this.h[2],c=this.h[3],a=this.h[4],y=n,_=r,w=u,v=c,S=a;for(var x=0;x<80;x++){var I=i(f(o(n,l(x,r,u,c),e[p[x]+t],s(x)),h[x]),a);n=a;a=c;c=f(u,10);u=r;r=I;I=i(f(o(y,l(79-x,_,w,v),e[m[x]+t],b(x)),g[x]),S);y=S;S=v;v=f(w,10);w=_;_=I}I=d(this.h[1],u,v);this.h[1]=d(this.h[2],c,S);this.h[2]=d(this.h[3],a,y);this.h[3]=d(this.h[4],n,_);this.h[4]=d(this.h[0],r,w);this.h[0]=I};a.prototype._digest=function(e){if(e==='hex')return r.toHex32(this.h,'little');else return r.split32(this.h,'little')};function l(e,t,n,r){if(e<=15)return t^n^r;else if(e<=31)return t&n|~t&r;else if(e<=47)return(t|~n)^r;else if(e<=63)return t&r|n&~r;else return t^(n|~r)}function s(e){if(e<=15)return 0;else if(e<=31)return 1518500249;else if(e<=47)return 1859775393;else if(e<=63)return 2400959708;else return 2840853838}function b(e){if(e<=15)return 1352829926;else if(e<=31)return 1548603684;else if(e<=47)return 1836072691;else if(e<=63)return 2053994217;else return 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],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[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],g=[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]},{"./common":62,"./utils":72}],65:[function(e,t,n){"use strict";n.sha1=e('./sha/1');n.sha224=e('./sha/224');n.sha256=e('./sha/256');n.sha384=e('./sha/384');n.sha512=e('./sha/512')},{"./sha/1":66,"./sha/224":67,"./sha/256":68,"./sha/384":69,"./sha/512":70}],66:[function(e,t,n){"use strict";var r=e('../utils'),u=e('../common'),f=e('./common'),i=r.rotl32,d=r.sum32,o=r.sum32_5,c=f.ft_1,a=u.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;a.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=new Array(80)}r.inherits(s,a);t.exports=s;s.blockSize=512;s.outSize=160;s.hmacStrength=80;s.padLength=64;s.prototype._update=function(e,t){var n=this.W;for(var r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=i(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var u=this.h[0],f=this.h[1],a=this.h[2],s=this.h[3],b=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=o(i(u,5),c(p,f,a,s),b,n[r],l[p]);b=s;s=a;a=i(f,30);f=u;u=m}this.h[0]=d(this.h[0],u);this.h[1]=d(this.h[1],f);this.h[2]=d(this.h[2],a);this.h[3]=d(this.h[3],s);this.h[4]=d(this.h[4],b)};s.prototype._digest=function(e){if(e==='hex')return r.toHex32(this.h,'big');else return r.split32(this.h,'big')}},{"../common":62,"../utils":72,"./common":71}],67:[function(e,t,n){"use strict";var r=e('../utils'),u=e('./256');function f(){if(!(this instanceof f))return new f;u.call(this);this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(f,u);t.exports=f;f.blockSize=512;f.outSize=224;f.hmacStrength=192;f.padLength=64;f.prototype._digest=function(e){if(e==='hex')return r.toHex32(this.h.slice(0,7),'big');else return r.split32(this.h.slice(0,7),'big')}},{"../utils":72,"./256":68}],68:[function(e,t,n){"use strict";var r=e('../utils'),u=e('../common'),f=e('./common'),i=e('minimalistic-assert'),d=r.sum32,o=r.sum32_4,c=r.sum32_5,a=f.ch32,l=f.maj32,s=f.s0_256,b=f.s1_256,p=f.g0_256,m=f.g1_256,h=u.BlockHash,g=[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 y(){if(!(this instanceof y))return new y;h.call(this);this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];this.k=g;this.W=new Array(64)}r.inherits(y,h);t.exports=y;y.blockSize=512;y.outSize=256;y.hmacStrength=192;y.padLength=64;y.prototype._update=function(e,t){var n=this.W;for(var r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var u=this.h[0],f=this.h[1],h=this.h[2],g=this.h[3],y=this.h[4],_=this.h[5],w=this.h[6],v=this.h[7];i(this.k.length===n.length);for(r=0;r<n.length;r++){var S=c(v,b(y),a(y,_,w),this.k[r],n[r]),x=d(s(u),l(u,f,h));v=w;w=_;_=y;y=d(g,S);g=h;h=f;f=u;u=d(S,x)}this.h[0]=d(this.h[0],u);this.h[1]=d(this.h[1],f);this.h[2]=d(this.h[2],h);this.h[3]=d(this.h[3],g);this.h[4]=d(this.h[4],y);this.h[5]=d(this.h[5],_);this.h[6]=d(this.h[6],w);this.h[7]=d(this.h[7],v)};y.prototype._digest=function(e){if(e==='hex')return r.toHex32(this.h,'big');else return r.split32(this.h,'big')}},{"../common":62,"../utils":72,"./common":71,"minimalistic-assert":76}],69:[function(e,t,n){"use strict";var r=e('../utils'),u=e('./512');function f(){if(!(this instanceof f))return new f;u.call(this);this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(f,u);t.exports=f;f.blockSize=1024;f.outSize=384;f.hmacStrength=192;f.padLength=128;f.prototype._digest=function(e){if(e==='hex')return r.toHex32(this.h.slice(0,12),'big');else return r.split32(this.h.slice(0,12),'big')}},{"../utils":72,"./512":70}],70:[function(e,t,n){"use strict";var r=e('../utils'),u=e('../common'),f=e('minimalistic-assert'),i=r.rotr64_hi,d=r.rotr64_lo,o=r.shr64_hi,c=r.shr64_lo,a=r.sum64,l=r.sum64_hi,s=r.sum64_lo,b=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,h=r.sum64_5_lo,g=u.BlockHash,y=[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 _(){if(!(this instanceof _))return new _;g.call(this);this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209];this.k=y;this.W=new Array(160)}r.inherits(_,g);t.exports=_;_.blockSize=1024;_.outSize=512;_.hmacStrength=192;_.padLength=128;_.prototype._prepareBlock=function(e,t){var n=this.W;for(var r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var u=E(n[r-4],n[r-3]),f=L(n[r-4],n[r-3]),i=n[r-14],d=n[r-13],o=B(n[r-30],n[r-29]),c=q(n[r-30],n[r-29]),a=n[r-32],l=n[r-31];n[r]=b(u,f,i,d,o,c,a,l);n[r+1]=p(u,f,i,d,o,c,a,l)}};_.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],u=this.h[1],i=this.h[2],d=this.h[3],o=this.h[4],c=this.h[5],b=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],_=this.h[10],B=this.h[11],q=this.h[12],E=this.h[13],L=this.h[14],j=this.h[15];f(this.k.length===n.length);for(var z=0;z<n.length;z+=2){var R=L,N=j,P=M(g,y),T=k(g,y),C=w(g,y,_,B,q,E),O=v(g,y,_,B,q,E),U=this.k[z],D=this.k[z+1],F=n[z],W=n[z+1],J=m(R,N,P,T,C,O,U,D,F,W),H=h(R,N,P,T,C,O,U,D,F,W);R=I(r,u);N=A(r,u);P=S(r,u,i,d,o,c);T=x(r,u,i,d,o,c);var K=l(R,N,P,T),X=s(R,N,P,T);L=q;j=E;q=_;E=B;_=g;B=y;g=l(b,p,J,H);y=s(p,p,J,H);b=o;p=c;o=i;c=d;i=r;d=u;r=l(J,H,K,X);u=s(J,H,K,X)}a(this.h,0,r,u);a(this.h,2,i,d);a(this.h,4,o,c);a(this.h,6,b,p);a(this.h,8,g,y);a(this.h,10,_,B);a(this.h,12,q,E);a(this.h,14,L,j)};_.prototype._digest=function(e){if(e==='hex')return r.toHex32(this.h,'big');else return r.split32(this.h,'big')};function w(e,t,n,r,u){var f=e&n^~e&u;f<0&&(f+=4294967296);return f}function v(e,t,n,r,u,f){var i=t&r^~t&f;i<0&&(i+=4294967296);return i}function S(e,t,n,r,u){var f=e&n^e&u^n&u;f<0&&(f+=4294967296);return f}function x(e,t,n,r,u,f){var i=t&r^t&f^r&f;i<0&&(i+=4294967296);return i}function I(e,t){var n=i(e,t,28),r=i(t,e,2),u=i(t,e,7),f=n^r^u;f<0&&(f+=4294967296);return f}function A(e,t){var n=d(e,t,28),r=d(t,e,2),u=d(t,e,7),f=n^r^u;f<0&&(f+=4294967296);return f}function M(e,t){var n=i(e,t,14),r=i(e,t,18),u=i(t,e,9),f=n^r^u;f<0&&(f+=4294967296);return f}function k(e,t){var n=d(e,t,14),r=d(e,t,18),u=d(t,e,9),f=n^r^u;f<0&&(f+=4294967296);return f}function B(e,t){var n=i(e,t,1),r=i(e,t,8),u=o(e,t,7),f=n^r^u;f<0&&(f+=4294967296);return f}function q(e,t){var n=d(e,t,1),r=d(e,t,8),u=c(e,t,7),f=n^r^u;f<0&&(f+=4294967296);return f}function E(e,t){var n=i(e,t,19),r=i(t,e,29),u=o(e,t,6),f=n^r^u;f<0&&(f+=4294967296);return f}function L(e,t){var n=d(e,t,19),r=d(t,e,29),u=c(e,t,6),f=n^r^u;f<0&&(f+=4294967296);return f}},{"../common":62,"../utils":72,"minimalistic-assert":76}],71:[function(e,t,n){"use strict";var r=e('../utils'),u=r.rotr32;function f(e,t,n,r){if(e===0)return i(t,n,r);if(e===1||e===3)return o(t,n,r);if(e===2)return d(t,n,r)}n.ft_1=f;function i(e,t,n){return e&t^~e&n}n.ch32=i;function d(e,t,n){return e&t^e&n^t&n}n.maj32=d;function o(e,t,n){return e^t^n}n.p32=o;function c(e){return u(e,2)^u(e,13)^u(e,22)}n.s0_256=c;function a(e){return u(e,6)^u(e,11)^u(e,25)}n.s1_256=a;function l(e){return u(e,7)^u(e,18)^e>>>3}n.g0_256=l;function s(e){return u(e,17)^u(e,19)^e>>>10}n.g1_256=s},{"../utils":72}],72:[function(e,t,n){"use strict";var r=e('minimalistic-assert'),u=e('inherits');n.inherits=u;function f(e,t){if((e.charCodeAt(t)&64512)!==55296){return!1}if(t<0||t+1>=e.length){return!1}return(e.charCodeAt(t+1)&64512)===56320}function i(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e==='string'){if(!t){var r=0;for(var u=0;u<e.length;u++){var i=e.charCodeAt(u);i<128?(n[r++]=i):i<2048?(n[r++]=i>>6|192,n[r++]=i&63|128):f(e,u)?(i=65536+((i&1023)<<10)+(e.charCodeAt(++u)&1023),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=i&63|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=i&63|128)}}else if(t==='hex'){e=e.replace(/[^a-z0-9]+/ig,'');e.length%2!==0&&(e='0'+e);for(u=0;u<e.length;u+=2)n.push(parseInt(e[u]+e[u+1],16))}}else{for(u=0;u<e.length;u++)n[u]=e[u]|0}return n}n.toArray=i;function d(e){var t='';for(var n=0;n<e.length;n++)t+=a(e[n].toString(16));return t}n.toHex=d;function o(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}n.htonl=o;function c(e,t){var n='';for(var r=0;r<e.length;r++){var u=e[r];t==='little'&&(u=o(u));n+=l(u.toString(16))}return n}n.toHex32=c;function a(e){if(e.length===1)return'0'+e;else return e}n.zero2=a;function l(e){if(e.length===7)return'0'+e;else if(e.length===6)return'00'+e;else if(e.length===5)return'000'+e;else if(e.length===4)return'0000'+e;else if(e.length===3)return'00000'+e;else if(e.length===2)return'000000'+e;else if(e.length===1)return'0000000'+e;else return e}n.zero8=l;function s(e,t,n,u){var f=n-t;r(f%4===0);var i=new Array(f/4);for(var d=0,o=t;d<i.length;d++, o+=4){var c;u==='big'?(c=e[o]<<24|e[o+1]<<16|e[o+2]<<8|e[o+3]):(c=e[o+3]<<24|e[o+2]<<16|e[o+1]<<8|e[o]);i[d]=c>>>0}return i}n.join32=s;function b(e,t){var n=new Array(e.length*4);for(var r=0,u=0;r<e.length;r++, u+=4){var f=e[r];t==='big'?(n[u]=f>>>24,n[u+1]=f>>>16&255,n[u+2]=f>>>8&255,n[u+3]=f&255):(n[u+3]=f>>>24,n[u+2]=f>>>16&255,n[u+1]=f>>>8&255,n[u]=f&255)}return n}n.split32=b;function p(e,t){return e>>>t|e<<32-t}n.rotr32=p;function m(e,t){return e<<t|e>>>32-t}n.rotl32=m;function h(e,t){return e+t>>>0}n.sum32=h;function g(e,t,n){return e+t+n>>>0}n.sum32_3=g;function y(e,t,n,r){return e+t+n+r>>>0}n.sum32_4=y;function _(e,t,n,r,u){return e+t+n+r+u>>>0}n.sum32_5=_;function w(e,t,n,r){var u=e[t],f=e[t+1],i=r+f>>>0,d=(i<r?1:0)+n+u;e[t]=d>>>0;e[t+1]=i}n.sum64=w;function v(e,t,n,r){var u=t+r>>>0,f=(u<t?1:0)+e+n;return f>>>0}n.sum64_hi=v;function S(e,t,n,r){var u=t+r;return u>>>0}n.sum64_lo=S;function x(e,t,n,r,u,f,i,d){var o=0,c=t;c=c+r>>>0;o+=c<t?1:0;c=c+f>>>0;o+=c<f?1:0;c=c+d>>>0;o+=c<d?1:0;var a=e+n+u+i+o;return a>>>0}n.sum64_4_hi=x;function I(e,t,n,r,u,f,i,d){var o=t+r+f+d;return o>>>0}n.sum64_4_lo=I;function A(e,t,n,r,u,f,i,d,o,c){var a=0,l=t;l=l+r>>>0;a+=l<t?1:0;l=l+f>>>0;a+=l<f?1:0;l=l+d>>>0;a+=l<d?1:0;l=l+c>>>0;a+=l<c?1:0;var s=e+n+u+i+o+a;return s>>>0}n.sum64_5_hi=A;function M(e,t,n,r,u,f,i,d,o,c){var a=t+r+f+d+c;return a>>>0}n.sum64_5_lo=M;function k(e,t,n){var r=t<<32-n|e>>>n;return r>>>0}n.rotr64_hi=k;function B(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}n.rotr64_lo=B;function q(e,t,n){return e>>>n}n.shr64_hi=q;function E(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}n.shr64_lo=E},{"inherits":74,"minimalistic-assert":76}],73:[function(e,t,n){"use strict";var r=e('hash.js'),u=e('minimalistic-crypto-utils'),f=e('minimalistic-assert');function i(e){if(!(this instanceof i))return new i(e);this.hash=e.hash;this.predResist=!!e.predResist;this.outLen=this.hash.outSize;this.minEntropy=e.minEntropy||this.hash.hmacStrength;this._reseed=null;this.reseedInterval=null;this.K=null;this.V=null;var t=u.toArray(e.entropy,e.entropyEnc||'hex'),n=u.toArray(e.nonce,e.nonceEnc||'hex'),r=u.toArray(e.pers,e.persEnc||'hex');f(t.length>=this.minEntropy/8,'Not enough entropy. Minimum is: '+this.minEntropy+' bits');this._init(t,n,r)}t.exports=i;i.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8);this.V=new Array(this.outLen/8);for(var u=0;u<this.V.length;u++)this.K[u]=0,this.V[u]=1;this._update(r);this._reseed=1;this.reseedInterval=281474976710656};i.prototype._hmac=function(){return new r.hmac(this.hash,this.K)};i.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e));this.K=t.digest();this.V=this._hmac().update(this.V).digest();if(!e)return;this.K=this._hmac().update(this.V).update([1]).update(e).digest();this.V=this._hmac().update(this.V).digest()};i.prototype.reseed=function(e,t,n,r){typeof t!=='string'&&(r=n,n=t,t=null);e=u.toArray(e,t);n=u.toArray(n,r);f(e.length>=this.minEntropy/8,'Not enough entropy. Minimum is: '+this.minEntropy+' bits');this._update(e.concat(n||[]));this._reseed=1};i.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error('Reseed is required');typeof t!=='string'&&(r=n,n=t,t=null);n&&(n=u.toArray(n,r||'hex'),this._update(n));var f=[];while(f.length<e)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var i=f.slice(0,e);this._update(n);this._reseed++;return u.encode(i,t)}},{"hash.js":61,"minimalistic-assert":76,"minimalistic-crypto-utils":77}],74:[function(e,t,n){arguments[4][7][0].apply(n,arguments)},{"dup":7}],75:[function(e,t,n){"use strict";var r=e('inherits'),u=e('hash-base'),f=e('safe-buffer').Buffer,i=new Array(16);function d(){u.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878}r(d,u);d.prototype._update=function(){var e=i;for(var t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,r=this._b,u=this._c,f=this._d;n=c(n,r,u,f,e[0],3614090360,7);f=c(f,n,r,u,e[1],3905402710,12);u=c(u,f,n,r,e[2],606105819,17);r=c(r,u,f,n,e[3],3250441966,22);n=c(n,r,u,f,e[4],4118548399,7);f=c(f,n,r,u,e[5],1200080426,12);u=c(u,f,n,r,e[6],2821735955,17);r=c(r,u,f,n,e[7],4249261313,22);n=c(n,r,u,f,e[8],1770035416,7);f=c(f,n,r,u,e[9],2336552879,12);u=c(u,f,n,r,e[10],4294925233,17);r=c(r,u,f,n,e[11],2304563134,22);n=c(n,r,u,f,e[12],1804603682,7);f=c(f,n,r,u,e[13],4254626195,12);u=c(u,f,n,r,e[14],2792965006,17);r=c(r,u,f,n,e[15],1236535329,22);n=a(n,r,u,f,e[1],4129170786,5);f=a(f,n,r,u,e[6],3225465664,9);u=a(u,f,n,r,e[11],643717713,14);r=a(r,u,f,n,e[0],3921069994,20);n=a(n,r,u,f,e[5],3593408605,5);f=a(f,n,r,u,e[10],38016083,9);u=a(u,f,n,r,e[15],3634488961,14);r=a(r,u,f,n,e[4],3889429448,20);n=a(n,r,u,f,e[9],568446438,5);f=a(f,n,r,u,e[14],3275163606,9);u=a(u,f,n,r,e[3],4107603335,14);r=a(r,u,f,n,e[8],1163531501,20);n=a(n,r,u,f,e[13],2850285829,5);f=a(f,n,r,u,e[2],4243563512,9);u=a(u,f,n,r,e[7],1735328473,14);r=a(r,u,f,n,e[12],2368359562,20);n=l(n,r,u,f,e[5],4294588738,4);f=l(f,n,r,u,e[8],2272392833,11);u=l(u,f,n,r,e[11],1839030562,16);r=l(r,u,f,n,e[14],4259657740,23);n=l(n,r,u,f,e[1],2763975236,4);f=l(f,n,r,u,e[4],1272893353,11);u=l(u,f,n,r,e[7],4139469664,16);r=l(r,u,f,n,e[10],3200236656,23);n=l(n,r,u,f,e[13],681279174,4);f=l(f,n,r,u,e[0],3936430074,11);u=l(u,f,n,r,e[3],3572445317,16);r=l(r,u,f,n,e[6],76029189,23);n=l(n,r,u,f,e[9],3654602809,4);f=l(f,n,r,u,e[12],3873151461,11);u=l(u,f,n,r,e[15],530742520,16);r=l(r,u,f,n,e[2],3299628645,23);n=s(n,r,u,f,e[0],4096336452,6);f=s(f,n,r,u,e[7],1126891415,10);u=s(u,f,n,r,e[14],2878612391,15);r=s(r,u,f,n,e[5],4237533241,21);n=s(n,r,u,f,e[12],1700485571,6);f=s(f,n,r,u,e[3],2399980690,10);u=s(u,f,n,r,e[10],4293915773,15);r=s(r,u,f,n,e[1],2240044497,21);n=s(n,r,u,f,e[8],1873313359,6);f=s(f,n,r,u,e[15],4264355552,10);u=s(u,f,n,r,e[6],2734768916,15);r=s(r,u,f,n,e[13],1309151649,21);n=s(n,r,u,f,e[4],4149444226,6);f=s(f,n,r,u,e[11],3174756917,10);u=s(u,f,n,r,e[2],718787259,15);r=s(r,u,f,n,e[9],3951481745,21);this._a=this._a+n|0;this._b=this._b+r|0;this._c=this._c+u|0;this._d=this._d+f|0};d.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 e=f.allocUnsafe(16);e.writeInt32LE(this._a,0);e.writeInt32LE(this._b,4);e.writeInt32LE(this._c,8);e.writeInt32LE(this._d,12);return e};function o(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,u,f,i){return o(e+(t&n|~t&r)+u+f|0,i)+t|0}function a(e,t,n,r,u,f,i){return o(e+(t&r|n&~r)+u+f|0,i)+t|0}function l(e,t,n,r,u,f,i){return o(e+(t^n^r)+u+f|0,i)+t|0}function s(e,t,n,r,u,f,i){return o(e+(n^(t|~r))+u+f|0,i)+t|0}t.exports=d},{"hash-base":60,"inherits":74,"safe-buffer":79}],76:[function(e,t,n){t.exports=r;function r(e,t){if(!e)throw new Error(t||'Assertion failed')}r.equal=function(e,t,n){if(e!=t)throw new Error(n||'Assertion failed: '+e+' != '+t)}},{}],77:[function(e,t,n){"use strict";var r=n;function u(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e!=='string'){for(var r=0;r<e.length;r++)n[r]=e[r]|0;return n}if(t==='hex'){e=e.replace(/[^a-z0-9]+/ig,'');e.length%2!==0&&(e='0'+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else{for(r=0;r<e.length;r++){var u=e.charCodeAt(r),f=u>>8,i=u&255;f?n.push(f,i):n.push(i)}}return n}r.toArray=u;function f(e){if(e.length===1)return'0'+e;else return e}r.zero2=f;function i(e){var t='';for(var n=0;n<e.length;n++)t+=f(e[n].toString(16));return t}r.toHex=i;r.encode=function(e,t){if(t==='hex')return i(e);else return e}},{}],78:[function(e,t,n){"use strict";var r=e('buffer').Buffer,u=e('inherits'),f=e('hash-base'),i=new Array(16),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],o=[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],c=[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],a=[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],l=[0,1518500249,1859775393,2400959708,2840853838],s=[1352829926,1548603684,1836072691,2053994217,0];function b(){f.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520}u(b,f);b.prototype._update=function(){var e=i;for(var t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a|0,r=this._b|0,u=this._c|0,f=this._d|0,b=this._e|0,w=this._a|0,v=this._b|0,S=this._c|0,x=this._d|0,I=this._e|0;for(var A=0;A<80;A+=1){var M,k;A<16?(M=m(n,r,u,f,b,e[d[A]],l[0],c[A]),k=_(w,v,S,x,I,e[o[A]],s[0],a[A])):A<32?(M=h(n,r,u,f,b,e[d[A]],l[1],c[A]),k=y(w,v,S,x,I,e[o[A]],s[1],a[A])):A<48?(M=g(n,r,u,f,b,e[d[A]],l[2],c[A]),k=g(w,v,S,x,I,e[o[A]],s[2],a[A])):A<64?(M=y(n,r,u,f,b,e[d[A]],l[3],c[A]),k=h(w,v,S,x,I,e[o[A]],s[3],a[A])):(M=_(n,r,u,f,b,e[d[A]],l[4],c[A]),k=m(w,v,S,x,I,e[o[A]],s[4],a[A]));n=b;b=f;f=p(u,10);u=r;r=M;w=I;I=x;x=p(S,10);S=v;v=k}var B=this._b+u+x|0;this._b=this._c+f+I|0;this._c=this._d+b+w|0;this._d=this._e+n+v|0;this._e=this._a+r+S|0;this._a=B};b.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 e=r.alloc?r.alloc(20):new r(20);e.writeInt32LE(this._a,0);e.writeInt32LE(this._b,4);e.writeInt32LE(this._c,8);e.writeInt32LE(this._d,12);e.writeInt32LE(this._e,16);return e};function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,u,f,i,d){return p(e+(t^n^r)+f+i|0,d)+u|0}function h(e,t,n,r,u,f,i,d){return p(e+(t&n|~t&r)+f+i|0,d)+u|0}function g(e,t,n,r,u,f,i,d){return p(e+((t|~n)^r)+f+i|0,d)+u|0}function y(e,t,n,r,u,f,i,d){return p(e+(t&r|n&~r)+f+i|0,d)+u|0}function _(e,t,n,r,u,f,i,d){return p(e+(t^(n|~r))+f+i|0,d)+u|0}t.exports=b},{"buffer":3,"hash-base":60,"inherits":74}],79:[function(e,t,n){arguments[4][26][0].apply(n,arguments)},{"buffer":3,"dup":26}],80:[function(e,t,n){var r=e('safe-buffer').Buffer;function u(e,t){this._block=r.alloc(e);this._finalSize=t;this._blockSize=e;this._len=0}u.prototype.update=function(e,t){typeof e==='string'&&(t=t||'utf8',e=r.from(e,t));var n=this._block,u=this._blockSize,f=e.length,i=this._len;for(var d=0;d<f;){var o=i%u,c=Math.min(f-d,u-o);for(var a=0;a<c;a++)n[o+a]=e[d+a];i+=c;d+=c;i%u===0&&this._update(n)}this._len+=f;return this};u.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128;this._block.fill(0,t+1);t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,u=(n-r)/4294967296;this._block.writeUInt32BE(u,this._blockSize-8);this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var f=this._hash();return e?f.toString(e):f};u.prototype._update=function(){throw new Error('_update must be implemented by subclass')};t.exports=u},{"safe-buffer":79}],81:[function(e,t,n){n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+' is not supported (we accept pull requests)');return new t};n.sha=e('./sha');n.sha1=e('./sha1');n.sha224=e('./sha224');n.sha256=e('./sha256');n.sha384=e('./sha384');n.sha512=e('./sha512')},{"./sha":82,"./sha1":83,"./sha224":84,"./sha256":85,"./sha384":86,"./sha512":87}],82:[function(e,t,n){var r=e('inherits'),u=e('./hash'),f=e('safe-buffer').Buffer,i=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function o(){this.init();this._w=d;u.call(this,64,56)}r(o,u);o.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};function c(e){return e<<5|e>>>27}function a(e){return e<<30|e>>>2}function l(e,t,n,r){if(e===0)return t&n|~t&r;if(e===2)return t&n|t&r|n&r;return t^n^r}o.prototype._update=function(e){var t=this._w,n=this._a|0,r=this._b|0,u=this._c|0,f=this._d|0,d=this._e|0;for(var o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=t[o-3]^t[o-8]^t[o-14]^t[o-16];for(var s=0;s<80;++s){var b=~~(s/20),p=c(n)+l(b,r,u,f)+d+t[s]+i[b]|0;d=f;f=u;u=a(r);r=n;n=p}this._a=n+this._a|0;this._b=r+this._b|0;this._c=u+this._c|0;this._d=f+this._d|0;this._e=d+this._e|0};o.prototype._hash=function(){var e=f.allocUnsafe(20);e.writeInt32BE(this._a|0,0);e.writeInt32BE(this._b|0,4);e.writeInt32BE(this._c|0,8);e.writeInt32BE(this._d|0,12);e.writeInt32BE(this._e|0,16);return e};t.exports=o},{"./hash":80,"inherits":74,"safe-buffer":79}],83:[function(e,t,n){var r=e('inherits'),u=e('./hash'),f=e('safe-buffer').Buffer,i=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function o(){this.init();this._w=d;u.call(this,64,56)}r(o,u);o.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};function c(e){return e<<1|e>>>31}function a(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function s(e,t,n,r){if(e===0)return t&n|~t&r;if(e===2)return t&n|t&r|n&r;return t^n^r}o.prototype._update=function(e){var t=this._w,n=this._a|0,r=this._b|0,u=this._c|0,f=this._d|0,d=this._e|0;for(var o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=c(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var b=0;b<80;++b){var p=~~(b/20),m=a(n)+s(p,r,u,f)+d+t[b]+i[p]|0;d=f;f=u;u=l(r);r=n;n=m}this._a=n+this._a|0;this._b=r+this._b|0;this._c=u+this._c|0;this._d=f+this._d|0;this._e=d+this._e|0};o.prototype._hash=function(){var e=f.allocUnsafe(20);e.writeInt32BE(this._a|0,0);e.writeInt32BE(this._b|0,4);e.writeInt32BE(this._c|0,8);e.writeInt32BE(this._d|0,12);e.writeInt32BE(this._e|0,16);return e};t.exports=o},{"./hash":80,"inherits":74,"safe-buffer":79}],84:[function(e,t,n){var r=e('inherits'),u=e('./sha256'),f=e('./hash'),i=e('safe-buffer').Buffer,d=new Array(64);function o(){this.init();this._w=d;f.call(this,64,56)}r(o,u);o.prototype.init=function(){this._a=3238371032;this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};o.prototype._hash=function(){var e=i.allocUnsafe(28);e.writeInt32BE(this._a,0);e.writeInt32BE(this._b,4);e.writeInt32BE(this._c,8);e.writeInt32BE(this._d,12);e.writeInt32BE(this._e,16);e.writeInt32BE(this._f,20);e.writeInt32BE(this._g,24);return e};t.exports=o},{"./hash":80,"./sha256":85,"inherits":74,"safe-buffer":79}],85:[function(e,t,n){var r=e('inherits'),u=e('./hash'),f=e('safe-buffer').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],d=new Array(64);function o(){this.init();this._w=d;u.call(this,64,56)}r(o,u);o.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h=1541459225;return this};function c(e,t,n){return n^e&(t^n)}function a(e,t,n){return e&t|n&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function s(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function b(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}o.prototype._update=function(e){var t=this._w,n=this._a|0,r=this._b|0,u=this._c|0,f=this._d|0,d=this._e|0,o=this._f|0,m=this._g|0,h=this._h|0;for(var g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+b(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var _=h+s(d)+c(d,o,m)+i[y]+t[y]|0,w=l(n)+a(n,r,u)|0;h=m;m=o;o=d;d=f+_|0;f=u;u=r;r=n;n=_+w|0}this._a=n+this._a|0;this._b=r+this._b|0;this._c=u+this._c|0;this._d=f+this._d|0;this._e=d+this._e|0;this._f=o+this._f|0;this._g=m+this._g|0;this._h=h+this._h|0};o.prototype._hash=function(){var e=f.allocUnsafe(32);e.writeInt32BE(this._a,0);e.writeInt32BE(this._b,4);e.writeInt32BE(this._c,8);e.writeInt32BE(this._d,12);e.writeInt32BE(this._e,16);e.writeInt32BE(this._f,20);e.writeInt32BE(this._g,24);e.writeInt32BE(this._h,28);return e};t.exports=o},{"./hash":80,"inherits":74,"safe-buffer":79}],86:[function(e,t,n){var r=e('inherits'),u=e('./sha512'),f=e('./hash'),i=e('safe-buffer').Buffer,d=new Array(160);function o(){this.init();this._w=d;f.call(this,128,112)}r(o,u);o.prototype.init=function(){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;return this};o.prototype._hash=function(){var e=i.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r);e.writeInt32BE(n,r+4)}t(this._ah,this._al,0);t(this._bh,this._bl,8);t(this._ch,this._cl,16);t(this._dh,this._dl,24);t(this._eh,this._el,32);t(this._fh,this._fl,40);return e};t.exports=o},{"./hash":80,"./sha512":87,"inherits":74,"safe-buffer":79}],87:[function(e,t,n){var r=e('inherits'),u=e('./hash'),f=e('safe-buffer').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],d=new Array(160);function o(){this.init();this._w=d;u.call(this,128,112)}r(o,u);o.prototype.init=function(){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;return this};function c(e,t,n){return n^e&(t^n)}function a(e,t,n){return e&t|n&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function s(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function b(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}o.prototype._update=function(e){var t=this._w,n=this._ah|0,r=this._bh|0,u=this._ch|0,f=this._dh|0,d=this._eh|0,o=this._fh|0,y=this._gh|0,_=this._hh|0,w=this._al|0,v=this._bl|0,S=this._cl|0,x=this._dl|0,I=this._el|0,A=this._fl|0,M=this._gl|0,k=this._hl|0;for(var B=0;B<32;B+=2)t[B]=e.readInt32BE(B*4),t[B+1]=e.readInt32BE(B*4+4);for(;B<160;B+=2){var q=t[B-30],E=t[B-30+1],L=b(q,E),j=p(E,q);q=t[B-4];E=t[B-4+1];var z=m(q,E),R=h(E,q),N=t[B-14],P=t[B-14+1],T=t[B-32],C=t[B-32+1],O=j+P|0,U=L+N+g(O,j)|0;O=O+R|0;U=U+z+g(O,R)|0;O=O+C|0;U=U+T+g(O,C)|0;t[B]=U;t[B+1]=O}for(var D=0;D<160;D+=2){U=t[D];O=t[D+1];var F=a(n,r,u),W=a(w,v,S),J=l(n,w),H=l(w,n),K=s(d,I),X=s(I,d),Z=i[D],V=i[D+1],Y=c(d,o,y),Q=c(I,A,M),G=k+X|0,$=_+K+g(G,k)|0;G=G+Q|0;$=$+Y+g(G,Q)|0;G=G+V|0;$=$+Z+g(G,V)|0;G=G+O|0;$=$+U+g(G,O)|0;var ee=H+W|0,te=J+F+g(ee,H)|0;_=y;k=M;y=o;M=A;o=d;A=I;I=x+G|0;d=f+$+g(I,x)|0;f=u;x=S;u=r;S=v;r=n;v=w;w=G+ee|0;n=$+te+g(w,G)|0}this._al=this._al+w|0;this._bl=this._bl+v|0;this._cl=this._cl+S|0;this._dl=this._dl+x|0;this._el=this._el+I|0;this._fl=this._fl+A|0;this._gl=this._gl+M|0;this._hl=this._hl+k|0;this._ah=this._ah+n+g(this._al,w)|0;this._bh=this._bh+r+g(this._bl,v)|0;this._ch=this._ch+u+g(this._cl,S)|0;this._dh=this._dh+f+g(this._dl,x)|0;this._eh=this._eh+d+g(this._el,I)|0;this._fh=this._fh+o+g(this._fl,A)|0;this._gh=this._gh+y+g(this._gl,M)|0;this._hh=this._hh+_+g(this._hl,k)|0};o.prototype._hash=function(){var e=f.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r);e.writeInt32BE(n,r+4)}t(this._ah,this._al,0);t(this._bh,this._bl,8);t(this._ch,this._cl,16);t(this._dh,this._dl,24);t(this._eh,this._el,32);t(this._fh,this._fl,40);t(this._gh,this._gl,48);t(this._hh,this._hl,56);return e};t.exports=o},{"./hash":80,"inherits":74,"safe-buffer":79}],88:[function(e,t,n){(function(n){let r=e('bn.js'),u=e('elliptic').ec,f=new u('secp256k1'),i=e('./rfc6979'),d=n.alloc(32,0),o=n.from('fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141','hex'),c=n.from('fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f','hex'),a=f.curve.n,l=a.shrn(1),s=f.curve.g,b='Expected Private',p='Expected Point',m='Expected Tweak',h='Expected Hash',g='Expected Signature',y='Expected Extra Data (32 bytes)';function _(e){return n.isBuffer(e)&&e.length===32}function w(e){if(!_(e))return!1;return e.compare(o)<0}function v(e){if(!n.isBuffer(e))return!1;if(e.length<33)return!1;let t=e[0],r=e.slice(1,33);if(r.compare(d)===0)return!1;if(r.compare(c)>=0)return!1;if((t===2||t===3)&&e.length===33){try{q(e)}catch(e){return!1};return!0}let u=e.slice(33);if(u.compare(d)===0)return!1;if(u.compare(c)>=0)return!1;if(t===4&&e.length===65)return!0;return!1}function S(e){return e[0]!==4}function x(e){if(!v(e))return!1;return S(e)}function I(e){if(!_(e))return!1;return e.compare(d)>0&&e.compare(o)<0}function A(e){let t=e.slice(0,32),r=e.slice(32,64);return n.isBuffer(e)&&e.length===64&&t.compare(o)<0&&r.compare(o)<0}function M(e,t){if(e===void 0&&t!==void 0)return S(t);if(e===void 0)return!0;return e}function k(e){return new r(e)}function B(e){return e.toArrayLike(n,'be',32)}function q(e){return f.curve.decodePoint(e)}function E(e,t){return n.from(e._encode(t))}function L(e,t,n){if(!v(e))throw new TypeError(p);if(!v(t))throw new TypeError(p);let r=q(e),u=q(t),f=r.add(u);if(f.isInfinity())return null;let i=M(n,e);return E(f,i)}function j(e,t,n){if(!v(e))throw new TypeError(p);if(!w(t))throw new TypeError(m);let r=M(n,e),u=q(e);if(t.compare(d)===0)return E(u,r);let f=k(t),i=s.mul(f),o=u.add(i);if(o.isInfinity())return null;return E(o,r)}function z(e,t){if(!v(e))throw new TypeError(p);let n=q(e);if(n.isInfinity())throw new TypeError(p);return E(n,t)}function R(e,t){if(!I(e))throw new TypeError(b);let n=k(e),r=s.mul(n);if(r.isInfinity())return null;let u=M(t);return E(r,u)}function N(e,t,n){if(!v(e))throw new TypeError(p);if(!w(t))throw new TypeError(m);let r=M(n,e),u=q(e),f=k(t),i=u.mul(f);if(i.isInfinity())return null;return E(i,r)}function P(e,t){if(!I(e))throw new TypeError(b);if(!w(t))throw new TypeError(m);let n=k(e),r=k(t),u=B(n.add(r).umod(a));if(!I(u))return null;return u}function T(e,t){if(!I(e))throw new TypeError(b);if(!w(t))throw new TypeError(m);let n=k(e),r=k(t),u=B(n.sub(r).umod(a));if(!I(u))return null;return u}function C(e,t){return U(e,t)}function O(e,t,n){return U(e,t,n)}function U(e,t,r){if(!_(e))throw new TypeError(h);if(!I(t))throw new TypeError(b);if(r!==void 0&&!_(r))throw new TypeError(y);let u=k(t),f=k(e),d,o,c=function(e){let t=k(e),n=s.mul(t);if(n.isInfinity())return!1;d=n.x.umod(a);if(d.isZero()===0)return!1;o=t.invm(a).mul(f.add(u.mul(d))).umod(a);if(o.isZero()===0)return!1;return!0};i(e,t,c,I,r);o.cmp(l)>0&&(o=a.sub(o));let p=n.allocUnsafe(64);B(d).copy(p,0);B(o).copy(p,32);return p}function D(e,t,n){if(!_(e))throw new TypeError(h);if(!v(t))throw new TypeError(p);if(!A(n))throw new TypeError(g);let r=q(t),u=k(n.slice(0,32)),f=k(n.slice(32,64));if(u.gtn(0)<=0)return!1;if(f.gtn(0)<=0)return!1;let i=k(e),d=f.invm(a),o=i.mul(d).umod(a),c=u.mul(d).umod(a),l=s.mulAdd(o,r,c);if(l.isInfinity())return!1;let b=l.x,m=b.umod(a);return m.eq(u)}t.exports={isPoint:v,isPointCompressed:x,isPrivate:I,pointAdd:L,pointAddScalar:j,pointCompress:z,pointFromScalar:R,pointMultiply:N,privateAdd:P,privateSub:T,sign:C,signWithEntropy:O,verify:D}}).call(this,e("buffer").Buffer)},{"./rfc6979":89,"bn.js":34,"buffer":3,"elliptic":44}],89:[function(e,t,n){(function(n){let r=e('create-hmac'),u=n.alloc(1,1),f=n.alloc(1,0);function i(e,t,i,d,o){let c=n.alloc(32,0),a=n.alloc(32,1);c=r('sha256',c).update(a).update(f).update(t).update(e).update(o||'').digest();a=r('sha256',c).update(a).digest();c=r('sha256',c).update(a).update(u).update(t).update(e).update(o||'').digest();a=r('sha256',c).update(a).digest();a=r('sha256',c).update(a).digest();let l=a;while(!d(l)||!i(l))c=r('sha256',c).update(a).update(f).digest(),a=r('sha256',c).update(a).digest(),a=r('sha256',c).update(a).digest(),l=a;return l}t.exports=i}).call(this,e("buffer").Buffer)},{"buffer":3,"create-hmac":42}],90:[function(e,t,n){var r=e('./native');function u(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function f(e){return r.Nil(e)?'':u(e.constructor)}function i(e){if(r.Function(e))return'';if(r.String(e))return JSON.stringify(e);if(e&&r.Object(e))return'';return e}function d(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function o(e){if(r.Function(e))return e.toJSON?e.toJSON():u(e);if(r.Array(e))return'Array';if(e&&r.Object(e))return'Object';return e!==void 0?e:''}function c(e,t,n){var r=i(t);return'Expected '+o(e)+', got'+(n!==''?' '+n:'')+(r!==''?' '+r:'')}function a(e,t,n){n=n||f(t);this.message=c(e,t,n);d(this,a);this.__type=e;this.__value=t;this.__valueTypeName=n}a.prototype=Object.create(Error.prototype);a.prototype.constructor=a;function l(e,t,n,r,u){var f='" of type ';t==='key'&&(f='" with key type ');return c('property "'+o(n)+f+o(e),r,u)}function s(e,t,n,r,u){e?(u=u||f(r),this.message=l(e,n,t,r,u)):(this.message='Unexpected property "'+t+'"');d(this,a);this.__label=n;this.__property=t;this.__type=e;this.__value=r;this.__valueTypeName=u}s.prototype=Object.create(Error.prototype);s.prototype.constructor=a;function b(e,t){return new a(e,{},t)}function p(e,t,n){e instanceof s?(t=t+'.'+e.__property,e=new s(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof a&&(e=new s(e.__type,t,n,e.__value,e.__valueTypeName));d(e);return e}t.exports={TfTypeError:a,TfPropertyTypeError:s,tfCustomError:b,tfSubError:p,tfJSON:o,getValueTypeName:f}},{"./native":93}],91:[function(e,t,n){(function(n){var r=e('./native'),u=e('./errors');function f(e){return n.isBuffer(e)}function i(e){return typeof e==='string'&&/^([0-9a-f]{2})+$/i.test(e)}function d(e,t){var n=e.toJSON();function r(r){if(!e(r))return!1;if(r.length===t)return!0;throw u.tfCustomError(n+'(Length: '+t+')',n+'(Length: '+r.length+')')}r.toJSON=function(){return n};return r}var o=d.bind(null,r.Array),c=d.bind(null,f),a=d.bind(null,i),l=d.bind(null,r.String);function s(e,t,n){n=n||r.Number;function u(r,u){return n(r,u)&&r>e&&r<t}u.toJSON=function(){return`${n.toJSON()} between [${e}, ${t}]`};return u}var b=Math.pow(2,53)-1;function p(e){return typeof e==='number'&&isFinite(e)}function m(e){return e<<24>>24===e}function h(e){return e<<16>>16===e}function g(e){return(e|0)===e}function y(e){return typeof e==='number'&&e>=-b&&e<=b&&Math.floor(e)===e}function _(e){return(e&255)===e}function w(e){return(e&65535)===e}function v(e){return e>>>0===e}function S(e){return typeof e==='number'&&e>=0&&e<=b&&Math.floor(e)===e}var x={ArrayN:o,Buffer:f,BufferN:c,Finite:p,Hex:i,HexN:a,Int8:m,Int16:h,Int32:g,Int53:y,Range:s,StringN:l,UInt8:_,UInt16:w,UInt32:v,UInt53:S};for(var I in x)x[I].toJSON=function(e){return e}.bind(null,I);t.exports=x}).call(this,{"isBuffer":e("../../../../../../.nmv/versions/node/v8.15.1/lib/node_modules/browserify/node_modules/is-buffer/index.js")})},{"../../../../../../.nmv/versions/node/v8.15.1/lib/node_modules/browserify/node_modules/is-buffer/index.js":8,"./errors":90,"./native":93}],92:[function(e,t,n){var r=e('./errors'),u=e('./native'),f=r.tfJSON,i=r.TfTypeError,d=r.TfPropertyTypeError,o=r.tfSubError,c=r.getValueTypeName,a={arrayOf:function(e,t){e=l(e);t=t||{};function n(n,r){if(!u.Array(n))return!1;if(u.Nil(n))return!1;if(t.minLength!==void 0&&n.length<t.minLength)return!1;if(t.maxLength!==void 0&&n.length>t.maxLength)return!1;if(t.length!==void 0&&n.length!==t.length)return!1;return n.every(function(t,n){try{return s(e,t,r)}catch(e){throw o(e,n)}})}n.toJSON=function(){var n='['+f(e)+']';t.length!==void 0?(n+='{'+t.length+'}'):(t.minLength!==void 0||t.maxLength!==void 0)&&(n+='{'+(t.minLength===void 0?0:t.minLength)+','+(t.maxLength===void 0?1/0:t.maxLength)+'}');return n};return n},maybe:function e(t){t=l(t);function n(n,r){return u.Nil(n)||t(n,r,e)}n.toJSON=function(){return'?'+f(t)};return n},map:function(e,t){e=l(e);t&&(t=l(t));function n(n,r){if(!u.Object(n))return!1;if(u.Nil(n))return!1;for(var f in n){try{t&&s(t,f,r)}catch(e){throw o(e,f,'key')};try{var i=n[f];s(e,i,r)}catch(e){throw o(e,f)}}return!0}t?(n.toJSON=function(){return'{'+f(t)+': '+f(e)+'}'}):(n.toJSON=function(){return'{'+f(e)+'}'});return n},object:function(e){var t={};for(var n in e)t[n]=l(e[n]);function r(e,n){if(!u.Object(e))return!1;if(u.Nil(e))return!1;var r;try{for(r in t){var f=t[r],i=e[r];s(f,i,n)}}catch(e){throw o(e,r)};if(n){for(r in e){if(t[r])continue;throw new d(void 0,r)}}return!0}r.toJSON=function(){return f(t)};return r},anyOf:function(){var e=[].slice.call(arguments).map(l);function t(t,n){return e.some(function(e){try{return s(e,t,n)}catch(e){return!1}})}t.toJSON=function(){return e.map(f).join('|')};return t},allOf:function(){var e=[].slice.call(arguments).map(l);function t(t,n){return e.every(function(e){try{return s(e,t,n)}catch(e){return!1}})}t.toJSON=function(){return e.map(f).join(' & ')};return t},quacksLike:function(e){function t(t){return e===c(t)}t.toJSON=function(){return e};return t},tuple:function(){var e=[].slice.call(arguments).map(l);function t(t,n){if(u.Nil(t))return!1;if(u.Nil(t.length))return!1;if(n&&t.length!==e.length)return!1;return e.every(function(e,r){try{return s(e,t[r],n)}catch(e){throw o(e,r)}})}t.toJSON=function(){return'('+e.map(f).join(', ')+')'};return t},value:function(e){function t(t){return t===e}t.toJSON=function(){return e};return t}};a.oneOf=a.anyOf;function l(e){if(u.String(e)){if(e[0]==='?')return a.maybe(e.slice(1));return u[e]||a.quacksLike(e)}else if(e&&u.Object(e)){if(u.Array(e)){if(e.length!==1)throw new TypeError('Expected compile() parameter of type Array of length 1');return a.arrayOf(e[0])}return a.object(e)}else if(u.Function(e)){return e}return a.value(e)}function s(e,t,n,r){if(u.Function(e)){if(e(t,n))return!0;throw new i(r||e,t)}return s(l(e),t,n)}for(var b in u)s[b]=u[b];for(b in a)s[b]=a[b];var p=e('./extra');for(b in p)s[b]=p[b];s.compile=l;s.TfTypeError=i;s.TfPropertyTypeError=d;t.exports=s},{"./errors":90,"./extra":91,"./native":93}],93:[function(e,t,n){var r={Array:function(e){return e!==null&&e!==void 0&&e.constructor===Array},Boolean:function(e){return typeof e==='boolean'},Function:function(e){return typeof e==='function'},Nil:function(e){return e===void 0||e===null},Number:function(e){return typeof e==='number'},Object:function(e){return typeof e==='object'},String:function(e){return typeof e==='string'},'':function(){return!0}};r.Null=r.Nil;for(var u in r)r[u].toJSON=function(e){return e}.bind(null,u);t.exports=r},{}],94:[function(e,t,n){(function(n){var r=e('bs58check');function u(e,t){if(t!==void 0&&e[0]!==t)throw new Error('Invalid network version');if(e.length===33){return{version:e[0],privateKey:e.slice(1,33),compressed:!1}}if(e.length!==34)throw new Error('Invalid WIF length');if(e[33]!==1)throw new Error('Invalid compression flag');return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function f(e,t,r){var u=new n(r?34:33);u.writeUInt8(e,0);t.copy(u,1);r&&(u[33]=1);return u}function i(e,t){return u(r.decode(e),t)}function d(e,t,n){if(typeof e==='number')return r.encode(f(e,t,n));return r.encode(f(e.version,e.privateKey,e.compressed))}t.exports={decode:i,decodeRaw:u,encode:d,encodeRaw:f}}).call(this,e("buffer").Buffer)},{"bs58check":38,"buffer":3}],"bip32":[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./bip32");n.fromSeed=r.fromSeed;n.fromBase58=r.fromBase58;n.fromPublicKey=r.fromPublicKey;n.fromPrivateKey=r.fromPrivateKey},{"./bip32":32}]},{},[])("bip32")})
  