Code Duplication    Length = 1-1 lines in 2 locations

build/blocktrail-sdk.min.js 2 locations

@@ 23-23 (lines=1) @@
20
c.noop=Nj,c.now=gm,c.pad=mj,c.padEnd=nj,c.padStart=oj,c.parseInt=pj,c.random=gj,c.reduce=th,c.reduceRight=uh,c.repeat=qj,c.replace=rj,c.result=Xi,c.round=pn,c.runInContext=a,c.sample=wh,c.size=zh,c.snakeCase=Wm,c.some=Ah,c.sortedIndex=Hg,c.sortedIndexBy=Ig,c.sortedIndexOf=Jg,c.sortedLastIndex=Kg,c.sortedLastIndexBy=Lg,c.sortedLastIndexOf=Mg,c.startCase=Xm,c.startsWith=tj,c.subtract=qn,c.sum=dk,c.sumBy=ek,c.template=uj,c.times=Wj,c.toFinite=yi,c.toInteger=zi,c.toLength=Ai,c.toLower=vj,c.toNumber=Bi,c.toSafeInteger=Di,c.toString=Ei,c.toUpper=wj,c.trim=xj,c.trimEnd=yj,c.trimStart=zj,c.truncate=Aj,c.unescape=Bj,c.uniqueId=Yj,c.upperCase=Ym,c.upperFirst=Zm,c.each=oh,c.eachRight=ph,c.first=ug,Lj(c,function(){var a={};return dd(c,function(b,d){tk.call(c.prototype,d)||(a[d]=b)}),a}(),{chain:!1}),c.VERSION=da,h(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){c[a].placeholder=c}),h(["drop","take"],function(a,b){X.prototype[a]=function(c){c=c===ca?1:Vk(zi(c),0);var d=this.__filtered__&&!b?new X(this):this.clone();return d.__filtered__?d.__takeCount__=Wk(c,d.__takeCount__):d.__views__.push({size:Wk(c,Ka),type:a+(d.__dir__<0?"Right":"")}),d},X.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()}}),h(["filter","map","takeWhile"],function(a,b){var c=b+1,d=c==Da||c==Fa;X.prototype[a]=function(a){var b=this.clone();return b.__iteratees__.push({iteratee:yf(a,3),type:c}),b.__filtered__=b.__filtered__||d,b}}),h(["head","last"],function(a,b){var c="take"+(b?"Right":"");X.prototype[a]=function(){return this[c](1).value()[0]}}),h(["initial","tail"],function(a,b){var c="drop"+(b?"":"Right");X.prototype[a]=function(){return this.__filtered__?new X(this):this[c](1)}}),X.prototype.compact=function(){return this.filter(Hj)},X.prototype.find=function(a){return this.filter(a).head()},X.prototype.findLast=function(a){return this.reverse().find(a)},X.prototype.invokeMap=ee(function(a,b){return"function"==typeof a?new X(this):this.map(function(c){return Bd(c,a,b)})}),X.prototype.reject=function(a){return this.filter(Jh(yf(a)))},X.prototype.slice=function(a,b){a=zi(a);var c=this;return c.__filtered__&&(a>0||b<0)?new X(c):(a<0?c=c.takeRight(-a):a&&(c=c.drop(a)),b!==ca&&(b=zi(b),c=b<0?c.dropRight(-b):c.take(b-a)),c)},X.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},X.prototype.toArray=function(){return this.take(Ka)},dd(X.prototype,function(a,b){var d=/^(?:filter|find|map|reject)|While$/.test(b),e=/^(?:head|last)$/.test(b),f=c[e?"take"+("last"==b?"Right":""):b],g=e||/^find/.test(b);f&&(c.prototype[b]=function(){var b=this.__wrapped__,h=e?[1]:arguments,i=b instanceof X,j=h[0],k=i||sm(b),l=function(a){var b=f.apply(c,o([a],h));return e&&m?b[0]:b};k&&d&&"function"==typeof j&&1!=j.length&&(i=k=!1);var m=this.__chain__,n=!!this.__actions__.length,p=g&&!m,q=i&&!n;if(!g&&k){b=q?b:new X(this);var r=a.apply(b,h);return r.__actions__.push({func:bh,args:[l],thisArg:ca}),new B(r,m)}return p&&q?a.apply(this,h):(r=this.thru(l),p?e?r.value()[0]:r.value():r)})}),h(["pop","push","shift","sort","splice","unshift"],function(a){var b=ok[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",e=/^(?:pop|shift)$/.test(a);c.prototype[a]=function(){var a=arguments;if(e&&!this.__chain__){var c=this.value();return b.apply(sm(c)?c:[],a)}return this[d](function(c){return b.apply(sm(c)?c:[],a)})}}),dd(X.prototype,function(a,b){var d=c[b];if(d){var e=d.name+"",f=gl[e]||(gl[e]=[]);f.push({name:b,func:d})}}),gl[af(ca,qa).name]=[{name:"wrapper",func:ca}],X.prototype.clone=_,X.prototype.reverse=aa,X.prototype.value=Pb,c.prototype.at=Zl,c.prototype.chain=ch,c.prototype.commit=dh,c.prototype.next=eh,c.prototype.plant=gh,c.prototype.reverse=hh,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=ih,c.prototype.first=c.prototype.head,Ik&&(c.prototype[Ik]=fh),c},vd=ud();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ed._=vd,define(function(){return vd})):gd?((gd.exports=vd)._=vd,fd._=vd):ed._=vd}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],230:[function(a,b,c){(function(Buffer){"use strict";function c(){j.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function d(a,b){return a<<b|a>>>32-b}function e(a,b,c,e,f,g,h){return d(a+(b&c|~b&e)+f+g|0,h)+b|0}function f(a,b,c,e,f,g,h){return d(a+(b&e|c&~e)+f+g|0,h)+b|0}function g(a,b,c,e,f,g,h){return d(a+(b^c^e)+f+g|0,h)+b|0}function h(a,b,c,e,f,g,h){return d(a+(c^(b|~e))+f+g|0,h)+b|0}var i=a("inherits"),j=a("hash-base"),k=new Array(16);i(c,j),c.prototype._update=function(){for(var a=k,b=0;b<16;++b)a[b]=this._block.readInt32LE(4*b);var c=this._a,d=this._b,i=this._c,j=this._d;c=e(c,d,i,j,a[0],3614090360,7),j=e(j,c,d,i,a[1],3905402710,12),i=e(i,j,c,d,a[2],606105819,17),d=e(d,i,j,c,a[3],3250441966,22),c=e(c,d,i,j,a[4],4118548399,7),j=e(j,c,d,i,a[5],1200080426,12),i=e(i,j,c,d,a[6],2821735955,17),d=e(d,i,j,c,a[7],4249261313,22),c=e(c,d,i,j,a[8],1770035416,7),j=e(j,c,d,i,a[9],2336552879,12),i=e(i,j,c,d,a[10],4294925233,17),d=e(d,i,j,c,a[11],2304563134,22),c=e(c,d,i,j,a[12],1804603682,7),j=e(j,c,d,i,a[13],4254626195,12),i=e(i,j,c,d,a[14],2792965006,17),d=e(d,i,j,c,a[15],1236535329,22),c=f(c,d,i,j,a[1],4129170786,5),j=f(j,c,d,i,a[6],3225465664,9),i=f(i,j,c,d,a[11],643717713,14),d=f(d,i,j,c,a[0],3921069994,20),c=f(c,d,i,j,a[5],3593408605,5),j=f(j,c,d,i,a[10],38016083,9),i=f(i,j,c,d,a[15],3634488961,14),d=f(d,i,j,c,a[4],3889429448,20),c=f(c,d,i,j,a[9],568446438,5),j=f(j,c,d,i,a[14],3275163606,9),i=f(i,j,c,d,a[3],4107603335,14),d=f(d,i,j,c,a[8],1163531501,20),c=f(c,d,i,j,a[13],2850285829,5),j=f(j,c,d,i,a[2],4243563512,9),i=f(i,j,c,d,a[7],1735328473,14),d=f(d,i,j,c,a[12],2368359562,20),c=g(c,d,i,j,a[5],4294588738,4),j=g(j,c,d,i,a[8],2272392833,11),i=g(i,j,c,d,a[11],1839030562,16),d=g(d,i,j,c,a[14],4259657740,23),c=g(c,d,i,j,a[1],2763975236,4),j=g(j,c,d,i,a[4],1272893353,11),i=g(i,j,c,d,a[7],4139469664,16),d=g(d,i,j,c,a[10],3200236656,23),c=g(c,d,i,j,a[13],681279174,4),j=g(j,c,d,i,a[0],3936430074,11),i=g(i,j,c,d,a[3],3572445317,16),d=g(d,i,j,c,a[6],76029189,23),c=g(c,d,i,j,a[9],3654602809,4),j=g(j,c,d,i,a[12],3873151461,11),i=g(i,j,c,d,a[15],530742520,16),d=g(d,i,j,c,a[2],3299628645,23),c=h(c,d,i,j,a[0],4096336452,6),j=h(j,c,d,i,a[7],1126891415,10),i=h(i,j,c,d,a[14],2878612391,15),d=h(d,i,j,c,a[5],4237533241,21),c=h(c,d,i,j,a[12],1700485571,6),j=h(j,c,d,i,a[3],2399980690,10),i=h(i,j,c,d,a[10],4293915773,15),d=h(d,i,j,c,a[1],2240044497,21),c=h(c,d,i,j,a[8],1873313359,6),j=h(j,c,d,i,a[15],4264355552,10),i=h(i,j,c,d,a[6],2734768916,15),d=h(d,i,j,c,a[13],1309151649,21),c=h(c,d,i,j,a[4],4149444226,6),j=h(j,c,d,i,a[11],3174756917,10),i=h(i,j,c,d,a[2],718787259,15),d=h(d,i,j,c,a[9],3951481745,21),this._a=this._a+c|0,this._b=this._b+d|0,this._c=this._c+i|0,this._d=this._d+j|0},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=new Buffer(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a},b.exports=c}).call(this,a("buffer").Buffer)},{buffer:104,"hash-base":231,inherits:226}],231:[function(a,b,c){"use strict";function d(a,b){if(!Buffer.isBuffer(a)&&"string"!=typeof a)throw new TypeError(b+" must be a string or a buffer")}function e(a){f.call(this),this._block=Buffer.allocUnsafe(a),this._blockSize=a,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var Buffer=a("safe-buffer").Buffer,f=a("stream").Transform,g=a("inherits");g(e,f),e.prototype._transform=function(a,b,c){var d=null;try{this.update(a,b)}catch(a){d=a}c(d)},e.prototype._flush=function(a){var b=null;try{this.push(this.digest())}catch(a){b=a}a(b)},e.prototype.update=function(a,b){if(d(a,"Data"),this._finalized)throw new Error("Digest already called");Buffer.isBuffer(a)||(a=Buffer.from(a,b));for(var c=this._block,e=0;this._blockOffset+a.length-e>=this._blockSize;){for(var f=this._blockOffset;f<this._blockSize;)c[f++]=a[e++];this._update(),this._blockOffset=0}for(;e<a.length;)c[this._blockOffset++]=a[e++];for(var g=0,h=8*a.length;h>0;++g)this._length[g]+=h,h=this._length[g]/4294967296|0,h>0&&(this._length[g]-=4294967296*h);return this},e.prototype._update=function(){throw new Error("_update is not implemented")},e.prototype.digest=function(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var b=this._digest();void 0!==a&&(b=b.toString(a)),this._block.fill(0),this._blockOffset=0;for(var c=0;c<4;++c)this._length[c]=0;return b},e.prototype._digest=function(){throw new Error("_digest is not implemented")},b.exports=e},{inherits:226,"safe-buffer":288,stream:304}],232:[function(a,b,c){(function(Buffer){b.exports=function(a,b){if(!Array.isArray(a))throw TypeError("Expected values Array");if("function"!=typeof b)throw TypeError("Expected digest Function");for(var c=a.length,d=a.concat();c>1;){for(var e=0,f=0;f<c;f+=2,++e){var g=d[f],h=f+1===c?g:d[f+1],i=Buffer.concat([g,h]);d[e]=b(i)}c=e}return d[0]}}).call(this,a("buffer").Buffer)},{buffer:104}],233:[function(a,b,c){function d(a){this.rand=a||new f.Rand}var e=a("bn.js"),f=a("brorand");b.exports=d,d.create=function(a){return new d(a)},d.prototype._randbelow=function(a){var b=a.bitLength(),c=Math.ceil(b/8);do var d=new e(this.rand.generate(c));while(d.cmp(a)>=0);return d},d.prototype._randrange=function(a,b){var c=b.sub(a);return a.add(this._randbelow(c))},d.prototype.test=function(a,b,c){var d=a.bitLength(),f=e.mont(a),g=new e(1).toRed(f);b||(b=Math.max(1,d/48|0));for(var h=a.subn(1),i=0;!h.testn(i);i++);for(var j=a.shrn(i),k=h.toRed(f),l=!0;b>0;b--){var m=this._randrange(new e(2),h);c&&c(m);var n=m.toRed(f).redPow(j);if(0!==n.cmp(g)&&0!==n.cmp(k)){for(var o=1;o<i;o++){if(n=n.redSqr(),0===n.cmp(g))return!1;if(0===n.cmp(k))break}if(o===i)return!1}}return l},d.prototype.getDivisor=function(a,b){var c=a.bitLength(),d=e.mont(a),f=new e(1).toRed(d);b||(b=Math.max(1,c/48|0));for(var g=a.subn(1),h=0;!g.testn(h);h++);for(var i=a.shrn(h),j=g.toRed(d);b>0;b--){var k=this._randrange(new e(2),g),l=a.gcd(k);if(0!==l.cmpn(1))return l;var m=k.toRed(d).redPow(i);if(0!==m.cmp(f)&&0!==m.cmp(j)){for(var n=1;n<h;n++){if(m=m.redSqr(),0===m.cmp(f))return m.fromRed().subn(1).gcd(a);if(0===m.cmp(j))break}if(n===h)return m=m.redSqr(),m.fromRed().subn(1).gcd(a)}}return!1}},{"bn.js":75,brorand:76}],234:[function(a,b,c){function d(a,b){if(!a)throw new Error(b||"Assertion failed")}b.exports=d,d.equal=function(a,b,c){if(a!=b)throw new Error(c||"Assertion failed: "+a+" != "+b)}},{}],235:[function(a,b,c){"use strict";function d(a,b){if(Array.isArray(a))return a.slice();if(!a)return[];var c=[];if("string"!=typeof a){for(var d=0;d<a.length;d++)c[d]=0|a[d];return c}if("hex"===b){a=a.replace(/[^a-z0-9]+/gi,""),a.length%2!==0&&(a="0"+a);for(var d=0;d<a.length;d+=2)c.push(parseInt(a[d]+a[d+1],16))}else for(var d=0;d<a.length;d++){var e=a.charCodeAt(d),f=e>>8,g=255&e;f?c.push(f,g):c.push(g)}return c}function e(a){return 1===a.length?"0"+a:a}function f(a){for(var b="",c=0;c<a.length;c++)b+=e(a[c].toString(16));return b}var g=c;g.toArray=d,g.zero2=e,g.toHex=f,g.encode=function(a,b){return"hex"===b?f(a):a}},{}],236:[function(a,b,c){(function(Buffer){function b(a,b,c,e,f,g){if("function"==typeof f&&(g=f,f=void 0),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");var h=d(a,b,c,e,f);setTimeout(function(){g(void 0,h)})}function d(a,b,c,d,g){if("number"!=typeof c)throw new TypeError("Iterations not a number");if(c<0)throw new TypeError("Bad iterations");if("number"!=typeof d)throw new TypeError("Key length not a number");if(d<0||d>f)throw new TypeError("Bad key length");g=g||"sha1",Buffer.isBuffer(a)||(a=new Buffer(a,"binary")),Buffer.isBuffer(b)||(b=new Buffer(b,"binary"));var h,i=1,j=new Buffer(d),k=new Buffer(b.length+4);b.copy(k,0,0,b.length);for(var l,m,n=1;n<=i;n++){k.writeUInt32BE(n,b.length);var o=e(g,a).update(k).digest();h||(h=o.length,m=new Buffer(h),i=Math.ceil(d/h),l=d-(i-1)*h),o.copy(m,0,0,h);for(var p=1;p<c;p++){o=e(g,a).update(o).digest();for(var q=0;q<h;q++)m[q]^=o[q]}var r=(n-1)*h,s=n===i?l:h;m.copy(j,r,0,s)}return j}var e=a("create-hmac"),f=Math.pow(2,30)-1;c.pbkdf2=b,c.pbkdf2Sync=d}).call(this,a("buffer").Buffer)},{buffer:104,"create-hmac":113}],237:[function(a,b,c){(function(a){"use strict";function c(b,c,d,e){if("function"!=typeof b)throw new TypeError('"callback" argument must be a function');var f,g,h=arguments.length;switch(h){case 0:case 1:return a.nextTick(b);case 2:return a.nextTick(function(){b.call(null,c)});case 3:return a.nextTick(function(){b.call(null,c,d)});case 4:return a.nextTick(function(){b.call(null,c,d,e)});default:for(f=new Array(h-1),g=0;g<f.length;)f[g++]=arguments[g];return a.nextTick(function(){b.apply(null,f)})}}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?b.exports=c:b.exports=a.nextTick}).call(this,a("_process"))},{_process:238}],238:[function(a,b,c){function d(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function f(a){if(l===setTimeout)return setTimeout(a,0);if((l===d||!l)&&setTimeout)return l=setTimeout,setTimeout(a,0);try{return l(a,0)}catch(b){try{return l.call(null,a,0)}catch(b){return l.call(this,a,0)}}}function g(a){if(m===clearTimeout)return clearTimeout(a);if((m===e||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(a);try{return m(a)}catch(b){try{return m.call(null,a)}catch(b){return m.call(this,a)}}}function h(){q&&o&&(q=!1,o.length?p=o.concat(p):r=-1,p.length&&i())}function i(){if(!q){var a=f(h);q=!0;for(var b=p.length;b;){for(o=p,p=[];++r<b;)o&&o[r].run();r=-1,b=p.length}o=null,q=!1,g(a)}}function j(a,b){this.fun=a,this.array=b}function k(){}var l,m,n=b.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:d}catch(a){l=d}try{m="function"==typeof clearTimeout?clearTimeout:e}catch(a){m=e}}();var o,p=[],q=!1,r=-1;n.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];p.push(new j(a,b)),1!==p.length||q||f(i)},j.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=k,n.addListener=k,n.once=k,n.off=k,n.removeListener=k,n.removeAllListeners=k,n.emit=k,n.prependListener=k,n.prependOnceListener=k,n.listeners=function(a){return[]},n.binding=function(a){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(a){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],239:[function(a,b,c){c.publicEncrypt=a("./publicEncrypt"),c.privateDecrypt=a("./privateDecrypt"),c.privateEncrypt=function(a,b){return c.publicEncrypt(a,b,!0)},c.publicDecrypt=function(a,b){return c.privateDecrypt(a,b,!0)}},{"./privateDecrypt":261,"./publicEncrypt":262}],240:[function(a,b,c){(function(Buffer){function c(a){var b=new Buffer(4);return b.writeUInt32BE(a,0),b}var d=a("create-hash");b.exports=function(a,b){for(var e,f=new Buffer(""),g=0;f.length<b;)e=c(g++),f=Buffer.concat([f,d("sha1").update(a).update(e).digest()]);return f.slice(0,b)}}).call(this,a("buffer").Buffer)},{buffer:104,"create-hash":110}],241:[function(a,b,c){arguments[4][116][0].apply(c,arguments)},{"./asn1/api":242,"./asn1/base":244,"./asn1/constants":248,"./asn1/decoders":250,"./asn1/encoders":253,"bn.js":75,dup:116}],242:[function(a,b,c){arguments[4][117][0].apply(c,arguments)},{"../asn1":241,dup:117,inherits:226,vm:322}],243:[function(a,b,c){arguments[4][118][0].apply(c,arguments)},{"../base":244,buffer:104,dup:118,inherits:226}],244:[function(a,b,c){arguments[4][119][0].apply(c,arguments)},{"./buffer":243,"./node":245,"./reporter":246,dup:119}],245:[function(a,b,c){arguments[4][120][0].apply(c,arguments)},{"../base":244,dup:120,"minimalistic-assert":234}],246:[function(a,b,c){arguments[4][121][0].apply(c,arguments)},{dup:121,inherits:226}],247:[function(a,b,c){arguments[4][122][0].apply(c,arguments)},{"../constants":248,dup:122}],248:[function(a,b,c){arguments[4][123][0].apply(c,arguments)},{"./der":247,dup:123}],249:[function(a,b,c){arguments[4][124][0].apply(c,arguments)},{"../../asn1":241,dup:124,inherits:226}],250:[function(a,b,c){arguments[4][125][0].apply(c,arguments)},{"./der":249,"./pem":251,dup:125}],251:[function(a,b,c){arguments[4][126][0].apply(c,arguments)},{"./der":249,buffer:104,dup:126,inherits:226}],252:[function(a,b,c){arguments[4][127][0].apply(c,arguments)},{"../../asn1":241,buffer:104,dup:127,inherits:226}],253:[function(a,b,c){arguments[4][128][0].apply(c,arguments)},{"./der":252,"./pem":254,dup:128}],254:[function(a,b,c){arguments[4][129][0].apply(c,arguments)},{"./der":252,dup:129,inherits:226}],255:[function(a,b,c){arguments[4][130][0].apply(c,arguments)},{"bn.js":75,buffer:104,dup:130,randombytes:271}],256:[function(a,b,c){arguments[4][137][0].apply(c,arguments)},{dup:137}],257:[function(a,b,c){arguments[4][138][0].apply(c,arguments)},{"./certificate":258,"asn1.js":241,dup:138}],258:[function(a,b,c){arguments[4][139][0].apply(c,arguments)},{"asn1.js":241,dup:139}],259:[function(a,b,c){arguments[4][140][0].apply(c,arguments)},{"browserify-aes":80,buffer:104,dup:140,evp_bytestokey:209}],260:[function(a,b,c){arguments[4][141][0].apply(c,arguments)},{"./aesid.json":256,"./asn1":257,"./fixProc":259,"browserify-aes":80,buffer:104,dup:141,pbkdf2:236}],261:[function(a,b,c){(function(Buffer){function c(a,b){var c=(a.modulus,a.modulus.byteLength()),d=(b.length,k("sha1").update(new Buffer("")).digest()),f=d.length;if(0!==b[0])throw new Error("decryption error");var i=b.slice(1,f+1),j=b.slice(f+1),l=h(i,g(j,f)),m=h(j,g(l,c-f-1));if(e(d,m.slice(0,f)))throw new Error("decryption error");for(var n=f;0===m[n];)n++;if(1!==m[n++])throw new Error("decryption error");return m.slice(n)}function d(a,b,c){for(var d=b.slice(0,2),e=2,f=0;0!==b[e++];)if(e>=b.length){f++;break}var g=b.slice(2,e-1);b.slice(e-1,e);if(("0002"!==d.toString("hex")&&!c||"0001"!==d.toString("hex")&&c)&&f++,g.length<8&&f++,f)throw new Error("decryption error");return b.slice(e)}function e(a,b){a=new Buffer(a),b=new Buffer(b);var c=0,d=a.length;a.length!==b.length&&(c++,d=Math.min(a.length,b.length));for(var e=-1;++e<d;)c+=a[e]^b[e];return c}var f=a("parse-asn1"),g=a("./mgf"),h=a("./xor"),i=a("bn.js"),j=a("browserify-rsa"),k=a("create-hash"),l=a("./withPublic");b.exports=function(a,b,e){var g;g=a.padding?a.padding:e?1:4;var h=f(a),k=h.modulus.byteLength();if(b.length>k||new i(b).cmp(h.modulus)>=0)throw new Error("decryption error");var m;m=e?l(new i(b),h):j(b,h);var n=new Buffer(k-m.length);if(n.fill(0),m=Buffer.concat([n,m],k),4===g)return c(h,m);if(1===g)return d(h,m,e);if(3===g)return m;throw new Error("unknown padding")}}).call(this,a("buffer").Buffer)},{"./mgf":240,"./withPublic":263,"./xor":264,"bn.js":75,"browserify-rsa":255,buffer:104,"create-hash":110,"parse-asn1":260}],262:[function(a,b,c){(function(Buffer){function c(a,b){var c=a.modulus.byteLength(),d=b.length,e=h("sha1").update(new Buffer("")).digest(),f=e.length,l=2*f;if(d>c-l-2)throw new Error("message too long");var m=new Buffer(c-d-l-2);m.fill(0);var n=c-f-1,o=g(f),p=j(Buffer.concat([e,m,new Buffer([1]),b],n),i(o,n)),q=j(o,i(p,f));return new k(Buffer.concat([new Buffer([0]),q,p],c))}function d(a,b,c){var d=b.length,f=a.modulus.byteLength();if(d>f-11)throw new Error("message too long");var g;return c?(g=new Buffer(f-d-3),g.fill(255)):g=e(f-d-3),new k(Buffer.concat([new Buffer([0,c?1:2]),g,new Buffer([0]),b],f))}function e(a,b){for(var c,d=new Buffer(a),e=0,f=g(2*a),h=0;e<a;)h===f.length&&(f=g(2*a),h=0),c=f[h++],c&&(d[e++]=c);return d}var f=a("parse-asn1"),g=a("randombytes"),h=a("create-hash"),i=a("./mgf"),j=a("./xor"),k=a("bn.js"),l=a("./withPublic"),m=a("browserify-rsa");b.exports=function(a,b,e){var g;g=a.padding?a.padding:e?1:4;var h,i=f(a);if(4===g)h=c(i,b);else if(1===g)h=d(i,b,e);else{if(3!==g)throw new Error("unknown padding");if(h=new k(b),h.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}return e?m(h,i):l(h,i)}}).call(this,a("buffer").Buffer)},{"./mgf":240,"./withPublic":263,"./xor":264,"bn.js":75,"browserify-rsa":255,buffer:104,"create-hash":110,"parse-asn1":260,randombytes:271}],263:[function(a,b,c){(function(Buffer){function c(a,b){return new Buffer(a.toRed(d.mont(b.modulus)).redPow(new d(b.publicExponent)).fromRed().toArray())}var d=a("bn.js");b.exports=c}).call(this,a("buffer").Buffer)},{"bn.js":75,buffer:104}],264:[function(a,b,c){b.exports=function(a,b){for(var c=a.length,d=-1;++d<c;)a[d]^=b[d];return a}},{}],265:[function(a,b,c){(function(a){!function(d){function e(a){throw new RangeError(H[a])}function f(a,b){for(var c=a.length,d=[];c--;)d[c]=b(a[c]);return d}function g(a,b){var c=a.split("@"),d="";c.length>1&&(d=c[0]+"@",a=c[1]),a=a.replace(G,".");var e=a.split("."),g=f(e,b).join(".");return d+g}function h(a){for(var b,c,d=[],e=0,f=a.length;e<f;)b=a.charCodeAt(e++),b>=55296&&b<=56319&&e<f?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:w}function k(a,b){return a+22+75*(a<26)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),c<0&&(c=0),d=0;d<c;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;f<q;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=k<=t?x:k>=t+y?y:k-t,!(m<n);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;i<q;++i)p=a[i],p<128&&u.push(K(p));for(d=f=u.length,f&&u.push(D);d<q;){for(j=v,i=0;i<q;++i)p=a[i],p>=b&&p<j&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;i<q;++i)if(p=a[i],p<b&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=n<=g?x:n>=g+y?y:n-g,!(m<o);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c&&!c.nodeType&&c,r="object"==typeof b&&b&&!b.nodeType&&b,s="object"==typeof a&&a;s.global!==s&&s.window!==s&&s.self!==s||(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.4.1",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&r)if(b.exports==q)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],266:[function(a,b,c){function d(a){return a<g.OP_PUSHDATA1?1:a<=255?2:a<=65535?3:5}function e(a,b,c){var e=d(b);return 1===e?a.writeUInt8(b,c):2===e?(a.writeUInt8(g.OP_PUSHDATA1,c),a.writeUInt8(b,c+1)):3===e?(a.writeUInt8(g.OP_PUSHDATA2,c),a.writeUInt16LE(b,c+1)):(a.writeUInt8(g.OP_PUSHDATA4,c),a.writeUInt32LE(b,c+1)),e}function f(a,b){var c,d,e=a.readUInt8(b);if(e<g.OP_PUSHDATA1)c=e,d=1;else if(e===g.OP_PUSHDATA1){if(b+2>a.length)return null;c=a.readUInt8(b+1),d=2}else if(e===g.OP_PUSHDATA2){if(b+3>a.length)return null;c=a.readUInt16LE(b+1),d=3}else{if(b+5>a.length)return null;if(e!==g.OP_PUSHDATA4)throw new Error("Unexpected opcode");c=a.readUInt32LE(b+1),d=5}return{opcode:e,number:c,size:d}}var g=a("bitcoin-ops");b.exports={encodingLength:d,encode:e,decode:f}},{"bitcoin-ops":32}],267:[function(a,b,c){(function(a){!function(a){if("function"==typeof bootstrap)bootstrap("promise",a);else if("object"==typeof c)b.exports=a();else if("function"==typeof define&&define.amd)define(a);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=a}else Q=a()}(function(){"use strict";function b(a){return function(){return V.apply(a,arguments)}}function c(a){return a===Object(a)}function d(a){return"[object StopIteration]"===ba(a)||a instanceof R}function e(a,b){if(P&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&a.stack.indexOf(ca)===-1){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+ca+"\n");a.stack=f(e)}}function f(a){for(var b=a.split("\n"),c=[],d=0;d<b.length;++d){var e=b[d];i(e)||g(e)||!e||c.push(e)}return c.join("\n")}function g(a){return a.indexOf("(module.js:")!==-1||a.indexOf("(node.js:")!==-1}function h(a){var b=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];var c=/at ([^ ]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];var d=/.*@(.+):(\d+)$/.exec(a);return d?[d[1],Number(d[2])]:void 0}function i(a){var b=h(a);if(!b)return!1;var c=b[0],d=b[1];return c===Q&&d>=S&&d<=ga}function j(){if(P)try{throw new Error}catch(d){var a=d.stack.split("\n"),b=a[0].indexOf("@")>0?a[1]:a[2],c=h(b);if(!c)return;return Q=c[0],c[1]}}function k(a,b,c){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(b+" is deprecated, use "+c+" instead.",new Error("").stack),a.apply(a,arguments)}}function l(a){return s(a)?a:t(a)?C(a):B(a)}function m(){function a(a){b=a,f.source=a,X(c,function(b,c){U(function(){a.promiseDispatch.apply(a,c)})},void 0),c=void 0,d=void 0}var b,c=[],d=[],e=$(m.prototype),f=$(p.prototype);if(f.promiseDispatch=function(a,e,f){var g=W(arguments);c?(c.push(g),"when"===e&&f[1]&&d.push(f[1])):U(function(){b.promiseDispatch.apply(b,g)})},f.valueOf=function(){if(c)return f;var a=r(b);return s(a)&&(b=a),a},f.inspect=function(){return b?b.inspect():{state:"pending"}},l.longStackSupport&&P)try{throw new Error}catch(a){f.stack=a.stack.substring(a.stack.indexOf("\n")+1)}return e.promise=f,e.resolve=function(c){b||a(l(c))},e.fulfill=function(c){b||a(B(c))},e.reject=function(c){b||a(A(c))},e.notify=function(a){b||X(d,function(b,c){U(function(){c(a)})},void 0)},e}function n(a){if("function"!=typeof a)throw new TypeError("resolver must be a function.");var b=m();try{a(b.resolve,b.reject,b.notify)}catch(a){b.reject(a)}return b.promise}function o(a){return n(function(b,c){for(var d=0,e=a.length;d<e;d++)l(a[d]).then(b,c)})}function p(a,b,c){void 0===b&&(b=function(a){return A(new Error("Promise does not support operation: "+a))}),void 0===c&&(c=function(){return{state:"unknown"}});var d=$(p.prototype);if(d.promiseDispatch=function(c,e,f){var g;try{g=a[e]?a[e].apply(d,f):b.call(d,e,f)}catch(a){g=A(a)}c&&c(g)},d.inspect=c,c){var e=c();"rejected"===e.state&&(d.exception=e.reason),d.valueOf=function(){var a=c();return"pending"===a.state||"rejected"===a.state?d:a.value}}return d}function q(a,b,c,d){return l(a).then(b,c,d)}function r(a){if(s(a)){var b=a.inspect();if("fulfilled"===b.state)return b.value}return a}function s(a){return c(a)&&"function"==typeof a.promiseDispatch&&"function"==typeof a.inspect}function t(a){return c(a)&&"function"==typeof a.then}function u(a){return s(a)&&"pending"===a.inspect().state}function v(a){return!s(a)||"fulfilled"===a.inspect().state}function w(a){return s(a)&&"rejected"===a.inspect().state}function x(){da.length=0,ea.length=0,fa||(fa=!0)}function y(a,b){fa&&(ea.push(a),b&&"undefined"!=typeof b.stack?da.push(b.stack):da.push("(no stack) "+b))}function z(a){if(fa){var b=Y(ea,a);b!==-1&&(ea.splice(b,1),da.splice(b,1))}}function A(a){var b=p({when:function(b){return b&&z(this),b?b(a):this}},function(){return this},function(){return{state:"rejected",reason:a}});return y(b,a),b}function B(a){return p({when:function(){return a},get:function(b){return a[b]},set:function(b,c){a[b]=c},delete:function(b){delete a[b]},post:function(b,c){return null===b||void 0===b?a.apply(void 0,c):a[b].apply(a,c)},apply:function(b,c){return a.apply(b,c)},keys:function(){return aa(a)}},void 0,function(){return{state:"fulfilled",value:a}})}function C(a){var b=m();return U(function(){try{a.then(b.resolve,b.reject,b.notify)}catch(a){b.reject(a)}}),b.promise}function D(a){return p({isDef:function(){}},function(b,c){return J(a,b,c)},function(){return l(a).inspect()})}function E(a,b,c){return l(a).spread(b,c)}function F(a){return function(){function b(a,b){var g;if("undefined"==typeof StopIteration){try{g=c[a](b)}catch(a){return A(a)}return g.done?g.value:q(g.value,e,f)}try{g=c[a](b)}catch(a){return d(a)?a.value:A(a)}return q(g,e,f)}var c=a.apply(this,arguments),e=b.bind(b,"next"),f=b.bind(b,"throw");return e()}}function G(a){l.done(l.async(a)())}function H(a){throw new R(a)}function I(a){return function(){return E([this,K(arguments)],function(b,c){return a.apply(b,c)})}}function J(a,b,c){return l(a).dispatch(b,c)}function K(a){return q(a,function(a){var b=0,c=m();return X(a,function(d,e,f){var g;s(e)&&"fulfilled"===(g=e.inspect()).state?a[f]=g.value:(++b,q(e,function(d){a[f]=d,0===--b&&c.resolve(a)},c.reject,function(a){c.notify({index:f,value:a})}))},void 0),0===b&&c.resolve(a),c.promise})}function L(a){return q(a,function(a){return a=Z(a,l),q(K(Z(a,function(a){return q(a,T,T)})),function(){return a})})}function M(a){return l(a).allSettled()}function N(a,b){return l(a).then(void 0,void 0,b)}function O(a,b){return l(a).nodeify(b)}var P=!1;try{throw new Error}catch(a){P=!!a.stack}var Q,R,S=j(),T=function(){},U=function(){function b(){for(;c.next;){c=c.next;var a=c.task;c.task=void 0;var d=c.domain;d&&(c.domain=void 0,d.enter());try{a()}catch(a){if(g)throw d&&d.exit(),setTimeout(b,0),d&&d.enter(),a;setTimeout(function(){throw a},0)}d&&d.exit()}e=!1}var c={task:void 0,next:null},d=c,e=!1,f=void 0,g=!1;if(U=function(b){d=d.next={task:b,domain:g&&a.domain,next:null},e||(e=!0,f())},"undefined"!=typeof a&&a.nextTick)g=!0,f=function(){a.nextTick(b)};else if("function"==typeof setImmediate)f="undefined"!=typeof window?setImmediate.bind(window,b):function(){setImmediate(b)};else if("undefined"!=typeof MessageChannel){var h=new MessageChannel;h.port1.onmessage=function(){f=i,h.port1.onmessage=b,b()};var i=function(){h.port2.postMessage(0)};f=function(){setTimeout(b,0),i()}}else f=function(){setTimeout(b,0)};return U}(),V=Function.call,W=b(Array.prototype.slice),X=b(Array.prototype.reduce||function(a,b){var c=0,d=this.length;if(1===arguments.length)for(;;){if(c in this){b=this[c++];break}if(++c>=d)throw new TypeError}for(;c<d;c++)c in this&&(b=a(b,this[c],c));return b}),Y=b(Array.prototype.indexOf||function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1}),Z=b(Array.prototype.map||function(a,b){var c=this,d=[];return X(c,function(e,f,g){d.push(a.call(b,f,g,c))},void 0),d}),$=Object.create||function(a){function b(){}return b.prototype=a,new b},_=b(Object.prototype.hasOwnProperty),aa=Object.keys||function(a){var b=[];for(var c in a)_(a,c)&&b.push(c);return b},ba=b(Object.prototype.toString);R="undefined"!=typeof ReturnValue?ReturnValue:function(a){this.value=a};var ca="From previous event:";l.resolve=l,l.nextTick=U,l.longStackSupport=!1,l.defer=m,m.prototype.makeNodeResolver=function(){var a=this;return function(b,c){b?a.reject(b):arguments.length>2?a.resolve(W(arguments,1)):a.resolve(c)}},l.Promise=n,l.promise=n,n.race=o,
21
n.all=K,n.reject=A,n.resolve=l,l.passByCopy=function(a){return a},p.prototype.passByCopy=function(){return this},l.join=function(a,b){return l(a).join(b)},p.prototype.join=function(a){return l([this,a]).spread(function(a,b){if(a===b)return a;throw new Error("Can't join: not the same: "+a+" "+b)})},l.race=o,p.prototype.race=function(){return this.then(l.race)},l.makePromise=p,p.prototype.toString=function(){return"[object Promise]"},p.prototype.then=function(a,b,c){function d(b){try{return"function"==typeof a?a(b):b}catch(a){return A(a)}}function f(a){if("function"==typeof b){e(a,h);try{return b(a)}catch(a){return A(a)}}return A(a)}function g(a){return"function"==typeof c?c(a):a}var h=this,i=m(),j=!1;return U(function(){h.promiseDispatch(function(a){j||(j=!0,i.resolve(d(a)))},"when",[function(a){j||(j=!0,i.resolve(f(a)))}])}),h.promiseDispatch(void 0,"when",[void 0,function(a){var b,c=!1;try{b=g(a)}catch(a){if(c=!0,!l.onerror)throw a;l.onerror(a)}c||i.notify(b)}]),i.promise},l.when=q,p.prototype.thenResolve=function(a){return this.then(function(){return a})},l.thenResolve=function(a,b){return l(a).thenResolve(b)},p.prototype.thenReject=function(a){return this.then(function(){throw a})},l.thenReject=function(a,b){return l(a).thenReject(b)},l.nearer=r,l.isPromise=s,l.isPromiseAlike=t,l.isPending=u,p.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=v,p.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=w,p.prototype.isRejected=function(){return"rejected"===this.inspect().state};var da=[],ea=[],fa=!0;l.resetUnhandledRejections=x,l.getUnhandledReasons=function(){return da.slice()},l.stopUnhandledRejectionTracking=function(){x(),fa=!1},x(),l.reject=A,l.fulfill=B,l.master=D,l.spread=E,p.prototype.spread=function(a,b){return this.all().then(function(b){return a.apply(void 0,b)},b)},l.async=F,l.spawn=G,l.return=H,l.promised=I,l.dispatch=J,p.prototype.dispatch=function(a,b){var c=this,d=m();return U(function(){c.promiseDispatch(d.resolve,a,b)}),d.promise},l.get=function(a,b){return l(a).dispatch("get",[b])},p.prototype.get=function(a){return this.dispatch("get",[a])},l.set=function(a,b,c){return l(a).dispatch("set",[b,c])},p.prototype.set=function(a,b){return this.dispatch("set",[a,b])},l.del=l.delete=function(a,b){return l(a).dispatch("delete",[b])},p.prototype.del=p.prototype.delete=function(a){return this.dispatch("delete",[a])},l.mapply=l.post=function(a,b,c){return l(a).dispatch("post",[b,c])},p.prototype.mapply=p.prototype.post=function(a,b){return this.dispatch("post",[a,b])},l.send=l.mcall=l.invoke=function(a,b){return l(a).dispatch("post",[b,W(arguments,2)])},p.prototype.send=p.prototype.mcall=p.prototype.invoke=function(a){return this.dispatch("post",[a,W(arguments,1)])},l.fapply=function(a,b){return l(a).dispatch("apply",[void 0,b])},p.prototype.fapply=function(a){return this.dispatch("apply",[void 0,a])},l.try=l.fcall=function(a){return l(a).dispatch("apply",[void 0,W(arguments,1)])},p.prototype.fcall=function(){return this.dispatch("apply",[void 0,W(arguments)])},l.fbind=function(a){var b=l(a),c=W(arguments,1);return function(){return b.dispatch("apply",[this,c.concat(W(arguments))])}},p.prototype.fbind=function(){var a=this,b=W(arguments);return function(){return a.dispatch("apply",[this,b.concat(W(arguments))])}},l.keys=function(a){return l(a).dispatch("keys",[])},p.prototype.keys=function(){return this.dispatch("keys",[])},l.all=K,p.prototype.all=function(){return K(this)},l.allResolved=k(L,"allResolved","allSettled"),p.prototype.allResolved=function(){return L(this)},l.allSettled=M,p.prototype.allSettled=function(){return this.then(function(a){return K(Z(a,function(a){function b(){return a.inspect()}return a=l(a),a.then(b,b)}))})},l.fail=l.catch=function(a,b){return l(a).then(void 0,b)},p.prototype.fail=p.prototype.catch=function(a){return this.then(void 0,a)},l.progress=N,p.prototype.progress=function(a){return this.then(void 0,void 0,a)},l.fin=l.finally=function(a,b){return l(a).finally(b)},p.prototype.fin=p.prototype.finally=function(a){return a=l(a),this.then(function(b){return a.fcall().then(function(){return b})},function(b){return a.fcall().then(function(){throw b})})},l.done=function(a,b,c,d){return l(a).done(b,c,d)},p.prototype.done=function(b,c,d){var f=function(a){U(function(){if(e(a,g),!l.onerror)throw a;l.onerror(a)})},g=b||c||d?this.then(b,c,d):this;"object"==typeof a&&a&&a.domain&&(f=a.domain.bind(f)),g.then(void 0,f)},l.timeout=function(a,b,c){return l(a).timeout(b,c)},p.prototype.timeout=function(a,b){var c=m(),d=setTimeout(function(){c.reject(new Error(b||"Timed out after "+a+" ms"))},a);return this.then(function(a){clearTimeout(d),c.resolve(a)},function(a){clearTimeout(d),c.reject(a)},c.notify),c.promise},l.delay=function(a,b){return void 0===b&&(b=a,a=void 0),l(a).delay(b)},p.prototype.delay=function(a){return this.then(function(b){var c=m();return setTimeout(function(){c.resolve(b)},a),c.promise})},l.nfapply=function(a,b){return l(a).nfapply(b)},p.prototype.nfapply=function(a){var b=m(),c=W(a);return c.push(b.makeNodeResolver()),this.fapply(c).fail(b.reject),b.promise},l.nfcall=function(a){var b=W(arguments,1);return l(a).nfapply(b)},p.prototype.nfcall=function(){var a=W(arguments),b=m();return a.push(b.makeNodeResolver()),this.fapply(a).fail(b.reject),b.promise},l.nfbind=l.denodeify=function(a){var b=W(arguments,1);return function(){var c=b.concat(W(arguments)),d=m();return c.push(d.makeNodeResolver()),l(a).fapply(c).fail(d.reject),d.promise}},p.prototype.nfbind=p.prototype.denodeify=function(){var a=W(arguments);return a.unshift(this),l.denodeify.apply(void 0,a)},l.nbind=function(a,b){var c=W(arguments,2);return function(){function d(){return a.apply(b,arguments)}var e=c.concat(W(arguments)),f=m();return e.push(f.makeNodeResolver()),l(d).fapply(e).fail(f.reject),f.promise}},p.prototype.nbind=function(){var a=W(arguments,0);return a.unshift(this),l.nbind.apply(void 0,a)},l.nmapply=l.npost=function(a,b,c){return l(a).npost(b,c)},p.prototype.nmapply=p.prototype.npost=function(a,b){var c=W(b||[]),d=m();return c.push(d.makeNodeResolver()),this.dispatch("post",[a,c]).fail(d.reject),d.promise},l.nsend=l.nmcall=l.ninvoke=function(a,b){var c=W(arguments,2),d=m();return c.push(d.makeNodeResolver()),l(a).dispatch("post",[b,c]).fail(d.reject),d.promise},p.prototype.nsend=p.prototype.nmcall=p.prototype.ninvoke=function(a){var b=W(arguments,1),c=m();return b.push(c.makeNodeResolver()),this.dispatch("post",[a,b]).fail(c.reject),c.promise},l.nodeify=O,p.prototype.nodeify=function(a){return a?void this.then(function(b){U(function(){a(null,b)})},function(b){U(function(){a(b)})}):this};var ga=j();return l})}).call(this,a("_process"))},{_process:238}],268:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;k<j;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],269:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d<a.length;d++)c.push(b(a[d],d));return c}var e=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};b.exports=function(a,b,c,h){return b=b||"&",c=c||"=",null===a&&(a=void 0),"object"==typeof a?d(g(a),function(g){var h=encodeURIComponent(e(g))+c;return f(a[g])?d(a[g],function(a){return h+encodeURIComponent(e(a))}).join(b):h+encodeURIComponent(e(a[g]))}).join(b):h?encodeURIComponent(e(h))+c+encodeURIComponent(e(a)):""};var f=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},g=Object.keys||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}},{}],270:[function(a,b,c){"use strict";c.decode=c.parse=a("./decode"),c.encode=c.stringify=a("./encode")},{"./decode":268,"./encode":269}],271:[function(a,b,c){(function(c,d){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function f(a,b){if(a>65536)throw new Error("requested too many random bytes");var e=new d.Uint8Array(a);a>0&&g.getRandomValues(e);var f=Buffer.from(e.buffer);return"function"==typeof b?c.nextTick(function(){b(null,f)}):f}var Buffer=a("safe-buffer").Buffer,g=d.crypto||d.msCrypto;g&&g.getRandomValues?b.exports=f:b.exports=e}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:238,"safe-buffer":288}],272:[function(a,b,c){(function(b,d){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function f(a,b){if("number"!=typeof a||a!==a)throw new TypeError("offset must be a number");if(a>o||a<0)throw new TypeError("offset must be a uint32");if(a>m||a>b)throw new RangeError("offset out of range")}function g(a,b,c){if("number"!=typeof a||a!==a)throw new TypeError("size must be a number");if(a>o||a<0)throw new TypeError("size must be a uint32");if(a+b>c||a>m)throw new RangeError("buffer too small")}function h(a,b,c,e){if(!(Buffer.isBuffer(a)||a instanceof d.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof b)e=b,b=0,c=a.length;else if("function"==typeof c)e=c,c=a.length-b;else if("function"!=typeof e)throw new TypeError('"cb" argument must be a function');return f(b,a.length),g(c,b,a.length),i(a,b,c,e)}function i(a,c,d,e){if(b.browser){var f=a.buffer,g=new Uint8Array(f,c,d);return n.getRandomValues(g),e?void b.nextTick(function(){e(null,a)}):a}if(e)return void l(d,function(b,d){return b?e(b):(d.copy(a,c),void e(null,a))});var h=l(d);return h.copy(a,c),a}function j(a,b,c){if("undefined"==typeof b&&(b=0),!(Buffer.isBuffer(a)||a instanceof d.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(b,a.length),void 0===c&&(c=a.length-b),g(c,b,a.length),i(a,b,c)}var k=a("safe-buffer"),l=a("randombytes"),Buffer=k.Buffer,m=k.kMaxLength,n=d.crypto||d.msCrypto,o=Math.pow(2,32)-1;n&&n.getRandomValues||!b.browser?(c.randomFill=h,c.randomFillSync=j):(c.randomFill=e,c.randomFillSync=e)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:238,randombytes:271,"safe-buffer":288}],273:[function(a,b,c){b.exports=a("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":274}],274:[function(a,b,c){"use strict";function d(a){return this instanceof d?(j.call(this,a),k.call(this,a),a&&a.readable===!1&&(this.readable=!1),a&&a.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,a&&a.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",e)):new d(a)}function e(){this.allowHalfOpen||this._writableState.ended||g(f,this)}function f(a){a.end()}var g=a("process-nextick-args"),h=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};b.exports=d;var i=a("core-util-is");i.inherits=a("inherits");var j=a("./_stream_readable"),k=a("./_stream_writable");i.inherits(d,j);for(var l=h(k.prototype),m=0;m<l.length;m++){var n=l[m];d.prototype[n]||(d.prototype[n]=k.prototype[n])}Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(a){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=a,this._writableState.destroyed=a)}}),d.prototype._destroy=function(a,b){this.push(null),this.end(),g(b,a)}},{"./_stream_readable":276,"./_stream_writable":278,"core-util-is":108,inherits:226,"process-nextick-args":237}],275:[function(a,b,c){"use strict";function d(a){return this instanceof d?void e.call(this,a):new d(a)}b.exports=d;var e=a("./_stream_transform"),f=a("core-util-is");f.inherits=a("inherits"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)}},{"./_stream_transform":277,"core-util-is":108,inherits:226}],276:[function(a,b,c){(function(c,d){"use strict";function e(a){return Buffer.from(a)}function f(a){return Buffer.isBuffer(a)||a instanceof L}function g(a,b,c){return"function"==typeof a.prependListener?a.prependListener(b,c):void(a._events&&a._events[b]?I(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c))}function h(b,c){H=H||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof H&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Q,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=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(P||(P=a("string_decoder/").StringDecoder),this.decoder=new P(b.encoding),this.encoding=b.encoding)}function i(b){return H=H||a("./_stream_duplex"),this instanceof i?(this._readableState=new h(b,this),this.readable=!0,b&&("function"==typeof b.read&&(this._read=b.read),"function"==typeof b.destroy&&(this._destroy=b.destroy)),void K.call(this)):new i(b)}function j(a,b,c,d,f){var g=a._readableState;if(null===b)g.reading=!1,p(a,g);else{var h;f||(h=l(g,b)),h?a.emit("error",h):g.objectMode||b&&b.length>0?("string"==typeof b||g.objectMode||Object.getPrototypeOf(b)===Buffer.prototype||(b=e(b)),d?g.endEmitted?a.emit("error",new Error("stream.unshift() after end event")):k(a,g,b,!0):g.ended?a.emit("error",new Error("stream.push() after EOF")):(g.reading=!1,g.decoder&&!c?(b=g.decoder.write(b),g.objectMode||0!==b.length?k(a,g,b,!1):s(a,g)):k(a,g,b,!1))):d||(g.reading=!1)}return m(g)}function k(a,b,c,d){b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,d?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&q(a)),s(a,b)}function l(a,b){var c;return f(b)||"string"==typeof b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function m(a){return!a.ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function n(a){return a>=T?a=T:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function o(a,b){return a<=0||0===b.length&&b.ended?0:b.objectMode?1:a!==a?b.flowing&&b.length?b.buffer.head.data.length:b.length:(a>b.highWaterMark&&(b.highWaterMark=n(a)),a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0))}function p(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,q(a)}}function q(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(O("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?G(r,a):r(a))}function r(a){O("emit readable"),a.emit("readable"),y(a)}function s(a,b){b.readingMore||(b.readingMore=!0,G(t,a,b))}function t(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(O("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function u(a){return function(){var b=a._readableState;O("pipeOnDrain",b.awaitDrain),b.awaitDrain&&b.awaitDrain--,0===b.awaitDrain&&J(a,"data")&&(b.flowing=!0,y(a))}}function v(a){O("readable nexttick read 0"),a.read(0)}function w(a,b){b.resumeScheduled||(b.resumeScheduled=!0,G(x,a,b))}function x(a,b){b.reading||(O("resume read 0"),a.read(0)),b.resumeScheduled=!1,b.awaitDrain=0,a.emit("resume"),y(a),b.flowing&&!b.reading&&a.read(0)}function y(a){var b=a._readableState;for(O("flow",b.flowing);b.flowing&&null!==a.read(););}function z(a,b){if(0===b.length)return null;var c;return b.objectMode?c=b.buffer.shift():!a||a>=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):c=A(a,b.buffer,b.decoder),c}function A(a,b,c){var d;return a<b.head.data.length?(d=b.head.data.slice(0,a),b.head.data=b.head.data.slice(a)):d=a===b.head.data.length?b.shift():c?B(a,b):C(a,b),d}function B(a,b){var c=b.head,d=1,e=c.data;for(a-=e.length;c=c.next;){var f=c.data,g=a>f.length?f.length:a;if(e+=g===f.length?f:f.slice(0,a),a-=g,0===a){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}function C(a,b){var c=Buffer.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),a-=g,0===a){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}function D(a){var b=a._readableState;if(b.length>0)throw new Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,G(E,b,a))}function E(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function F(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}var G=a("process-nextick-args");b.exports=i;var H,I=a("isarray");i.ReadableState=h;var J=(a("events").EventEmitter,function(a,b){return a.listeners(b).length}),K=a("./internal/streams/stream"),Buffer=a("safe-buffer").Buffer,L=d.Uint8Array||function(){},M=a("core-util-is");M.inherits=a("inherits");var N=a("util"),O=void 0;O=N&&N.debuglog?N.debuglog("stream"):function(){};var P,Q=a("./internal/streams/BufferList"),R=a("./internal/streams/destroy");M.inherits(i,K);var S=["error","close","destroy","pause","resume"];Object.defineProperty(i.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),i.prototype.destroy=R.destroy,i.prototype._undestroy=R.undestroy,i.prototype._destroy=function(a,b){this.push(null),b(a)},i.prototype.push=function(a,b){var c,d=this._readableState;return d.objectMode?c=!0:"string"==typeof a&&(b=b||d.defaultEncoding,b!==d.encoding&&(a=Buffer.from(a,b),b=""),c=!0),j(this,a,b,!1,c)},i.prototype.unshift=function(a){return j(this,a,null,!0,!1)},i.prototype.isPaused=function(){return this._readableState.flowing===!1},i.prototype.setEncoding=function(b){return P||(P=a("string_decoder/").StringDecoder),this._readableState.decoder=new P(b),this._readableState.encoding=b,this};var T=8388608;i.prototype.read=function(a){O("read",a),a=parseInt(a,10);var b=this._readableState,c=a;if(0!==a&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return O("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?D(this):q(this),null;if(a=o(a,b),0===a&&b.ended)return 0===b.length&&D(this),null;var d=b.needReadable;O("need readable",d),(0===b.length||b.length-a<b.highWaterMark)&&(d=!0,O("length less than watermark",d)),b.ended||b.reading?(d=!1,O("reading or ended",d)):d&&(O("do read"),b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1,b.reading||(a=o(c,b)));var e;return e=a>0?z(a,b):null,null===e?(b.needReadable=!0,a=0):b.length-=a,0===b.length&&(b.ended||(b.needReadable=!0),c!==a&&b.ended&&D(this)),null!==e&&this.emit("data",e),e},i.prototype._read=function(a){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(a,b){function d(a,b){O("onunpipe"),a===m&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function e(){O("onend"),a.end()}function f(){O("cleanup"),a.removeListener("close",j),a.removeListener("finish",k),a.removeListener("drain",q),a.removeListener("error",i),a.removeListener("unpipe",d),m.removeListener("end",e),m.removeListener("end",l),m.removeListener("data",h),r=!0,!n.awaitDrain||a._writableState&&!a._writableState.needDrain||q()}function h(b){O("ondata"),s=!1;var c=a.write(b);!1!==c||s||((1===n.pipesCount&&n.pipes===a||n.pipesCount>1&&F(n.pipes,a)!==-1)&&!r&&(O("false write response, pause",m._readableState.awaitDrain),m._readableState.awaitDrain++,s=!0),m.pause())}function i(b){O("onerror",b),l(),a.removeListener("error",i),0===J(a,"error")&&a.emit("error",b)}function j(){a.removeListener("finish",k),l()}function k(){O("onfinish"),a.removeListener("close",j),l()}function l(){O("unpipe"),m.unpipe(a)}var m=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=a;break;case 1:n.pipes=[n.pipes,a];break;default:n.pipes.push(a)}n.pipesCount+=1,O("pipe count=%d opts=%j",n.pipesCount,b);var o=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,p=o?e:l;n.endEmitted?G(p):m.once("end",p),a.on("unpipe",d);var q=u(m);a.on("drain",q);var r=!1,s=!1;return m.on("data",h),g(a,"error",i),a.once("close",j),a.once("finish",k),a.emit("pipe",m),n.flowing||(O("pipe resume"),m.resume()),a},i.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c),this);if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f<e;f++)d[f].emit("unpipe",this,c);return this}var g=F(b.pipes,a);return g===-1?this:(b.pipes.splice(g,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this,c),this)},i.prototype.on=function(a,b){var c=K.prototype.on.call(this,a,b);if("data"===a)this._readableState.flowing!==!1&&this.resume();else if("readable"===a){var d=this._readableState;d.endEmitted||d.readableListening||(d.readableListening=d.needReadable=!0,d.emittedReadable=!1,d.reading?d.length&&q(this):G(v,this))}return c},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var a=this._readableState;return a.flowing||(O("resume"),a.flowing=!0,w(this,a)),this},i.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(O("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(O("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));for(var f=0;f<S.length;f++)a.on(S[f],d.emit.bind(d,S[f]));return d._read=function(b){O("wrapped _read",b),c&&(c=!1,a.resume())},d},i._fromList=z}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":274,"./internal/streams/BufferList":279,"./internal/streams/destroy":280,"./internal/streams/stream":281,_process:238,"core-util-is":108,events:208,inherits:226,isarray:228,"process-nextick-args":237,"safe-buffer":288,"string_decoder/":305,util:77}],277:[function(a,b,c){"use strict";function d(a){this.afterTransform=function(b,c){return e(a,b,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&a._read(f.highWaterMark)}function f(a){if(!(this instanceof f))return new f(a);h.call(this,a),this._transformState=new d(this);var b=this;this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(a,c){g(b,a,c)}):g(b)})}function g(a,b,c){if(b)return a.emit("error",b);null!==c&&void 0!==c&&a.push(c);var d=a._writableState,e=a._transformState;if(d.length)throw new Error("Calling transform done when ws.length != 0");if(e.transforming)throw new Error("Calling transform done when still transforming");return a.push(null)}b.exports=f;var h=a("./_stream_duplex"),i=a("core-util-is");i.inherits=a("inherits"),i.inherits(f,h),f.prototype.push=function(a,b){return this._transformState.needTransform=!1,h.prototype.push.call(this,a,b)},f.prototype._transform=function(a,b,c){throw new Error("_transform() is not implemented")},f.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},f.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},f.prototype._destroy=function(a,b){var c=this;h.prototype._destroy.call(this,a,function(a){b(a),c.emit("close")})}},{"./_stream_duplex":274,"core-util-is":108,inherits:226}],278:[function(a,b,c){(function(c,d){"use strict";function e(a){var b=this;this.next=null,this.entry=null,this.finish=function(){A(b,a)}}function f(a){return Buffer.from(a)}function g(a){return Buffer.isBuffer(a)||a instanceof H}function h(){}function i(b,c){C=C||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof C&&(this.objectMode=this.objectMode||!!b.writableObjectMode);var d=b.highWaterMark,f=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:f,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 g=b.decodeStrings===!1;this.decodeStrings=!g,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){r(c,a)},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 e(this)}function j(b){return C=C||a("./_stream_duplex"),J.call(j,this)||this instanceof C?(this._writableState=new i(b,this),this.writable=!0,b&&("function"==typeof b.write&&(this._write=b.write),"function"==typeof b.writev&&(this._writev=b.writev),"function"==typeof b.destroy&&(this._destroy=b.destroy),"function"==typeof b.final&&(this._final=b.final)),void G.call(this)):new j(b)}function k(a,b){var c=new Error("write after end");a.emit("error",c),B(b,c)}function l(a,b,c,d){var e=!0,f=!1;return null===c?f=new TypeError("May not write null values to stream"):"string"==typeof c||void 0===c||b.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(a.emit("error",f),B(d,f),e=!1),e}function m(a,b,c){return a.objectMode||a.decodeStrings===!1||"string"!=typeof b||(b=Buffer.from(b,c)),b}function n(a,b,c,d,e,f){if(!c){var g=m(b,d,e);d!==g&&(c=!0,e="buffer",d=g)}var h=b.objectMode?1:d.length;b.length+=h;var i=b.length<b.highWaterMark;if(i||(b.needDrain=!0),b.writing||b.corked){var j=b.lastBufferedRequest;b.lastBufferedRequest={chunk:d,encoding:e,isBuf:c,callback:f,next:null},j?j.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest,b.bufferedRequestCount+=1}else o(a,b,!1,h,d,e,f);return i}function o(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function p(a,b,c,d,e){--b.pendingcb,c?(B(e,d),B(y,a,b),a._writableState.errorEmitted=!0,a.emit("error",d)):(e(d),a._writableState.errorEmitted=!0,a.emit("error",d),y(a,b))}function q(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function r(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(q(c),b)p(a,c,d,b,e);else{var f=v(c);f||c.corked||c.bufferProcessing||!c.bufferedRequest||u(a,c),d?D(s,a,c,f,e):s(a,c,f,e)}}function s(a,b,c,d){c||t(a,b),b.pendingcb--,d(),y(a,b)}function t(a,b){0===b.length&&b.needDrain&&(b.needDrain=!1,a.emit("drain"))}function u(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=b.bufferedRequestCount,f=new Array(d),g=b.corkedRequestsFree;g.entry=c;for(var h=0,i=!0;c;)f[h]=c,c.isBuf||(i=!1),c=c.next,h+=1;f.allBuffers=i,o(a,b,!0,b.length,f,"",g.finish),b.pendingcb++,b.lastBufferedRequest=null,g.next?(b.corkedRequestsFree=g.next,g.next=null):b.corkedRequestsFree=new e(b)}else{for(;c;){var j=c.chunk,k=c.encoding,l=c.callback,m=b.objectMode?1:j.length;if(o(a,b,!1,m,j,k,l),c=c.next,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequestCount=0,b.bufferedRequest=c,b.bufferProcessing=!1}function v(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function w(a,b){a._final(function(c){b.pendingcb--,c&&a.emit("error",c),b.prefinished=!0,a.emit("prefinish"),y(a,b)})}function x(a,b){b.prefinished||b.finalCalled||("function"==typeof a._final?(b.pendingcb++,b.finalCalled=!0,B(w,a,b)):(b.prefinished=!0,a.emit("prefinish")))}function y(a,b){var c=v(b);return c&&(x(a,b),0===b.pendingcb&&(b.finished=!0,a.emit("finish"))),c}function z(a,b,c){b.ending=!0,y(a,b),c&&(b.finished?B(c):a.once("finish",c)),b.ended=!0,a.writable=!1}function A(a,b,c){var d=a.entry;for(a.entry=null;d;){var e=d.callback;b.pendingcb--,e(c),d=d.next}b.corkedRequestsFree?b.corkedRequestsFree.next=a:b.corkedRequestsFree=a}var B=a("process-nextick-args");b.exports=j;var C,D=!c.browser&&["v0.10","v0.9."].indexOf(c.version.slice(0,5))>-1?setImmediate:B;j.WritableState=i;var E=a("core-util-is");E.inherits=a("inherits");var F={deprecate:a("util-deprecate")},G=a("./internal/streams/stream"),Buffer=a("safe-buffer").Buffer,H=d.Uint8Array||function(){},I=a("./internal/streams/destroy");E.inherits(j,G),i.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b},function(){try{Object.defineProperty(i.prototype,"buffer",{get:F.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(a){}}();var J;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(a){return!!J.call(this,a)||a&&a._writableState instanceof i}})):J=function(a){return a instanceof this},j.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},j.prototype.write=function(a,b,c){var d=this._writableState,e=!1,i=g(a)&&!d.objectMode;return i&&!Buffer.isBuffer(a)&&(a=f(a)),"function"==typeof b&&(c=b,b=null),i?b="buffer":b||(b=d.defaultEncoding),"function"!=typeof c&&(c=h),d.ended?k(this,c):(i||l(this,d,a,c))&&(d.pendingcb++,e=n(this,d,i,a,b,c)),e},j.prototype.cork=function(){var a=this._writableState;a.corked++},j.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||u(this,a))},j.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},j.prototype._write=function(a,b,c){c(new Error("_write() is not implemented"));
22
},j.prototype._writev=null,j.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||z(this,d,c)},Object.defineProperty(j.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(a){this._writableState&&(this._writableState.destroyed=a)}}),j.prototype.destroy=I.destroy,j.prototype._undestroy=I.undestroy,j.prototype._destroy=function(a,b){this.end(),b(a)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":274,"./internal/streams/destroy":280,"./internal/streams/stream":281,_process:238,"core-util-is":108,inherits:226,"process-nextick-args":237,"safe-buffer":288,"util-deprecate":317}],279:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c){a.copy(b,c)}var Buffer=a("safe-buffer").Buffer;b.exports=function(){function a(){d(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},a.prototype.unshift=function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length},a.prototype.shift=function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c},a.prototype.concat=function(a){if(0===this.length)return Buffer.alloc(0);if(1===this.length)return this.head.data;for(var b=Buffer.allocUnsafe(a>>>0),c=this.head,d=0;c;)e(c.data,b,d),d+=c.data.length,c=c.next;return b},a}()},{"safe-buffer":288}],280:[function(a,b,c){"use strict";function d(a,b){var c=this,d=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return d||e?void(b?b(a):!a||this._writableState&&this._writableState.errorEmitted||g(f,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),void this._destroy(a||null,function(a){!b&&a?(g(f,c,a),c._writableState&&(c._writableState.errorEmitted=!0)):b&&b(a)}))}function e(){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 f(a,b){a.emit("error",b)}var g=a("process-nextick-args");b.exports={destroy:d,undestroy:e}},{"process-nextick-args":237}],281:[function(a,b,c){b.exports=a("events").EventEmitter},{events:208}],282:[function(a,b,c){b.exports=a("./readable").PassThrough},{"./readable":283}],283:[function(a,b,c){c=b.exports=a("./lib/_stream_readable.js"),c.Stream=c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":274,"./lib/_stream_passthrough.js":275,"./lib/_stream_readable.js":276,"./lib/_stream_transform.js":277,"./lib/_stream_writable.js":278}],284:[function(a,b,c){b.exports=a("./readable").Transform},{"./readable":283}],285:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":278}],286:[function(a,b,c){b.exports=function(a,b,c){for(var d=0,e=a.length,f=3==arguments.length?c:a[d++];d<e;)f=b.call(null,f,a[d],++d,a);return f}},{}],287:[function(a,b,c){(function(Buffer){"use strict";function c(){k.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(a,b){return a<<b|a>>>32-b}function e(a,b,c,e,f,g,h,i){return d(a+(b^c^e)+g+h|0,i)+f|0}function f(a,b,c,e,f,g,h,i){return d(a+(b&c|~b&e)+g+h|0,i)+f|0}function g(a,b,c,e,f,g,h,i){return d(a+((b|~c)^e)+g+h|0,i)+f|0}function h(a,b,c,e,f,g,h,i){return d(a+(b&e|c&~e)+g+h|0,i)+f|0}function i(a,b,c,e,f,g,h,i){return d(a+(b^(c|~e))+g+h|0,i)+f|0}var j=a("inherits"),k=a("hash-base");j(c,k),c.prototype._update=function(){for(var a=new Array(16),b=0;b<16;++b)a[b]=this._block.readInt32LE(4*b);var c=this._a,j=this._b,k=this._c,l=this._d,m=this._e;c=e(c,j,k,l,m,a[0],0,11),k=d(k,10),m=e(m,c,j,k,l,a[1],0,14),j=d(j,10),l=e(l,m,c,j,k,a[2],0,15),c=d(c,10),k=e(k,l,m,c,j,a[3],0,12),m=d(m,10),j=e(j,k,l,m,c,a[4],0,5),l=d(l,10),c=e(c,j,k,l,m,a[5],0,8),k=d(k,10),m=e(m,c,j,k,l,a[6],0,7),j=d(j,10),l=e(l,m,c,j,k,a[7],0,9),c=d(c,10),k=e(k,l,m,c,j,a[8],0,11),m=d(m,10),j=e(j,k,l,m,c,a[9],0,13),l=d(l,10),c=e(c,j,k,l,m,a[10],0,14),k=d(k,10),m=e(m,c,j,k,l,a[11],0,15),j=d(j,10),l=e(l,m,c,j,k,a[12],0,6),c=d(c,10),k=e(k,l,m,c,j,a[13],0,7),m=d(m,10),j=e(j,k,l,m,c,a[14],0,9),l=d(l,10),c=e(c,j,k,l,m,a[15],0,8),k=d(k,10),m=f(m,c,j,k,l,a[7],1518500249,7),j=d(j,10),l=f(l,m,c,j,k,a[4],1518500249,6),c=d(c,10),k=f(k,l,m,c,j,a[13],1518500249,8),m=d(m,10),j=f(j,k,l,m,c,a[1],1518500249,13),l=d(l,10),c=f(c,j,k,l,m,a[10],1518500249,11),k=d(k,10),m=f(m,c,j,k,l,a[6],1518500249,9),j=d(j,10),l=f(l,m,c,j,k,a[15],1518500249,7),c=d(c,10),k=f(k,l,m,c,j,a[3],1518500249,15),m=d(m,10),j=f(j,k,l,m,c,a[12],1518500249,7),l=d(l,10),c=f(c,j,k,l,m,a[0],1518500249,12),k=d(k,10),m=f(m,c,j,k,l,a[9],1518500249,15),j=d(j,10),l=f(l,m,c,j,k,a[5],1518500249,9),c=d(c,10),k=f(k,l,m,c,j,a[2],1518500249,11),m=d(m,10),j=f(j,k,l,m,c,a[14],1518500249,7),l=d(l,10),c=f(c,j,k,l,m,a[11],1518500249,13),k=d(k,10),m=f(m,c,j,k,l,a[8],1518500249,12),j=d(j,10),l=g(l,m,c,j,k,a[3],1859775393,11),c=d(c,10),k=g(k,l,m,c,j,a[10],1859775393,13),m=d(m,10),j=g(j,k,l,m,c,a[14],1859775393,6),l=d(l,10),c=g(c,j,k,l,m,a[4],1859775393,7),k=d(k,10),m=g(m,c,j,k,l,a[9],1859775393,14),j=d(j,10),l=g(l,m,c,j,k,a[15],1859775393,9),c=d(c,10),k=g(k,l,m,c,j,a[8],1859775393,13),m=d(m,10),j=g(j,k,l,m,c,a[1],1859775393,15),l=d(l,10),c=g(c,j,k,l,m,a[2],1859775393,14),k=d(k,10),m=g(m,c,j,k,l,a[7],1859775393,8),j=d(j,10),l=g(l,m,c,j,k,a[0],1859775393,13),c=d(c,10),k=g(k,l,m,c,j,a[6],1859775393,6),m=d(m,10),j=g(j,k,l,m,c,a[13],1859775393,5),l=d(l,10),c=g(c,j,k,l,m,a[11],1859775393,12),k=d(k,10),m=g(m,c,j,k,l,a[5],1859775393,7),j=d(j,10),l=g(l,m,c,j,k,a[12],1859775393,5),c=d(c,10),k=h(k,l,m,c,j,a[1],2400959708,11),m=d(m,10),j=h(j,k,l,m,c,a[9],2400959708,12),l=d(l,10),c=h(c,j,k,l,m,a[11],2400959708,14),k=d(k,10),m=h(m,c,j,k,l,a[10],2400959708,15),j=d(j,10),l=h(l,m,c,j,k,a[0],2400959708,14),c=d(c,10),k=h(k,l,m,c,j,a[8],2400959708,15),m=d(m,10),j=h(j,k,l,m,c,a[12],2400959708,9),l=d(l,10),c=h(c,j,k,l,m,a[4],2400959708,8),k=d(k,10),m=h(m,c,j,k,l,a[13],2400959708,9),j=d(j,10),l=h(l,m,c,j,k,a[3],2400959708,14),c=d(c,10),k=h(k,l,m,c,j,a[7],2400959708,5),m=d(m,10),j=h(j,k,l,m,c,a[15],2400959708,6),l=d(l,10),c=h(c,j,k,l,m,a[14],2400959708,8),k=d(k,10),m=h(m,c,j,k,l,a[5],2400959708,6),j=d(j,10),l=h(l,m,c,j,k,a[6],2400959708,5),c=d(c,10),k=h(k,l,m,c,j,a[2],2400959708,12),m=d(m,10),j=i(j,k,l,m,c,a[4],2840853838,9),l=d(l,10),c=i(c,j,k,l,m,a[0],2840853838,15),k=d(k,10),m=i(m,c,j,k,l,a[5],2840853838,5),j=d(j,10),l=i(l,m,c,j,k,a[9],2840853838,11),c=d(c,10),k=i(k,l,m,c,j,a[7],2840853838,6),m=d(m,10),j=i(j,k,l,m,c,a[12],2840853838,8),l=d(l,10),c=i(c,j,k,l,m,a[2],2840853838,13),k=d(k,10),m=i(m,c,j,k,l,a[10],2840853838,12),j=d(j,10),l=i(l,m,c,j,k,a[14],2840853838,5),c=d(c,10),k=i(k,l,m,c,j,a[1],2840853838,12),m=d(m,10),j=i(j,k,l,m,c,a[3],2840853838,13),l=d(l,10),c=i(c,j,k,l,m,a[8],2840853838,14),k=d(k,10),m=i(m,c,j,k,l,a[11],2840853838,11),j=d(j,10),l=i(l,m,c,j,k,a[6],2840853838,8),c=d(c,10),k=i(k,l,m,c,j,a[15],2840853838,5),m=d(m,10),j=i(j,k,l,m,c,a[13],2840853838,6),l=d(l,10);var n=this._a,o=this._b,p=this._c,q=this._d,r=this._e;n=i(n,o,p,q,r,a[5],1352829926,8),p=d(p,10),r=i(r,n,o,p,q,a[14],1352829926,9),o=d(o,10),q=i(q,r,n,o,p,a[7],1352829926,9),n=d(n,10),p=i(p,q,r,n,o,a[0],1352829926,11),r=d(r,10),o=i(o,p,q,r,n,a[9],1352829926,13),q=d(q,10),n=i(n,o,p,q,r,a[2],1352829926,15),p=d(p,10),r=i(r,n,o,p,q,a[11],1352829926,15),o=d(o,10),q=i(q,r,n,o,p,a[4],1352829926,5),n=d(n,10),p=i(p,q,r,n,o,a[13],1352829926,7),r=d(r,10),o=i(o,p,q,r,n,a[6],1352829926,7),q=d(q,10),n=i(n,o,p,q,r,a[15],1352829926,8),p=d(p,10),r=i(r,n,o,p,q,a[8],1352829926,11),o=d(o,10),q=i(q,r,n,o,p,a[1],1352829926,14),n=d(n,10),p=i(p,q,r,n,o,a[10],1352829926,14),r=d(r,10),o=i(o,p,q,r,n,a[3],1352829926,12),q=d(q,10),n=i(n,o,p,q,r,a[12],1352829926,6),p=d(p,10),r=h(r,n,o,p,q,a[6],1548603684,9),o=d(o,10),q=h(q,r,n,o,p,a[11],1548603684,13),n=d(n,10),p=h(p,q,r,n,o,a[3],1548603684,15),r=d(r,10),o=h(o,p,q,r,n,a[7],1548603684,7),q=d(q,10),n=h(n,o,p,q,r,a[0],1548603684,12),p=d(p,10),r=h(r,n,o,p,q,a[13],1548603684,8),o=d(o,10),q=h(q,r,n,o,p,a[5],1548603684,9),n=d(n,10),p=h(p,q,r,n,o,a[10],1548603684,11),r=d(r,10),o=h(o,p,q,r,n,a[14],1548603684,7),q=d(q,10),n=h(n,o,p,q,r,a[15],1548603684,7),p=d(p,10),r=h(r,n,o,p,q,a[8],1548603684,12),o=d(o,10),q=h(q,r,n,o,p,a[12],1548603684,7),n=d(n,10),p=h(p,q,r,n,o,a[4],1548603684,6),r=d(r,10),o=h(o,p,q,r,n,a[9],1548603684,15),q=d(q,10),n=h(n,o,p,q,r,a[1],1548603684,13),p=d(p,10),r=h(r,n,o,p,q,a[2],1548603684,11),o=d(o,10),q=g(q,r,n,o,p,a[15],1836072691,9),n=d(n,10),p=g(p,q,r,n,o,a[5],1836072691,7),r=d(r,10),o=g(o,p,q,r,n,a[1],1836072691,15),q=d(q,10),n=g(n,o,p,q,r,a[3],1836072691,11),p=d(p,10),r=g(r,n,o,p,q,a[7],1836072691,8),o=d(o,10),q=g(q,r,n,o,p,a[14],1836072691,6),n=d(n,10),p=g(p,q,r,n,o,a[6],1836072691,6),r=d(r,10),o=g(o,p,q,r,n,a[9],1836072691,14),q=d(q,10),n=g(n,o,p,q,r,a[11],1836072691,12),p=d(p,10),r=g(r,n,o,p,q,a[8],1836072691,13),o=d(o,10),q=g(q,r,n,o,p,a[12],1836072691,5),n=d(n,10),p=g(p,q,r,n,o,a[2],1836072691,14),r=d(r,10),o=g(o,p,q,r,n,a[10],1836072691,13),q=d(q,10),n=g(n,o,p,q,r,a[0],1836072691,13),p=d(p,10),r=g(r,n,o,p,q,a[4],1836072691,7),o=d(o,10),q=g(q,r,n,o,p,a[13],1836072691,5),n=d(n,10),p=f(p,q,r,n,o,a[8],2053994217,15),r=d(r,10),o=f(o,p,q,r,n,a[6],2053994217,5),q=d(q,10),n=f(n,o,p,q,r,a[4],2053994217,8),p=d(p,10),r=f(r,n,o,p,q,a[1],2053994217,11),o=d(o,10),q=f(q,r,n,o,p,a[3],2053994217,14),n=d(n,10),p=f(p,q,r,n,o,a[11],2053994217,14),r=d(r,10),o=f(o,p,q,r,n,a[15],2053994217,6),q=d(q,10),n=f(n,o,p,q,r,a[0],2053994217,14),p=d(p,10),r=f(r,n,o,p,q,a[5],2053994217,6),o=d(o,10),q=f(q,r,n,o,p,a[12],2053994217,9),n=d(n,10),p=f(p,q,r,n,o,a[2],2053994217,12),r=d(r,10),o=f(o,p,q,r,n,a[13],2053994217,9),q=d(q,10),n=f(n,o,p,q,r,a[9],2053994217,12),p=d(p,10),r=f(r,n,o,p,q,a[7],2053994217,5),o=d(o,10),q=f(q,r,n,o,p,a[10],2053994217,15),n=d(n,10),p=f(p,q,r,n,o,a[14],2053994217,8),r=d(r,10),o=e(o,p,q,r,n,a[12],0,8),q=d(q,10),n=e(n,o,p,q,r,a[15],0,5),p=d(p,10),r=e(r,n,o,p,q,a[10],0,12),o=d(o,10),q=e(q,r,n,o,p,a[4],0,9),n=d(n,10),p=e(p,q,r,n,o,a[1],0,12),r=d(r,10),o=e(o,p,q,r,n,a[5],0,5),q=d(q,10),n=e(n,o,p,q,r,a[8],0,14),p=d(p,10),r=e(r,n,o,p,q,a[7],0,6),o=d(o,10),q=e(q,r,n,o,p,a[6],0,8),n=d(n,10),p=e(p,q,r,n,o,a[2],0,13),r=d(r,10),o=e(o,p,q,r,n,a[13],0,6),q=d(q,10),n=e(n,o,p,q,r,a[14],0,5),p=d(p,10),r=e(r,n,o,p,q,a[0],0,15),o=d(o,10),q=e(q,r,n,o,p,a[3],0,13),n=d(n,10),p=e(p,q,r,n,o,a[9],0,11),r=d(r,10),o=e(o,p,q,r,n,a[11],0,11),q=d(q,10);var s=this._b+k+q|0;this._b=this._c+l+r|0,this._c=this._d+m+n|0,this._d=this._e+c+o|0,this._e=this._a+j+p|0,this._a=s},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=new Buffer(20);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a.writeInt32LE(this._e,16),a},b.exports=c}).call(this,a("buffer").Buffer)},{buffer:104,"hash-base":210,inherits:226}],288:[function(a,b,c){function d(a,b){for(var c in a)b[c]=a[c]}function e(a,b,c){return Buffer(a,b,c)}var f=a("buffer"),Buffer=f.Buffer;Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?b.exports=f:(d(f,c),c.Buffer=e),d(Buffer,e),e.from=function(a,b,c){if("number"==typeof a)throw new TypeError("Argument must not be a number");return Buffer(a,b,c)},e.alloc=function(a,b,c){if("number"!=typeof a)throw new TypeError("Argument must be a number");var d=Buffer(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},e.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return Buffer(a)},e.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return f.SlowBuffer(a)}},{buffer:104}],289:[function(a,b,c){"use strict";b.exports=a("./lib")(a("./lib/elliptic"))},{"./lib":293,"./lib/elliptic":292}],290:[function(a,b,c){(function(Buffer){"use strict";var a=Object.prototype.toString;c.isArray=function(a,b){if(!Array.isArray(a))throw TypeError(b)},c.isBoolean=function(b,c){if("[object Boolean]"!==a.call(b))throw TypeError(c)},c.isBuffer=function(a,b){if(!Buffer.isBuffer(a))throw TypeError(b)},c.isFunction=function(b,c){if("[object Function]"!==a.call(b))throw TypeError(c)},c.isNumber=function(b,c){if("[object Number]"!==a.call(b))throw TypeError(c)},c.isObject=function(b,c){if("[object Object]"!==a.call(b))throw TypeError(c)},c.isBufferLength=function(a,b,c){if(a.length!==b)throw RangeError(c)},c.isBufferLength2=function(a,b,c,d){if(a.length!==b&&a.length!==c)throw RangeError(d)},c.isLengthGTZero=function(a,b){if(0===a.length)throw RangeError(b)},c.isNumberInInterval=function(a,b,c,d){if(a<=b||a>=c)throw RangeError(d)}}).call(this,{isBuffer:a("../../is-buffer/index.js")})},{"../../is-buffer/index.js":227}],291:[function(a,b,c){"use strict";var Buffer=a("safe-buffer").Buffer,d=a("bip66"),e=Buffer.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),f=Buffer.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);c.privateKeyExport=function(a,b,c){var d=Buffer.from(c?e:f);return a.copy(d,c?8:9),b.copy(d,c?181:214),d},c.privateKeyImport=function(a){var b=a.length,c=0;if(!(b<c+1||48!==a[c])&&(c+=1,!(b<c+1)&&128&a[c])){var d=127&a[c];if(c+=1,!(d<1||d>2||b<c+d)){var e=a[c+d-1]|(d>1?a[c+d-2]<<8:0);if(c+=d,!(b<c+e||b<c+3||2!==a[c]||1!==a[c+1]||1!==a[c+2]||(c+=3,b<c+2||4!==a[c]||a[c+1]>32||b<c+2+a[c+1])))return a.slice(c+2,c+2+a[c+1])}}},c.signatureExport=function(a){for(var b=Buffer.concat([Buffer.from([0]),a.r]),c=33,e=0;c>1&&0===b[e]&&!(128&b[e+1]);--c,++e);for(var f=Buffer.concat([Buffer.from([0]),a.s]),g=33,h=0;g>1&&0===f[h]&&!(128&f[h+1]);--g,++h);return d.encode(b.slice(e),f.slice(h))},c.signatureImport=function(a){var b=Buffer.alloc(32,0),c=Buffer.alloc(32,0);try{var e=d.decode(a);if(33===e.r.length&&0===e.r[0]&&(e.r=e.r.slice(1)),e.r.length>32)throw new Error("R length is too long");if(33===e.s.length&&0===e.s[0]&&(e.s=e.s.slice(1)),e.s.length>32)throw new Error("S length is too long")}catch(a){return}return e.r.copy(b,32-e.r.length),e.s.copy(c,32-e.s.length),{r:b,s:c}},c.signatureImportLax=function(a){var b=Buffer.alloc(32,0),c=Buffer.alloc(32,0),d=a.length,e=0;if(48===a[e++]){var f=a[e++];if(!(128&f&&(e+=f-128,e>d))&&2===a[e++]){var g=a[e++];if(128&g){if(f=g-128,e+f>d)return;for(;f>0&&0===a[e];e+=1,f-=1);for(g=0;f>0;e+=1,f-=1)g=(g<<8)+a[e]}if(!(g>d-e)){var h=e;if(e+=g,2===a[e++]){var i=a[e++];if(128&i){if(f=i-128,e+f>d)return;for(;f>0&&0===a[e];e+=1,f-=1);for(i=0;f>0;e+=1,f-=1)i=(i<<8)+a[e]}if(!(i>d-e)){var j=e;for(e+=i;g>0&&0===a[h];g-=1,h+=1);if(!(g>32)){var k=a.slice(h,h+g);for(k.copy(b,32-k.length);i>0&&0===a[j];i-=1,j+=1);if(!(i>32)){var l=a.slice(j,j+i);return l.copy(c,32-l.length),{r:b,s:c}}}}}}}}}},{bip66:31,"safe-buffer":288}],292:[function(a,b,c){"use strict";function d(a,b){var c=new h(b);if(c.cmp(l.p)>=0)return null;c=c.toRed(l.red);var d=c.redSqr().redIMul(c).redIAdd(l.b).redSqrt();return 3===a!==d.isOdd()&&(d=d.redNeg()),k.keyPair({pub:{x:c,y:d}})}function e(a,b,c){var d=new h(b),e=new h(c);if(d.cmp(l.p)>=0||e.cmp(l.p)>=0)return null;if(d=d.toRed(l.red),e=e.toRed(l.red),(6===a||7===a)&&e.isOdd()!==(7===a))return null;var f=d.redSqr().redIMul(d);return e.redSqr().redISub(f.redIAdd(l.b)).isZero()?k.keyPair({pub:{x:d,y:e}}):null}function f(a){var b=a[0];switch(b){case 2:case 3:return 33!==a.length?null:d(b,a.slice(1,33));case 4:case 6:case 7:return 65!==a.length?null:e(b,a.slice(1,33),a.slice(33,65));default:return null}}var Buffer=a("safe-buffer").Buffer,g=a("create-hash"),h=a("bn.js"),i=a("elliptic").ec,j=a("../messages.json"),k=new i("secp256k1"),l=k.curve;c.privateKeyVerify=function(a){var b=new h(a);return b.cmp(l.n)<0&&!b.isZero()},c.privateKeyExport=function(a,b){var c=new h(a);if(c.cmp(l.n)>=0||c.isZero())throw new Error(j.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return Buffer.from(k.keyFromPrivate(a).getPublic(b,!0))},c.privateKeyTweakAdd=function(a,b){var c=new h(b);if(c.cmp(l.n)>=0)throw new Error(j.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(c.iadd(new h(a)),c.cmp(l.n)>=0&&c.isub(l.n),c.isZero())throw new Error(j.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return c.toArrayLike(Buffer,"be",32)},c.privateKeyTweakMul=function(a,b){var c=new h(b);if(c.cmp(l.n)>=0||c.isZero())throw new Error(j.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return c.imul(new h(a)),c.cmp(l.n)&&(c=c.umod(l.n)),c.toArrayLike(Buffer,"be",32)},c.publicKeyCreate=function(a,b){var c=new h(a);if(c.cmp(l.n)>=0||c.isZero())throw new Error(j.EC_PUBLIC_KEY_CREATE_FAIL);return Buffer.from(k.keyFromPrivate(a).getPublic(b,!0))},c.publicKeyConvert=function(a,b){var c=f(a);if(null===c)throw new Error(j.EC_PUBLIC_KEY_PARSE_FAIL);return Buffer.from(c.getPublic(b,!0))},c.publicKeyVerify=function(a){return null!==f(a)},c.publicKeyTweakAdd=function(a,b,c){var d=f(a);if(null===d)throw new Error(j.EC_PUBLIC_KEY_PARSE_FAIL);if(b=new h(b),b.cmp(l.n)>=0)throw new Error(j.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return Buffer.from(l.g.mul(b).add(d.pub).encode(!0,c))},c.publicKeyTweakMul=function(a,b,c){var d=f(a);if(null===d)throw new Error(j.EC_PUBLIC_KEY_PARSE_FAIL);if(b=new h(b),b.cmp(l.n)>=0||b.isZero())throw new Error(j.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return Buffer.from(d.pub.mul(b).encode(!0,c))},c.publicKeyCombine=function(a,b){for(var c=new Array(a.length),d=0;d<a.length;++d)if(c[d]=f(a[d]),null===c[d])throw new Error(j.EC_PUBLIC_KEY_PARSE_FAIL);for(var e=c[0].pub,g=1;g<c.length;++g)e=e.add(c[g].pub);if(e.isInfinity())throw new Error(j.EC_PUBLIC_KEY_COMBINE_FAIL);return Buffer.from(e.encode(!0,b))},c.signatureNormalize=function(a){var b=new h(a.slice(0,32)),c=new h(a.slice(32,64));if(b.cmp(l.n)>=0||c.cmp(l.n)>=0)throw new Error(j.ECDSA_SIGNATURE_PARSE_FAIL);var d=Buffer.from(a);return 1===c.cmp(k.nh)&&l.n.sub(c).toArrayLike(Buffer,"be",32).copy(d,32),d},c.signatureExport=function(a){var b=a.slice(0,32),c=a.slice(32,64);if(new h(b).cmp(l.n)>=0||new h(c).cmp(l.n)>=0)throw new Error(j.ECDSA_SIGNATURE_PARSE_FAIL);return{r:b,s:c}},c.signatureImport=function(a){var b=new h(a.r);b.cmp(l.n)>=0&&(b=new h(0));var c=new h(a.s);return c.cmp(l.n)>=0&&(c=new h(0)),Buffer.concat([b.toArrayLike(Buffer,"be",32),c.toArrayLike(Buffer,"be",32)])},c.sign=function(a,b,c,d){if("function"==typeof c){var e=c;c=function(c){var f=e(a,b,null,d,c);if(!Buffer.isBuffer(f)||32!==f.length)throw new Error(j.ECDSA_SIGN_FAIL);return new h(f)}}var f=new h(b);if(f.cmp(l.n)>=0||f.isZero())throw new Error(j.ECDSA_SIGN_FAIL);var g=k.sign(a,b,{canonical:!0,k:c,pers:d});return{signature:Buffer.concat([g.r.toArrayLike(Buffer,"be",32),g.s.toArrayLike(Buffer,"be",32)]),recovery:g.recoveryParam}},c.verify=function(a,b,c){var d={r:b.slice(0,32),s:b.slice(32,64)},e=new h(d.r),g=new h(d.s);if(e.cmp(l.n)>=0||g.cmp(l.n)>=0)throw new Error(j.ECDSA_SIGNATURE_PARSE_FAIL);if(1===g.cmp(k.nh)||e.isZero()||g.isZero())return!1;var i=f(c);if(null===i)throw new Error(j.EC_PUBLIC_KEY_PARSE_FAIL);return k.verify(a,d,{x:i.pub.x,y:i.pub.y})},c.recover=function(a,b,c,d){var e={r:b.slice(0,32),s:b.slice(32,64)},f=new h(e.r),g=new h(e.s);if(f.cmp(l.n)>=0||g.cmp(l.n)>=0)throw new Error(j.ECDSA_SIGNATURE_PARSE_FAIL);try{if(f.isZero()||g.isZero())throw new Error;var i=k.recoverPubKey(a,e,c);return Buffer.from(i.encode(!0,d))}catch(a){throw new Error(j.ECDSA_RECOVER_FAIL)}},c.ecdh=function(a,b){var d=c.ecdhUnsafe(a,b,!0);return g("sha256").update(d).digest()},c.ecdhUnsafe=function(a,b,c){var d=f(a);if(null===d)throw new Error(j.EC_PUBLIC_KEY_PARSE_FAIL);var e=new h(b);if(e.cmp(l.n)>=0||e.isZero())throw new Error(j.ECDH_FAIL);return Buffer.from(d.pub.mul(e).encode(!0,c))}},{"../messages.json":294,"bn.js":75,"create-hash":110,elliptic:192,"safe-buffer":288}],293:[function(a,b,c){"use strict";function d(a,b){return void 0===a?b:(e.isBoolean(a,g.COMPRESSED_TYPE_INVALID),a)}var e=a("./assert"),f=a("./der"),g=a("./messages.json");b.exports=function(a){return{privateKeyVerify:function(b){return e.isBuffer(b,g.EC_PRIVATE_KEY_TYPE_INVALID),32===b.length&&a.privateKeyVerify(b)},privateKeyExport:function(b,c){e.isBuffer(b,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(b,32,g.EC_PRIVATE_KEY_LENGTH_INVALID),c=d(c,!0);var h=a.privateKeyExport(b,c);return f.privateKeyExport(b,h,c)},privateKeyImport:function(b){if(e.isBuffer(b,g.EC_PRIVATE_KEY_TYPE_INVALID),b=f.privateKeyImport(b),b&&32===b.length&&a.privateKeyVerify(b))return b;throw new Error(g.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyTweakAdd:function(b,c){return e.isBuffer(b,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(b,32,g.EC_PRIVATE_KEY_LENGTH_INVALID),e.isBuffer(c,g.TWEAK_TYPE_INVALID),e.isBufferLength(c,32,g.TWEAK_LENGTH_INVALID),a.privateKeyTweakAdd(b,c)},privateKeyTweakMul:function(b,c){return e.isBuffer(b,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(b,32,g.EC_PRIVATE_KEY_LENGTH_INVALID),e.isBuffer(c,g.TWEAK_TYPE_INVALID),e.isBufferLength(c,32,g.TWEAK_LENGTH_INVALID),a.privateKeyTweakMul(b,c)},publicKeyCreate:function(b,c){return e.isBuffer(b,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(b,32,g.EC_PRIVATE_KEY_LENGTH_INVALID),c=d(c,!0),a.publicKeyCreate(b,c)},publicKeyConvert:function(b,c){return e.isBuffer(b,g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(b,33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID),c=d(c,!0),a.publicKeyConvert(b,c)},publicKeyVerify:function(b){return e.isBuffer(b,g.EC_PUBLIC_KEY_TYPE_INVALID),a.publicKeyVerify(b)},publicKeyTweakAdd:function(b,c,f){return e.isBuffer(b,g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(b,33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID),e.isBuffer(c,g.TWEAK_TYPE_INVALID),e.isBufferLength(c,32,g.TWEAK_LENGTH_INVALID),f=d(f,!0),a.publicKeyTweakAdd(b,c,f)},publicKeyTweakMul:function(b,c,f){return e.isBuffer(b,g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(b,33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID),e.isBuffer(c,g.TWEAK_TYPE_INVALID),e.isBufferLength(c,32,g.TWEAK_LENGTH_INVALID),f=d(f,!0),a.publicKeyTweakMul(b,c,f)},publicKeyCombine:function(b,c){e.isArray(b,g.EC_PUBLIC_KEYS_TYPE_INVALID),e.isLengthGTZero(b,g.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var f=0;f<b.length;++f)e.isBuffer(b[f],g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(b[f],33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID);return c=d(c,!0),a.publicKeyCombine(b,c)},signatureNormalize:function(b){return e.isBuffer(b,g.ECDSA_SIGNATURE_TYPE_INVALID),e.isBufferLength(b,64,g.ECDSA_SIGNATURE_LENGTH_INVALID),a.signatureNormalize(b)},signatureExport:function(b){e.isBuffer(b,g.ECDSA_SIGNATURE_TYPE_INVALID),e.isBufferLength(b,64,g.ECDSA_SIGNATURE_LENGTH_INVALID);var c=a.signatureExport(b);return f.signatureExport(c)},signatureImport:function(b){e.isBuffer(b,g.ECDSA_SIGNATURE_TYPE_INVALID),e.isLengthGTZero(b,g.ECDSA_SIGNATURE_LENGTH_INVALID);var c=f.signatureImport(b);if(c)return a.signatureImport(c);throw new Error(g.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(b){e.isBuffer(b,g.ECDSA_SIGNATURE_TYPE_INVALID),e.isLengthGTZero(b,g.ECDSA_SIGNATURE_LENGTH_INVALID);var c=f.signatureImportLax(b);if(c)return a.signatureImport(c);throw new Error(g.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(b,c,d){e.isBuffer(b,g.MSG32_TYPE_INVALID),e.isBufferLength(b,32,g.MSG32_LENGTH_INVALID),e.isBuffer(c,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(c,32,g.EC_PRIVATE_KEY_LENGTH_INVALID);var f=null,h=null;return void 0!==d&&(e.isObject(d,g.OPTIONS_TYPE_INVALID),void 0!==d.data&&(e.isBuffer(d.data,g.OPTIONS_DATA_TYPE_INVALID),e.isBufferLength(d.data,32,g.OPTIONS_DATA_LENGTH_INVALID),f=d.data),void 0!==d.noncefn&&(e.isFunction(d.noncefn,g.OPTIONS_NONCEFN_TYPE_INVALID),h=d.noncefn)),a.sign(b,c,h,f)},verify:function(b,c,d){return e.isBuffer(b,g.MSG32_TYPE_INVALID),e.isBufferLength(b,32,g.MSG32_LENGTH_INVALID),e.isBuffer(c,g.ECDSA_SIGNATURE_TYPE_INVALID),e.isBufferLength(c,64,g.ECDSA_SIGNATURE_LENGTH_INVALID),e.isBuffer(d,g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(d,33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID),a.verify(b,c,d)},recover:function(b,c,f,h){return e.isBuffer(b,g.MSG32_TYPE_INVALID),e.isBufferLength(b,32,g.MSG32_LENGTH_INVALID),e.isBuffer(c,g.ECDSA_SIGNATURE_TYPE_INVALID),e.isBufferLength(c,64,g.ECDSA_SIGNATURE_LENGTH_INVALID),e.isNumber(f,g.RECOVERY_ID_TYPE_INVALID),e.isNumberInInterval(f,-1,4,g.RECOVERY_ID_VALUE_INVALID),h=d(h,!0),a.recover(b,c,f,h)},ecdh:function(b,c){return e.isBuffer(b,g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(b,33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID),e.isBuffer(c,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(c,32,g.EC_PRIVATE_KEY_LENGTH_INVALID),a.ecdh(b,c)},ecdhUnsafe:function(b,c,f){return e.isBuffer(b,g.EC_PUBLIC_KEY_TYPE_INVALID),e.isBufferLength2(b,33,65,g.EC_PUBLIC_KEY_LENGTH_INVALID),e.isBuffer(c,g.EC_PRIVATE_KEY_TYPE_INVALID),e.isBufferLength(c,32,g.EC_PRIVATE_KEY_LENGTH_INVALID),f=d(f,!0),a.ecdhUnsafe(b,c,f)}}}},{"./assert":290,"./der":291,"./messages.json":294}],294:[function(a,b,c){b.exports={COMPRESSED_TYPE_INVALID:"compressed should be a boolean",EC_PRIVATE_KEY_TYPE_INVALID:"private key should be a Buffer",EC_PRIVATE_KEY_LENGTH_INVALID:"private key length is invalid",EC_PRIVATE_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting private key is invalid",EC_PRIVATE_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PRIVATE_KEY_EXPORT_DER_FAIL:"couldn't export to DER format",EC_PRIVATE_KEY_IMPORT_DER_FAIL:"couldn't import from DER format",EC_PUBLIC_KEYS_TYPE_INVALID:"public keys should be an Array",EC_PUBLIC_KEYS_LENGTH_INVALID:"public keys Array should have at least 1 element",EC_PUBLIC_KEY_TYPE_INVALID:"public key should be a Buffer",EC_PUBLIC_KEY_LENGTH_INVALID:"public key length is invalid",EC_PUBLIC_KEY_PARSE_FAIL:"the public key could not be parsed or is invalid",EC_PUBLIC_KEY_CREATE_FAIL:"private was invalid, try again",EC_PUBLIC_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting public key is invalid",EC_PUBLIC_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PUBLIC_KEY_COMBINE_FAIL:"the sum of the public keys is not valid",ECDH_FAIL:"scalar was invalid (zero or overflow)",ECDSA_SIGNATURE_TYPE_INVALID:"signature should be a Buffer",ECDSA_SIGNATURE_LENGTH_INVALID:"signature length is invalid",ECDSA_SIGNATURE_PARSE_FAIL:"couldn't parse signature",ECDSA_SIGNATURE_PARSE_DER_FAIL:"couldn't parse DER signature",ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:"couldn't serialize signature to DER format",ECDSA_SIGN_FAIL:"nonce generation function failed or private key is invalid",ECDSA_RECOVER_FAIL:"couldn't recover public key from signature",MSG32_TYPE_INVALID:"message should be a Buffer",MSG32_LENGTH_INVALID:"message length is invalid",OPTIONS_TYPE_INVALID:"options should be an Object",OPTIONS_DATA_TYPE_INVALID:"options.data should be a Buffer",OPTIONS_DATA_LENGTH_INVALID:"options.data length is invalid",OPTIONS_NONCEFN_TYPE_INVALID:"options.noncefn should be a Function",RECOVERY_ID_TYPE_INVALID:"recovery should be a Number",RECOVERY_ID_VALUE_INVALID:"recovery should have value between -1 and 4",TWEAK_TYPE_INVALID:"tweak should be a Buffer",TWEAK_LENGTH_INVALID:"tweak length is invalid"}},{}],295:[function(a,b,c){function d(a,b){this._block=Buffer.alloc(a),this._finalSize=b,this._blockSize=a,this._len=0}var Buffer=a("safe-buffer").Buffer;d.prototype.update=function(a,b){"string"==typeof a&&(b=b||"utf8",a=Buffer.from(a,b));for(var c=this._block,d=this._blockSize,e=a.length,f=this._len,g=0;g<e;){for(var h=f%d,i=Math.min(e-g,d-h),j=0;j<i;j++)c[h+j]=a[g+j];f+=i,g+=i,f%d===0&&this._update(c)}return this._len+=e,this},d.prototype.digest=function(a){var b=this._len%this._blockSize;this._block[b]=128,this._block.fill(0,b+1),b>=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var d=4294967295&c,e=(c-d)/4294967296;this._block.writeUInt32BE(e,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var f=this._hash();return a?f.toString(a):f},d.prototype._update=function(){throw new Error("_update must be implemented by subclass")},b.exports=d},{"safe-buffer":288}],296:[function(a,b,c){var c=b.exports=function(a){a=a.toLowerCase();var b=c[a];if(!b)throw new Error(a+" is not supported (we accept pull requests)");return new b};c.sha=a("./sha"),c.sha1=a("./sha1"),c.sha224=a("./sha224"),c.sha256=a("./sha256"),c.sha384=a("./sha384"),c.sha512=a("./sha512")},{"./sha":297,"./sha1":298,"./sha224":299,"./sha256":300,"./sha384":301,"./sha512":302}],297:[function(a,b,c){function d(){this.init(),this._w=k,i.call(this,64,56)}function e(a){return a<<5|a>>>27}function f(a){return a<<30|a>>>2}function g(a,b,c,d){return 0===a?b&c|~b&d:2===a?b&c|b&d|c&d:b^c^d}var h=a("inherits"),i=a("./hash"),Buffer=a("safe-buffer").Buffer,j=[1518500249,1859775393,-1894007588,-899497514],k=new Array(80);h(d,i),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._a,d=0|this._b,h=0|this._c,i=0|this._d,k=0|this._e,l=0;l<16;++l)b[l]=a.readInt32BE(4*l);for(;l<80;++l)b[l]=b[l-3]^b[l-8]^b[l-14]^b[l-16];for(var m=0;m<80;++m){var n=~~(m/20),o=e(c)+g(n,d,h,i)+k+b[m]+j[n]|0;k=i,i=h,h=f(d),d=c,c=o}this._a=c+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=i+this._d|0,this._e=k+this._e|0},d.prototype._hash=function(){var a=Buffer.allocUnsafe(20);return a.writeInt32BE(0|this._a,0),a.writeInt32BE(0|this._b,4),a.writeInt32BE(0|this._c,8),a.writeInt32BE(0|this._d,12),a.writeInt32BE(0|this._e,16),a},b.exports=d},{"./hash":295,inherits:226,"safe-buffer":288}],298:[function(a,b,c){function d(){this.init(),this._w=l,j.call(this,64,56)}function e(a){return a<<1|a>>>31;
23
}function f(a){return a<<5|a>>>27}function g(a){return a<<30|a>>>2}function h(a,b,c,d){return 0===a?b&c|~b&d:2===a?b&c|b&d|c&d:b^c^d}var i=a("inherits"),j=a("./hash"),Buffer=a("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);i(d,j),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._a,d=0|this._b,i=0|this._c,j=0|this._d,l=0|this._e,m=0;m<16;++m)b[m]=a.readInt32BE(4*m);for(;m<80;++m)b[m]=e(b[m-3]^b[m-8]^b[m-14]^b[m-16]);for(var n=0;n<80;++n){var o=~~(n/20),p=f(c)+h(o,d,i,j)+l+b[n]+k[o]|0;l=j,j=i,i=g(d),d=c,c=p}this._a=c+this._a|0,this._b=d+this._b|0,this._c=i+this._c|0,this._d=j+this._d|0,this._e=l+this._e|0},d.prototype._hash=function(){var a=Buffer.allocUnsafe(20);return a.writeInt32BE(0|this._a,0),a.writeInt32BE(0|this._b,4),a.writeInt32BE(0|this._c,8),a.writeInt32BE(0|this._d,12),a.writeInt32BE(0|this._e,16),a},b.exports=d},{"./hash":295,inherits:226,"safe-buffer":288}],299:[function(a,b,c){function d(){this.init(),this._w=h,g.call(this,64,56)}var e=a("inherits"),f=a("./sha256"),g=a("./hash"),Buffer=a("safe-buffer").Buffer,h=new Array(64);e(d,f),d.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},d.prototype._hash=function(){var a=Buffer.allocUnsafe(28);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a},b.exports=d},{"./hash":295,"./sha256":300,inherits:226,"safe-buffer":288}],300:[function(a,b,c){function d(){this.init(),this._w=n,l.call(this,64,56)}function e(a,b,c){return c^a&(b^c)}function f(a,b,c){return a&b|c&(a|b)}function g(a){return(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10)}function h(a){return(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7)}function i(a){return(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3}function j(a){return(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10}var k=a("inherits"),l=a("./hash"),Buffer=a("safe-buffer").Buffer,m=[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],n=new Array(64);k(d,l),d.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._a,d=0|this._b,k=0|this._c,l=0|this._d,n=0|this._e,o=0|this._f,p=0|this._g,q=0|this._h,r=0;r<16;++r)b[r]=a.readInt32BE(4*r);for(;r<64;++r)b[r]=j(b[r-2])+b[r-7]+i(b[r-15])+b[r-16]|0;for(var s=0;s<64;++s){var t=q+h(n)+e(n,o,p)+m[s]+b[s]|0,u=g(c)+f(c,d,k)|0;q=p,p=o,o=n,n=l+t|0,l=k,k=d,d=c,c=t+u|0}this._a=c+this._a|0,this._b=d+this._b|0,this._c=k+this._c|0,this._d=l+this._d|0,this._e=n+this._e|0,this._f=o+this._f|0,this._g=p+this._g|0,this._h=q+this._h|0},d.prototype._hash=function(){var a=Buffer.allocUnsafe(32);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a.writeInt32BE(this._h,28),a},b.exports=d},{"./hash":295,inherits:226,"safe-buffer":288}],301:[function(a,b,c){function d(){this.init(),this._w=h,g.call(this,128,112)}var e=a("inherits"),f=a("./sha512"),g=a("./hash"),Buffer=a("safe-buffer").Buffer,h=new Array(160);e(d,f),d.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},d.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d),b.writeInt32BE(c,d+4)}var b=Buffer.allocUnsafe(48);return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),b},b.exports=d},{"./hash":295,"./sha512":302,inherits:226,"safe-buffer":288}],302:[function(a,b,c){function d(){this.init(),this._w=q,o.call(this,128,112)}function e(a,b,c){return c^a&(b^c)}function f(a,b,c){return a&b|c&(a|b)}function g(a,b){return(a>>>28|b<<4)^(b>>>2|a<<30)^(b>>>7|a<<25)}function h(a,b){return(a>>>14|b<<18)^(a>>>18|b<<14)^(b>>>9|a<<23)}function i(a,b){return(a>>>1|b<<31)^(a>>>8|b<<24)^a>>>7}function j(a,b){return(a>>>1|b<<31)^(a>>>8|b<<24)^(a>>>7|b<<25)}function k(a,b){return(a>>>19|b<<13)^(b>>>29|a<<3)^a>>>6}function l(a,b){return(a>>>19|b<<13)^(b>>>29|a<<3)^(a>>>6|b<<26)}function m(a,b){return a>>>0<b>>>0?1:0}var n=a("inherits"),o=a("./hash"),Buffer=a("safe-buffer").Buffer,p=[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],q=new Array(160);n(d,o),d.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._ah,d=0|this._bh,n=0|this._ch,o=0|this._dh,q=0|this._eh,r=0|this._fh,s=0|this._gh,t=0|this._hh,u=0|this._al,v=0|this._bl,w=0|this._cl,x=0|this._dl,y=0|this._el,z=0|this._fl,A=0|this._gl,B=0|this._hl,C=0;C<32;C+=2)b[C]=a.readInt32BE(4*C),b[C+1]=a.readInt32BE(4*C+4);for(;C<160;C+=2){var D=b[C-30],E=b[C-30+1],F=i(D,E),G=j(E,D);D=b[C-4],E=b[C-4+1];var H=k(D,E),I=l(E,D),J=b[C-14],K=b[C-14+1],L=b[C-32],M=b[C-32+1],N=G+K|0,O=F+J+m(N,G)|0;N=N+I|0,O=O+H+m(N,I)|0,N=N+M|0,O=O+L+m(N,M)|0,b[C]=O,b[C+1]=N}for(var P=0;P<160;P+=2){O=b[P],N=b[P+1];var Q=f(c,d,n),R=f(u,v,w),S=g(c,u),T=g(u,c),U=h(q,y),V=h(y,q),W=p[P],X=p[P+1],Y=e(q,r,s),Z=e(y,z,A),$=B+V|0,_=t+U+m($,B)|0;$=$+Z|0,_=_+Y+m($,Z)|0,$=$+X|0,_=_+W+m($,X)|0,$=$+N|0,_=_+O+m($,N)|0;var aa=T+R|0,ba=S+Q+m(aa,T)|0;t=s,B=A,s=r,A=z,r=q,z=y,y=x+$|0,q=o+_+m(y,x)|0,o=n,x=w,n=d,w=v,d=c,v=u,u=$+aa|0,c=_+ba+m(u,$)|0}this._al=this._al+u|0,this._bl=this._bl+v|0,this._cl=this._cl+w|0,this._dl=this._dl+x|0,this._el=this._el+y|0,this._fl=this._fl+z|0,this._gl=this._gl+A|0,this._hl=this._hl+B|0,this._ah=this._ah+c+m(this._al,u)|0,this._bh=this._bh+d+m(this._bl,v)|0,this._ch=this._ch+n+m(this._cl,w)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+q+m(this._el,y)|0,this._fh=this._fh+r+m(this._fl,z)|0,this._gh=this._gh+s+m(this._gl,A)|0,this._hh=this._hh+t+m(this._hl,B)|0},d.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d),b.writeInt32BE(c,d+4)}var b=Buffer.allocUnsafe(64);return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),a(this._gh,this._gl,48),a(this._hh,this._hl,56),b},b.exports=d},{"./hash":295,inherits:226,"safe-buffer":288}],303:[function(a,b,c){"use strict";function d(a,b,c){if(4!==b.length)throw new e.exception.invalid("invalid aes block size");var d=a.c[c],f=b[0]^d[0],g=b[c?3:1]^d[1],h=b[2]^d[2];b=b[c?1:3]^d[3];var i,j,k,l,m=d.length/4-2,n=4,o=[0,0,0,0];i=a.j[c],a=i[0];var p=i[1],q=i[2],r=i[3],s=i[4];for(l=0;l<m;l++)i=a[f>>>24]^p[g>>16&255]^q[h>>8&255]^r[255&b]^d[n],j=a[g>>>24]^p[h>>16&255]^q[b>>8&255]^r[255&f]^d[n+1],k=a[h>>>24]^p[b>>16&255]^q[f>>8&255]^r[255&g]^d[n+2],b=a[b>>>24]^p[f>>16&255]^q[g>>8&255]^r[255&h]^d[n+3],n+=4,f=i,g=j,h=k;for(l=0;4>l;l++)o[c?3&-l:l]=s[f>>>24]<<24^s[g>>16&255]<<16^s[h>>8&255]<<8^s[255&b]^d[n++],i=f,f=g,g=h,h=b,b=i;return o}var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message},this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message},this.message=a},bug:function(a){this.toString=function(){return"BUG: "+this.message},this.message=a},notReady:function(a){this.toString=function(){return"NOT READY: "+this.message},this.message=a}}};e.cipher.aes=function(a){this.j[0][0][0]||this.m();var b,c,d,f,g=this.j[0][4],h=this.j[1];b=a.length;var i=1;if(4!==b&&6!==b&&8!==b)throw new e.exception.invalid("invalid aes key size");for(this.c=[d=a.slice(0),f=[]],a=b;a<4*b+28;a++)c=d[a-1],(0===a%b||8===b&&4===a%b)&&(c=g[c>>>24]<<24^g[c>>16&255]<<16^g[c>>8&255]<<8^g[255&c],0===a%b&&(c=c<<8^c>>>24^i<<24,i=i<<1^283*(i>>7))),d[a]=d[a-b]^c;for(b=0;a;b++,a--)c=d[3&b?a:a-4],f[b]=4>=a||4>b?c:h[0][g[c>>>24]]^h[1][g[c>>16&255]]^h[2][g[c>>8&255]]^h[3][g[255&c]]},e.cipher.aes.prototype={encrypt:function(a){return d(this,a,0)},decrypt:function(a){return d(this,a,1)},j:[[[],[],[],[],[]],[[],[],[],[],[]]],m:function(){var a,b,c,d,e,f,g,h=this.j[0],i=this.j[1],j=h[4],k=i[4],l=[],m=[];for(a=0;256>a;a++)m[(l[a]=a<<1^283*(a>>7))^a]=a;for(b=c=0;!j[b];b^=d||1,c=m[c]||1)for(f=c^c<<1^c<<2^c<<3^c<<4,f=f>>8^255&f^99,j[b]=f,k[f]=b,e=l[a=l[d=l[b]]],g=16843009*e^65537*a^257*d^16843008*b,e=257*l[f]^16843008*f,a=0;4>a;a++)h[a][b]=e=e<<24^e>>>8,i[a][f]=g=g<<24^g>>>8;for(a=0;5>a;a++)h[a]=h[a].slice(0),i[a]=i[a].slice(0)}},e.bitArray={bitSlice:function(a,b,c){return a=e.bitArray.v(a.slice(b/32),32-(31&b)).slice(1),void 0===c?a:e.bitArray.clamp(a,c-b)},extract:function(a,b,c){var d=Math.floor(-b-c&31);return((b+c-1^b)&-32?a[b/32|0]<<32-d^a[b/32+1|0]>>>d:a[b/32|0]>>>d)&(1<<c)-1},concat:function(a,b){if(0===a.length||0===b.length)return a.concat(b);var c=a[a.length-1],d=e.bitArray.getPartial(c);return 32===d?a.concat(b):e.bitArray.v(b,d,0|c,a.slice(0,a.length-1))},bitLength:function(a){var b=a.length;return 0===b?0:32*(b-1)+e.bitArray.getPartial(a[b-1])},clamp:function(a,b){if(32*a.length<b)return a;a=a.slice(0,Math.ceil(b/32));var c=a.length;return b&=31,0<c&&b&&(a[c-1]=e.bitArray.partial(b,a[c-1]&2147483648>>b-1,1)),a},partial:function(a,b,c){return 32===a?b:(c?0|b:b<<32-a)+1099511627776*a},getPartial:function(a){return Math.round(a/1099511627776)||32},equal:function(a,b){if(e.bitArray.bitLength(a)!==e.bitArray.bitLength(b))return!1;var c,d=0;for(c=0;c<a.length;c++)d|=a[c]^b[c];return 0===d},v:function(a,b,c,d){var f;for(f=0,void 0===d&&(d=[]);32<=b;b-=32)d.push(c),c=0;if(0===b)return d.concat(a);for(f=0;f<a.length;f++)d.push(c|a[f]>>>b),c=a[f]<<32-b;return f=a.length?a[a.length-1]:0,a=e.bitArray.getPartial(f),d.push(e.bitArray.partial(b+a&31,32<b+a?c:d.pop(),1)),d},D:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]]},byteswapM:function(a){var b,c;for(b=0;b<a.length;++b)c=a[b],a[b]=c>>>24|c>>>8&65280|(65280&c)<<8|c<<24;return a}},e.codec.utf8String={fromBits:function(a){var b,c,d="",f=e.bitArray.bitLength(a);for(b=0;b<f/8;b++)0===(3&b)&&(c=a[b/4]),d+=String.fromCharCode(c>>>24),c<<=8;return decodeURIComponent(escape(d))},toBits:function(a){a=unescape(encodeURIComponent(a));var b,c=[],d=0;for(b=0;b<a.length;b++)d=d<<8|a.charCodeAt(b),3===(3&b)&&(c.push(d),d=0);return 3&b&&c.push(e.bitArray.partial(8*(3&b),d)),c}},e.codec.hex={fromBits:function(a){var b,c="";for(b=0;b<a.length;b++)c+=((0|a[b])+0xf00000000000).toString(16).substr(4);return c.substr(0,e.bitArray.bitLength(a)/4)},toBits:function(a){var b,c,d=[];for(a=a.replace(/\s|0x/g,""),c=a.length,a+="00000000",b=0;b<a.length;b+=8)d.push(0^parseInt(a.substr(b,8),16));return e.bitArray.clamp(d,4*c)}},e.hash.sha256=function(a){this.c[0]||this.m(),a?(this.f=a.f.slice(0),this.b=a.b.slice(0),this.a=a.a):this.reset()},e.hash.sha256.hash=function(a){return(new e.hash.sha256).update(a).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.f=this.i.slice(0),this.b=[],this.a=0,this},update:function(a){"string"==typeof a&&(a=e.codec.utf8String.toBits(a));var b,c=this.b=e.bitArray.concat(this.b,a);if(b=this.a,a=this.a=b+e.bitArray.bitLength(a),9007199254740991<a)throw new e.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!=typeof Uint32Array){var d=new Uint32Array(c),f=0;for(b=512+b-(512+b&511);b<=a;b+=512)this.g(d.subarray(16*f,16*(f+1))),f+=1;c.splice(0,16*f)}else for(b=512+b-(512+b&511);b<=a;b+=512)this.g(c.splice(0,16));return this},finalize:function(){var a,b=this.b,c=this.f,b=e.bitArray.concat(b,[e.bitArray.partial(1,1)]);for(a=b.length+2;15&a;a++)b.push(0);for(b.push(Math.floor(this.a/4294967296)),b.push(0|this.a);b.length;)this.g(b.splice(0,16));return this.reset(),c},i:[],c:[],m:function(){function a(a){return 4294967296*(a-Math.floor(a))|0}for(var b,c,d=0,e=2;64>d;e++){for(c=!0,b=2;b*b<=e;b++)if(0===e%b){c=!1;break}c&&(8>d&&(this.i[d]=a(Math.pow(e,.5))),this.c[d]=a(Math.pow(e,1/3)),d++)}},g:function(a){var b,c,d,e=this.f,f=this.c,g=e[0],h=e[1],i=e[2],j=e[3],k=e[4],l=e[5],m=e[6],n=e[7];for(b=0;64>b;b++)16>b?c=a[b]:(c=a[b+1&15],d=a[b+14&15],c=a[15&b]=(c>>>7^c>>>18^c>>>3^c<<25^c<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+a[15&b]+a[b+9&15]|0),c=c+n+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(m^k&(l^m))+f[b],n=m,m=l,l=k,k=j+c|0,j=i,i=h,h=g,g=c+(h&i^j&(h^i))+(h>>>2^h>>>13^h>>>22^h<<30^h<<19^h<<10)|0;e[0]=e[0]+g|0,e[1]=e[1]+h|0,e[2]=e[2]+i|0,e[3]=e[3]+j|0,e[4]=e[4]+k|0,e[5]=e[5]+l|0,e[6]=e[6]+m|0,e[7]=e[7]+n|0}},e.hash.sha512=function(a){this.c[0]||this.m(),a?(this.f=a.f.slice(0),this.b=a.b.slice(0),this.a=a.a):this.reset()},e.hash.sha512.hash=function(a){return(new e.hash.sha512).update(a).finalize()},e.hash.sha512.prototype={blockSize:1024,reset:function(){return this.f=this.i.slice(0),this.b=[],this.a=0,this},update:function(a){"string"==typeof a&&(a=e.codec.utf8String.toBits(a));var b,c=this.b=e.bitArray.concat(this.b,a);if(b=this.a,a=this.a=b+e.bitArray.bitLength(a),9007199254740991<a)throw new e.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!=typeof Uint32Array){var d=new Uint32Array(c),f=0;for(b=1024+b-(1024+b&1023);b<=a;b+=1024)this.g(d.subarray(32*f,32*(f+1))),f+=1;c.splice(0,32*f)}else for(b=1024+b-(1024+b&1023);b<=a;b+=1024)this.g(c.splice(0,32));return this},finalize:function(){var a,b=this.b,c=this.f,b=e.bitArray.concat(b,[e.bitArray.partial(1,1)]);for(a=b.length+4;31&a;a++)b.push(0);for(b.push(0),b.push(0),b.push(Math.floor(this.a/4294967296)),b.push(0|this.a);b.length;)this.g(b.splice(0,32));return this.reset(),c},i:[],B:[12372232,13281083,9762859,1914609,15106769,4090911,4308331,8266105],c:[],C:[2666018,15689165,5061423,9034684,4764984,380953,1658779,7176472,197186,7368638,14987916,16757986,8096111,1480369,13046325,6891156,15813330,5187043,9229749,11312229,2818677,10937475,4324308,1135541,6741931,11809296,16458047,15666916,11046850,698149,229999,945776,13774844,2541862,12856045,9810911,11494366,7844520,15576806,8533307,15795044,4337665,16291729,5553712,15684120,6662416,7413802,12308920,13816008,4303699,9366425,10176680,13195875,4295371,6546291,11712675,15708924,1519456,15772530,6568428,6495784,8568297,13007125,7492395,2515356,12632583,14740254,7262584,1535930,13146278,16321966,1853211,294276,13051027,13221564,1051980,4080310,6651434,14088940,4675607],m:function(){function a(a){return 4294967296*(a-Math.floor(a))|0}function b(a){return 1099511627776*(a-Math.floor(a))&255}for(var c,d,e=0,f=2;80>e;f++){for(d=!0,c=2;c*c<=f;c++)if(0===f%c){d=!1;break}d&&(8>e&&(this.i[2*e]=a(Math.pow(f,.5)),this.i[2*e+1]=b(Math.pow(f,.5))<<24|this.B[e]),this.c[2*e]=a(Math.pow(f,1/3)),this.c[2*e+1]=b(Math.pow(f,1/3))<<24|this.C[e],e++)}},g:function(a){var b,c,d,e=this.f,f=this.c,g=e[0],h=e[1],i=e[2],j=e[3],k=e[4],l=e[5],m=e[6],n=e[7],o=e[8],p=e[9],q=e[10],r=e[11],s=e[12],t=e[13],u=e[14],v=e[15];if("undefined"!=typeof Uint32Array){d=Array(160);for(var w=0;32>w;w++)d[w]=a[w]}else d=a;var w=g,x=h,y=i,z=j,A=k,B=l,C=m,D=n,E=o,F=p,G=q,H=r,I=s,J=t,K=u,L=v;for(a=0;80>a;a++){if(16>a)b=d[2*a],c=d[2*a+1];else{c=d[2*(a-15)];var M=d[2*(a-15)+1];b=(M<<31|c>>>1)^(M<<24|c>>>8)^c>>>7;var N=(c<<31|M>>>1)^(c<<24|M>>>8)^(c<<25|M>>>7);c=d[2*(a-2)];var O=d[2*(a-2)+1],M=(O<<13|c>>>19)^(c<<3|O>>>29)^c>>>6,O=(c<<13|O>>>19)^(O<<3|c>>>29)^(c<<26|O>>>6),P=d[2*(a-7)],Q=d[2*(a-16)],R=d[2*(a-16)+1];c=N+d[2*(a-7)+1],b=b+P+(c>>>0<N>>>0?1:0),c+=O,b+=M+(c>>>0<O>>>0?1:0),c+=R,b+=Q+(c>>>0<R>>>0?1:0)}d[2*a]=b|=0,d[2*a+1]=c|=0;var P=E&G^~E&I,S=F&H^~F&J,O=w&y^w&A^y&A,T=x&z^x&B^z&B,Q=(x<<4|w>>>28)^(w<<30|x>>>2)^(w<<25|x>>>7),R=(w<<4|x>>>28)^(x<<30|w>>>2)^(x<<25|w>>>7),U=f[2*a],V=f[2*a+1],M=L+((E<<18|F>>>14)^(E<<14|F>>>18)^(F<<23|E>>>9)),N=K+((F<<18|E>>>14)^(F<<14|E>>>18)^(E<<23|F>>>9))+(M>>>0<L>>>0?1:0),M=M+S,N=N+(P+(M>>>0<S>>>0?1:0)),M=M+V,N=N+(U+(M>>>0<V>>>0?1:0)),M=M+c|0,N=N+(b+(M>>>0<c>>>0?1:0));c=R+T,b=Q+O+(c>>>0<R>>>0?1:0),K=I,L=J,I=G,J=H,G=E,H=F,F=D+M|0,E=C+N+(F>>>0<D>>>0?1:0)|0,C=A,D=B,A=y,B=z,y=w,z=x,x=M+c|0,w=N+b+(x>>>0<M>>>0?1:0)|0}h=e[1]=h+x|0,e[0]=g+w+(h>>>0<x>>>0?1:0)|0,j=e[3]=j+z|0,e[2]=i+y+(j>>>0<z>>>0?1:0)|0,l=e[5]=l+B|0,e[4]=k+A+(l>>>0<B>>>0?1:0)|0,n=e[7]=n+D|0,e[6]=m+C+(n>>>0<D>>>0?1:0)|0,p=e[9]=p+F|0,e[8]=o+E+(p>>>0<F>>>0?1:0)|0,r=e[11]=r+H|0,e[10]=q+G+(r>>>0<H>>>0?1:0)|0,t=e[13]=t+J|0,e[12]=s+I+(t>>>0<J>>>0?1:0)|0,v=e[15]=v+L|0,e[14]=u+K+(v>>>0<L>>>0?1:0)|0}},e.mode.gcm={name:"gcm",encrypt:function(a,b,c,d,f){var g=b.slice(0);return b=e.bitArray,d=d||[],a=e.mode.gcm.s(!0,a,g,d,c,f||128),b.concat(a.data,a.tag)},decrypt:function(a,b,c,d,f){var g=b.slice(0),h=e.bitArray,i=h.bitLength(g);if(f=f||128,d=d||[],f<=i?(b=h.bitSlice(g,i-f),g=h.bitSlice(g,0,i-f)):(b=g,g=[]),a=e.mode.gcm.s(!1,a,g,d,c,f),!h.equal(a.tag,b))throw new e.exception.corrupt("gcm: tag doesn't match");return a.data},A:function(a,b){var c,d,f,g,h,i=e.bitArray.D;for(f=[0,0,0,0],g=b.slice(0),c=0;128>c;c++){for((d=0!==(a[Math.floor(c/32)]&1<<31-c%32))&&(f=i(f,g)),h=0!==(1&g[3]),d=3;0<d;d--)g[d]=g[d]>>>1|(1&g[d-1])<<31;g[0]>>>=1,h&&(g[0]^=-520093696)}return f},h:function(a,b,c){var d,f=c.length;for(b=b.slice(0),d=0;d<f;d+=4)b[0]^=4294967295&c[d],b[1]^=4294967295&c[d+1],b[2]^=4294967295&c[d+2],b[3]^=4294967295&c[d+3],b=e.mode.gcm.A(b,a);return b},s:function(a,b,c,d,f,g){var h,i,j,k,l,m,n,o,p=e.bitArray;for(m=c.length,n=p.bitLength(c),o=p.bitLength(d),i=p.bitLength(f),h=b.encrypt([0,0,0,0]),96===i?(f=f.slice(0),f=p.concat(f,[1])):(f=e.mode.gcm.h(h,[0,0,0,0],f),f=e.mode.gcm.h(h,f,[0,0,Math.floor(i/4294967296),4294967295&i])),i=e.mode.gcm.h(h,[0,0,0,0],d),l=f.slice(0),d=i.slice(0),a||(d=e.mode.gcm.h(h,i,c)),k=0;k<m;k+=4)l[3]++,j=b.encrypt(l),c[k]^=j[0],c[k+1]^=j[1],c[k+2]^=j[2],c[k+3]^=j[3];return c=p.clamp(c,n),a&&(d=e.mode.gcm.h(h,i,c)),a=[Math.floor(o/4294967296),4294967295&o,Math.floor(n/4294967296),4294967295&n],d=e.mode.gcm.h(h,d,a),j=b.encrypt(f),d[0]^=j[0],d[1]^=j[1],d[2]^=j[2],d[3]^=j[3],{tag:p.bitSlice(d,0,g),data:c}}},e.misc.hmac=function(a,b){this.u=b=b||e.hash.sha256;var c,d=[[],[]],f=b.prototype.blockSize/32;for(this.l=[new b,new b],a.length>f&&(a=b.hash(a)),c=0;c<f;c++)d[0][c]=909522486^a[c],d[1][c]=1549556828^a[c];this.l[0].update(d[0]),this.l[1].update(d[1]),this.o=new b(this.l[0])},e.misc.hmac.prototype.encrypt=e.misc.hmac.prototype.mac=function(a){if(this.w)throw new e.exception.invalid("encrypt on already updated hmac called!");return this.update(a),this.digest(a)},e.misc.hmac.prototype.reset=function(){this.o=new this.u(this.l[0]),this.w=!1},e.misc.hmac.prototype.update=function(a){this.w=!0,this.o.update(a)},e.misc.hmac.prototype.digest=function(){var a=this.o.finalize(),a=new this.u(this.l[1]).update(a).finalize();return this.reset(),a},e.misc.pbkdf2=function(a,b,c,d,f){if(c=c||1e4,0>d||0>c)throw new e.exception.invalid("invalid params to pbkdf2");"string"==typeof a&&(a=e.codec.utf8String.toBits(a)),"string"==typeof b&&(b=e.codec.utf8String.toBits(b)),f=f||e.misc.hmac,a=new f(a);var g,h,i,j,k=[],l=e.bitArray;for(j=1;32*k.length<(d||1);j++){for(f=g=a.encrypt(l.concat(b,[j])),h=1;h<c;h++)for(g=a.encrypt(g),i=0;i<g.length;i++)f[i]^=g[i];k=k.concat(f)}return d&&(k=l.clamp(k,d)),k},"undefined"!=typeof b&&b.exports&&(b.exports=e),"function"==typeof define&&define([],function(){return e})},{}],304:[function(a,b,c){function d(){e.call(this)}b.exports=d;var e=a("events").EventEmitter,f=a("inherits");f(d,e),d.Readable=a("readable-stream/readable.js"),d.Writable=a("readable-stream/writable.js"),d.Duplex=a("readable-stream/duplex.js"),d.Transform=a("readable-stream/transform.js"),d.PassThrough=a("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a}},{events:208,inherits:226,"readable-stream/duplex.js":273,"readable-stream/passthrough.js":282,"readable-stream/readable.js":283,"readable-stream/transform.js":284,"readable-stream/writable.js":285}],305:[function(a,b,c){"use strict";function d(a){if(!a)return"utf8";for(var b;;)switch(a){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 a;default:if(b)return;a=(""+a).toLowerCase(),b=!0}}function e(a){var b=d(a);if("string"!=typeof b&&(Buffer.isEncoding===s||!s(a)))throw new Error("Unknown encoding: "+a);return b||a}function f(a){this.encoding=e(a);var b;switch(this.encoding){case"utf16le":this.text=m,this.end=n,b=4;break;case"utf8":this.fillLast=j,b=4;break;case"base64":this.text=o,this.end=p,b=3;break;default:return this.write=q,void(this.end=r)}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer.allocUnsafe(b)}function g(a){return a<=127?0:a>>5===6?2:a>>4===14?3:a>>3===30?4:-1}function h(a,b,c){var d=b.length-1;if(d<c)return 0;var e=g(b[d]);return e>=0?(e>0&&(a.lastNeed=e-1),e):--d<c?0:(e=g(b[d]),e>=0?(e>0&&(a.lastNeed=e-2),e):--d<c?0:(e=g(b[d]),e>=0?(e>0&&(2===e?e=0:a.lastNeed=e-3),e):0))}function i(a,b,c){if(128!==(192&b[0]))return a.lastNeed=0,"�".repeat(c);if(a.lastNeed>1&&b.length>1){if(128!==(192&b[1]))return a.lastNeed=1,"�".repeat(c+1);if(a.lastNeed>2&&b.length>2&&128!==(192&b[2]))return a.lastNeed=2,"�".repeat(c+2)}}function j(a){var b=this.lastTotal-this.lastNeed,c=i(this,a,b);return void 0!==c?c:this.lastNeed<=a.length?(a.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(a.copy(this.lastChar,b,0,a.length),void(this.lastNeed-=a.length))}function k(a,b){var c=h(this,a,b);if(!this.lastNeed)return a.toString("utf8",b);this.lastTotal=c;var d=a.length-(c-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",b,d)}function l(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+"�".repeat(this.lastTotal-this.lastNeed):b}function m(a,b){if((a.length-b)%2===0){var c=a.toString("utf16le",b);if(c){var d=c.charCodeAt(c.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",b,a.length-1)}function n(a){var b=a&&a.length?this.write(a):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,c)}return b}function o(a,b){var c=(a.length-b)%3;return 0===c?a.toString("base64",b):(this.lastNeed=3-c,this.lastTotal=3,1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",b,a.length-c))}function p(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function q(a){return a.toString(this.encoding)}function r(a){return a&&a.length?this.write(a):""}var Buffer=a("safe-buffer").Buffer,s=Buffer.isEncoding||function(a){switch(a=""+a,a&&a.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}};c.StringDecoder=f,f.prototype.write=function(a){if(0===a.length)return"";var b,c;if(this.lastNeed){if(b=this.fillLast(a),void 0===b)return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c<a.length?b?b+this.text(a,c):this.text(a,c):b||""},f.prototype.end=l,f.prototype.text=k,f.prototype.fillLast=function(a){return this.lastNeed<=a.length?(a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),void(this.lastNeed-=a.length))}},{"safe-buffer":288}],306:[function(a,b,c){b.exports=function(b){return b.signer=b.signer||a("./lib/signer-hmac-only"),a("./lib/index")(b)}},{"./lib/index":307,"./lib/signer-hmac-only":308}],307:[function(a,b,c){function d(a,b){return a.get?a.get(b):a.getHeader(b)}function e(a){this.name="MissingHeaderError",this.message=a,this.stack=(new Error).stack}function f(a){this.name="InvalidAlgorithmError",this.message=a,this.stack=(new Error).stack}function g(a){var b=a.match(/^(?:(.*?):\/\/?)?\/?(?:[^\/\.]+\.)*?([^\/\.]+)\.?([^\/]*)(?:([^?]*)?(?:\?(‌​[^#]*))?)?(.*)?/);return!!b&&b[4]+(b[6]||"")}function h(a){return parseInt(a,10)<10&&(a="0"+a),a}function i(){var a=new Date,b=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return c[a.getUTCDay()]+", "+h(a.getUTCDate())+" "+b[a.getUTCMonth()]+" "+a.getUTCFullYear()+" "+h(a.getUTCHours())+":"+h(a.getUTCMinutes())+":"+h(a.getUTCSeconds())+" GMT"}function j(a,b){if(b.headers||(b.headers=["date"]),d(a,"Date")||b.headers.indexOf("date")===-1||a.set("Date",i()),b.algorithm||(b.algorithm="rsa-sha256"),b.httpVersion||(b.httpVersion="1.1"),b.algorithm=b.algorithm.toLowerCase(),!l[b.algorithm])throw new f(b.algorithm+" is not supported");var c,h,j="";for(c=0;c<b.headers.length;c++){if("string"!=typeof b.headers[c])throw new TypeError("options.headers must be an array of Strings");var n=b.headers[c].toLowerCase();if("request-line"===n)h=j+=a.method+" "+g(a.url)+" HTTP/"+b.httpVersion;else if("(request-target)"===n)h=j+="(request-target): "+a.method.toLowerCase()+" "+g(a.url);else{if(h=d(a,n),!h)throw new e(n+" was not in the request");j+=n+": "+h}c+1<b.headers.length&&(j+="\n")}var o=b.signer(j,b);return a.set("Authorization",k(m,b.keyId,b.algorithm,b.headers.join(" "),o)),!0}var k=a("util").format;e.prototype=new Error,f.prototype=new Error;var l={"rsa-sha1":!0,"rsa-sha256":!0,"rsa-sha512":!0,"dsa-sha1":!0,"hmac-sha1":!0,"hmac-sha256":!0,"hmac-sha512":!0},m='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';b.exports=function(a){return function(b){return j(b,a),b}}},{util:320}],308:[function(a,b,c){var d=a("create-hmac");b.exports=function(a,b){var c,e=b.algorithm.match(/(hmac|rsa)-(\w+)/);if("hmac"!==e[1])throw new Error("Only HMAC is supported!");var f=d(e[2].toUpperCase(),b.key);return f.update(a),c=f.digest("base64")}},{"create-hmac":113}],309:[function(a,b,c){function d(){}function e(a){var b={}.toString.call(a);switch(b){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function f(){if(r.XMLHttpRequest&&("file:"!=r.location.protocol||!r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(a){}return!1}function g(a){return a===Object(a)}function h(a){if(!g(a))return a;var b=[];for(var c in a)null!=a[c]&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b.join("&")}function i(a){for(var b,c,d={},e=a.split("&"),f=0,g=e.length;f<g;++f)c=e[f],b=c.split("="),d[decodeURIComponent(b[0])]=decodeURIComponent(b[1]);return d}function j(a){var b,c,d,e,f=a.split(/\r?\n/),g={};f.pop();for(var h=0,i=f.length;h<i;++h)c=f[h],b=c.indexOf(":"),d=c.slice(0,b).toLowerCase(),e=s(c.slice(b+1)),g[d]=e;return g}function k(a){return a.split(/ *; */).shift()}function l(a){return q(a.split(/ *; */),function(a,b){var c=b.split(/ *= */),d=c.shift(),e=c.shift();return d&&e&&(a[d]=e),a},{})}function m(a,b){b=b||{},this.req=a,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method?this.xhr.responseText:null,this.setStatusProperties(this.xhr.status),this.header=this.headers=j(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text):null}function n(a,b){var c=this;p.call(this),this._query=this._query||[],this.method=a,this.url=b,this.header={},this._header={},this.on("end",function(){var a=null,b=null;try{b=new m(c)}catch(b){a=new Error("Parser is unable to parse the response"),a.parse=!0,a.original=b}c.callback(a,b)})}function o(a,b){return"function"==typeof b?new n("GET",a).end(b):1==arguments.length?new n("GET",a):new n(a,b)}var p=a("emitter"),q=a("reduce"),r="undefined"==typeof window?this:window,s="".trim?function(a){return a.trim()}:function(a){return a.replace(/(^\s*|\s*$)/g,"")};o.serializeObject=h,o.parseString=i,o.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},o.serialize={"application/x-www-form-urlencoded":h,
24
"application/json":JSON.stringify},o.parse={"application/x-www-form-urlencoded":i,"application/json":JSON.parse},m.prototype.get=function(a){return this.header[a.toLowerCase()]},m.prototype.setHeaderProperties=function(a){var b=this.header["content-type"]||"";this.type=k(b);var c=l(b);for(var d in c)this[d]=c[d]},m.prototype.parseBody=function(a){var b=o.parse[this.type];return b&&a&&a.length?b(a):null},m.prototype.setStatusProperties=function(a){var b=a/100|0;this.status=a,this.statusType=b,this.info=1==b,this.ok=2==b,this.clientError=4==b,this.serverError=5==b,this.error=(4==b||5==b)&&this.toError(),this.accepted=202==a,this.noContent=204==a||1223==a,this.badRequest=400==a,this.unauthorized=401==a,this.notAcceptable=406==a,this.notFound=404==a,this.forbidden=403==a},m.prototype.toError=function(){var a=this.req,b=a.method,c=a.url,d="cannot "+b+" "+c+" ("+this.status+")",e=new Error(d);return e.status=this.status,e.method=b,e.url=c,e},o.Response=m,p(n.prototype),n.prototype.use=function(a){return a(this),this},n.prototype.timeout=function(a){return this._timeout=a,this},n.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},n.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},n.prototype.set=function(a,b){if(g(a)){for(var c in a)this.set(c,a[c]);return this}return this._header[a.toLowerCase()]=b,this.header[a]=b,this},n.prototype.unset=function(a){return delete this._header[a.toLowerCase()],delete this.header[a],this},n.prototype.getHeader=function(a){return this._header[a.toLowerCase()]},n.prototype.type=function(a){return this.set("Content-Type",o.types[a]||a),this},n.prototype.accept=function(a){return this.set("Accept",o.types[a]||a),this},n.prototype.auth=function(a,b){var c=btoa(a+":"+b);return this.set("Authorization","Basic "+c),this},n.prototype.query=function(a){return"string"!=typeof a&&(a=h(a)),a&&this._query.push(a),this},n.prototype.field=function(a,b){return this._formData||(this._formData=new FormData),this._formData.append(a,b),this},n.prototype.attach=function(a,b,c){return this._formData||(this._formData=new FormData),this._formData.append(a,b,c),this},n.prototype.send=function(a){var b=g(a),c=this.getHeader("Content-Type");if(b&&g(this._data))for(var d in a)this._data[d]=a[d];else"string"==typeof a?(c||this.type("form"),c=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==c?this._data=this._data?this._data+"&"+a:a:this._data=(this._data||"")+a):this._data=a;return b?(c||this.type("json"),this):this},n.prototype.callback=function(a,b){var c=this._callback;return this.clearTimeout(),2==c.length?c(a,b):a?this.emit("error",a):void c(b)},n.prototype.crossDomainError=function(){var a=new Error("Origin is not allowed by Access-Control-Allow-Origin");a.crossDomain=!0,this.callback(a)},n.prototype.timeoutError=function(){var a=this._timeout,b=new Error("timeout of "+a+"ms exceeded");b.timeout=a,this.callback(b)},n.prototype.withCredentials=function(){return this._withCredentials=!0,this},n.prototype.end=function(a){var b=this,c=this.xhr=f(),g=this._query.join("&"),h=this._timeout,i=this._formData||this._data;if(this._callback=a||d,c.onreadystatechange=function(){if(4==c.readyState)return 0==c.status?b.aborted?b.timeoutError():b.crossDomainError():void b.emit("end")},c.upload&&(c.upload.onprogress=function(a){a.percent=a.loaded/a.total*100,b.emit("progress",a)}),h&&!this._timer&&(this._timer=setTimeout(function(){b.abort()},h)),g&&(g=o.serializeObject(g),this.url+=~this.url.indexOf("?")?"&"+g:"?"+g),c.open(this.method,this.url,!0),this._withCredentials&&(c.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof i&&!e(i)){var j=o.serialize[this.getHeader("Content-Type")];j&&(i=j(i))}for(var k in this.header)null!=this.header[k]&&c.setRequestHeader(k,this.header[k]);return this.emit("request",this),c.send(i),this},o.Request=n,o.get=function(a,b,c){var d=o("GET",a);return"function"==typeof b&&(c=b,b=null),b&&d.query(b),c&&d.end(c),d},o.head=function(a,b,c){var d=o("HEAD",a);return"function"==typeof b&&(c=b,b=null),b&&d.send(b),c&&d.end(c),d},o.del=function(a,b){var c=o("DELETE",a);return b&&c.end(b),c},o.patch=function(a,b,c){var d=o("PATCH",a);return"function"==typeof b&&(c=b,b=null),b&&d.send(b),c&&d.end(c),d},o.post=function(a,b,c){var d=o("POST",a);return"function"==typeof b&&(c=b,b=null),b&&d.send(b),c&&d.end(c),d},o.put=function(a,b,c){var d=o("PUT",a);return"function"==typeof b&&(c=b,b=null),b&&d.send(b),c&&d.end(c),d},b.exports=o},{emitter:107,reduce:286}],310:[function(a,b,c){function d(a){return a.name||a.toString().match(/function (.*?)\s*\(/)[1]}function e(a){return n.Nil(a)?"":d(a.constructor)}function f(a){return n.Function(a)?"":n.String(a)?JSON.stringify(a):a&&n.Object(a)?"":a}function g(a){return n.Function(a)?a.toJSON?a.toJSON():d(a):n.Array(a)?"Array":a&&n.Object(a)?"Object":void 0!==a?a:""}function h(a,b,c){var d=f(b);return"Expected "+g(a)+", got"+(""!==c?" "+c:"")+(""!==d?" "+d:"")}function i(a,b,c){c=c||e(b),this.message=h(a,b,c),Error.captureStackTrace(this,i),this.__type=a,this.__value=b,this.__valueTypeName=c}function j(a,b,c,d,e){var f='" of type ';return"key"===b&&(f='" with key type '),h('property "'+g(c)+f+g(a),d,e)}function k(a,b,c,d,f){a?(f=f||e(d),this.message=j(a,c,b,d,f)):this.message='Unexpected property "'+b+'"',Error.captureStackTrace(this,i),this.__label=c,this.__property=b,this.__type=a,this.__value=d,this.__valueTypeName=f}function l(a,b){return new i(a,{},b)}function m(a,b,c){return a instanceof k?(b=b+"."+a.__property,a=new k(a.__type,b,a.__label,a.__value,a.__valueTypeName)):a instanceof i&&(a=new k(a.__type,b,c,a.__value,a.__valueTypeName)),Error.captureStackTrace(a),a}var n=a("./native");i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,k.prototype=Object.create(Error.prototype),k.prototype.constructor=i,b.exports={TfTypeError:i,TfPropertyTypeError:k,tfCustomError:l,tfSubError:m,tfJSON:g,getValueTypeName:e}},{"./native":313}],311:[function(a,b,c){(function(Buffer){function c(a){return Buffer.isBuffer(a)}function d(a){return"string"==typeof a&&/^([0-9a-f]{2})+$/i.test(a)}function e(a,b){function c(c){if(!a(c))return!1;if(c.length===b)return!0;throw o.tfCustomError(d+"(Length: "+b+")",d+"(Length: "+c.length+")")}var d=a.toJSON();return c.toJSON=function(){return d},c}function f(a){return"number"==typeof a&&isFinite(a)}function g(a){return a<<24>>24===a}function h(a){return a<<16>>16===a}function i(a){return(0|a)===a}function j(a){return(255&a)===a}function k(a){return(65535&a)===a}function l(a){return a>>>0===a}function m(a){return"number"==typeof a&&a>=0&&a<=t&&Math.floor(a)===a}var n=a("./native"),o=a("./errors"),p=e.bind(null,n.Array),q=e.bind(null,c),r=e.bind(null,d),s=e.bind(null,n.String),t=Math.pow(2,53)-1,u={ArrayN:p,Buffer:c,BufferN:q,Finite:f,Hex:d,HexN:r,Int8:g,Int16:h,Int32:i,StringN:s,UInt8:j,UInt16:k,UInt32:l,UInt53:m};for(var v in u)u[v].toJSON=function(a){return a}.bind(null,v);b.exports=u}).call(this,{isBuffer:a("../is-buffer/index.js")})},{"../is-buffer/index.js":227,"./errors":310,"./native":313}],312:[function(a,b,c){function d(a){return h.String(a)?"?"===a[0]?n.maybe(a.slice(1)):h[a]||n.quacksLike(a):a&&h.Object(a)?h.Array(a)?n.arrayOf(a[0]):n.object(a):h.Function(a)?a:n.value(a)}function e(a,b,c,f){if(h.Function(a)){if(a(b,c))return!0;throw new j(f||a,b)}return e(d(a),b,c)}function f(a,b,c,d){if("function"==typeof c)return f(a,b,!1,c);try{e(a,b,c)}catch(a){return d(a)}d()}var g=a("./errors"),h=a("./native"),i=g.tfJSON,j=g.TfTypeError,k=g.TfPropertyTypeError,l=g.tfSubError,m=g.getValueTypeName,n={arrayOf:function(a){function b(b,c){return!!h.Array(b)&&(!h.Nil(b)&&b.every(function(b,d){try{return e(a,b,c)}catch(a){throw l(a,d)}}))}return a=d(a),b.toJSON=function(){return"["+i(a)+"]"},b},maybe:function a(b){function c(c,d){return h.Nil(c)||b(c,d,a)}return b=d(b),c.toJSON=function(){return"?"+i(b)},c},map:function(a,b){function c(c,d){if(!h.Object(c))return!1;if(h.Nil(c))return!1;for(var f in c){try{b&&e(b,f,d)}catch(a){throw l(a,f,"key")}try{var g=c[f];e(a,g,d)}catch(a){throw l(a,f)}}return!0}return a=d(a),b&&(b=d(b)),b?c.toJSON=function(){return"{"+i(b)+": "+i(a)+"}"}:c.toJSON=function(){return"{"+i(a)+"}"},c},object:function(a){function b(a,b){if(!h.Object(a))return!1;if(h.Nil(a))return!1;var d;try{for(d in c){var f=c[d],g=a[d];e(f,g,b)}}catch(a){throw l(a,d)}if(b)for(d in a)if(!c[d])throw new k(void 0,d);return!0}var c={};for(var f in a)c[f]=d(a[f]);return b.toJSON=function(){return i(c)},b},oneOf:function(){function a(a,c){return b.some(function(b){try{return e(b,a,c)}catch(a){return!1}})}var b=[].slice.call(arguments).map(d);return a.toJSON=function(){return b.map(i).join("|")},a},quacksLike:function(a){function b(b){return a===m(b)}return b.toJSON=function(){return a},b},tuple:function(){function a(a,c){return!h.Nil(a)&&(!h.Nil(a.length)&&((!c||a.length===b.length)&&b.every(function(b,d){try{return e(b,a[d],c)}catch(a){throw l(a,d)}})))}var b=[].slice.call(arguments).map(d);return a.toJSON=function(){return"("+b.map(i).join(", ")+")"},a},value:function(a){function b(b){return b===a}return b.toJSON=function(){return a},b}};for(var o in h)e[o]=h[o];for(o in n)e[o]=n[o];var p=a("./extra");for(o in p)e[o]=p[o];e.async=f,e.compile=d,e.TfTypeError=j,e.TfPropertyTypeError=k,b.exports=e},{"./errors":310,"./extra":311,"./native":313}],313:[function(a,b,c){var d={Array:function(a){return null!==a&&void 0!==a&&a.constructor===Array},Boolean:function(a){return"boolean"==typeof a},Function:function(a){return"function"==typeof a},Nil:function(a){return void 0===a||null===a},Number:function(a){return"number"==typeof a},Object:function(a){return"object"==typeof a},String:function(a){return"string"==typeof a},"":function(){return!0}};d.Null=d.Nil;for(var e in d)d[e].toJSON=function(a){return a}.bind(null,e);b.exports=d},{}],314:[function(a,b,c){!function(a){"use strict";function c(a,b,c){var d=x[b];return d||(d=a(b,c),d.feature&&++y[b>>8&255]>m&&(x[b]=d)),d}function d(a,b,c){var d=65280&b,e=w.udata[d]||{},f=e[b];return f?new w(b,f):new w(b,l)}function e(a,b,c){return c?a(b,c):new w(b,null)}function f(a,b,c){var d;if(b<o||o+r<=b&&b<n||n+v<b)return a(b,c);if(o<=b&&b<o+r){var e={},f=(b-o)*s;for(d=0;d<s;++d)e[p+d]=n+t*(d+f);return new w(b,[,,e])}var g=b-n,h=g%t,i=[];if(0!==h)i[0]=[n+g-h,q+h];else for(i[0]=[o+Math.floor(g/u),p+Math.floor(g%u/t)],i[2]={},d=1;d<t;++d)i[2][q+d]=b+d;return new w(b,i)}function g(a,b,c){return b<60||13311<b&&b<42607?new w(b,l):a(b,c)}function h(a){return G("NFD",a)}function i(a){return G("NFKD",a)}function j(a){return G("NFC",a)}function k(a){return G("NFKC",a)}for(var l=[null,0,{}],m=10,n=44032,o=4352,p=4449,q=4519,r=19,s=21,t=28,u=s*t,v=r*u,w=function(a,b){this.codepoint=a,this.feature=b},x={},y=[],z=0;z<=255;++z)y[z]=0;var A=[g,c,e,f,d];w.fromCharCode=A.reduceRight(function(a,b){return function(c,d){return b(a,c,d)}},null),w.isHighSurrogate=function(a){return a>=55296&&a<=56319},w.isLowSurrogate=function(a){return a>=56320&&a<=57343},w.prototype.prepFeature=function(){this.feature||(this.feature=w.fromCharCode(this.codepoint,!0).feature)},w.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var a=this.codepoint-65536;return String.fromCharCode(Math.floor(a/1024)+55296,a%1024+56320)},w.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},w.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},w.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},w.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},w.prototype.getComposite=function(a){if(this.prepFeature(),!this.feature[2])return null;var b=this.feature[2][a.codepoint];return b?w.fromCharCode(b):null};var B=function(a){this.str=a,this.cursor=0};B.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var a,b=this.str.charCodeAt(this.cursor++);return w.isHighSurrogate(b)&&this.cursor<this.str.length&&w.isLowSurrogate(a=this.str.charCodeAt(this.cursor))&&(b=1024*(b-55296)+(a-56320)+65536,++this.cursor),w.fromCharCode(b)}return this.str=null,null};var C=function(a,b){this.it=a,this.canonical=b,this.resBuf=[]};C.prototype.next=function(){function a(b,c){var d=c.getDecomp();if(!d||b&&c.isCompatibility())return[c];for(var e=[],f=0;f<d.length;++f){var g=a(b,w.fromCharCode(d[f]));e=e.concat(g)}return e}if(0===this.resBuf.length){var b=this.it.next();if(!b)return null;this.resBuf=a(this.canonical,b)}return this.resBuf.shift()};var D=function(a){this.it=a,this.resBuf=[]};D.prototype.next=function(){var a;if(0===this.resBuf.length)do{var b=this.it.next();if(!b)break;a=b.getCanonicalClass();var c=this.resBuf.length;if(0!==a)for(;c>0;--c){var d=this.resBuf[c-1],e=d.getCanonicalClass();if(e<=a)break}this.resBuf.splice(c,0,b)}while(0!==a);return this.resBuf.shift()};var E=function(a){this.it=a,this.procBuf=[],this.resBuf=[],this.lastClass=null};E.prototype.next=function(){for(;0===this.resBuf.length;){var a=this.it.next();if(!a){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=a.getCanonicalClass(),this.procBuf.push(a);else{var b=this.procBuf[0],c=b.getComposite(a),d=a.getCanonicalClass();c&&(this.lastClass<d||0===this.lastClass)?this.procBuf[0]=c:(0===d&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=d,this.procBuf.push(a))}}return this.resBuf.shift()};var F=function(a,b){switch(a){case"NFD":return new D(new C(new B(b),!0));case"NFKD":return new D(new C(new B(b),!1));case"NFC":return new E(new D(new C(new B(b),!0)));case"NFKC":return new E(new D(new C(new B(b),!1)))}throw a+" is invalid"},G=function(a,b){for(var c,d=F(a,b),e="";c=d.next();)e+=c.toString();return e};w.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892
25
}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{
26
12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],
@@ 4-4 (lines=1) @@
1
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.blocktrailSDK=a()}}(function(){var define,module,exports;return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(c,Buffer){function d(a,b){var c=h.HDNode.fromBase58(a[0],b);if("undefined"!=typeof c.keyPair.d)throw new Error("BIP32Key contained private key material - abort");if("M"!==a[1].slice(0,1))throw new Error("BIP32Key contained non-public path - abort")}function e(a,b){d(a.primary_public_key,b),d(a.backup_public_key,b)}var f=a("lodash"),g=a("q"),h=a("bitcoinjs-lib"),i=a("bitcoinjs-message"),j=a("bip39"),k=a("./wallet"),l=a("./rest_client"),m=a("./encryption"),n=a("./keyderivation"),o=a("./encryption_mnemonic"),p=a("./blocktrail"),q=a("randombytes"),r=a("crypto-js"),s=a("./webworkifier"),t=a("./use-webworker")(),u=function(a){var b=this;return this instanceof u?(b.testnet=a.testnet=a.testnet||!1,b.testnet?b.network=h.networks.testnet:b.network=h.networks.bitcoin,b.bitcoinCash=a.network&&"BCC"===a.network,b.feeSanityCheck="undefined"==typeof a.feeSanityCheck||a.feeSanityCheck,b.feeSanityCheckBaseFeeMultiplier=a.feeSanityCheckBaseFeeMultiplier||200,a.apiNetwork=a.apiNetwork||(b.testnet?"t":"")+(a.network||"BTC").toUpperCase(),void(b.client=u.initRestClient(a))):new u(a)};u.initRestClient=function(a){return c.env.BLOCKTRAIL_SDK_API_ENDPOINT&&(a.host=c.env.BLOCKTRAIL_SDK_API_ENDPOINT),a.host&&0===a.host.indexOf("https://")?(a.https=!0,a.host=a.host.substr(8)):a.host&&0===a.host.indexOf("http://")&&(a.https=!1,a.host=a.host.substr(7)),"undefined"==typeof a.https&&(a.https=!0),a.host||(a.host="api.blocktrail.com"),a.port||(a.port=a.https?443:80),a.endpoint||(a.endpoint="/"+(a.apiVersion||"v1")+(a.apiNetwork?"/"+a.apiNetwork:"")),new l(a)};var v=function(a){return g.when(a).then(function(a){return a.storePrimaryMnemonic&&(a.storeDataOnServer=a.storePrimaryMnemonic),"undefined"==typeof a.storeDataOnServer&&(a.storeDataOnServer=!a.primarySeed),a})},w=function(a,b){return g.when(a).then(function(a){if(a.storeDataOnServer){if(!a.secret){if(!a.passphrase)throw new p.WalletCreateError("Can't encrypt data without a passphrase");b(u.CREATE_WALLET_PROGRESS_ENCRYPT_SECRET),a.secret=q(k.WALLET_ENTROPY_BITS/8).toString("hex"),a.encryptedSecret=r.AES.encrypt(a.secret,a.passphrase).toString(r.format.OpenSSL)}b(u.CREATE_WALLET_PROGRESS_ENCRYPT_PRIMARY),a.encryptedPrimarySeed=r.AES.encrypt(a.primarySeed.toString("base64"),a.secret).toString(r.format.OpenSSL),a.recoverySecret=q(k.WALLET_ENTROPY_BITS/8).toString("hex"),b(u.CREATE_WALLET_PROGRESS_ENCRYPT_RECOVERY),a.recoveryEncryptedSecret=r.AES.encrypt(a.secret,a.recoverySecret).toString(r.format.OpenSSL)}return a})};u.prototype.promisedEncrypt=function(b,c,d){if(t){var e=m.generateSalt(),f=m.generateIV();return s.workify(u.prototype.promisedEncrypt,function(){return a("./webworker")},{method:"Encryption.encryptWithSaltAndIV",pt:b,pw:c,saltBuf:e,iv:f,iterations:d}).then(function(a){return Buffer.from(a.cipherText.buffer)})}try{return g.when(m.encrypt(b,c,d))}catch(a){return g.reject(a)}},u.prototype.promisedDecrypt=function(b,c){if(t)return s.workify(u.prototype.promisedDecrypt,function(){return a("./webworker")},{method:"Encryption.decrypt",ct:b,pw:c}).then(function(a){return Buffer.from(a.plainText.buffer)});try{return g.when(m.decrypt(b,c))}catch(a){return g.reject(a)}},u.prototype.produceEncryptedDataV3=function(a,b){var c=this;return g.when(a).then(function(a){return a.storeDataOnServer?g.when().then(function(){if(!a.secret){if(!a.passphrase)throw new p.WalletCreateError("Can't encrypt data without a passphrase");return b(u.CREATE_WALLET_PROGRESS_ENCRYPT_SECRET),a.secret=q(k.WALLET_ENTROPY_BITS/8),c.promisedEncrypt(a.secret,new Buffer(a.passphrase),n.defaultIterations).then(function(b){a.encryptedSecret=b})}if(!(a.secret instanceof Buffer))throw new Error("Secret must be a buffer")}).then(function(){return b(u.CREATE_WALLET_PROGRESS_ENCRYPT_PRIMARY),c.promisedEncrypt(a.primarySeed,a.secret,n.subkeyIterations).then(function(b){a.encryptedPrimarySeed=b})}).then(function(){if(a.recoverySecret!==!1)return b(u.CREATE_WALLET_PROGRESS_ENCRYPT_RECOVERY),a.recoverySecret||(a.recoverySecret=q(k.WALLET_ENTROPY_BITS/8)),c.promisedEncrypt(a.secret,a.recoverySecret,n.defaultIterations).then(function(b){a.recoveryEncryptedSecret=b})}).then(function(){return a}):a})};var x=function(a,b,c){return g.when(a).then(function(a){return a.backupPublicKey||(a.backupSeed=a.backupSeed||q(k.WALLET_ENTROPY_BITS/8)),c(u.CREATE_WALLET_PROGRESS_PRIMARY),a.primaryPrivateKey=h.HDNode.fromSeedBuffer(a.primarySeed,b),c(u.CREATE_WALLET_PROGRESS_BACKUP),a.backupPublicKey||(a.backupPrivateKey=h.HDNode.fromSeedBuffer(a.backupSeed,b),a.backupPublicKey=a.backupPrivateKey.neutered()),a.primaryPublicKey=a.primaryPrivateKey.deriveHardened(a.keyIndex).neutered(),c(u.CREATE_WALLET_PROGRESS_SUBMIT),a})};u.prototype.mnemonicToPrivateKey=function(a,b,c){var d=this,e=g.defer();e.promise.spreadNodeify(c);var f=d.testnet?h.networks.testnet:h.networks.bitcoin;return e.resolve(g.fcall(function(){return d.mnemonicToSeedHex(a,b).then(function(a){return h.HDNode.fromSeedHex(a,f)})})),e.promise},u.prototype.mnemonicToSeedHex=function(b,c){var d=this;if(t)return s.workify(d.mnemonicToSeedHex,function(){return a("./webworker")},{method:"mnemonicToSeedHex",mnemonic:b,passphrase:c}).then(function(a){return a.seed});try{return g.when(j.mnemonicToSeedHex(b,c))}catch(a){return g.reject(a)}},u.prototype.resolvePrimaryPrivateKeyFromOptions=function(a,b){var c=this,d=g.defer();d.promise.nodeify(b);var e=c.testnet?h.networks.testnet:h.networks.bitcoin;try{if(a.passphrase&&a.password)throw new p.WalletCreateError("Can't specify passphrase and password");if(a.passphrase=a.passphrase||a.password,delete a.password,a.primaryMnemonic&&a.primarySeed)throw new p.WalletInitError("Can only specify one of; Primary Mnemonic or Primary Seed");if(a.primaryPrivateKey)throw new p.WalletInitError("Can't specify; Primary PrivateKey");if(!a.primaryMnemonic&&!a.primarySeed)throw new p.WalletInitError("Need to specify at least one of; Primary Mnemonic or Primary Seed");if(a.primarySeed)c.primarySeed=a.primarySeed,a.primaryPrivateKey=h.HDNode.fromSeedBuffer(c.primarySeed,e),d.resolve(a);else{if(!a.passphrase)throw new p.WalletInitError("Can't init wallet with Primary Mnemonic without a passphrase");c.mnemonicToSeedHex(a.primaryMnemonic,a.passphrase).then(function(b){try{a.primarySeed=new Buffer(b,"hex"),a.primaryPrivateKey=h.HDNode.fromSeedBuffer(a.primarySeed,e),d.resolve(a)}catch(a){d.reject(a)}},function(a){d.reject(a)})}}catch(a){d.reject(a)}return d.promise},u.prototype.resolveBackupPublicKeyFromOptions=function(a,b){var c=this,d=g.defer();d.promise.nodeify(b);var e=c.testnet?h.networks.testnet:h.networks.bitcoin;try{if(a.backupMnemonic&&a.backupPublicKey)throw new p.WalletInitError("Can only specify one of; Backup Mnemonic or Backup PublicKey");if(!a.backupMnemonic&&!a.backupPublicKey)throw new p.WalletInitError("Need to specify at least one of; Backup Mnemonic or Backup PublicKey");a.backupPublicKey?a.backupPublicKey instanceof h.HDNode?d.resolve(a):(a.backupPublicKey=h.HDNode.fromBase58(a.backupPublicKey,e),d.resolve(a)):c.mnemonicToPrivateKey(a.backupMnemonic,"").then(function(b){a.backupPublicKey=b.neutered(),d.resolve(a)},function(a){d.reject(a)})}catch(a){d.reject(a)}return d.promise},u.prototype.debugAuth=function(a){var b=this;return b.client.get("/debug/http-signature",null,!0,a)},u.prototype.address=function(a,b){var c=this;return c.client.get("/address/"+a,null,b)},u.prototype.addresses=function(a,b){var c=this;return c.client.post("/address",null,{addresses:a},b)},u.prototype.addressTransactions=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/address/"+a+"/transactions",b,c)},u.prototype.batchAddressHasTransactions=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.post("/address/has-transactions",b,{addresses:a},c)},u.prototype.addressUnconfirmedTransactions=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/address/"+a+"/unconfirmed-transactions",b,c)},u.prototype.addressUnspentOutputs=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/address/"+a+"/unspent-outputs",b,c)},u.prototype.batchAddressUnspentOutputs=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.post("/address/unspent-outputs",b,{addresses:a},c)},u.prototype.verifyAddress=function(a,b,c){var d=this;return d.client.post("/address/"+a+"/verify",null,{signature:b},c)},u.prototype.allBlocks=function(a,b){var c=this;return"function"==typeof a&&(b=a,a=null),c.client.get("/all-blocks",a,b)},u.prototype.block=function(a,b){var c=this;return c.client.get("/block/"+a,null,b)},u.prototype.blockLatest=function(a){var b=this;return b.client.get("/block/latest",null,a)},u.prototype.blockTransactions=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/block/"+a+"/transactions",b,c)},u.prototype.transaction=function(a,b){var c=this;return c.client.get("/transaction/"+a,null,b)},u.prototype.transactions=function(a,b){var c=this;return c.client.post("/transactions",null,a,b,!1)},u.prototype.allWebhooks=function(a,b){var c=this;return"function"==typeof a&&(b=a,a=null),c.client.get("/webhooks",a,b)},u.prototype.setupWebhook=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.post("/webhook",null,{url:a,identifier:b},c)},u.prototype.getWebhook=function(a,b){var c=this;return c.client.get("/webhook/"+a,null,b)},u.prototype.updateWebhook=function(a,b,c){var d=this;return d.client.put("/webhook/"+a,null,b,c)},u.prototype.deleteWebhook=function(a,b){var c=this;return c.client.delete("/webhook/"+a,null,null,b)},u.prototype.getWebhookEvents=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/webhook/"+a+"/events",b,c)},u.prototype.subscribeTransaction=function(a,b,c,d){var e=this,f={event_type:"transaction",transaction:b,confirmations:c};return e.client.post("/webhook/"+a+"/events",null,f,d)},u.prototype.subscribeAddressTransactions=function(a,b,c,d){var e=this,f={event_type:"address-transactions",address:b,confirmations:c};return e.client.post("/webhook/"+a+"/events",null,f,d)},u.prototype.batchSubscribeAddressTransactions=function(a,b,c){var d=this;return b.forEach(function(a){a.event_type="address-transactions"}),d.client.post("/webhook/"+a+"/events/batch",null,b,c)},u.prototype.subscribeNewBlocks=function(a,b){var c=this,d={event_type:"block"};return c.client.post("/webhook/"+a+"/events",null,d,b)},u.prototype.unsubscribeAddressTransactions=function(a,b,c){var d=this;return d.client.delete("/webhook/"+a+"/address-transactions/"+b,null,null,c)},u.prototype.unsubscribeTransaction=function(a,b,c){var d=this;return d.client.delete("/webhook/"+a+"/transaction/"+b,null,null,c)},u.prototype.unsubscribeNewBlocks=function(a,b){var c=this;return c.client.delete("/webhook/"+a+"/block",null,null,b)},u.prototype.initWallet=function(a,b){var c=this;if("object"!=typeof a&&(a={identifier:arguments[0],passphrase:arguments[1]},b=arguments[2]),a.check_backup_key&&"string"!=typeof a.check_backup_key)throw new Error("Invalid input, must provide the backup key as a string (the xpub)");var d=g.defer();d.promise.spreadNodeify(b);var e=c.testnet?h.networks.testnet:h.networks.bitcoin,i=a.identifier;return i?(d.resolve(c.client.get("/wallet/"+i,null,!0).then(function(b){var d=a.keyIndex||b.key_index;if(a.walletVersion=b.wallet_version,a.check_backup_key&&a.check_backup_key!==b.backup_public_key[0])throw new Error("Backup key returned from server didn't match our own copy");var g=h.HDNode.fromBase58(b.backup_public_key[0],e),j=f.mapValues(b.blocktrail_public_keys,function(a){return h.HDNode.fromBase58(a[0],c.network)}),l=f.mapValues(b.primary_public_keys,function(a){return h.HDNode.fromBase58(a[0],c.network)}),m=new k(c,i,a.walletVersion,b.primary_mnemonic,b.encrypted_primary_seed,b.encrypted_secret,l,g,j,d,b.chain||0,b.segwit||0,c.testnet,b.checksum,b.upgrade_key_index,a.bypassNewAddressCheck);return m.recoverySecret=b.recovery_secret,a.readOnly?m:m.unlock(a).then(function(){return m})})),d.promise):(d.reject(new p.WalletInitError("Identifier is required")),d.promise)},u.CREATE_WALLET_PROGRESS_START=0,u.CREATE_WALLET_PROGRESS_ENCRYPT_SECRET=4,u.CREATE_WALLET_PROGRESS_ENCRYPT_PRIMARY=5,u.CREATE_WALLET_PROGRESS_ENCRYPT_RECOVERY=6,u.CREATE_WALLET_PROGRESS_PRIMARY=10,u.CREATE_WALLET_PROGRESS_BACKUP=20,u.CREATE_WALLET_PROGRESS_SUBMIT=30,u.CREATE_WALLET_PROGRESS_INIT=40,u.CREATE_WALLET_PROGRESS_DONE=100,u.prototype.createNewWallet=function(a,b){var c=this;if("object"!=typeof a){var d=arguments[0],e=arguments[1],f=arguments[2];b=arguments[3],"function"==typeof f&&(b=f,f=null),a={identifier:d,passphrase:e,keyIndex:f}}a.walletVersion=a.walletVersion||k.WALLET_VERSION_V3;var h=g.defer();return h.promise.spreadNodeify(b),g.nextTick(function(){return h.notify(u.CREATE_WALLET_PROGRESS_START),a.keyIndex=a.keyIndex||0,a.passphrase=a.passphrase||a.password,delete a.password,a.identifier?void(a.walletVersion===k.WALLET_VERSION_V1?c._createNewWalletV1(a).progress(function(a){h.notify(a)}).then(function(a){h.resolve(a)},function(a){h.reject(a)}):a.walletVersion===k.WALLET_VERSION_V2?c._createNewWalletV2(a).progress(function(a){h.notify(a)}).then(function(a){h.resolve(a)},function(a){h.reject(a)}):a.walletVersion===k.WALLET_VERSION_V3?c._createNewWalletV3(a).progress(function(a){h.notify(a)}).then(function(a){h.resolve(a)},function(a){h.reject(a)}):h.reject(new p.WalletCreateError("Invalid wallet version!"))):(h.reject(new p.WalletCreateError("Identifier is required")),h.promise)}),h.promise},u.prototype._createNewWalletV1=function(a){var b=this,c=g.defer();return g.nextTick(function(){if(!a.primaryMnemonic&&!a.primarySeed){if(!a.passphrase&&!a.password)return c.reject(new p.WalletCreateError("Can't generate Primary Mnemonic without a passphrase")),c.promise;a.primaryMnemonic=j.generateMnemonic(k.WALLET_ENTROPY_BITS),a.storePrimaryMnemonic!==!1&&(a.storePrimaryMnemonic=!0)}a.backupMnemonic||a.backupPublicKey||(a.backupMnemonic=j.generateMnemonic(k.WALLET_ENTROPY_BITS)),c.notify(u.CREATE_WALLET_PROGRESS_PRIMARY),b.resolvePrimaryPrivateKeyFromOptions(a).then(function(a){return c.notify(u.CREATE_WALLET_PROGRESS_BACKUP),b.resolveBackupPublicKeyFromOptions(a).then(function(a){c.notify(u.CREATE_WALLET_PROGRESS_SUBMIT);var d=a.primaryPrivateKey.getAddress(),e=a.keyIndex,g=a.primaryPrivateKey.deriveHardened(e).neutered();return b.storeNewWalletV1(a.identifier,[g.toBase58(),"M/"+e+"'"],[a.backupPublicKey.toBase58(),"M"],!!a.storePrimaryMnemonic&&a.primaryMnemonic,d,e).then(function(i){c.notify(u.CREATE_WALLET_PROGRESS_INIT);var j=f.mapValues(i.blocktrail_public_keys,function(a){return h.HDNode.fromBase58(a[0],b.network)}),l=new k(b,a.identifier,k.WALLET_VERSION_V1,a.primaryMnemonic,null,null,{keyIndex:g},a.backupPublicKey,j,e,i.chain||0,i.segwit||0,b.testnet,d,i.upgrade_key_index,a.bypassNewAddressCheck);return l.unlock({walletVersion:k.WALLET_VERSION_V1,passphrase:a.passphrase,primarySeed:a.primarySeed,primaryMnemonic:null}).then(function(){return c.notify(u.CREATE_WALLET_PROGRESS_DONE),[l,{walletVersion:l.walletVersion,primaryMnemonic:a.primaryMnemonic,backupMnemonic:a.backupMnemonic,blocktrailPublicKeys:j}]})})})}).then(function(a){c.resolve(a)},function(a){c.reject(a)})}),c.promise},u.prototype._createNewWalletV2=function(a){var b=this,c=g.defer();a=f.merge({},a);var d=b.testnet?h.networks.testnet:h.networks.bitcoin;return v(a).then(function(a){if(a.passphrase=a.passphrase||a.password,delete a.password,a.primaryPrivateKey)throw new p.WalletInitError("Can't specify; Primary PrivateKey");return a.primarySeed=a.primarySeed||q(k.WALLET_ENTROPY_BITS/8),a}).then(function(a){return w(a,c.notify.bind(c))}).then(function(a){return x(a,d,c.notify.bind(c))}).then(function(a){var d=a.primaryPrivateKey.getAddress(),e=a.keyIndex;return b.storeNewWalletV2(a.identifier,[a.primaryPublicKey.toBase58(),"M/"+e+"'"],[a.backupPublicKey.toBase58(),"M"],!!a.storeDataOnServer&&a.encryptedPrimarySeed,!!a.storeDataOnServer&&a.encryptedSecret,!!a.storeDataOnServer&&a.recoverySecret,d,e,a.support_secret||null).then(function(g){c.notify(u.CREATE_WALLET_PROGRESS_INIT);var i=f.mapValues(g.blocktrail_public_keys,function(a){return h.HDNode.fromBase58(a[0],b.network)}),l=new k(b,a.identifier,k.WALLET_VERSION_V2,null,a.storeDataOnServer?a.encryptedPrimarySeed:null,a.storeDataOnServer?a.encryptedSecret:null,{keyIndex:a.primaryPublicKey},a.backupPublicKey,i,e,g.chain||0,g.segwit||0,b.testnet,d,g.upgrade_key_index,a.bypassNewAddressCheck);return l.unlock({walletVersion:k.WALLET_VERSION_V2,passphrase:a.passphrase,primarySeed:a.primarySeed,secret:a.secret}).then(function(){return c.notify(u.CREATE_WALLET_PROGRESS_DONE),[l,{walletVersion:l.walletVersion,encryptedPrimarySeed:a.encryptedPrimarySeed?j.entropyToMnemonic(p.convert(a.encryptedPrimarySeed,"base64","hex")):null,backupSeed:a.backupSeed?j.entropyToMnemonic(a.backupSeed.toString("hex")):null,recoveryEncryptedSecret:a.recoveryEncryptedSecret?j.entropyToMnemonic(p.convert(a.recoveryEncryptedSecret,"base64","hex")):null,encryptedSecret:a.encryptedSecret?j.entropyToMnemonic(p.convert(a.encryptedSecret,"base64","hex")):null,blocktrailPublicKeys:i}]})})}).then(function(a){c.resolve(a)},function(a){c.reject(a)}),c.promise},u.prototype._createNewWalletV3=function(a){var b=this,c=g.defer();a=f.merge({},a);var d=b.testnet?h.networks.testnet:h.networks.bitcoin;return v(a).then(function(a){if(a.passphrase=a.passphrase||a.password,delete a.password,a.primaryPrivateKey)throw new p.WalletInitError("Can't specify; Primary PrivateKey");return a.primarySeed=a.primarySeed||q(k.WALLET_ENTROPY_BITS/8),a}).then(function(a){return b.produceEncryptedDataV3(a,c.notify.bind(c))}).then(function(a){return x(a,d,c.notify.bind(c))}).then(function(a){var d=a.primaryPrivateKey.getAddress(),e=a.keyIndex;return b.storeNewWalletV3(a.identifier,[a.primaryPublicKey.toBase58(),"M/"+e+"'"],[a.backupPublicKey.toBase58(),"M"],!!a.storeDataOnServer&&a.encryptedPrimarySeed,!!a.storeDataOnServer&&a.encryptedSecret,!!a.storeDataOnServer&&a.recoverySecret,d,e,a.support_secret||null).then(function(g){c.notify(u.CREATE_WALLET_PROGRESS_INIT);var i=f.mapValues(g.blocktrail_public_keys,function(a){return h.HDNode.fromBase58(a[0],b.network)}),l=new k(b,a.identifier,k.WALLET_VERSION_V3,null,a.storeDataOnServer?a.encryptedPrimarySeed:null,a.storeDataOnServer?a.encryptedSecret:null,{keyIndex:a.primaryPublicKey},a.backupPublicKey,i,e,g.chain||0,g.segwit||0,b.testnet,d,g.upgrade_key_index,a.bypassNewAddressCheck);return l.unlock({walletVersion:k.WALLET_VERSION_V3,passphrase:a.passphrase,primarySeed:a.primarySeed,secret:a.secret}).then(function(){return c.notify(u.CREATE_WALLET_PROGRESS_DONE),[l,{walletVersion:l.walletVersion,encryptedPrimarySeed:a.encryptedPrimarySeed?o.encode(a.encryptedPrimarySeed):null,backupSeed:a.backupSeed?j.entropyToMnemonic(a.backupSeed):null,recoveryEncryptedSecret:a.recoveryEncryptedSecret?o.encode(a.recoveryEncryptedSecret):null,encryptedSecret:a.encryptedSecret?o.encode(a.encryptedSecret):null,blocktrailPublicKeys:i}]})})}).then(function(a){c.resolve(a)},function(a){c.reject(a)}),c.promise},u.prototype.storeNewWalletV1=function(a,b,c,d,f,g,h){var i=this,j={identifier:a,wallet_version:k.WALLET_VERSION_V1,primary_public_key:b,backup_public_key:c,primary_mnemonic:d,checksum:f,key_index:g};return e(j,i.network),i.client.post("/wallet",null,j,h)},u.prototype.storeNewWalletV2=function(a,b,c,d,f,g,h,i,j,l){var m=this,n={identifier:a,wallet_version:k.WALLET_VERSION_V2,primary_public_key:b,backup_public_key:c,encrypted_primary_seed:d,encrypted_secret:f,recovery_secret:g,checksum:h,key_index:i,support_secret:j||null};return e(n,m.network),m.client.post("/wallet",null,n,l)},u.prototype.storeNewWalletV3=function(a,b,c,d,f,g,h,i,j,l){var m=this,n={identifier:a,wallet_version:k.WALLET_VERSION_V3,primary_public_key:b,backup_public_key:c,encrypted_primary_seed:d.toString("base64"),encrypted_secret:f.toString("base64"),recovery_secret:g.toString("hex"),checksum:h,key_index:i,support_secret:j||null};return e(n,m.network),m.client.post("/wallet",null,n,l)},u.prototype.updateWallet=function(a,b,c){var d=this;return d.client.post("/wallet/"+a,null,b,c)},u.prototype.upgradeKeyIndex=function(a,b,c,d){var e=this;return e.client.post("/wallet/"+a+"/upgrade",null,{key_index:b,primary_public_key:c},d)},u.prototype.getWalletBalance=function(a,b){var c=this;return c.client.get("/wallet/"+a+"/balance",null,!0,b)},u.prototype.doWalletDiscovery=function(a,b,c){var d=this;return d.client.get("/wallet/"+a+"/discovery",{gap:b},!0,c)},u.prototype.getNewDerivation=function(a,b,c){var d=this;return d.client.post("/wallet/"+a+"/path",null,{path:b},c)},u.prototype.deleteWallet=function(a,b,c,d,e){var f=this;return"function"==typeof d&&(e=d,d=!1),f.client.delete("/wallet/"+a,{force:d},{checksum:b,signature:c},e)},u.prototype.coinSelection=function(a,b,c,d,e,f,h){var i=this;"function"==typeof e?(h=e,e=null,f={}):"function"==typeof f&&(h=f,f={}),e=e||k.FEE_STRATEGY_OPTIMAL,f=f||{};var j=g.defer();j.promise.spreadNodeify(h);var l={lock:c,zeroconf:d?1:0,zeroconfself:"undefined"==typeof f.allowZeroConfSelf||f.allowZeroConfSelf?1:0,fee_strategy:e};return f.forcefee&&(l.forcefee=f.forcefee),j.resolve(i.client.post("/wallet/"+a+"/coin-selection",l,b).then(function(a){return[a.utxos,a.fee,a.change,a]},function(a){if(a.message.match(/too low to pay the fee/))throw p.WalletFeeError(a);throw a})),j.promise},u.prototype.feePerKB=function(a){var b=this,c=g.defer();return c.promise.spreadNodeify(a),c.resolve(b.client.get("/fee-per-kb")),c.promise},u.prototype.sendTransaction=function(a,b,c,d,e,f,g){var h=this;"function"==typeof e?(g=e,e=null,f=!1):"function"==typeof f&&(g=f,f=!1);var i={paths:c,two_factor_token:e};return"string"==typeof b?i.raw_transaction=b:"object"==typeof b&&Object.keys(b).map(function(a){i[a]=b[a]}),h.client.post("/wallet/"+a+"/send",{check_fee:d?1:0,prioboost:f?1:0},i,g)},u.prototype.setupWalletWebhook=function(a,b,c,d){var e=this;return e.client.post("/wallet/"+a+"/webhook",null,{url:c,identifier:b},d)},u.prototype.deleteWalletWebhook=function(a,b,c){var d=this;return d.client.delete("/wallet/"+a+"/webhook/"+b,null,null,c)},u.prototype.walletTransactions=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/wallet/"+a+"/transactions",b,!0,c)},u.prototype.walletAddresses=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/wallet/"+a+"/addresses",b,!0,c)},u.prototype.labelWalletAddress=function(a,b,c,d){var e=this;return e.client.post("/wallet/"+a+"/address/"+b+"/label",null,{label:c},d)},u.prototype.walletMaxSpendable=function(a,b,c,d,e){var f=this;"function"==typeof c?(e=c,c=null):"function"==typeof d&&(e=d,d={}),c=c||k.FEE_STRATEGY_OPTIMAL,d=d||{};var g={outputs:d.outputs?d.outputs:1,zeroconf:b?1:0,zeroconfself:"undefined"==typeof d.allowZeroConfSelf||d.allowZeroConfSelf?1:0,fee_strategy:c};return d.forcefee&&(g.forcefee=d.forcefee),f.client.get("/wallet/"+a+"/max-spendable",g,!0,e)},u.prototype.walletUTXOs=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),d.client.get("/wallet/"+a+"/utxos",b,!0,c)},u.prototype.allWallets=function(a,b){var c=this;return"function"==typeof a&&(b=a,a=null),c.client.get("/wallets",a,!0,b)},u.prototype.verifyMessage=function(a,b,c,d){var e=this,f=g.defer();f.promise.nodeify(d);try{var h=i.verify(b,e.network.messagePrefix,a,new Buffer(c,"base64"));f.resolve(h)}catch(a){f.reject(a)}return f.promise},u.prototype.faucetWithdrawl=function(a,b,c){var d=this;return d.client.post("/faucet/withdrawl",null,{address:a,amount:b},c)},u.prototype.sendRawTransaction=function(a,b){var c=this;return c.client.post("/send-raw-tx",null,a,b)},u.prototype.price=function(a){var b=this;return b.client.get("/price",null,!1,a)},b.exports=u}).call(this,a("_process"),a("buffer").Buffer)},{"./blocktrail":2,"./encryption":3,"./encryption_mnemonic":4,"./keyderivation":5,"./rest_client":8,"./use-webworker":13,"./wallet":14,"./webworker":16,"./webworkifier":17,_process:238,bip39:27,"bitcoinjs-lib":42,"bitcoinjs-message":71,buffer:104,"crypto-js":150,lodash:229,q:267,randombytes:271}],2:[function(a,b,c){(function(Buffer){var c=a("util"),d=a("assert"),e=a("crypto-js"),f=a("bip39"),g={COIN:1e8,PRECISION:8,DUST:2730,BASE_FEE:1e4},h=function(a,b,c){return new Buffer(a,b).toString(c)},i=function(a,b){var c=f.mnemonicToEntropy(a),d=h(c,"hex","base64"),i=e.AES.decrypt(d,b).toString(e.enc.Utf8);if(!i.length)throw new g.WalletDecryptError;return i},j=function(a,b){return i(a,b).toString(e.enc.Utf8)},k=function(a,b){return h(j(a,b),"base64","hex")},l=function(a,b){return new Buffer(k(a,b),"hex")},m=function(a,b){var c=e.AES.encrypt(a,b).toString(e.format.OpenSSL),d=h(c,"base64","hex"),g=f.entropyToMnemonic(d);return g},n=function(a,b){return m(h(a,"hex","base64"),b)},o=function(a,b){return m(a.toString("base64"),b)};g.convert=h,g.aesDecryptMnemonicToSeed=j,g.aesDecryptMnemonicToSeedBuffer=l,g.aesDecryptMnemonicToSeedHex=k,g.aesEncryptSeedToMnemonic=m,g.aesEncryptSeedHexToMnemonic=n,g.aesEncryptSeedBufferToMnemonic=o,g.V3Crypt={KeyDerivation:a("./keyderivation"),Encryption:a("./encryption"),EncryptionMnemonic:a("./encryption_mnemonic")},g.toSatoshi=function(a){return parseInt((a*g.COIN).toFixed(0),10)},g.toBTC=function(a){return(a/g.COIN).toFixed(g.PRECISION)},g.patchQ=function(a){function b(b,c,d){return a(b).spreadDone(c,d)}function c(b,c){return a(b).spreadNodeify(c)}a.spreadNodeify&&a.spreadDone||(a.spreadDone=b,a.makePromise.prototype.spreadDone=function(a,b){return this.all().done(function(b){return a.apply(void 0,b)},b)},a.spreadNodeify=c,a.makePromise.prototype.spreadNodeify=function(b){return b?void this.then(function(c){a.nextTick(function(){b.apply(void 0,[null].concat(c))})},function(c){a.nextTick(function(){b(c)})}):this})},Error.extend=function(a,b){d(a,"subTypeName is required");var e=function(c){return this instanceof e?(this.name=a,this.code=b,this.message=c?c.message||c||"":"",void(Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new e(c)};return c.inherits(e,this),e.prototype.toString=function(){return this.name+": "+c.inspect(this.message)},e.extend=this.extend,e},"function"!=typeof Uint8Array.prototype.reverse&&(Buffer.prototype.reverse=function(){for(var a,b=0,c=this.length-1;b<=c;++b,--c)a=this[b],this[b]=this[c],this[c]=a;return this}),g.WalletInitError=Error.extend("WalletInitError",400),g.WalletCreateError=Error.extend("WalletCreateError",400),g.WalletUpgradeError=Error.extend("WalletUpgradeError",400),g.WalletChecksumError=Error.extend("WalletChecksumError",400),g.WalletDeleteError=Error.extend("WalletDeleteError",400),g.WalletDecryptError=Error.extend("WalletDecryptError",400),g.WalletAddressError=Error.extend("WalletAddressError",500),g.WalletSendError=Error.extend("WalletSendError",400),g.WalletLockedError=Error.extend("WalletLockedError",500),g.WalletFeeError=Error.extend("WalletFeeError",500),g.WalletInvalid2FAError=Error.extend("WalletInvalid2FAError",401),g.WalletMissing2FAError=Error.extend("WalletMissing2FAError",401),g.TransactionSignError=Error.extend("TransactionSignError",500),g.TransactionInputError=Error.extend("TransactionInputError",400),g.TransactionOutputError=Error.extend("TransactionOutputError",400),g.KeyPathError=Error.extend("KeyPathError",400),g.InvalidAddressError=Error.extend("InvalidAddressError",400),g.Error=Error.extend("Error",500),g.FEE_STRATEGY_FORCE_FEE="force_fee",g.FEE_STRATEGY_BASE_FEE="base_fee",g.FEE_STRATEGY_OPTIMAL="optimal",g.FEE_STRATEGY_LOW_PRIORITY="low_priority",g.FEE_STRATEGY_MIN_RELAY_FEE="min_relay_fee",g.patchQ(a("q")),b.exports=g}).call(this,a("buffer").Buffer)},{"./encryption":3,"./encryption_mnemonic":4,"./keyderivation":5,assert:19,bip39:27,buffer:104,"crypto-js":150,q:267,util:320}],3:[function(a,b,c){(function(Buffer){var c=a("assert"),d=a("sjcl"),e=a("./keyderivation"),f=a("randombytes"),g={defaultSaltLen:10,tagLenBits:128,ivLenBits:128,ivLenWords:4};g.generateSalt=function(){return f(this.defaultSaltLen)},g.generateIV=function(){return f(this.ivLenBits/8)},g.encrypt=function(a,b,c){var d=this.generateSalt(),f=this.generateIV();return c="undefined"==typeof c?e.defaultIterations:c,this.encryptWithSaltAndIV(a,b,d,f,c)},g.encryptWithSaltAndIV=function(a,b,f,g,h){c(a instanceof Buffer,"pt must be provided as a buffer"),c(b instanceof Buffer,"pw must be provided as a buffer"),c(g instanceof Buffer,"IV must be provided as a buffer"),c(f instanceof Buffer,"saltBuff must be provided as a buffer"),c(16===g.length,"IV must be exactly 16 bytes");var i=new Buffer(1),j=f,k=new Buffer(4);i.writeUInt8(f.length),k.writeUInt32LE(h);var l=i.toString("hex")+j.toString("hex")+k.toString("hex"),m=d.codec.hex.toBits(e.compute(b,f,h).toString("hex")),n=d.mode.gcm.encrypt(new d.cipher.aes(m),d.codec.hex.toBits(a.toString("hex")),d.codec.hex.toBits(g.toString("hex")),d.codec.hex.toBits(l),this.tagLenBits);return new Buffer([l,g.toString("hex"),d.codec.hex.fromBits(n)].join(""),"hex")},g.decrypt=function(a,b){c(a instanceof Buffer,"cipherText must be provided as a Buffer"),c(b instanceof Buffer,"password must be provided as a Buffer");var f=new Buffer(a,"hex"),g=0,h=f.readUInt8(g);g+=1;var i=f.slice(1,g+h);g+=h;var j=f.readUInt32LE(g);g+=4;var k=f.slice(0,g),l=f.slice(g,16+g);g+=16;var m=f.slice(g),n=e.compute(b,i,j),o=d.mode.gcm.decrypt(new d.cipher.aes(d.codec.hex.toBits(n.toString("hex"))),d.codec.hex.toBits(m.toString("hex")),d.codec.hex.toBits(l.toString("hex")),d.codec.hex.toBits(k.toString("hex")),this.tagLenBits);return new Buffer(d.codec.hex.fromBits(o),"hex")},b.exports=g}).call(this,a("buffer").Buffer)},{"./keyderivation":5,assert:19,buffer:104,randombytes:271,sjcl:303}],4:[function(a,b,c){(function(Buffer){var c=a("assert"),d=a("bip39");String.prototype.repeat||(String.prototype.repeat=function(a){"use strict";if(null===this)throw new TypeError("can't convert "+this+" to object");var b=""+this;if(a=+a,a!==a&&(a=0),a<0)throw new RangeError("repeat count must be non-negative");if(a===1/0)throw new RangeError("repeat count must be less than infinity");if(a=Math.floor(a),0===b.length||0===a)return"";if(b.length*a>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var c="";1===(1&a)&&(c+=b),a>>>=1,0!==a;)b+=b;return c});var e={chunkSize:4,paddingDummy:129},f=function(a){if(a[0]>128)throw new Error("Mnemonic sanity check - first byte can never be above 0x80");return e.paddingDummy.toString(16).repeat(e.chunkSize-a.length%e.chunkSize)};e.encode=function(a){c(a instanceof Buffer,"Data must be provided as a Buffer");var b=f(a),e=d.entropyToMnemonic(b+a.toString("hex"));try{d.mnemonicToEntropy(e)}catch(a){throw new Error("BIP39 library produced an invalid mnemonic")}return e},e.decode=function(a){c("string"==typeof a,"Mnemonic must be provided as a string");for(var b=new Buffer(d.mnemonicToEntropy(a),"hex"),e=0;b[e]===this.paddingDummy;)e++;var g=b.slice(e,b.length);if(f(g)!==b.slice(0,e).toString("hex"))throw new Error("There is only one way to pad a string");return g},b.exports=e}).call(this,a("buffer").Buffer)},{assert:19,bip39:27,buffer:104}],5:[function(a,b,c){(function(Buffer){var c=a("assert"),d=a("./pbkdf2_sha512"),e={
2
defaultIterations:35e3,subkeyIterations:1,keySizeBits:256};e.compute=function(a,b,e){if(e=e||this.defaultIterations,c(a instanceof Buffer,"Password must be provided as a Buffer"),c(b instanceof Buffer,"Salt must be provided as a Buffer"),c(b.length>0,"Salt must not be empty"),c("number"==typeof e,"Iterations must be a number"),c(e>0,"Iteration count should be at least 1"),b.length>128)throw new Error("Sanity check: Invalid salt, length can never be greater than 128");return d.digest(a,b,e,this.keySizeBits/8)},b.exports=e}).call(this,a("buffer").Buffer)},{"./pbkdf2_sha512":6,assert:19,buffer:104}],6:[function(a,b,c){(function(Buffer){var c=a("../vendor/asmcrypto.js/asmcrypto.js"),d=function(a,b,d,e){return new Buffer(new c.PBKDF2_HMAC_SHA512.bytes(a,b,d,e).buffer)};b.exports={digest:d}}).call(this,a("buffer").Buffer)},{"../vendor/asmcrypto.js/asmcrypto.js":325,buffer:104}],7:[function(a,b,c){(function(c){function d(a){var b=this;b.https=a.https,b.host=a.host,b.endpoint=a.endpoint,b.auth=a.auth,b.port=a.port,b.apiKey=a.apiKey,b.apiSecret=a.apiSecret,b.contentMd5="undefined"==typeof a.contentMd5||a.contentMd5,b.params=f.defaults({},a.params),b.headers=f.defaults({},a.headers)}var e=a("./blocktrail"),f=a("lodash"),g=a("url"),h=a("querystring"),i=a("q"),j=a("create-hash"),k=a("superagent"),l=a("superagent-http-signature/index-hmac-only"),m=a("debug")("blocktrail-sdk:request"),n=!c.browser,o=function(){};d.qs=function(a){var b=[],c=Object.keys(a);return c.sort(),c.forEach(function(c){var d={};d[c]=a[c],b.push(h.stringify(d))}),b.join("&")},d.prototype.request=function(a,b,c,e,h){var k=this;k.deferred=i.defer(),k.callback=h||o;var l=g.parse(b,!0),p=d.qs(f.defaults({},c||{},l.query||{},k.params||{}));k.path="".concat(k.endpoint,l.pathname),p&&(k.path=k.path.concat("?",p)),e?(k.payload=JSON.stringify(e),k.headers["Content-Type"]="application/json"):k.payload="",n&&(k.headers["Content-Length"]=k.payload?k.payload.length:0),k.contentMd5===!0&&("GET"===a||"DELETE"===a?k.headers["Content-MD5"]=j("md5").update(k.path).digest().toString("hex"):k.headers["Content-MD5"]=j("md5").update(k.payload).digest().toString("hex")),m("%s %s %s",a,k.host,k.path);var q={hostname:k.host,path:k.path,port:k.port,method:a,headers:k.headers,auth:k.auth,agent:!1,withCredentials:!1};return k.performRequest(q),k.deferred.promise},d.prototype.performRequest=function(a){var b=this,c=a.method,e=!1;"http-signature"===a.auth&&(e=!0,delete a.auth);var g=(b.https?"https://":"http://")+a.hostname+a.path,h=k(c,g);if(!b.payload||"DELETE"!==c&&"POST"!==c&&"PUT"!==c&&"PATCH"!==c||h.send(b.payload),f.forEach(a.headers,function(a,b){h.set(b,a)}),e){if(!b.apiSecret){var i=new Error("Missing apiSecret! required to sign POST requests!");return b.deferred.reject(i),b.callback(i)}h.use(l({headers:["(request-target)","content-md5"],algorithm:"hmac-sha256",key:b.apiSecret,keyId:b.apiKey}))}return h.end(function(a,c){var e;if(a)return b.deferred.reject(a),b.callback(a);if(m("response status code: %s content type: %s",c.status,c.headers["content-type"]),!a&&c.headers["content-type"].indexOf("application/json")>=0)try{e=JSON.parse(c.text)}catch(b){a=b}return a||200===c.status||(a=d.handleFailure(c.text,c.statusCode)),a?b.deferred.reject(a):b.deferred.resolve(e),b.callback(a,e)}),b.deferred},d.handleFailure=function(a,b){var c,e;if("object"==typeof a)c=a;else try{c=JSON.parse(a)}catch(a){}return c?(e=new Error(c.msg?c.msg:null),Object.keys(c).forEach(function(a){"msg"!==a&&(e[a]=c[a])})):e=a?new Error(a):new Error("Unknown Server Error"),b&&(e.statusCode=b),d.convertError(e)},d.convertError=function(a){return a.requires_2fa?new e.WalletMissing2FAError:a.message.match(/Invalid two_factor_token/)?new e.WalletInvalid2FAError:a},b.exports=d}).call(this,a("_process"))},{"./blocktrail":2,_process:238,"create-hash":110,debug:176,lodash:229,q:267,querystring:270,superagent:309,"superagent-http-signature/index-hmac-only":306,url:315}],8:[function(a,b,c){var d=a("lodash"),e=a("./request"),f=function(a){var b=this;b.apiKey=a.apiKey,b.apiSecret=a.apiSecret,b.https=a.https,b.host=a.host,b.port=a.port,b.endpoint=a.endpoint,b.defaultParams={},b.apiKey&&(b.defaultParams.api_key=b.apiKey),b.defaultHeaders=d.defaults({},{"X-SDK-Version":"blocktrail-sdk-nodejs/3.1.x"},a.defaultHeaders)};f.prototype.create_request=function(a){var b=this;return a=d.defaults({},a,{https:b.https,host:b.host,port:b.port,endpoint:b.endpoint,apiKey:b.apiKey,apiSecret:b.apiSecret,params:d.defaults({},b.defaultParams),headers:d.defaults({},b.defaultHeaders)}),new e(a)},f.prototype.post=function(a,b,c,d,e){e="undefined"==typeof e||e;var f={};return e&&(f.auth="http-signature"),this.create_request(f).request("POST",a,b,c,d)},f.prototype.put=function(a,b,c,d,e){e="undefined"==typeof e||e;var f={};return e&&(f.auth="http-signature"),this.create_request(f).request("PUT",a,b,c,d)},f.prototype.get=function(a,b,c,d){"function"==typeof c&&(d=c,c=!1);var e={};return c&&(e.auth="http-signature"),this.create_request(e).request("GET",a,b,null,d)},f.prototype.delete=function(a,b,c,d,e){e="undefined"==typeof e||e;var f={};return e&&(f.auth="http-signature"),this.create_request(f).request("DELETE",a,b,c,d)},b.exports=function(a){return new f(a)}},{"./request":7,lodash:229}],9:[function(a,b,c){var d=a("../api_client"),e=a("lodash"),f=a("q"),g=a("async"),h=function(a){this.defaultSettings={apiKey:null,apiSecret:null,network:"BTC",testnet:!1,apiVersion:"v1",apiEndpoint:null,retryLimit:5,retryDelay:20,paginationLimit:200},this.settings=e.merge({},this.defaultSettings,a);var b=this.normaliseNetwork(this.settings.network,this.settings.testnet);this.settings.network=b.network,this.settings.testnet=b.testnet,this.client=new d(this.settings)};h.prototype.normaliseNetwork=function(a,b){switch(a.toLowerCase()){case"btc":case"bitcoin":return b?{network:"BTC",testnet:!0}:{network:"BTC",testnet:!1};case"tbtc":case"bitcoin-testnet":return{network:"BTC",testnet:!0};case"bcc":return b?{network:"BCC",testnet:!0}:{network:"BCC",testnet:!1};case"tbcc":return{network:"BCC",testnet:!0};default:throw new Error("Unknown network "+a)}},h.prototype.setPaginationLimit=function(a){this.settings.paginationLimit=a},h.prototype.estimateFee=function(){var a=this;return a.client.feePerKB().then(function(a){return Math.max(a.optimal,a.min_relay_fee)})},h.prototype.getBatchUnspentOutputs=function(a){var b=this,c=f.defer(),d=1,e=null,h=[];return g.doWhilst(function(c){var e={page:d,limit:b.settings.paginationLimit};b.client.batchAddressUnspentOutputs(a,e).then(function(a){h=h.concat(a.data),d++,c()},function(a){console.log("error happened:",a),c(a)})},function(){return e&&e.data.length>0},function(a){a&&console.log("complete, but with errors",a.message);var b={};h.forEach(function(a){var c=a.address;"undefined"==typeof b[c]&&(b[c]=[]),b[c].push({hash:a.hash,index:a.index,value:a.value,script_hex:a.script_hex})}),c.resolve(b)}),c.promise},h.prototype.batchAddressHasTransactions=function(a){var b=this;return b.client.batchAddressHasTransactions(a).then(function(a){return a.has_transactions})},b.exports=h},{"../api_client":1,async:20,lodash:229,q:267}],10:[function(a,b,c){var d=a("../blocktrail"),e=a("superagent"),f=a("lodash"),g=a("q"),h="https://insight.bitpay.com/api",i="https://test-insight.bitpay.com/api",j=function(a){this.defaultSettings={host:h,testnet:!1,retryLimit:5,retryDelay:20},"undefined"==typeof a.host&&a.testnet&&(this.defaultSettings.host=i),this.settings=f.merge({},this.defaultSettings,a),this.DEFAULT_ENDPOINT_MAINNET=h,this.DEFAULT_ENDPOINT_TESTNET=i};j.prototype.getBatchUnspentOutputs=function(a){var b=this,c=g.defer(),e={addrs:a.join(",")};return b.postEndpoint("addrs/utxo",e).then(function(a){var b={};a.forEach(function(a){var c=a.address;"undefined"==typeof b[c]&&(b[c]=[]),b[c].push({hash:a.txid,index:a.vout,value:d.toSatoshi(a.amount),script_hex:a.scriptPubKey})}),c.resolve(b)},function(a){c.reject(a)}),c.promise},j.prototype.batchAddressHasTransactions=function(a){var b=this,c={addrs:a.join(",")};return b.postEndpoint("addrs/txs",c).then(function(a){return a.items.length>0})},j.prototype.estimateFee=function(){var a=this,b="4";return a.getEndpoint("utils/estimatefee?nbBlocks="+b).then(function(a){return a[b]===-1?1e5:parseInt(1e8*a[b],10)})},j.prototype.sendTx=function(a){return this.postEndpoint("tx/send",{rawtx:a})},j.prototype.getEndpoint=function(a){return this.getRequest(this.settings.host+"/"+a)},j.prototype.postEndpoint=function(a,b){return this.postRequest(this.settings.host+"/"+a,b)},j.prototype.getRequest=function(a){var b=g.defer();return e.get(a).end(function(a,c){if(a)return void b.reject(a);if(!c.ok)return b.reject(c.text);if(!(c.headers["content-type"].indexOf("application/json")>=0))return b.resolve(c.body);try{var d=JSON.parse(c.text);return b.resolve(d)}catch(c){return b.reject(a)}}),b.promise},j.prototype.postRequest=function(a,b){var c=g.defer();return e.post(a).send(b).set("Content-Type","application/json").end(function(a,b){if(a)return void c.reject(a);if(!b.ok)return c.reject(b.text);if(!(b.headers["content-type"].indexOf("application/json")>=0))return c.resolve(b.body);try{var d=JSON.parse(b.text);return c.resolve(d)}catch(b){return c.reject(a)}}),c.promise},b.exports=j},{"../blocktrail":2,lodash:229,q:267,superagent:309}],11:[function(a,b,c){(function(Buffer){var c=a("assert"),d=a("bitcoinjs-lib"),e={SIZE_DER_SIGNATURE:72,SIZE_V0_P2WSH:36};e.getPublicKeySize=function(a){return a?33:65},e.getLengthForScriptPush=function(a){if(a<75)return 1;if(a<=255)return 2;if(a<=65535)return 3;if(a<=4294967295)return 5;throw new Error("Size of pushdata too large")},e.getLengthForVarInt=function(a){if(a<253)return 1;var b;if(a<65535)b=2;else if(a<4294967295)b=4;else{if(!(a<0x10000000000000000))throw new Error("Size of varint too large");b=8}return 1+b},e.estimateMultisigStackSize=function(a,b){var c,d=[0];for(c=0;c<a;c++)d.push(e.SIZE_DER_SIGNATURE);var f=1;for(c=0;c<b.length;c++)f+=this.getLengthForScriptPush(b[c].length)+b[c].length;return f+=2,[d,f]},e.estimateP2PKStackSize=function(a){var b=[e.SIZE_DER_SIGNATURE],c=this.getLengthForScriptPush(a.length)+a.length+1;return[b,c]},e.estimateP2PKHStackSize=function(a){"undefined"==typeof a&&(a=!0);var b=[this.SIZE_DER_SIGNATURE,this.getPublicKeySize(a)],c=2+this.getLengthForScriptPush(20)+20+2;return[b,c]},e.estimateStackSignatureSize=function(a,b,d,e){c(null===e||b);var f=[],g=[];b?(g=a,e instanceof Buffer&&g.push(e.length)):f=a,d instanceof Buffer&&f.push(d.length);var h=this,i=0;f.map(function(a){i+=h.getLengthForScriptPush(a)+a}),i+=h.getLengthForVarInt(i);var j=0;return g.length>0&&(g.map(function(a){j+=h.getLengthForVarInt(a)+a}),j+=h.getLengthForVarInt(g.length)),[i,j]},e.estimateInputFromScripts=function(a,b,e,f,g){c(null===e||f);var h;if(d.script.multisig.output.check(a)){var i=d.script.multisig.output.decode(a);h=this.estimateMultisigStackSize(i.m,i.pubKeys)[0]}else if(d.script.pubKey.output.check(a)){var j=d.script.pubKey.output.decode(a);h=this.estimateP2PKStackSize(j)[0]}else{if(!d.script.pubKeyHash.output.check(a))throw new Error("Unsupported script type");h=this.estimateP2PKHStackSize(g)[0]}return this.estimateStackSignatureSize(h,f,b,e)},e.estimateUtxo=function(a,b){var c=Buffer.from(a.scriptpubkey_hex,"hex"),e="string"==typeof a.redeem_script?Buffer.from(a.redeem_script,"hex"):null,f="string"==typeof a.witness_script?Buffer.from(a.witness_script,"hex"):null,g=!1,h=c;if(d.script.scriptHash.output.check(h)){if(null===e)throw new Error("Cant estimate, missing redeem script");h=e}if(d.script.witnessPubKeyHash.output.check(h)){var i=d.script.witnessPubKeyHash.output.decode(h);h=d.script.pubKeyHash.output.encode(i),g=!0}else if(d.script.witnessScriptHash.output.check(h)){if(null===f)throw new Error("Can't estimate, missing witness script");h=f,g=!0}var j=d.script.types,k=[j.MULTISIG,j.P2PKH,j.P2PK],l=d.script.classifyOutput(h);if(k.indexOf(l)===-1)throw new Error("Unsupported script type");var m=this.estimateInputFromScripts(h,e,f,g,b);return{scriptSig:m[0],witness:m[1]}},e.estimateInputsSize=function(a,b){var c=0,d=0;return a.map(function(a){var f=e.estimateUtxo(a);c+=40+f.scriptSig,b&&(d+=f.witness)}),b&&d>0&&(c+=2+d),c},e.calculateOutputsSize=function(a){var b=0;return a.map(function(a){var c=e.getLengthForVarInt(a.script.length/2);b+=8+c+a.script.length/2}),b},e.estimateTxWeight=function(a,b){var c=e.calculateOutputsSize(a.outs),d=8+this.estimateInputsSize(b,!1)+4+c+4,f=8+this.estimateInputsSize(b,!0)+4+c+4;return 3*d+f},e.estimateTxVsize=function(a,b){return parseInt(Math.ceil(e.estimateTxWeight(a,b)/4),10)},b.exports=e}).call(this,a("buffer").Buffer)},{assert:19,"bitcoinjs-lib":42,buffer:104}],12:[function(a,b,c){var d=a("lodash"),e=a("q"),f=a("async"),g=function(a,b){this.defaultSettings={logging:!1,batchChunkSize:200},this.settings=d.merge({},this.defaultSettings,b),this.client=a};g.prototype.getUTXOs=function(a){var b=this,c={},g=e.defer();return f.eachSeries(d.chunk(a,b.settings.batchChunkSize),function(a,e){b.settings.logging&&console.log("checking batch of "+a.length+" addresses for UTXOs",a.join(",")),b.client.getBatchUnspentOutputs(a).done(function(a){d.each(a,function(a,b){a.length>0&&(c[b]=a)}),e()},function(a){e(a)})},function(a){a&&console.log("error encountered",a),g.resolve(c)}),g.promise},b.exports=g},{async:20,lodash:229,q:267}],13:[function(a,b,c){(function(a){var d=!a.browser,e=!d&&"undefined"!=typeof window&&"undefined"!=typeof window.Worker,f=("undefined"!=typeof navigator&&navigator.userAgent||"").match(/Android (\d)\.(\d)(\.(\d))/);f&&f[1]<=4&&(e=!1),b.exports=c=function(){return e}}).call(this,a("_process"))},{_process:238}],14:[function(a,b,c){(function(Buffer){var c=a("lodash"),d=a("assert"),e=a("q"),f=a("async"),g=a("bitcoinjs-lib"),h=a("bitcoinjs-message"),i=a("./blocktrail"),j=a("crypto-js"),k=a("./encryption"),l=a("./encryption_mnemonic"),m=a("./size_estimation"),n=a("bip39"),o={SIGN:"sign",DONT_SIGN:"dont_sign"},p=function(a,b,e,f,h,i,j,k,l,m,n,o,q,r,s,t){var u=this;u.sdk=a,u.identifier=b,u.walletVersion=e,u.locked=!0,u.bypassNewAddressCheck=!!t,u.bitcoinCash=u.sdk.bitcoinCash,d(0===o||!u.bitcoinCash),u.testnet=q,u.bitcoinCash?u.testnet?u.network=g.networks.bitcoincashtestnet:u.network=g.networks.bitcoincash:u.testnet?u.network=g.networks.testnet:u.network=g.networks.bitcoin,d(k instanceof g.HDNode),d(c.every(j,function(a){return a instanceof g.HDNode})),d(c.every(l,function(a){return a instanceof g.HDNode})),u.primaryMnemonic=f,u.encryptedPrimarySeed=h,u.encryptedSecret=i,u.primaryPrivateKey=null,u.backupPrivateKey=null,u.backupPublicKey=k,u.blocktrailPublicKeys=l,u.primaryPublicKeys=j,u.keyIndex=m;var v;v=u.bitcoinCash?p.CHAIN_BCC_DEFAULT:o?p.CHAIN_BTC_SEGWIT:p.CHAIN_BTC_DEFAULT,u.chain=v,u.checksum=r,u.upgradeToKeyIndex=s,u.secret=null,u.seedHex=null};p.WALLET_VERSION_V1="v1",p.WALLET_VERSION_V2="v2",p.WALLET_VERSION_V3="v3",p.WALLET_ENTROPY_BITS=256,p.OP_RETURN="opreturn",p.DATA=p.OP_RETURN,p.PAY_PROGRESS_START=0,p.PAY_PROGRESS_COIN_SELECTION=10,p.PAY_PROGRESS_CHANGE_ADDRESS=20,p.PAY_PROGRESS_SIGN=30,p.PAY_PROGRESS_SEND=40,p.PAY_PROGRESS_DONE=100,p.CHAIN_BTC_DEFAULT=0,p.CHAIN_BTC_SEGWIT=2,p.CHAIN_BCC_DEFAULT=1,p.FEE_STRATEGY_FORCE_FEE=i.FEE_STRATEGY_FORCE_FEE,p.FEE_STRATEGY_BASE_FEE=i.FEE_STRATEGY_BASE_FEE,p.FEE_STRATEGY_OPTIMAL=i.FEE_STRATEGY_OPTIMAL,p.FEE_STRATEGY_LOW_PRIORITY=i.FEE_STRATEGY_LOW_PRIORITY,p.FEE_STRATEGY_MIN_RELAY_FEE=i.FEE_STRATEGY_MIN_RELAY_FEE,p.prototype.isSegwit=function(){return p.CHAIN_BTC_SEGWIT===this.chain},p.prototype.unlock=function(a,b){var d=this,f=e.defer();return f.promise.nodeify(b),a=c.merge({},a),e.fcall(function(){switch(d.walletVersion){case p.WALLET_VERSION_V1:return d.unlockV1(a);case p.WALLET_VERSION_V2:return d.unlockV2(a);case p.WALLET_VERSION_V3:return d.unlockV3(a);default:return e.reject(new i.WalletInitError("Invalid wallet version"))}}).then(function(a){d.primaryPrivateKey=a;var b=d.primaryPrivateKey.getAddress();if(b!==d.checksum)throw new i.WalletChecksumError("Generated checksum ["+b+"] does not match ["+d.checksum+"], most likely due to incorrect password");if(d.locked=!1,"undefined"!=typeof d.upgradeToKeyIndex&&null!==d.upgradeToKeyIndex)return d.upgradeKeyIndex(d.upgradeToKeyIndex)}).then(function(a){f.resolve(a)},function(a){f.reject(a)}),f.promise},p.prototype.unlockV1=function(a){var b=this;return a.primaryMnemonic="undefined"!=typeof a.primaryMnemonic?a.primaryMnemonic:b.primaryMnemonic,a.secretMnemonic="undefined"!=typeof a.secretMnemonic?a.secretMnemonic:b.secretMnemonic,b.sdk.resolvePrimaryPrivateKeyFromOptions(a).then(function(a){return b.primarySeed=a.primarySeed,a.primaryPrivateKey})},p.prototype.unlockV2=function(a,b){var c=this,d=e.defer();return d.promise.nodeify(b),d.resolve(e.fcall(function(){if(a.encryptedPrimarySeed="undefined"!=typeof a.encryptedPrimarySeed?a.encryptedPrimarySeed:c.encryptedPrimarySeed,a.encryptedSecret="undefined"!=typeof a.encryptedSecret?a.encryptedSecret:c.encryptedSecret,a.secret&&(c.secret=a.secret),a.primaryPrivateKey)throw new i.WalletDecryptError("specifying primaryPrivateKey has been deprecated");if(a.primarySeed)c.primarySeed=a.primarySeed;else if(a.secret)try{if(c.primarySeed=new Buffer(j.AES.decrypt(j.format.OpenSSL.parse(a.encryptedPrimarySeed),c.secret).toString(j.enc.Utf8),"base64"),!c.primarySeed.length)throw new Error}catch(a){throw new i.WalletDecryptError("Failed to decrypt primarySeed")}else{if(a.passphrase&&a.password)throw new i.WalletCreateError("Can't specify passphrase and password");a.passphrase=a.passphrase||a.password;try{if(c.secret=j.AES.decrypt(j.format.OpenSSL.parse(a.encryptedSecret),a.passphrase).toString(j.enc.Utf8),!c.secret.length)throw new Error}catch(a){throw new i.WalletDecryptError("Failed to decrypt secret")}try{if(c.primarySeed=new Buffer(j.AES.decrypt(j.format.OpenSSL.parse(a.encryptedPrimarySeed),c.secret).toString(j.enc.Utf8),"base64"),!c.primarySeed.length)throw new Error}catch(a){throw new i.WalletDecryptError("Failed to decrypt primarySeed")}}return g.HDNode.fromSeedBuffer(c.primarySeed,c.network)})),d.promise},p.prototype.unlockV3=function(a,b){var c=this,d=e.defer();return d.promise.nodeify(b),d.resolve(e.fcall(function(){return e.when().then(function(){if(a.encryptedPrimarySeed="undefined"!=typeof a.encryptedPrimarySeed?a.encryptedPrimarySeed:c.encryptedPrimarySeed,a.encryptedSecret="undefined"!=typeof a.encryptedSecret?a.encryptedSecret:c.encryptedSecret,a.secret&&(c.secret=a.secret),a.primaryPrivateKey)throw new i.WalletInitError("specifying primaryPrivateKey has been deprecated");if(!a.primarySeed){if(a.secret)return c.sdk.promisedDecrypt(new Buffer(a.encryptedPrimarySeed,"base64"),c.secret).then(function(a){c.primarySeed=a},function(){throw new i.WalletDecryptError("Failed to decrypt primarySeed")});if(a.passphrase&&a.password)throw new i.WalletCreateError("Can't specify passphrase and password");return a.passphrase=a.passphrase||a.password,delete a.password,c.sdk.promisedDecrypt(new Buffer(a.encryptedSecret,"base64"),new Buffer(a.passphrase)).then(function(a){c.secret=a},function(){throw new i.WalletDecryptError("Failed to decrypt secret")}).then(function(){return c.sdk.promisedDecrypt(new Buffer(a.encryptedPrimarySeed,"base64"),c.secret).then(function(a){c.primarySeed=a},function(){throw new i.WalletDecryptError("Failed to decrypt primarySeed")})})}c.primarySeed=a.primarySeed}).then(function(){return g.HDNode.fromSeedBuffer(c.primarySeed,c.network)})})),d.promise},p.prototype.lock=function(){var a=this;a.secret=null,a.primarySeed=null,a.primaryPrivateKey=null,a.backupPrivateKey=null,a.locked=!0},p.prototype.upgradeToV3=function(a,b){var c=this,d=e.defer();return d.promise.nodeify(b),e.when(!0).then(function(){if(c.locked)throw new i.WalletLockedError("Wallet needs to be unlocked to upgrade");if(c.walletVersion===p.WALLET_VERSION_V3)throw new i.WalletUpgradeError("Wallet is already V3");return c.walletVersion===p.WALLET_VERSION_V2?c._upgradeV2ToV3(a,d.notify.bind(d)):c.walletVersion===p.WALLET_VERSION_V1?c._upgradeV1ToV3(a,d.notify.bind(d)):void 0}).then(function(a){d.resolve(a)},function(a){d.reject(a)}),d.promise},p.prototype._upgradeV2ToV3=function(a,b){var c=this;return e.when(!0).then(function(){var d={storeDataOnServer:!0,passphrase:a,primarySeed:c.primarySeed,recoverySecret:!1};return c.sdk.produceEncryptedDataV3(d,b||function(){}).then(function(a){return c.sdk.updateWallet(c.identifier,{encrypted_primary_seed:a.encryptedPrimarySeed.toString("base64"),encrypted_secret:a.encryptedSecret.toString("base64"),wallet_version:p.WALLET_VERSION_V3}).then(function(){return c.secret=a.secret,c.encryptedPrimarySeed=a.encryptedPrimarySeed,c.encryptedSecret=a.encryptedSecret,c.walletVersion=p.WALLET_VERSION_V3,c})})})},p.prototype._upgradeV1ToV3=function(a,b){var c=this;return e.when(!0).then(function(){var d={storeDataOnServer:!0,passphrase:a,primarySeed:c.primarySeed};return c.sdk.produceEncryptedDataV3(d,b||function(){}).then(function(a){return c.recoveryEncryptedSecret=a.recoveryEncryptedSecret,c.sdk.updateWallet(c.identifier,{primary_mnemonic:"",encrypted_primary_seed:a.encryptedPrimarySeed.toString("base64"),encrypted_secret:a.encryptedSecret.toString("base64"),recovery_secret:a.recoverySecret.toString("hex"),wallet_version:p.WALLET_VERSION_V3}).then(function(){return c.secret=a.secret,c.encryptedPrimarySeed=a.encryptedPrimarySeed,c.encryptedSecret=a.encryptedSecret,c.walletVersion=p.WALLET_VERSION_V3,c})})})},p.prototype.doPasswordChange=function(a){var b=this;return e.when(null).then(function(){if(b.walletVersion===p.WALLET_VERSION_V1)throw new i.WalletLockedError("Wallet version does not support password change!");if(b.locked)throw new i.WalletLockedError("Wallet needs to be unlocked to change password");if(!b.secret)throw new i.WalletLockedError("No secret");var c,d;if(b.walletVersion===p.WALLET_VERSION_V2)c=j.AES.encrypt(b.secret,a).toString(j.format.OpenSSL),d=n.entropyToMnemonic(i.convert(c,"base64","hex"));else{if("string"==typeof a)a=new Buffer(a);else if(!(a instanceof Buffer))throw new Error("New password must be provided as a string or a Buffer");c=k.encrypt(b.secret,a),d=l.encode(c),c=c.toString("base64")}return[c,d]})},p.prototype.passwordChange=function(a,b){var c=this,d=e.defer();return d.promise.nodeify(b),e.fcall(function(){return c.doPasswordChange(a).then(function(a){var b=a[0],d=a[1];return c.sdk.updateWallet(c.identifier,{encrypted_secret:b}).then(function(){return c.encryptedSecret=b,{encryptedSecret:d}})}).then(function(a){d.resolve(a)},function(a){d.reject(a)})}),d.promise},p.prototype.getAddressByPath=function(a){return this.getWalletScriptByPath(a).address},p.prototype.getRedeemScriptByPath=function(a){return this.getWalletScriptByPath(a).redeemScript},p.prototype.getWalletScriptByPath=function(a){var b,c,d=this,e=d.getPrimaryPublicKey(a),f=d.getBlocktrailPublicKey(a),h=p.deriveByPath(d.backupPublicKey,a.replace("'",""),"M"),i=p.sortMultiSigKeys([e.keyPair.getPublicKeyBuffer(),h.keyPair.getPublicKeyBuffer(),f.keyPair.getPublicKeyBuffer()]),j=g.script.multisig.output.encode(2,i),k=parseInt(a.split("/")[2]);"bitcoincash"!==this.network&&k===p.CHAIN_BTC_SEGWIT?(b=j,c=g.script.witnessScriptHash.output.encode(g.crypto.sha256(b))):(b=null,c=j);var l=g.script.scriptHash.output.encode(g.crypto.hash160(c)),m=g.address.fromOutputScript(l,this.network);return{witnessScript:b,redeemScript:c,scriptPubKey:l,address:m}},p.prototype.getPrimaryPublicKey=function(a){var b=this;a=a.replace("m","M");var c=a.split("/")[1].replace("'","");if(!b.primaryPublicKeys[c]){if(!b.primaryPrivateKey)throw new i.KeyPathError("Wallet.getPrimaryPublicKey keyIndex ("+c+") is unknown to us");b.primaryPublicKeys[c]=p.deriveByPath(b.primaryPrivateKey,"M/"+c+"'","m")}var d=b.primaryPublicKeys[c];return p.deriveByPath(d,a,"M/"+c+"'")},p.prototype.getBlocktrailPublicKey=function(a){var b=this;a=a.replace("m","M");var c=a.split("/")[1].replace("'","");if(!b.blocktrailPublicKeys[c])throw new i.KeyPathError("Wallet.getBlocktrailPublicKey keyIndex ("+c+") is unknown to us");var d=b.blocktrailPublicKeys[c];return p.deriveByPath(d,a,"M/"+c+"'")},p.prototype.upgradeKeyIndex=function(a,b){var d=this,f=e.defer();if(f.promise.nodeify(b),d.locked)return f.reject(new i.WalletLockedError("Wallet needs to be unlocked to upgrade key index")),f.promise;var h=d.primaryPrivateKey.deriveHardened(a).neutered();return f.resolve(d.sdk.upgradeKeyIndex(d.identifier,a,[h.toBase58(),"M/"+a+"'"]).then(function(b){return d.keyIndex=a,c.forEach(b.blocktrail_public_keys,function(a,b){d.blocktrailPublicKeys[b]=g.HDNode.fromBase58(a[0],d.network)}),d.primaryPublicKeys[a]=h,!0})),f.promise},p.prototype.getNewAddress=function(a){var b=this,c=e.defer();return c.promise.spreadNodeify(a),c.resolve(b.sdk.getNewDerivation(b.identifier,"M/"+b.keyIndex+"'/"+b.chain).then(function(a){var c=a.path,d=a.address;if(!b.bypassNewAddressCheck&&(d=b.getAddressByPath(a.path),d!==a.address))throw new i.WalletAddressError("Failed to verify address ["+a.address+"] !== ["+d+"]");return[d,c]})),c.promise},p.prototype.getBalance=function(a){var b=this,c=e.defer();return c.promise.spreadNodeify(a),c.resolve(b.sdk.getWalletBalance(b.identifier).then(function(a){return[a.confirmed,a.unconfirmed]})),c.promise},p.prototype.getInfo=function(a){var b=this,c=e.defer();return c.promise.spreadNodeify(a),c.resolve(b.sdk.getWalletBalance(b.identifier)),c.promise},p.prototype.doDiscovery=function(a,b){var c=this;"function"==typeof a&&(b=a,a=null);var d=e.defer();return d.promise.spreadNodeify(b),d.resolve(c.sdk.doWalletDiscovery(c.identifier,a).then(function(a){return[a.confirmed,a.unconfirmed]})),d.promise},p.prototype.deleteWallet=function(a,b){var c=this;"function"==typeof a&&(b=a,a=!1);var d=e.defer();if(d.promise.nodeify(b),c.locked)return d.reject(new i.WalletDeleteError("Wallet needs to be unlocked to delete wallet")),d.promise;var f=c.primaryPrivateKey.getAddress(),g=c.primaryPrivateKey.keyPair.d.toBuffer(32),j=h.sign(f,c.network.messagePrefix,g,!0).toString("base64");return d.resolve(c.sdk.deleteWallet(c.identifier,f,j,a).then(function(a){return a.deleted})),d.promise},p.prototype.pay=function(a,b,c,d,f,g,h,j){var k=this;"function"==typeof b?(j=b,b=null):"function"==typeof c?(j=c,c=!1):"function"==typeof d?(j=d,d=!0):"function"==typeof f?(j=f,f=null):"function"==typeof g?(j=g,g=null):"function"==typeof h&&(j=h,h={}),d="undefined"==typeof d||d,f=f||p.FEE_STRATEGY_OPTIMAL,h=h||{};var l="undefined"==typeof h.checkFee||h.checkFee,m=e.defer();return m.promise.nodeify(j),k.locked?(m.reject(new i.WalletLockedError("Wallet needs to be unlocked to send coins")),m.promise):(e.nextTick(function(){m.notify(p.PAY_PROGRESS_START),k.buildTransaction(a,b,c,d,f,h).then(function(a){return a},function(a){m.reject(a)},function(a){m.notify(a)}).spread(function(a,b){m.notify(p.PAY_PROGRESS_SEND);var c={signed_transaction:a.toHex(),base_transaction:a.__toBuffer(null,null,!1).toString("hex")};return k.sendTransaction(c,b.map(function(a){return a.path}),l,g,h.prioboost).then(function(a){return m.notify(p.PAY_PROGRESS_DONE),a&&a.complete&&"false"!==a.complete?a.txid:void m.reject(new i.TransactionSignError("Failed to completely sign transaction"))})},function(a){throw a}).then(function(a){m.resolve(a)},function(a){m.reject(a)})}),m.promise)},p.prototype.decodeAddress=function(a){return p.getAddressAndType(a,this.network)},p.getAddressAndType=function(a,b){var c,d,e;if(b===g.networks.bitcoin||b===g.networks.testnet){try{c=g.address.fromBech32(a,b),e=null,d="bech32"}catch(a){e=a}if(!e&&c.prefix!==b.bech32)throw new i.InvalidAddressError("Address invalid on this network")}if(!c){try{c=g.address.fromBase58Check(a),e=null,d="base58"}catch(a){e=a}if(!e&&c.version!==b.pubKeyHash&&c.version!==b.scriptHash)throw new i.InvalidAddressError("Address invalid on this network")}if(e)throw new i.InvalidAddressError(e.message);return{address:a,decoded:c,type:d}},p.convertPayToOutputs=function(a,b){var c,d=[];if(Array.isArray(a))c=function(a,b,c){if("object"!=typeof b)throw new Error("Invalid transaction output for numerically indexed list [1]");var d=Object.keys(b);if(d.indexOf("scriptPubKey")!==-1&&d.indexOf("value")!==-1)c.scriptPubKey=b.scriptPubKey,c.value=b.value;else if(d.indexOf("address")!==-1&&d.indexOf("value")!==-1)c.address=b.address,c.value=b.value;else{if(2===d.length||2===b.length||0===d[0]||1===d[1])throw new Error("Invalid transaction output for numerically indexed list [2]");c.address=b[0],c.value=b[1]}};else{if("object"!=typeof a)throw new Error("Invalid input");c=function(a,b,c){if(c.address=a.trim(),c.value=b,c.address===p.OP_RETURN){var d=Buffer.isBuffer(b)?b:new Buffer(b,"utf-8");c.scriptPubKey=g.script.nullData.output.encode(d).toString("hex"),c.value=0,c.address=null}}}return Object.keys(a).forEach(function(e){var f={};if(c(e,a[e],f),parseInt(f.value,10).toString()!==f.value.toString())throw new i.WalletSendError("Values should be in Satoshis");if("string"==typeof f.address)try{var h=p.getAddressAndType(f.address,b);f.scriptPubKey=g.address.toOutputScript(h.address,b).toString("hex"),delete f.address}catch(a){throw new i.InvalidAddressError("Invalid address ["+f.address+"] ("+a.message+")")}if("6a"!==f.scriptPubKey.slice(0,2)){if(!(f.value=parseInt(f.value,10)))throw new i.WalletSendError("Values should be non zero");if(f.value<=i.DUST)throw new i.WalletSendError("Values should be more than dust ("+i.DUST+")")}f.value=parseInt(f.value,10),d.push(f)}),d},p.prototype.buildTransaction=function(a,b,d,h,j,k,l){var m=this;"function"==typeof b?(l=b,b=null):"function"==typeof d?(l=d,d=!1):"function"==typeof h?(l=h,h=!0):"function"==typeof j?(l=j,j=null):"function"==typeof k&&(l=k,k={}),h="undefined"==typeof h||h,j=j||p.FEE_STRATEGY_OPTIMAL,k=k||{};var n=e.defer();return n.promise.spreadNodeify(l),e.nextTick(function(){var l;try{l=p.convertPayToOutputs(a,m.network)}catch(a){return n.reject(a),n.promise}return l.length?(n.notify(p.PAY_PROGRESS_COIN_SELECTION),void n.resolve(m.coinSelection(l,!0,d,j,k).spread(function(a,d,k){var n,q,r=[],s=e.defer();return f.waterfall([function(b){var c=a.map(function(a){return a.value}).reduce(function(a,b){return a+b}),e=l.map(function(a){return a.value}).reduce(function(a,b){return a+b}),f=c-e-d;return f>2*i.DUST&&f!==k?b(new i.WalletFeeError("the amount of change ("+k+") suggested by the coin selection seems incorrect ("+f+")")):void b()},function(a){q=new g.TransactionBuilder(m.network),m.bitcoinCash&&q.enableBitcoinCash(),a()},function(b){var c;for(c=0;c<a.length;c++)q.addInput(a[c].hash,a[c].idx);b()},function(a){l.forEach(function(a){if(a.address)r.push({address:a.address,value:a.value});else{if(!a.scriptPubKey)throw new Error("Invalid send");r.push({scriptPubKey:new Buffer(a.scriptPubKey,"hex"),value:a.value})}}),a()},function(a){if(k>0)if(k<=i.DUST)k=0;else if(!b)return s.notify(p.PAY_PROGRESS_CHANGE_ADDRESS),m.getNewAddress(function(c,d){return c?a(c):(b=d,void a())});a()},function(a){k>0&&(h?r.splice(c.random(0,r.length),0,{address:b,value:k}):r.push({address:b,value:k})),a()},function(a){r.forEach(function(a){q.addOutput(a.scriptPubKey||a.address,a.value)}),a()},function(b){var c,d,e,f,h;for(s.notify(p.PAY_PROGRESS_SIGN),c=0;c<a.length;c++){var i=o.SIGN;if(a[c].sign_mode&&(i=a[c].sign_mode),f=null,h=null,i===o.SIGN){if(e=a[c].path.replace("M","m"),m.primaryPrivateKey)d=p.deriveByPath(m.primaryPrivateKey,e,"m").keyPair;else{if(!m.backupPrivateKey)throw new Error("No master privateKey present");d=p.deriveByPath(m.backupPrivateKey,e.replace(/^m\/(\d+)\'/,"m/$1"),"m").keyPair}f=new Buffer(a[c].redeem_script,"hex"),"string"==typeof a[c].witness_script&&(h=new Buffer(a[c].witness_script,"hex"));var j=g.Transaction.SIGHASH_ALL;m.bitcoinCash&&(j|=g.Transaction.SIGHASH_BITCOINCASHBIP143),q.sign(c,d,f,j,a[c].value,h)}}n=q.buildIncomplete(),b()},function(b){var c=p.estimateVsizeFee(n,a);if(m.sdk.feeSanityCheck)switch(j){case p.FEE_STRATEGY_BASE_FEE:if(Math.abs(c-d)>i.BASE_FEE)return b(new i.WalletFeeError("the fee suggested by the coin selection ("+d+") seems incorrect ("+c+") for FEE_STRATEGY_BASE_FEE"));
3
break;case p.FEE_STRATEGY_OPTIMAL:if(d>c*m.feeSanityCheckBaseFeeMultiplier)return b(new i.WalletFeeError("the fee suggested by the coin selection ("+d+") seems awefully high ("+c+") for FEE_STRATEGY_OPTIMAL"))}b()}],function(b){return b?void s.reject(new i.WalletSendError(b)):void s.resolve([n,a])}),s.promise}))):(n.reject(new i.WalletSendError("Need at least one recipient")),n.promise)}),n.promise},p.prototype.coinSelection=function(a,b,c,d,f,g){var h=this;"function"==typeof b?(g=b,b=!0):"function"==typeof c?(g=c,c=!1):"function"==typeof d?(g=d,d=null):"function"==typeof f&&(g=f,f={}),b="undefined"==typeof b||b,d=d||p.FEE_STRATEGY_OPTIMAL,f=f||{};var i;try{i=p.convertPayToOutputs(a,h.network)}catch(a){var j=e.defer();return j.promise.nodeify(g),j.reject(a),j.promise}return h.sdk.coinSelection(h.identifier,i,b,c,d,f,g)},p.prototype.sendTransaction=function(a,b,c,d,f,g){var h=this;"function"==typeof d?(g=d,d=null,f=!1):"function"==typeof f&&(g=d,f=!1);var j=e.defer();return j.promise.nodeify(g),h.sdk.sendTransaction(h.identifier,a,b,c,d,f).then(function(a){j.resolve(a)},function(a){a.requires_2fa?j.reject(new i.WalletMissing2FAError):a.message.match(/Invalid two_factor_token/)?j.reject(new i.WalletInvalid2FAError):j.reject(a)}),j.promise},p.prototype.setupWebhook=function(a,b,c){var d=this;return"function"==typeof b&&(c=b,b=null),b=b||"WALLET-"+d.identifier,d.sdk.setupWalletWebhook(d.identifier,b,a,c)},p.prototype.deleteWebhook=function(a,b){var c=this;return"function"==typeof a&&(b=a,a=null),a=a||"WALLET-"+c.identifier,c.sdk.deleteWalletWebhook(c.identifier,a,b)},p.prototype.transactions=function(a,b){var c=this;return c.sdk.walletTransactions(c.identifier,a,b)},p.prototype.maxSpendable=function(a,b,c,d){var e=this;return"function"==typeof a?(d=a,a=!1):"function"==typeof b?(d=b,b=null):"function"==typeof c&&(d=c,c={}),"object"==typeof a?(c=a,a=!1):"object"==typeof b&&(c=b,b=null),c=c||{},"undefined"!=typeof c.allowZeroConf&&(a=c.allowZeroConf),"undefined"!=typeof c.feeStrategy&&(b=c.feeStrategy),b=b||p.FEE_STRATEGY_OPTIMAL,e.sdk.walletMaxSpendable(e.identifier,a,b,c,d)},p.prototype.addresses=function(a,b){var c=this;return c.sdk.walletAddresses(c.identifier,a,b)},p.prototype.labelAddress=function(a,b,c){var d=this;return d.sdk.labelWalletAddress(d.identifier,a,b,c)},p.prototype.utxos=function(a,b){var c=this;return c.sdk.walletUTXOs(c.identifier,a,b)},p.prototype.unspentOutputs=p.prototype.utxos,p.sortMultiSigKeys=function(a){return a.sort(function(a,b){return a.toString("hex").localeCompare(b.toString("hex"))}),a},p.estimateIncompleteTxFee=function(a,b){var c=p.estimateIncompleteTxSize(a),d=c/1e3,e=Math.ceil(c/1e3);return b?parseInt(d*b,10):parseInt(e*i.BASE_FEE,10)},p.estimateVsizeFee=function(a,b,c){var d=m.estimateTxVsize(a,b),e=d/1e3,f=Math.ceil(d/1e3);return c?parseInt(e*c,10):parseInt(f*i.BASE_FEE,10)},p.estimateIncompleteTxSize=function(a){var b=16;return b+=34*a.outs.length,a.ins.forEach(function(a){var c=a.script,d=g.script.classifyInput(c),e=[2,3];if(!e&&"scripthash"===d){var f=g.script.decompile(c),h=f.slice(-1)[0];if(c=g.script.compile(f.slice(0,-1)),d=g.script.classifyInput(c),g.script.classifyOutput(h)!==d)throw new i.TransactionInputError("Non-matching scriptSig and scriptPubKey in input");if("multisig"===d){var j=g.script.decompile(h),k=j[0];if(k===g.opcodes.OP_0||k<g.opcodes.OP_1||k>g.opcodes.OP_16)throw new i.TransactionInputError("Invalid multisig redeemScript");var l=j[h.chunks.length-2];if(k===g.opcodes.OP_0||k<g.opcodes.OP_1||k>g.opcodes.OP_16)throw new i.TransactionInputError("Invalid multisig redeemScript");var m=k-(g.opcodes.OP_1-1),n=l-(g.opcodes.OP_1-1);if(n<m)throw new i.TransactionInputError("Invalid multisig redeemScript");e=[m,n]}}b+=e?40+73*e[0]+107+4:147}),b},p.estimateFee=function(a,b){var c=16;c+=34*b,c+=297*a;var d=Math.ceil(c/1e3);return d*i.BASE_FEE},p.deriveByPath=function(a,b,c){if(c=c||(a.keyPair.d?"m":"M"),"m"!==b[0].toLowerCase()||"m"!==c[0].toLowerCase())throw new i.KeyPathError("Wallet.deriveByPath only works with absolute paths. ("+b+", "+c+")");if("m"===b[0]&&"M"===c[0])throw new i.KeyPathError("Wallet.deriveByPath can't derive private path from public parent. ("+b+", "+c+")");var d="M"===b[0]&&"m"===c[0];if(d&&(b[0]="m"),0!==b.toLowerCase().indexOf(c.toLowerCase()))throw new i.KeyPathError("Wallet.derivePath requires path ("+b+") to be a child of keyPath ("+c+")");b=b.substr(c.length);var e=a;return b.replace(/^\//,"").split("/").forEach(function(a){a&&(a.indexOf("'")!==-1&&(a=parseInt(a.replace("'",""),10)+g.HDNode.HIGHEST_BIT),e=e.derive(parseInt(a,10)))}),d?e.neutered():e},b.exports=p}).call(this,a("buffer").Buffer)},{"./blocktrail":2,"./encryption":3,"./encryption_mnemonic":4,"./size_estimation":11,assert:19,async:20,bip39:27,"bitcoinjs-lib":42,"bitcoinjs-message":71,buffer:104,"crypto-js":150,lodash:229,q:267}],15:[function(a,b,c){(function(Buffer){var c=a("./unspent_output_finder"),d=a("bitcoinjs-lib"),e=a("bip39"),f=a("crypto-js"),g=a("./blocktrail"),h=a("./encryption_mnemonic"),i=a("./encryption"),j=a("./wallet"),k=a("lodash"),l=a("q"),m=a("async"),n=function(a,b,j){var l=this;this.defaultSettings={network:"btc",testnet:!1,logging:!1,bitcoinCash:!1,sweepBatchSize:200},this.settings=k.merge({},this.defaultSettings,j),this.bitcoinDataClient=b,this.utxoFinder=new c(b,this.settings),this.sweepData=null,"object"==typeof j.network?this.network=j.network:this.network=this.getBitcoinNetwork(this.settings.network,this.settings.testnet),a.walletVersion=a.walletVersion||2;var m=!1;if(!Array.isArray(a.blocktrailKeys))throw new Error("blocktrail pub keys are required (must be type Array)");switch(a.walletVersion){case 1:if("undefined"==typeof a.primaryMnemonic||!a.primaryMnemonic)throw new Error("missing primary mnemonic for version 1 wallet");if("undefined"==typeof a.backupMnemonic||!a.backupMnemonic)throw new Error("missing backup mnemonic for version 1 wallet");if("undefined"==typeof a.primaryPassphrase)throw new Error("missing primary passphrase for version 1 wallet");a.primaryMnemonic=a.primaryMnemonic.trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," "),a.backupMnemonic=a.backupMnemonic.trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," ");break;case 2:case 3:if("undefined"==typeof a.encryptedPrimaryMnemonic||!a.encryptedPrimaryMnemonic)throw new Error("missing encrypted primary seed for version 2 wallet");if("undefined"==typeof a.backupMnemonic||!a.backupMnemonic&&a.backupMnemonic!==!1)throw new Error("missing backup seed for version 2 wallet");if(m="undefined"!=typeof a.password&&null!==a.password){if("undefined"==typeof a.passwordEncryptedSecretMnemonic||!a.passwordEncryptedSecretMnemonic)throw new Error("missing password encrypted secret for version 2 wallet");if("undefined"==typeof a.password)throw new Error("missing primary passphrase for version 2 wallet")}else{if("undefined"==typeof a.encryptedRecoverySecretMnemonic||!a.encryptedRecoverySecretMnemonic)throw new Error("missing encrypted recovery secret for version 2 wallet (recovery without password)");if(!a.recoverySecretDecryptionKey)throw new Error("missing recovery secret decryption key for version 2 wallet (recovery without password)")}a.encryptedPrimaryMnemonic=a.encryptedPrimaryMnemonic.trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," "),a.backupMnemonic=(a.backupMnemonic||"").trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," "),a.recoverySecretDecryptionKey&&(a.recoverySecretDecryptionKey=a.recoverySecretDecryptionKey.trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," ")),m?a.passwordEncryptedSecretMnemonic=a.passwordEncryptedSecretMnemonic.trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," "):a.encryptedRecoverySecretMnemonic=a.encryptedRecoverySecretMnemonic.trim().replace(new RegExp("\r\n","g")," ").replace(new RegExp("\n","g")," ").replace(/\s+/g," ");break;default:throw new Error("Wrong version ["+a.walletVersion+"]")}this.blocktrailPublicKeys={},k.each(a.blocktrailKeys,function(a){l.blocktrailPublicKeys[a.keyIndex]=d.HDNode.fromBase58(a.pubkey,l.network)});var n,o,p;switch(a.walletVersion){case 1:n=e.mnemonicToSeed(a.primaryMnemonic,a.primaryPassphrase),o=e.mnemonicToSeed(a.backupMnemonic,"");break;case 2:if(a.encryptedPrimaryMnemonic=g.convert(e.mnemonicToEntropy(a.encryptedPrimaryMnemonic),"hex","base64"),m?a.passwordEncryptedSecretMnemonic=g.convert(e.mnemonicToEntropy(a.passwordEncryptedSecretMnemonic),"hex","base64"):a.encryptedRecoverySecretMnemonic=g.convert(e.mnemonicToEntropy(a.encryptedRecoverySecretMnemonic),"hex","base64"),p=m?f.AES.decrypt(a.passwordEncryptedSecretMnemonic,a.password).toString(f.enc.Utf8):f.AES.decrypt(a.encryptedRecoverySecretMnemonic,a.recoverySecretDecryptionKey).toString(f.enc.Utf8),!p)throw new Error("Could not decrypt secret with "+(m?"password":"decryption key"));n=new Buffer(f.AES.decrypt(a.encryptedPrimaryMnemonic,p).toString(f.enc.Utf8),"base64"),a.backupMnemonic&&(o=new Buffer(e.mnemonicToEntropy(a.backupMnemonic),"hex"));break;case 3:if(a.encryptedPrimaryMnemonic=h.decode(a.encryptedPrimaryMnemonic),m?a.passwordEncryptedSecretMnemonic=h.decode(a.passwordEncryptedSecretMnemonic):a.encryptedRecoverySecretMnemonic=h.decode(a.encryptedRecoverySecretMnemonic),p=m?i.decrypt(a.passwordEncryptedSecretMnemonic,new Buffer(a.password)):i.decrypt(a.encryptedRecoverySecretMnemonic,new Buffer(a.recoverySecretDecryptionKey,"hex")),!p)throw new Error("Could not decrypt secret with "+(m?"password":"decryption key"));n=i.decrypt(a.encryptedPrimaryMnemonic,p),a.backupMnemonic&&(o=new Buffer(e.mnemonicToEntropy(a.backupMnemonic),"hex"));break;default:throw new Error("Wrong version ["+a.walletVersion+"]")}this.primaryPrivateKey=d.HDNode.fromSeedBuffer(n,this.network),o?(this.backupPrivateKey=d.HDNode.fromSeedBuffer(o,this.network),this.backupPublicKey=this.backupPrivateKey.neutered()):(this.backupPrivateKey=!1,this.backupPublicKey=d.HDNode.fromBase58(a.backupPublicKey,this.network)),this.settings.logging&&(console.log("using password method: "+m),console.log("Primary Prv Key: "+this.primaryPrivateKey.toBase58()),console.log("Primary Pub Key: "+this.primaryPrivateKey.neutered().toBase58()),console.log("Backup Prv Key: "+(this.backupPrivateKey?this.backupPrivateKey.toBase58():null)),console.log("Backup Pub Key: "+this.backupPublicKey.toBase58()))};n.prototype.getBitcoinNetwork=function(a,b){switch(a.toLowerCase()){case"btc":case"bitcoin":return b?d.networks.testnet:d.networks.bitcoin;case"tbtc":case"bitcoin-testnet":return d.networks.testnet;default:throw new Error("Unknown network "+a)}},n.prototype.getBlocktrailPublicKey=function(a){a=a.replace("m","M");var b=a.split("/")[1].replace("'","");if(!this.blocktrailPublicKeys[b])throw new Error("Wallet.getBlocktrailPublicKey keyIndex ("+b+") is unknown to us");return this.blocktrailPublicKeys[b]},n.prototype.createAddress=function(a){a=a.replace("m","M");var b,c,e=a.split("/")[1].replace("'",""),f=parseInt(a.split("/")[2]),g=j.deriveByPath(this.primaryPrivateKey,a,"m"),h=j.deriveByPath(this.backupPublicKey,a.replace("'",""),"M"),i=j.deriveByPath(this.getBlocktrailPublicKey(a),a,"M/"+e+"'"),k=j.sortMultiSigKeys([g.keyPair.getPublicKeyBuffer(),h.keyPair.getPublicKeyBuffer(),i.keyPair.getPublicKeyBuffer()]),l=d.script.multisig.output.encode(2,k);"bitcoincash"!==this.network&&f===j.CHAIN_BTC_SEGWIT?(c=l,b=d.script.witnessScriptHash.output.encode(d.crypto.sha256(c))):(c=null,b=l);var m=d.crypto.hash160(b),n=d.script.scriptHash.output.encode(m),o=this.network;"undefined"!=typeof this.network&&(o=this.network);var p=d.address.fromOutputScript(n,o);return{address:p.toString(),redeem:b,witness:c}},n.prototype.createBatchAddresses=function(a,b,c,d){var e=this,f={};return l.all(k.range(0,b).map(function(b){var g="M/"+c+"'/"+d+"/"+(a+b),h=e.createAddress(g);f[h.address]={redeem:h.redeem,witness:h.witness,path:g}})).then(function(){return f})},n.prototype.discoverWalletFunds=function(a,b){var c=this,d=0,e=0,f=0,g={};"undefined"==typeof a&&(a=this.settings.sweepBatchSize);var h=l.defer();h.promise.nodeify(b);var i;return i="bitcoincash"===this.network?[0,1]:[0,1,2],m.nextTick(function(){m.eachSeries(Object.keys(c.blocktrailPublicKeys),function(b,j){m.eachSeries(i,function(i,j){var n=0,o=!1;m.doWhilst(function(j){c.settings.logging&&console.log("generating addresses "+n+" -> "+(n+a)+" using blocktrail key index: "+b+", chain: "+i),h.notify({message:"generating addresses "+n+" -> "+(n+a),increment:a,btPubKeyIndex:b,chain:i,totalAddresses:f,addressUTXOs:g,totalUTXOs:e,totalBalance:d}),m.nextTick(function(){c.createBatchAddresses(n,a,b,i).then(function(i){return f+=Object.keys(i).length,c.settings.logging&&console.log("starting fund discovery for "+a+" addresses..."),h.notify({message:"starting fund discovery for "+a+" addresses",increment:a,btPubKeyIndex:b,totalAddresses:f,addressUTXOs:g,totalUTXOs:e,totalBalance:d}),c.bitcoinDataClient.batchAddressHasTransactions(k.keys(i)).then(function(j){return o=j,c.settings.logging&&console.log("batch "+(o?"has":"does not have")+" transactions..."),l.when(o).then(function(j){if(j)return c.utxoFinder.getUTXOs(k.keys(i)).then(function(j){k.each(j,function(a,b){var f=null;"undefined"!=typeof i[b].witness&&(f=i[b].witness),g[b]={path:i[b].path,redeem:i[b].redeem,witness:f,utxos:a},e+=a.length,d=k.reduce(a,function(a,b){return a+b.value},d),c.settings.logging&&console.log("found "+a.length+" unspent outputs for address: "+b)}),h.notify({message:"discovering funds",increment:a,btPubKeyIndex:b,totalAddresses:f,addressUTXOs:g,totalUTXOs:e,totalBalance:d})})})})}).then(function(){n+=a,m.nextTick(j)},function(a){j(a)})})},function(){return o},function(c){c&&(console.log("batch complete, but with errors",c.message),h.notify({message:"batch complete, but with errors: "+c.message,error:c,increment:a,btPubKeyIndex:b,totalAddresses:f,addressUTXOs:g,totalUTXOs:e,totalBalance:d})),m.nextTick(j)})},function(a){j(a)})},function(a){a&&c.settings.logging&&console.log("error encountered when discovering funds",a),c.settings.logging&&console.log("finished fund discovery: "+d+" Satoshi (in "+e+" outputs) found when searching "+f+" addresses"),c.sweepData={utxos:g,count:e,balance:d,addressesSearched:f},h.resolve(c.sweepData)})}),h.promise},n.prototype.sweepWallet=function(a,b){var c=this,d=l.defer();return d.promise.nodeify(b),c.settings.logging&&console.log("starting wallet sweeping to address "+a),l.when(!0).then(function(){if(!c.sweepData)return c.discoverWalletFunds().progress(function(a){d.notify(a)})}).then(function(){return c.bitcoinDataClient.estimateFee()}).then(function(b){return 0===c.sweepData.balance?(d.reject("No funds found after searching through "+c.sweepData.addressesSearched+" addresses"),d.promise):c.createTransaction(a,null,b,d)}).then(function(a){d.resolve(a)},function(a){d.reject(a)}),d.promise},n.prototype.createTransaction=function(a,b,c,e){var f=this;this.settings.logging&&console.log("Creating transaction to address destinationAddress"),e&&e.notify({message:"creating raw transaction to "+a});var h=new d.TransactionBuilder(this.network);this.settings.bitcoinCash&&h.enableBitcoinCash();var i=[];if(k.each(this.sweepData.utxos,function(a,b){k.each(a.utxos,function(c){h.addInput(c.hash,c.index),i.push({txid:c.hash,vout:c.index,scriptPubKey:c.script_hex,value:c.value,address:b,path:a.path,redeemScript:a.redeem,witnessScript:a.witness})})}),!h)throw new Error("Failed to create raw transaction");var l=f.sweepData.balance,m=h.addOutput(a,l);if("undefined"==typeof b||null===b){e&&e.notify({message:"estimating transaction fee, based on "+g.toBTC(c)+" BTC/kb"});var n=i.map(function(a){return{txid:a.txid,vout:a.vout,address:a.vout,scriptpubkey_hex:a.vout,redeem_script:a.redeemScript,witness_script:a.witnessScript,path:a.path,value:a.value}});b=j.estimateVsizeFee(h.tx,n,c)}return h.tx.outs[m].value-=b,e&&e.notify({message:"signing transaction"}),this.signTransaction(h,i)},n.prototype.signTransaction=function(a,b){var c=this;this.settings.logging&&console.log("Signing transaction");var e=d.Transaction.SIGHASH_ALL;return this.settings.bitcoinCash&&(e|=d.Transaction.SIGHASH_BITCOINCASHBIP143),k.each(b,function(b,d){var f=j.deriveByPath(c.primaryPrivateKey,b.path.replace("M","m"),"m").keyPair;if(a.sign(d,f,b.redeemScript,e,b.value,b.witnessScript),c.backupPrivateKey){var g=j.deriveByPath(c.backupPrivateKey,b.path.replace("'","").replace("M","m"),"m").keyPair;a.sign(d,g,b.redeemScript,e,b.value,b.witnessScript)}}),c.backupPrivateKey?a.build().toHex():a.buildIncomplete().toHex()},b.exports=n}).call(this,a("buffer").Buffer)},{"./blocktrail":2,"./encryption":3,"./encryption_mnemonic":4,"./unspent_output_finder":12,"./wallet":14,async:20,bip39:27,"bitcoinjs-lib":42,buffer:104,"crypto-js":150,lodash:229,q:267}],16:[function(a,b,c){(function(Buffer){var c=a("bip39"),d=a("./encryption");b.exports=function(a){a.addEventListener("message",function(b){var e=b.data||{};switch(e.method){case"mnemonicToSeedHex":!function(){try{var d=e.mnemonic,f=e.passphrase;if(!c.validateMnemonic(d))throw b=new Error("Invalid passphrase"),b.id=e.id,b;var g=c.mnemonicToSeedHex(d,f);a.postMessage({id:e.id,seed:g,mnemonic:d})}catch(a){throw a.id=e.id,a}}();break;case"Encryption.encryptWithSaltAndIV":!function(){try{if(!(e.pt&&e.pw&&e.saltBuf&&e.iv&&e.iterations))throw new Error("Invalid input");var b=Buffer.from(e.pt.buffer),c=Buffer.from(e.pw.buffer),f=Buffer.from(e.saltBuf.buffer),g=Buffer.from(e.iv.buffer),h=e.iterations,i=d.encryptWithSaltAndIV(b,c,f,g,h);a.postMessage({id:e.id,cipherText:i})}catch(a){throw a.id=e.id,a}}();break;case"Encryption.decrypt":!function(){try{if(!e.ct||!e.pw)throw new Error("Invalid input");var b=Buffer.from(e.ct.buffer),c=Buffer.from(e.pw.buffer),f=d.decrypt(b,c);a.postMessage({id:e.id,plainText:f})}catch(a){throw a.id=e.id,a}}();break;default:throw b=new Error("Invalid method ["+b.method+"]"),b.id=e.id,b}},!1)}}).call(this,a("buffer").Buffer)},{"./encryption":3,bip39:27,buffer:104}],17:[function(a,b,c){var d=a("q"),e=a("webworkify");b.exports=c={workify:function(a,b,c){var f=d.defer();try{"undefined"==typeof a.worker&&(a.worker=e(b()),a.first=!0,a.id=0);var g=a.worker,h=a.id++,i=function(b){a.first&&(a.first=!1,URL.revokeObjectURL(g.objectURL)),b.data.id===h&&f.resolve(b.data)},j=function(a){f.reject(new Error(a.message.replace("Uncaught Error: ","")))},k=function(){g.removeEventListener("message",i),g.removeEventListener("error",j)};return g.addEventListener("message",i,!1),g.addEventListener("error",j,!1),c.id=h,g.postMessage(c),f.promise.then(function(a){return k(),a},function(a){throw k(),a})}catch(a){return f.reject(a),f.promise}}}},{q:267,webworkify:323}],18:[function(a,b,c){(function(Buffer){var d=a("./lib/api_client"),e=a("./lib/blocktrail");Object.keys(e).forEach(function(a){d[a]=e[a]}),d.q=a("q"),d.BlocktrailSDK=d,d.Wallet=a("./lib/wallet"),d.Request=a("./lib/request"),d.Encryption=a("./lib/encryption"),d.KeyDerivation=a("./lib/keyderivation"),d.EncryptionMnemonic=a("./lib/encryption_mnemonic"),d.useWebworker=a("./lib/use-webworker"),d.WalletSweeper=a("./lib/wallet_sweeper"),d.UnspentOutputFinder=a("./lib/unspent_output_finder"),d.BlocktrailBitcoinService=a("./lib/services/blocktrail_bitcoin_service"),d.InsightBitcoinService=a("./lib/services/insight_bitcoin_service"),d.randomBytes=a("randombytes"),d.lodash=a("lodash"),d.CryptoJS=a("crypto-js"),d.debug=a("debug"),d.bip39=a("bip39"),d.bip39wordlist=a("bip39/wordlists/en.json"),d.bitcoin=a("bitcoinjs-lib"),d.superagent=a("superagent"),d.Buffer=Buffer,c=b.exports=d}).call(this,a("buffer").Buffer)},{"./lib/api_client":1,"./lib/blocktrail":2,"./lib/encryption":3,"./lib/encryption_mnemonic":4,"./lib/keyderivation":5,"./lib/request":7,"./lib/services/blocktrail_bitcoin_service":9,"./lib/services/insight_bitcoin_service":10,"./lib/unspent_output_finder":12,"./lib/use-webworker":13,"./lib/wallet":14,"./lib/wallet_sweeper":15,bip39:27,"bip39/wordlists/en.json":30,"bitcoinjs-lib":42,buffer:104,"crypto-js":150,debug:176,lodash:229,q:267,randombytes:271,superagent:309}],19:[function(a,b,c){(function(c){"use strict";function d(a,b){if(a===b)return 0;for(var c=a.length,d=b.length,e=0,f=Math.min(c,d);e<f;++e)if(a[e]!==b[e]){c=a[e],d=b[e];break}return c<d?-1:d<c?1:0}function e(a){return c.Buffer&&"function"==typeof c.Buffer.isBuffer?c.Buffer.isBuffer(a):!(null==a||!a._isBuffer)}function f(a){return Object.prototype.toString.call(a)}function g(a){return!e(a)&&("function"==typeof c.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(a):!!a&&(a instanceof DataView||!!(a.buffer&&a.buffer instanceof ArrayBuffer))))}function h(a){if(u.isFunction(a)){if(x)return a.name;var b=a.toString(),c=b.match(z);return c&&c[1]}}function i(a,b){return"string"==typeof a?a.length<b?a:a.slice(0,b):a}function j(a){if(x||!u.isFunction(a))return u.inspect(a);var b=h(a),c=b?": "+b:"";return"[Function"+c+"]"}function k(a){return i(j(a.actual),128)+" "+a.operator+" "+i(j(a.expected),128)}function l(a,b,c,d,e){throw new y.AssertionError({message:c,actual:a,expected:b,operator:d,stackStartFunction:e})}function m(a,b){a||l(a,!0,b,"==",y.ok)}function n(a,b,c,h){if(a===b)return!0;if(e(a)&&e(b))return 0===d(a,b);if(u.isDate(a)&&u.isDate(b))return a.getTime()===b.getTime();if(u.isRegExp(a)&&u.isRegExp(b))return a.source===b.source&&a.global===b.global&&a.multiline===b.multiline&&a.lastIndex===b.lastIndex&&a.ignoreCase===b.ignoreCase;if(null!==a&&"object"==typeof a||null!==b&&"object"==typeof b){if(g(a)&&g(b)&&f(a)===f(b)&&!(a instanceof Float32Array||a instanceof Float64Array))return 0===d(new Uint8Array(a.buffer),new Uint8Array(b.buffer));if(e(a)!==e(b))return!1;h=h||{actual:[],expected:[]};var i=h.actual.indexOf(a);return i!==-1&&i===h.expected.indexOf(b)||(h.actual.push(a),h.expected.push(b),p(a,b,c,h))}return c?a===b:a==b}function o(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function p(a,b,c,d){if(null===a||void 0===a||null===b||void 0===b)return!1;if(u.isPrimitive(a)||u.isPrimitive(b))return a===b;if(c&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(b))return!1;var e=o(a),f=o(b);if(e&&!f||!e&&f)return!1;if(e)return a=w.call(a),b=w.call(b),n(a,b,c);var g,h,i=A(a),j=A(b);if(i.length!==j.length)return!1;for(i.sort(),j.sort(),h=i.length-1;h>=0;h--)if(i[h]!==j[h])return!1;for(h=i.length-1;h>=0;h--)if(g=i[h],!n(a[g],b[g],c,d))return!1;return!0}function q(a,b,c){n(a,b,!0)&&l(a,b,c,"notDeepStrictEqual",q)}function r(a,b){if(!a||!b)return!1;if("[object RegExp]"==Object.prototype.toString.call(b))return b.test(a);try{if(a instanceof b)return!0}catch(a){}return!Error.isPrototypeOf(b)&&b.call({},a)===!0}function s(a){var b;try{a()}catch(a){b=a}return b}function t(a,b,c,d){var e;if("function"!=typeof b)throw new TypeError('"block" argument must be a function');"string"==typeof c&&(d=c,c=null),e=s(b),d=(c&&c.name?" ("+c.name+").":".")+(d?" "+d:"."),a&&!e&&l(e,c,"Missing expected exception"+d);var f="string"==typeof d,g=!a&&u.isError(e),h=!a&&e&&!c;if((g&&f&&r(e,c)||h)&&l(e,c,"Got unwanted exception"+d),a&&e&&c&&!r(e,c)||!a&&e)throw e}var u=a("util/"),v=Object.prototype.hasOwnProperty,w=Array.prototype.slice,x=function(){return"foo"===function(){}.name}(),y=b.exports=m,z=/\s*function\s+([^\(\s]*)\s*/;y.AssertionError=function(a){this.name="AssertionError",this.actual=a.actual,this.expected=a.expected,this.operator=a.operator,a.message?(this.message=a.message,this.generatedMessage=!1):(this.message=k(this),this.generatedMessage=!0);var b=a.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,b);else{var c=new Error;if(c.stack){var d=c.stack,e=h(b),f=d.indexOf("\n"+e);if(f>=0){var g=d.indexOf("\n",f+1);d=d.substring(g+1)}this.stack=d}}},u.inherits(y.AssertionError,Error),y.fail=l,y.ok=m,y.equal=function(a,b,c){a!=b&&l(a,b,c,"==",y.equal)},y.notEqual=function(a,b,c){a==b&&l(a,b,c,"!=",y.notEqual)},y.deepEqual=function(a,b,c){n(a,b,!1)||l(a,b,c,"deepEqual",y.deepEqual)},y.deepStrictEqual=function(a,b,c){n(a,b,!0)||l(a,b,c,"deepStrictEqual",y.deepStrictEqual)},y.notDeepEqual=function(a,b,c){n(a,b,!1)&&l(a,b,c,"notDeepEqual",y.notDeepEqual)},y.notDeepStrictEqual=q,y.strictEqual=function(a,b,c){a!==b&&l(a,b,c,"===",y.strictEqual)},y.notStrictEqual=function(a,b,c){a===b&&l(a,b,c,"!==",y.notStrictEqual)},y.throws=function(a,b,c){t(!0,a,b,c)},y.doesNotThrow=function(a,b,c){t(!1,a,b,c)},y.ifError=function(a){if(a)throw a};var A=Object.keys||function(a){var b=[];for(var c in a)v.call(a,c)&&b.push(c);return b}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":320}],20:[function(a,b,c){(function(a){!function(){function c(a){var b=!1;return function(){if(b)throw new Error("Callback was already called.");b=!0,a.apply(d,arguments)}}var d,e,f={};d=this,null!=d&&(e=d.async),f.noConflict=function(){return d.async=e,f};var g=Object.prototype.toString,h=Array.isArray||function(a){return"[object Array]"===g.call(a)},i=function(a,b){if(a.forEach)return a.forEach(b);for(var c=0;c<a.length;c+=1)b(a[c],c,a)},j=function(a,b){if(a.map)return a.map(b);var c=[];return i(a,function(a,d,e){c.push(b(a,d,e))}),c},k=function(a,b,c){return a.reduce?a.reduce(b,c):(i(a,function(a,d,e){c=b(c,a,d,e)}),c)},l=function(a){if(Object.keys)return Object.keys(a);var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};"undefined"!=typeof a&&a.nextTick?(f.nextTick=a.nextTick,"undefined"!=typeof setImmediate?f.setImmediate=function(a){setImmediate(a)}:f.setImmediate=f.nextTick):"function"==typeof setImmediate?(f.nextTick=function(a){setImmediate(a)},f.setImmediate=f.nextTick):(f.nextTick=function(a){setTimeout(a,0)},f.setImmediate=f.nextTick),f.each=function(a,b,d){function e(b){b?(d(b),d=function(){}):(f+=1,f>=a.length&&d())}if(d=d||function(){},!a.length)return d();var f=0;i(a,function(a){b(a,c(e))})},f.forEach=f.each,f.eachSeries=function(a,b,c){if(c=c||function(){},!a.length)return c();var d=0,e=function(){b(a[d],function(b){b?(c(b),c=function(){}):(d+=1,d>=a.length?c():e())})};e()},f.forEachSeries=f.eachSeries,f.eachLimit=function(a,b,c,d){var e=m(b);e.apply(null,[a,c,d])},f.forEachLimit=f.eachLimit;var m=function(a){return function(b,c,d){if(d=d||function(){},!b.length||a<=0)return d();var e=0,f=0,g=0;!function h(){if(e>=b.length)return d();for(;g<a&&f<b.length;)f+=1,g+=1,c(b[f-1],function(a){a?(d(a),d=function(){}):(e+=1,g-=1,e>=b.length?d():h())})}()}},n=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.each].concat(b))}},o=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return b.apply(null,[m(a)].concat(c))}},p=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.eachSeries].concat(b))}},q=function(a,b,c,d){if(b=j(b,function(a,b){return{index:b,value:a}}),d){var e=[];a(b,function(a,b){c(a.value,function(c,d){e[a.index]=d,b(c)})},function(a){d(a,e)})}else a(b,function(a,b){c(a.value,function(a){b(a)})})};f.map=n(q),f.mapSeries=p(q),f.mapLimit=function(a,b,c,d){return r(b)(a,c,d)};var r=function(a){return o(a,q)};f.reduce=function(a,b,c,d){f.eachSeries(a,function(a,d){c(b,a,function(a,c){b=c,d(a)})},function(a){d(a,b)})},f.inject=f.reduce,f.foldl=f.reduce,f.reduceRight=function(a,b,c,d){var e=j(a,function(a){return a}).reverse();f.reduce(e,b,c,d)},f.foldr=f.reduceRight;var s=function(a,b,c,d){var e=[];b=j(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c&&e.push(a),b()})},function(a){d(j(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.filter=n(s),f.filterSeries=p(s),f.select=f.filter,f.selectSeries=f.filterSeries;var t=function(a,b,c,d){var e=[];b=j(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c||e.push(a),b()})},function(a){d(j(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.reject=n(t),f.rejectSeries=p(t);var u=function(a,b,c,d){a(b,function(a,b){c(a,function(c){c?(d(a),d=function(){}):b()})},function(a){d()})};f.detect=n(u),f.detectSeries=p(u),f.some=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a&&(c(!0),c=function(){}),d()})},function(a){c(!1)})},f.any=f.some,f.every=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a||(c(!1),c=function(){}),d()})},function(a){c(!0)})},f.all=f.every,f.sortBy=function(a,b,c){f.map(a,function(a,c){b(a,function(b,d){b?c(b):c(null,{value:a,criteria:d})})},function(a,b){if(a)return c(a);var d=function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0};c(null,j(b.sort(d),function(a){return a.value}))})},f.auto=function(a,b){b=b||function(){};var c=l(a),d=c.length;if(!d)return b();var e={},g=[],j=function(a){g.unshift(a)},m=function(a){for(var b=0;b<g.length;b+=1)if(g[b]===a)return void g.splice(b,1)},n=function(){d--,i(g.slice(0),function(a){a()})};j(function(){if(!d){var a=b;b=function(){},a(null,e)}}),i(c,function(c){var d=h(a[c])?a[c]:[a[c]],g=function(a){var d=Array.prototype.slice.call(arguments,1);if(d.length<=1&&(d=d[0]),a){var g={};i(l(e),function(a){g[a]=e[a]}),g[c]=d,b(a,g),b=function(){}}else e[c]=d,f.setImmediate(n)},o=d.slice(0,Math.abs(d.length-1))||[],p=function(){return k(o,function(a,b){return a&&e.hasOwnProperty(b)},!0)&&!e.hasOwnProperty(c)};if(p())d[d.length-1](g,e);else{var q=function(){p()&&(m(q),d[d.length-1](g,e))};j(q)}})},f.retry=function(a,b,c){var d=5,e=[];"function"==typeof a&&(c=b,b=a,a=d),a=parseInt(a,10)||d;var g=function(d,g){for(var h=function(a,b){return function(c){a(function(a,d){c(!a||b,{err:a,result:d})},g)}};a;)e.push(h(b,!(a-=1)));f.series(e,function(a,b){b=b[b.length-1],(d||c)(b.err,b.result)})};return c?g():g},f.waterfall=function(a,b){if(b=b||function(){},!h(a)){var c=new Error("First argument to waterfall must be an array of functions");return b(c)}if(!a.length)return b();var d=function(a){return function(c){if(c)b.apply(null,arguments),b=function(){};else{var e=Array.prototype.slice.call(arguments,1),g=a.next();g?e.push(d(g)):e.push(b),f.setImmediate(function(){a.apply(null,e)})}}};d(f.iterator(a))()};var v=function(a,b,c){if(c=c||function(){},h(b))a.map(b,function(a,b){a&&a(function(a){var c=Array.prototype.slice.call(arguments,1);c.length<=1&&(c=c[0]),b.call(null,a,c)})},c);else{var d={};a.each(l(b),function(a,c){b[a](function(b){var e=Array.prototype.slice.call(arguments,1);e.length<=1&&(e=e[0]),d[a]=e,c(b)})},function(a){c(a,d)})}};f.parallel=function(a,b){v({map:f.map,each:f.each},a,b)},f.parallelLimit=function(a,b,c){v({map:r(b),each:m(b)},a,c)},f.series=function(a,b){if(b=b||function(){},h(a))f.mapSeries(a,function(a,b){a&&a(function(a){var c=Array.prototype.slice.call(arguments,1);c.length<=1&&(c=c[0]),b.call(null,a,c)})},b);else{var c={};f.eachSeries(l(a),function(b,d){a[b](function(a){var e=Array.prototype.slice.call(arguments,1);e.length<=1&&(e=e[0]),c[b]=e,d(a)})},function(a){b(a,c)})}},f.iterator=function(a){var b=function(c){var d=function(){return a.length&&a[c].apply(null,arguments),d.next()};return d.next=function(){return c<a.length-1?b(c+1):null},d};return b(0)},f.apply=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b.concat(Array.prototype.slice.call(arguments)))}};var w=function(a,b,c,d){var e=[];a(b,function(a,b){c(a,function(a,c){e=e.concat(c||[]),b(a)})},function(a){d(a,e)})};f.concat=n(w),f.concatSeries=p(w),f.whilst=function(a,b,c){a()?b(function(d){return d?c(d):void f.whilst(a,b,c)}):c()},f.doWhilst=function(a,b,c){a(function(d){if(d)return c(d);var e=Array.prototype.slice.call(arguments,1);b.apply(null,e)?f.doWhilst(a,b,c):c()})},f.until=function(a,b,c){a()?c():b(function(d){return d?c(d):void f.until(a,b,c)})},f.doUntil=function(a,b,c){a(function(d){if(d)return c(d);var e=Array.prototype.slice.call(arguments,1);
4
b.apply(null,e)?c():f.doUntil(a,b,c)})},f.queue=function(a,b){function d(a,b,c,d){return a.started||(a.started=!0),h(b)||(b=[b]),0==b.length?f.setImmediate(function(){a.drain&&a.drain()}):void i(b,function(b){var e={data:b,callback:"function"==typeof d?d:null};c?a.tasks.unshift(e):a.tasks.push(e),a.saturated&&a.tasks.length===a.concurrency&&a.saturated(),f.setImmediate(a.process)})}void 0===b&&(b=1);var e=0,g={tasks:[],concurrency:b,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(a,b){d(g,a,!1,b)},kill:function(){g.drain=null,g.tasks=[]},unshift:function(a,b){d(g,a,!0,b)},process:function(){if(!g.paused&&e<g.concurrency&&g.tasks.length){var b=g.tasks.shift();g.empty&&0===g.tasks.length&&g.empty(),e+=1;var d=function(){e-=1,b.callback&&b.callback.apply(b,arguments),g.drain&&g.tasks.length+e===0&&g.drain(),g.process()},f=c(d);a(b.data,f)}},length:function(){return g.tasks.length},running:function(){return e},idle:function(){return g.tasks.length+e===0},pause:function(){g.paused!==!0&&(g.paused=!0,g.process())},resume:function(){g.paused!==!1&&(g.paused=!1,g.process())}};return g},f.priorityQueue=function(a,b){function c(a,b){return a.priority-b.priority}function d(a,b,c){for(var d=-1,e=a.length-1;d<e;){var f=d+(e-d+1>>>1);c(b,a[f])>=0?d=f:e=f-1}return d}function e(a,b,e,g){return a.started||(a.started=!0),h(b)||(b=[b]),0==b.length?f.setImmediate(function(){a.drain&&a.drain()}):void i(b,function(b){var h={data:b,priority:e,callback:"function"==typeof g?g:null};a.tasks.splice(d(a.tasks,h,c)+1,0,h),a.saturated&&a.tasks.length===a.concurrency&&a.saturated(),f.setImmediate(a.process)})}var g=f.queue(a,b);return g.push=function(a,b,c){e(g,a,b,c)},delete g.unshift,g},f.cargo=function(a,b){var c=!1,d=[],e={tasks:d,payload:b,saturated:null,empty:null,drain:null,drained:!0,push:function(a,c){h(a)||(a=[a]),i(a,function(a){d.push({data:a,callback:"function"==typeof c?c:null}),e.drained=!1,e.saturated&&d.length===b&&e.saturated()}),f.setImmediate(e.process)},process:function f(){if(!c){if(0===d.length)return e.drain&&!e.drained&&e.drain(),void(e.drained=!0);var g="number"==typeof b?d.splice(0,b):d.splice(0,d.length),h=j(g,function(a){return a.data});e.empty&&e.empty(),c=!0,a(h,function(){c=!1;var a=arguments;i(g,function(b){b.callback&&b.callback.apply(null,a)}),f()})}},length:function(){return d.length},running:function(){return c}};return e};var x=function(a){return function(b){var c=Array.prototype.slice.call(arguments,1);b.apply(null,c.concat([function(b){var c=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(b?console.error&&console.error(b):console[a]&&i(c,function(b){console[a](b)}))}]))}};f.log=x("log"),f.dir=x("dir"),f.memoize=function(a,b){var c={},d={};b=b||function(a){return a};var e=function(){var e=Array.prototype.slice.call(arguments),g=e.pop(),h=b.apply(null,e);h in c?f.nextTick(function(){g.apply(null,c[h])}):h in d?d[h].push(g):(d[h]=[g],a.apply(null,e.concat([function(){c[h]=arguments;var a=d[h];delete d[h];for(var b=0,e=a.length;b<e;b++)a[b].apply(null,arguments)}])))};return e.memo=c,e.unmemoized=a,e},f.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},f.times=function(a,b,c){for(var d=[],e=0;e<a;e++)d.push(e);return f.map(d,b,c)},f.timesSeries=function(a,b,c){for(var d=[],e=0;e<a;e++)d.push(e);return f.mapSeries(d,b,c)},f.seq=function(){var a=arguments;return function(){var b=this,c=Array.prototype.slice.call(arguments),d=c.pop();f.reduce(a,c,function(a,c,d){c.apply(b,a.concat([function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);d(a,b)}]))},function(a,c){d.apply(b,[a].concat(c))})}},f.compose=function(){return f.seq.apply(null,Array.prototype.reverse.call(arguments))};var y=function(a,b){var c=function(){var c=this,d=Array.prototype.slice.call(arguments),e=d.pop();return a(b,function(a,b){a.apply(c,d.concat([b]))},e)};if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return c.apply(this,d)}return c};f.applyEach=n(y),f.applyEachSeries=p(y),f.forever=function(a,b){function c(d){if(d){if(b)return b(d);throw d}a(c)}c()},"undefined"!=typeof b&&b.exports?b.exports=f:"undefined"!=typeof define&&define.amd?define([],function(){return f}):d.async=f}()}).call(this,a("_process"))},{_process:238}],21:[function(a,b,c){var Buffer=a("safe-buffer").Buffer;b.exports=function(a){function b(b){if(0===b.length)return"";for(var c=[0],d=0;d<b.length;++d){for(var e=0,g=b[d];e<c.length;++e)g+=c[e]<<8,c[e]=g%f,g=g/f|0;for(;g>0;)c.push(g%f),g=g/f|0}for(var h="",i=0;0===b[i]&&i<b.length-1;++i)h+=a[0];for(var j=c.length-1;j>=0;--j)h+=a[c[j]];return h}function c(a){if(0===a.length)return Buffer.allocUnsafe(0);for(var b=[0],c=0;c<a.length;c++){var d=e[a[c]];if(void 0===d)return;for(var h=0,i=d;h<b.length;++h)i+=b[h]*f,b[h]=255&i,i>>=8;for(;i>0;)b.push(255&i),i>>=8}for(var j=0;a[j]===g&&j<a.length-1;++j)b.push(0);return Buffer.from(b.reverse())}function d(a){var b=c(a);if(b)return b;throw new Error("Non-base"+f+" character")}for(var e={},f=a.length,g=a.charAt(0),h=0;h<a.length;h++){var i=a.charAt(h);if(void 0!==e[i])throw new TypeError(i+" is ambiguous");e[i]=h}return{encode:b,decodeUnsafe:c,decode:d}}},{"safe-buffer":288}],22:[function(a,b,c){"use strict";function d(a){var b=a>>25;return(33554431&a)<<5^996825010&-(b>>0&1)^642813549&-(b>>1&1)^513874426&-(b>>2&1)^1027748829&-(b>>3&1)^705979059&-(b>>4&1)}function e(a){for(var b=1,c=0;c<a.length;++c){var e=a.charCodeAt(c);if(e<33||e>126)throw new Error("Invalid prefix ("+a+")");b=d(b)^e>>5}b=d(b);for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);b=d(b)^31&g}return b}function f(a,b){if(a.length+7+b.length>90)throw new TypeError("Exceeds Bech32 maximum length");a=a.toLowerCase();for(var c=e(a),f=a+"1",g=0;g<b.length;++g){var h=b[g];if(h>>5!==0)throw new Error("Non 5-bit word");c=d(c)^h,f+=k.charAt(h)}for(var i=0;i<6;++i)c=d(c);c^=1;for(var j=0;j<6;++j){var l=c>>5*(5-j)&31;f+=k.charAt(l)}return f}function g(a){if(a.length<8)throw new TypeError(a+" too short");if(a.length>90)throw new TypeError(a+" too long");var b=a.toLowerCase(),c=a.toUpperCase();if(a!==b&&a!==c)throw new Error("Mixed-case string "+a);a=b;var f=a.lastIndexOf("1");if(0===f)throw new Error("Missing prefix for "+a);var g=a.slice(0,f),h=a.slice(f+1);if(h.length<6)throw new Error("Data too short");for(var i=e(g),j=[],k=0;k<h.length;++k){var m=h.charAt(k),n=l[m];if(void 0===n)throw new Error("Unknown character "+m);i=d(i)^n,k+6>=h.length||j.push(n)}if(1!==i)throw new Error("Invalid checksum for "+a);return{prefix:g,words:j}}function h(a,b,c,d){for(var e=0,f=0,g=(1<<c)-1,h=[],i=0;i<a.length;++i)for(e=e<<b|a[i],f+=b;f>=c;)f-=c,h.push(e>>f&g);if(d)f>0&&h.push(e<<c-f&g);else{if(f>=b)throw new Error("Excess padding");if(e<<c-f&g)throw new Error("Non-zero padding")}return h}function i(a){return h(a,8,5,!0)}function j(a){return h(a,5,8,!1)}for(var k="qpzry9x8gf2tvdw0s3jn54khce6mua7l",l={},m=0;m<k.length;m++){var n=k.charAt(m);if(void 0!==l[n])throw new TypeError(n+" is ambiguous");l[n]=m}b.exports={decode:g,encode:f,toWords:i,fromWords:j}},{}],23:[function(a,b,c){function BigInteger(a,b,c){return this instanceof BigInteger?void(null!=a&&("number"==typeof a?this.fromNumber(a,b,c):null==b&&"string"!=typeof a?this.fromString(a,256):this.fromString(a,b))):new BigInteger(a,b,c)}function d(a,b,c,d,e,f){for(;--f>=0;){var g=b*this[a++]+c[d]+e;e=Math.floor(g/67108864),c[d++]=67108863&g}return e}function e(a){return eb.charAt(a)}function f(a,b){var c=fb[a.charCodeAt(b)];return null==c?-1:c}function g(a){for(var b=this.t-1;b>=0;--b)a[b]=this[b];a.t=this.t,a.s=this.s}function h(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+ab:this.t=0}function i(a){var b=new BigInteger;return b.fromInt(a),b}function j(a,b){var c,d=this;if(16==b)c=4;else if(8==b)c=3;else if(256==b)c=8;else if(2==b)c=1;else if(32==b)c=5;else{if(4!=b)return void d.fromRadix(a,b);c=2}d.t=0,d.s=0;for(var e=a.length,g=!1,h=0;--e>=0;){var i=8==c?255&a[e]:f(a,e);i<0?"-"==a.charAt(e)&&(g=!0):(g=!1,0==h?d[d.t++]=i:h+c>d.DB?(d[d.t-1]|=(i&(1<<d.DB-h)-1)<<h,d[d.t++]=i>>d.DB-h):d[d.t-1]|=i<<h,h+=c,h>=d.DB&&(h-=d.DB))}8==c&&0!=(128&a[0])&&(d.s=-1,h>0&&(d[d.t-1]|=(1<<d.DB-h)-1<<h)),d.clamp(),g&&BigInteger.ZERO.subTo(d,d)}function k(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t}function l(a){var b=this;if(b.s<0)return"-"+b.negate().toString(a);var c;if(16==a)c=4;else if(8==a)c=3;else if(2==a)c=1;else if(32==a)c=5;else{if(4!=a)return b.toRadix(a);c=2}var d,f=(1<<c)-1,g=!1,h="",i=b.t,j=b.DB-i*b.DB%c;if(i-- >0)for(j<b.DB&&(d=b[i]>>j)>0&&(g=!0,h=e(d));i>=0;)j<c?(d=(b[i]&(1<<j)-1)<<c-j,d|=b[--i]>>(j+=b.DB-c)):(d=b[i]>>(j-=c)&f,j<=0&&(j+=b.DB,--i)),d>0&&(g=!0),g&&(h+=e(d));return g?h:"0"}function m(){var a=new BigInteger;return BigInteger.ZERO.subTo(this,a),a}function n(){return this.s<0?this.negate():this}function o(a){var b=this.s-a.s;if(0!=b)return b;var c=this.t;if(b=c-a.t,0!=b)return this.s<0?-b:b;for(;--c>=0;)if(0!=(b=this[c]-a[c]))return b;return 0}function p(a){var b,c=1;return 0!=(b=a>>>16)&&(a=b,c+=16),0!=(b=a>>8)&&(a=b,c+=8),0!=(b=a>>4)&&(a=b,c+=4),0!=(b=a>>2)&&(a=b,c+=2),0!=(b=a>>1)&&(a=b,c+=1),c}function q(){return this.t<=0?0:this.DB*(this.t-1)+p(this[this.t-1]^this.s&this.DM)}function r(){return this.bitLength()>>3}function s(a,b){var c;for(c=this.t-1;c>=0;--c)b[c+a]=this[c];for(c=a-1;c>=0;--c)b[c]=0;b.t=this.t+a,b.s=this.s}function t(a,b){for(var c=a;c<this.t;++c)b[c-a]=this[c];b.t=Math.max(this.t-a,0),b.s=this.s}function u(a,b){var c,d=this,e=a%d.DB,f=d.DB-e,g=(1<<f)-1,h=Math.floor(a/d.DB),i=d.s<<e&d.DM;for(c=d.t-1;c>=0;--c)b[c+h+1]=d[c]>>f|i,i=(d[c]&g)<<e;for(c=h-1;c>=0;--c)b[c]=0;b[h]=i,b.t=d.t+h+1,b.s=d.s,b.clamp()}function v(a,b){var c=this;b.s=c.s;var d=Math.floor(a/c.DB);if(d>=c.t)return void(b.t=0);var e=a%c.DB,f=c.DB-e,g=(1<<e)-1;b[0]=c[d]>>e;for(var h=d+1;h<c.t;++h)b[h-d-1]|=(c[h]&g)<<f,b[h-d]=c[h]>>e;e>0&&(b[c.t-d-1]|=(c.s&g)<<f),b.t=c.t-d,b.clamp()}function w(a,b){for(var c=this,d=0,e=0,f=Math.min(a.t,c.t);d<f;)e+=c[d]-a[d],b[d++]=e&c.DM,e>>=c.DB;if(a.t<c.t){for(e-=a.s;d<c.t;)e+=c[d],b[d++]=e&c.DM,e>>=c.DB;e+=c.s}else{for(e+=c.s;d<a.t;)e-=a[d],b[d++]=e&c.DM,e>>=c.DB;e-=a.s}b.s=e<0?-1:0,e<-1?b[d++]=c.DV+e:e>0&&(b[d++]=e),b.t=d,b.clamp()}function x(a,b){var c=this.abs(),d=a.abs(),e=c.t;for(b.t=e+d.t;--e>=0;)b[e]=0;for(e=0;e<d.t;++e)b[e+c.t]=c.am(0,d[e],b,e,0,c.t);b.s=0,b.clamp(),this.s!=a.s&&BigInteger.ZERO.subTo(b,b)}function y(a){for(var b=this.abs(),c=a.t=2*b.t;--c>=0;)a[c]=0;for(c=0;c<b.t-1;++c){var d=b.am(c,b[c],a,2*c,0,1);(a[c+b.t]+=b.am(c+1,2*b[c],a,2*c+1,d,b.t-c-1))>=b.DV&&(a[c+b.t]-=b.DV,a[c+b.t+1]=1)}a.t>0&&(a[a.t-1]+=b.am(c,b[c],a,2*c,0,1)),a.s=0,a.clamp()}function z(a,b,c){var d=this,e=a.abs();if(!(e.t<=0)){var f=d.abs();if(f.t<e.t)return null!=b&&b.fromInt(0),void(null!=c&&d.copyTo(c));null==c&&(c=new BigInteger);var g=new BigInteger,h=d.s,i=a.s,j=d.DB-p(e[e.t-1]);j>0?(e.lShiftTo(j,g),f.lShiftTo(j,c)):(e.copyTo(g),f.copyTo(c));var k=g.t,l=g[k-1];if(0!=l){var m=l*(1<<d.F1)+(k>1?g[k-2]>>d.F2:0),n=d.FV/m,o=(1<<d.F1)/m,q=1<<d.F2,r=c.t,s=r-k,t=null==b?new BigInteger:b;for(g.dlShiftTo(s,t),c.compareTo(t)>=0&&(c[c.t++]=1,c.subTo(t,c)),BigInteger.ONE.dlShiftTo(k,t),t.subTo(g,g);g.t<k;)g[g.t++]=0;for(;--s>=0;){var u=c[--r]==l?d.DM:Math.floor(c[r]*n+(c[r-1]+q)*o);if((c[r]+=g.am(0,u,c,s,0,k))<u)for(g.dlShiftTo(s,t),c.subTo(t,c);c[r]<--u;)c.subTo(t,c)}null!=b&&(c.drShiftTo(k,b),h!=i&&BigInteger.ZERO.subTo(b,b)),c.t=k,c.clamp(),j>0&&c.rShiftTo(j,c),h<0&&BigInteger.ZERO.subTo(c,c)}}}function A(a){var b=new BigInteger;return this.abs().divRemTo(a,null,b),this.s<0&&b.compareTo(BigInteger.ZERO)>0&&a.subTo(b,b),b}function B(a){this.m=a}function C(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a}function D(a){return a}function E(a){a.divRemTo(this.m,null,a)}function F(a,b,c){a.multiplyTo(b,c),this.reduce(c)}function G(a,b){a.squareTo(b),this.reduce(b)}function H(){if(this.t<1)return 0;var a=this[0];if(0==(1&a))return 0;var b=3&a;return b=b*(2-(15&a)*b)&15,b=b*(2-(255&a)*b)&255,b=b*(2-((65535&a)*b&65535))&65535,b=b*(2-a*b%this.DV)%this.DV,b>0?this.DV-b:-b}function I(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function J(a){var b=new BigInteger;return a.abs().dlShiftTo(this.m.t,b),b.divRemTo(this.m,null,b),a.s<0&&b.compareTo(BigInteger.ZERO)>0&&this.m.subTo(b,b),b}function K(a){var b=new BigInteger;return a.copyTo(b),this.reduce(b),b}function L(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var b=0;b<this.m.t;++b){var c=32767&a[b],d=c*this.mpl+((c*this.mph+(a[b]>>15)*this.mpl&this.um)<<15)&a.DM;for(c=b+this.m.t,a[c]+=this.m.am(0,d,a,b,0,this.m.t);a[c]>=a.DV;)a[c]-=a.DV,a[++c]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)}function M(a,b){a.squareTo(b),this.reduce(b)}function N(a,b,c){a.multiplyTo(b,c),this.reduce(c)}function O(){return 0==(this.t>0?1&this[0]:this.s)}function P(a,b){if(a>4294967295||a<1)return BigInteger.ONE;var c=new BigInteger,d=new BigInteger,e=b.convert(this),f=p(a)-1;for(e.copyTo(c);--f>=0;)if(b.sqrTo(c,d),(a&1<<f)>0)b.mulTo(d,e,c);else{var g=c;c=d,d=g}return b.revert(c)}function Q(a,b){var c;return c=a<256||b.isEven()?new B(b):new I(b),this.exp(a,c)}function R(){var a=new BigInteger;return this.copyTo(a),a}function S(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function T(){return 0==this.t?this.s:this[0]<<24>>24}function U(){return 0==this.t?this.s:this[0]<<16>>16}function V(a){return Math.floor(Math.LN2*this.DB/Math.log(a))}function W(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function X(a){if(null==a&&(a=10),0==this.signum()||a<2||a>36)return"0";var b=this.chunkSize(a),c=Math.pow(a,b),d=i(c),e=new BigInteger,f=new BigInteger,g="";for(this.divRemTo(d,e,f);e.signum()>0;)g=(c+f.intValue()).toString(a).substr(1)+g,e.divRemTo(d,e,f);return f.intValue().toString(a)+g}function Y(a,b){var c=this;c.fromInt(0),null==b&&(b=10);for(var d=c.chunkSize(b),e=Math.pow(b,d),g=!1,h=0,i=0,j=0;j<a.length;++j){var k=f(a,j);k<0?"-"==a.charAt(j)&&0==c.signum()&&(g=!0):(i=b*i+k,++h>=d&&(c.dMultiply(e),c.dAddOffset(i,0),h=0,i=0))}h>0&&(c.dMultiply(Math.pow(b,h)),c.dAddOffset(i,0)),g&&BigInteger.ZERO.subTo(c,c)}function Z(a,b,c){var d=this;if("number"==typeof b)if(a<2)d.fromInt(1);else for(d.fromNumber(a,c),d.testBit(a-1)||d.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),fa,d),d.isEven()&&d.dAddOffset(1,0);!d.isProbablePrime(b);)d.dAddOffset(2,0),d.bitLength()>a&&d.subTo(BigInteger.ONE.shiftLeft(a-1),d);else{var e=new Array,f=7&a;e.length=(a>>3)+1,b.nextBytes(e),f>0?e[0]&=(1<<f)-1:e[0]=0,d.fromString(e,256)}}function $(){var a=this,b=a.t,c=new Array;c[0]=a.s;var d,e=a.DB-b*a.DB%8,f=0;if(b-- >0)for(e<a.DB&&(d=a[b]>>e)!=(a.s&a.DM)>>e&&(c[f++]=d|a.s<<a.DB-e);b>=0;)e<8?(d=(a[b]&(1<<e)-1)<<8-e,d|=a[--b]>>(e+=a.DB-8)):(d=a[b]>>(e-=8)&255,e<=0&&(e+=a.DB,--b)),0!=(128&d)&&(d|=-256),0===f&&(128&a.s)!=(128&d)&&++f,(f>0||d!=a.s)&&(c[f++]=d);return c}function _(a){return 0==this.compareTo(a)}function aa(a){return this.compareTo(a)<0?this:a}function ba(a){return this.compareTo(a)>0?this:a}function ca(a,b,c){var d,e,f=this,g=Math.min(a.t,f.t);for(d=0;d<g;++d)c[d]=b(f[d],a[d]);if(a.t<f.t){for(e=a.s&f.DM,d=g;d<f.t;++d)c[d]=b(f[d],e);c.t=f.t}else{for(e=f.s&f.DM,d=g;d<a.t;++d)c[d]=b(e,a[d]);c.t=a.t}c.s=b(f.s,a.s),c.clamp()}function da(a,b){return a&b}function ea(a){var b=new BigInteger;return this.bitwiseTo(a,da,b),b}function fa(a,b){return a|b}function ga(a){var b=new BigInteger;return this.bitwiseTo(a,fa,b),b}function ha(a,b){return a^b}function ia(a){var b=new BigInteger;return this.bitwiseTo(a,ha,b),b}function ja(a,b){return a&~b}function ka(a){var b=new BigInteger;return this.bitwiseTo(a,ja,b),b}function la(){for(var a=new BigInteger,b=0;b<this.t;++b)a[b]=this.DM&~this[b];return a.t=this.t,a.s=~this.s,a}function ma(a){var b=new BigInteger;return a<0?this.rShiftTo(-a,b):this.lShiftTo(a,b),b}function na(a){var b=new BigInteger;return a<0?this.lShiftTo(-a,b):this.rShiftTo(a,b),b}function oa(a){if(0==a)return-1;var b=0;return 0==(65535&a)&&(a>>=16,b+=16),0==(255&a)&&(a>>=8,b+=8),0==(15&a)&&(a>>=4,b+=4),0==(3&a)&&(a>>=2,b+=2),0==(1&a)&&++b,b}function pa(){for(var a=0;a<this.t;++a)if(0!=this[a])return a*this.DB+oa(this[a]);return this.s<0?this.t*this.DB:-1}function qa(a){for(var b=0;0!=a;)a&=a-1,++b;return b}function ra(){for(var a=0,b=this.s&this.DM,c=0;c<this.t;++c)a+=qa(this[c]^b);return a}function sa(a){var b=Math.floor(a/this.DB);return b>=this.t?0!=this.s:0!=(this[b]&1<<a%this.DB)}function ta(a,b){var c=BigInteger.ONE.shiftLeft(a);return this.bitwiseTo(c,b,c),c}function ua(a){return this.changeBit(a,fa)}function va(a){return this.changeBit(a,ja)}function wa(a){return this.changeBit(a,ha)}function xa(a,b){for(var c=this,d=0,e=0,f=Math.min(a.t,c.t);d<f;)e+=c[d]+a[d],b[d++]=e&c.DM,e>>=c.DB;if(a.t<c.t){for(e+=a.s;d<c.t;)e+=c[d],b[d++]=e&c.DM,e>>=c.DB;e+=c.s}else{for(e+=c.s;d<a.t;)e+=a[d],b[d++]=e&c.DM,e>>=c.DB;e+=a.s}b.s=e<0?-1:0,e>0?b[d++]=e:e<-1&&(b[d++]=c.DV+e),b.t=d,b.clamp()}function ya(a){var b=new BigInteger;return this.addTo(a,b),b}function za(a){var b=new BigInteger;return this.subTo(a,b),b}function Aa(a){var b=new BigInteger;return this.multiplyTo(a,b),b}function Ba(){var a=new BigInteger;return this.squareTo(a),a}function Ca(a){var b=new BigInteger;return this.divRemTo(a,b,null),b}function Da(a){var b=new BigInteger;return this.divRemTo(a,null,b),b}function Ea(a){var b=new BigInteger,c=new BigInteger;return this.divRemTo(a,b,c),new Array(b,c)}function Fa(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()}function Ga(a,b){if(0!=a){for(;this.t<=b;)this[this.t++]=0;for(this[b]+=a;this[b]>=this.DV;)this[b]-=this.DV,++b>=this.t&&(this[this.t++]=0),++this[b]}}function Ha(){}function Ia(a){return a}function Ja(a,b,c){a.multiplyTo(b,c)}function Ka(a,b){a.squareTo(b)}function La(a){return this.exp(a,new Ha)}function Ma(a,b,c){var d=Math.min(this.t+a.t,b);for(c.s=0,c.t=d;d>0;)c[--d]=0;var e;for(e=c.t-this.t;d<e;++d)c[d+this.t]=this.am(0,a[d],c,d,0,this.t);for(e=Math.min(a.t,b);d<e;++d)this.am(0,a[d],c,d,0,b-d);c.clamp()}function Na(a,b,c){--b;var d=c.t=this.t+a.t-b;for(c.s=0;--d>=0;)c[d]=0;for(d=Math.max(b-this.t,0);d<a.t;++d)c[this.t+d-b]=this.am(b-d,a[d],c,0,0,this.t+d-b);c.clamp(),c.drShiftTo(1,c)}function Oa(a){this.r2=new BigInteger,this.q3=new BigInteger,BigInteger.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}function Pa(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var b=new BigInteger;return a.copyTo(b),this.reduce(b),b}function Qa(a){return a}function Ra(a){var b=this;for(a.drShiftTo(b.m.t-1,b.r2),a.t>b.m.t+1&&(a.t=b.m.t+1,a.clamp()),b.mu.multiplyUpperTo(b.r2,b.m.t+1,b.q3),b.m.multiplyLowerTo(b.q3,b.m.t+1,b.r2);a.compareTo(b.r2)<0;)a.dAddOffset(1,b.m.t+1);for(a.subTo(b.r2,a);a.compareTo(b.m)>=0;)a.subTo(b.m,a)}function Sa(a,b){a.squareTo(b),this.reduce(b)}function Ta(a,b,c){a.multiplyTo(b,c),this.reduce(c)}function Ua(a,b){var c,d,e=a.bitLength(),f=i(1);if(e<=0)return f;c=e<18?1:e<48?3:e<144?4:e<768?5:6,d=e<8?new B(b):b.isEven()?new Oa(b):new I(b);var g=new Array,h=3,j=c-1,k=(1<<c)-1;if(g[1]=d.convert(this),c>1){var l=new BigInteger;for(d.sqrTo(g[1],l);h<=k;)g[h]=new BigInteger,d.mulTo(l,g[h-2],g[h]),h+=2}var m,n,o=a.t-1,q=!0,r=new BigInteger;for(e=p(a[o])-1;o>=0;){for(e>=j?m=a[o]>>e-j&k:(m=(a[o]&(1<<e+1)-1)<<j-e,o>0&&(m|=a[o-1]>>this.DB+e-j)),h=c;0==(1&m);)m>>=1,--h;if((e-=h)<0&&(e+=this.DB,--o),q)g[m].copyTo(f),q=!1;else{for(;h>1;)d.sqrTo(f,r),d.sqrTo(r,f),h-=2;h>0?d.sqrTo(f,r):(n=f,f=r,r=n),d.mulTo(r,g[m],f)}for(;o>=0&&0==(a[o]&1<<e);)d.sqrTo(f,r),n=f,f=r,r=n,--e<0&&(e=this.DB-1,--o)}return d.revert(f)}function Va(a){var b=this.s<0?this.negate():this.clone(),c=a.s<0?a.negate():a.clone();if(b.compareTo(c)<0){var d=b;b=c,c=d}var e=b.getLowestSetBit(),f=c.getLowestSetBit();if(f<0)return b;for(e<f&&(f=e),f>0&&(b.rShiftTo(f,b),c.rShiftTo(f,c));b.signum()>0;)(e=b.getLowestSetBit())>0&&b.rShiftTo(e,b),(e=c.getLowestSetBit())>0&&c.rShiftTo(e,c),b.compareTo(c)>=0?(b.subTo(c,b),b.rShiftTo(1,b)):(c.subTo(b,c),c.rShiftTo(1,c));return f>0&&c.lShiftTo(f,c),c}function Wa(a){if(a<=0)return 0;var b=this.DV%a,c=this.s<0?a-1:0;if(this.t>0)if(0==b)c=this[0]%a;else for(var d=this.t-1;d>=0;--d)c=(b*c+this[d])%a;return c}function Xa(a){var b=a.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&b||0==a.signum())return BigInteger.ZERO;for(var c=a.clone(),d=this.clone(),e=i(1),f=i(0),g=i(0),h=i(1);0!=c.signum();){for(;c.isEven();)c.rShiftTo(1,c),b?(e.isEven()&&f.isEven()||(e.addTo(this,e),f.subTo(a,f)),e.rShiftTo(1,e)):f.isEven()||f.subTo(a,f),f.rShiftTo(1,f);for(;d.isEven();)d.rShiftTo(1,d),b?(g.isEven()&&h.isEven()||(g.addTo(this,g),h.subTo(a,h)),g.rShiftTo(1,g)):h.isEven()||h.subTo(a,h),h.rShiftTo(1,h);c.compareTo(d)>=0?(c.subTo(d,c),b&&e.subTo(g,e),f.subTo(h,f)):(d.subTo(c,d),b&&g.subTo(e,g),h.subTo(f,h))}if(0!=d.compareTo(BigInteger.ONE))return BigInteger.ZERO;for(;h.compareTo(a)>=0;)h.subTo(a,h);for(;h.signum()<0;)h.addTo(a,h);return h}function Ya(a){var b,c=this.abs();if(1==c.t&&c[0]<=gb[gb.length-1]){for(b=0;b<gb.length;++b)if(c[0]==gb[b])return!0;return!1}if(c.isEven())return!1;for(b=1;b<gb.length;){for(var d=gb[b],e=b+1;e<gb.length&&d<hb;)d*=gb[e++];for(d=c.modInt(d);b<e;)if(d%gb[b++]==0)return!1}return c.millerRabin(a)}function Za(a){var b=this.subtract(BigInteger.ONE),c=b.getLowestSetBit();if(c<=0)return!1;var d=b.shiftRight(c);a=a+1>>1,a>gb.length&&(a=gb.length);for(var e,f=new BigInteger(null),g=[],h=0;h<a;++h){for(;e=gb[Math.floor(Math.random()*gb.length)],g.indexOf(e)!=-1;);g.push(e),f.fromInt(e);var i=f.modPow(d,this);if(0!=i.compareTo(BigInteger.ONE)&&0!=i.compareTo(b)){for(var e=1;e++<c&&0!=i.compareTo(b);)if(i=i.modPowInt(2,this),0==i.compareTo(BigInteger.ONE))return!1;if(0!=i.compareTo(b))return!1}}return!0}var $a=BigInteger.prototype;$a.__bigi=a("../package.json").version,BigInteger.isBigInteger=function(a,b){return a&&a.__bigi&&(!b||a.__bigi===$a.__bigi)};var _a;BigInteger.prototype.am=d,_a=26,BigInteger.prototype.DB=_a,BigInteger.prototype.DM=(1<<_a)-1;var ab=BigInteger.prototype.DV=1<<_a,bb=52;BigInteger.prototype.FV=Math.pow(2,bb),BigInteger.prototype.F1=bb-_a,BigInteger.prototype.F2=2*_a-bb;var cb,db,eb="0123456789abcdefghijklmnopqrstuvwxyz",fb=new Array;for(cb="0".charCodeAt(0),db=0;db<=9;++db)fb[cb++]=db;for(cb="a".charCodeAt(0),db=10;db<36;++db)fb[cb++]=db;for(cb="A".charCodeAt(0),db=10;db<36;++db)fb[cb++]=db;B.prototype.convert=C,B.prototype.revert=D,B.prototype.reduce=E,B.prototype.mulTo=F,B.prototype.sqrTo=G,I.prototype.convert=J,I.prototype.revert=K,I.prototype.reduce=L,I.prototype.mulTo=N,I.prototype.sqrTo=M,$a.copyTo=g,$a.fromInt=h,$a.fromString=j,$a.clamp=k,$a.dlShiftTo=s,$a.drShiftTo=t,$a.lShiftTo=u,$a.rShiftTo=v,$a.subTo=w,$a.multiplyTo=x,$a.squareTo=y,$a.divRemTo=z,$a.invDigit=H,$a.isEven=O,$a.exp=P,$a.toString=l,$a.negate=m,$a.abs=n,$a.compareTo=o,$a.bitLength=q,$a.byteLength=r,$a.mod=A,$a.modPowInt=Q,Ha.prototype.convert=Ia,Ha.prototype.revert=Ia,Ha.prototype.mulTo=Ja,Ha.prototype.sqrTo=Ka,Oa.prototype.convert=Pa,Oa.prototype.revert=Qa,Oa.prototype.reduce=Ra,Oa.prototype.mulTo=Ta,Oa.prototype.sqrTo=Sa;var gb=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],hb=(1<<26)/gb[gb.length-1];$a.chunkSize=V,$a.toRadix=X,$a.fromRadix=Y,$a.fromNumber=Z,$a.bitwiseTo=ca,$a.changeBit=ta,$a.addTo=xa,$a.dMultiply=Fa,$a.dAddOffset=Ga,$a.multiplyLowerTo=Ma,$a.multiplyUpperTo=Na,$a.modInt=Wa,$a.millerRabin=Za,$a.clone=R,$a.intValue=S,$a.byteValue=T,$a.shortValue=U,$a.signum=W,$a.toByteArray=$,$a.equals=_,$a.min=aa,$a.max=ba,$a.and=ea,$a.or=ga,$a.xor=ia,$a.andNot=ka,$a.not=la,$a.shiftLeft=ma,$a.shiftRight=na,$a.getLowestSetBit=pa,$a.bitCount=ra,$a.testBit=sa,$a.setBit=ua,$a.clearBit=va,$a.flipBit=wa,$a.add=ya,$a.subtract=za,$a.multiply=Aa,$a.divide=Ca,$a.remainder=Da,$a.divideAndRemainder=Ea,$a.modPow=Ua,$a.modInverse=Xa,$a.pow=La,$a.gcd=Va,$a.isProbablePrime=Ya,$a.square=Ba,BigInteger.ZERO=i(0),BigInteger.ONE=i(1),BigInteger.valueOf=i,b.exports=BigInteger},{"../package.json":26}],24:[function(a,b,c){(function(Buffer){var b=a("assert"),BigInteger=a("./bigi");BigInteger.fromByteArrayUnsigned=function(a){return new BigInteger(128&a[0]?[0].concat(a):a)},BigInteger.prototype.toByteArrayUnsigned=function(){var a=this.toByteArray();return 0===a[0]?a.slice(1):a},BigInteger.fromDERInteger=function(a){return new BigInteger(a)},BigInteger.prototype.toDERInteger=BigInteger.prototype.toByteArray,BigInteger.fromBuffer=function(a){if(128&a[0]){var b=Array.prototype.slice.call(a);return new BigInteger([0].concat(b))}return new BigInteger(a)},BigInteger.fromHex=function(a){return""===a?BigInteger.ZERO:(b.equal(a,a.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),b.equal(a.length%2,0,"Incomplete hex"),new BigInteger(a,16))},BigInteger.prototype.toBuffer=function(a){for(var b=this.toByteArrayUnsigned(),c=[],d=a-b.length;c.length<d;)c.push(0);return new Buffer(c.concat(b))},BigInteger.prototype.toHex=function(a){return this.toBuffer(a).toString("hex")}}).call(this,a("buffer").Buffer)},{"./bigi":23,assert:19,buffer:104}],25:[function(a,b,c){var BigInteger=a("./bigi");a("./convert"),b.exports=BigInteger},{"./bigi":23,"./convert":24}],26:[function(a,b,c){b.exports={_args:[[{raw:"bigi@^1.4.0",scope:null,escapedName:"bigi",name:"bigi",rawSpec:"^1.4.0",spec:">=1.4.0 <2.0.0",type:"range"},"/work/blocktrail-sdk-nodejs/node_modules/bitcoinjs-lib"]],_from:"bigi@>=1.4.0 <2.0.0",_id:"[email protected]",_inCache:!0,_location:"/bigi",_nodeVersion:"6.1.0",_npmOperationalInternal:{host:"packages-12-west.internal.npmjs.com",tmp:"tmp/bigi-1.4.2.tgz_1469584192413_0.6801238611806184"},_npmUser:{name:"jprichardson",email:"[email protected]"},_npmVersion:"3.8.6",_phantomChildren:{},_requested:{raw:"bigi@^1.4.0",scope:null,escapedName:"bigi",name:"bigi",rawSpec:"^1.4.0",spec:">=1.4.0 <2.0.0",type:"range"},_requiredBy:["/bitcoinjs-lib","/ecurve"],_resolved:"https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz",_shasum:"9c665a95f88b8b08fc05cfd731f561859d725825",_shrinkwrap:null,_spec:"bigi@^1.4.0",_where:"/work/blocktrail-sdk-nodejs/node_modules/bitcoinjs-lib",bugs:{url:"https://github.com/cryptocoinjs/bigi/issues"},dependencies:{},description:"Big integers.",devDependencies:{coveralls:"^2.11.2",istanbul:"^0.3.5",jshint:"^2.5.1",mocha:"^2.1.0",mochify:"^2.1.0"},directories:{},dist:{shasum:"9c665a95f88b8b08fc05cfd731f561859d725825",tarball:"https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz"},gitHead:"c25308081c896ff84702303722bf5ecd8b3f78e3",homepage:"https://github.com/cryptocoinjs/bigi#readme",keywords:["cryptography","math","bitcoin","arbitrary","precision","arithmetic","big","integer","int","number","biginteger","bigint","bignumber","decimal","float"],main:"./lib/index.js",maintainers:[{name:"midnightlightning",email:"[email protected]"},{name:"sidazhang",email:"[email protected]"},{name:"nadav",email:"[email protected]"},{name:"jprichardson",email:"[email protected]"}],name:"bigi",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{url:"git+https://github.com/cryptocoinjs/bigi.git",type:"git"},scripts:{"browser-test":"mochify --wd -R spec",coverage:"istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",coveralls:"npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info",jshint:"jshint --config jshint.json lib/*.js ; true",test:"_mocha -- test/*.js",unit:"mocha"},testling:{files:"test/*.js",harness:"mocha",browsers:["ie/9..latest","firefox/latest","chrome/latest","safari/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},version:"1.4.2"}},{}],27:[function(a,b,c){(function(Buffer){var c=a("./lib/index"),d=a("./sjcl"),e=a("assert");e("function"==typeof d.hash.sha512);var f=function(a){var b=new d.misc.hmac(a,d.hash.sha512);this.encrypt=function(){return b.encrypt.apply(b,arguments)}};c.setPbkdf2(function(a,b,c,e,g){var h;switch(g){case"sha512":h=f;break;default:throw new Error("Digest ["+g+"] not implemented")}var i=d.misc.pbkdf2(d.codec.utf8String.toBits(a),d.codec.utf8String.toBits(b),c,8*e,h);return new Buffer(d.codec.hex.fromBits(i),"hex")}),b.exports={salt:c.salt,mnemonicToSeed:c.mnemonicToSeed,mnemonicToSeedHex:c.mnemonicToSeedHex,mnemonicToEntropy:c.mnemonicToEntropy,entropyToMnemonic:c.entropyToMnemonic,generateMnemonic:c.generateMnemonic,validateMnemonic:c.validateMnemonic}}).call(this,a("buffer").Buffer)},{"./lib/index":28,"./sjcl":29,assert:19,buffer:104}],28:[function(a,b,c){(function(Buffer){function c(a){n=a}function d(a,b){return n(a,k(b),2048,64,"sha512")}function e(a,b){return d(a,b).toString("hex")}function f(a,b){b=b||s;var c=a.split(" ");o(c.length%3===0,"Invalid mnemonic");var d=c.every(function(a){return b.indexOf(a)>-1});o(d,"Invalid mnemonic");var e=c.map(function(a){var c=b.indexOf(a);return m(c.toString(2),"0",11)}).join(""),f=32*Math.floor(e.length/33),g=e.slice(0,f),h=e.slice(f),i=g.match(/(.{1,8})/g).map(function(a){return parseInt(a,2)}),k=new Buffer(i),l=j(k);return o(l===h,"Invalid mnemonic checksum"),k.toString("hex")}function g(a,b){b=b||s;var c=new Buffer(a,"hex"),d=l([].slice.call(c)),e=j(c),f=d+e,g=f.match(/(.{1,11})/g),h=g.map(function(a){var c=parseInt(a,2);return b[c]});return h.join(" ")}function h(a,b,c){a=a||128,b=b||q;var d=b(a/8).toString("hex");return g(d,c)}function i(a,b){try{f(a,b)}catch(a){return!1}return!0}function j(a){var b=p("sha256").update(a).digest(),c=8*a.length,d=c/32;return l([].slice.call(b)).slice(0,d)}function k(a){return"mnemonic"+(r.nfkd(a)||"")}function l(a){return a.map(function(a){return m(a.toString(2),"0",8)}).join("")}function m(a,b,c){for(;a.length<c;)a=b+a;return a}var n,o=a("assert"),p=a("create-hash"),q=a("randombytes"),r=a("unorm"),s=a("../wordlists/en.json");b.exports={setPbkdf2:c,salt:k,mnemonicToSeed:d,mnemonicToSeedHex:e,mnemonicToEntropy:f,entropyToMnemonic:g,generateMnemonic:h,validateMnemonic:i}}).call(this,a("buffer").Buffer)},{"../wordlists/en.json":30,assert:19,buffer:104,"create-hash":110,randombytes:271,unorm:314}],29:[function(a,b,c){"use strict";function d(a){throw a}function e(a,b,c){4!==b.length&&d(new m.exception.invalid("invalid aes block size"));var e=a.b[c],f=b[0]^e[0],g=b[c?3:1]^e[1],h=b[2]^e[2];b=b[c?1:3]^e[3];var i,j,k,l,n=e.length/4-2,o=4,p=[0,0,0,0];i=a.o[c],a=i[0];var q=i[1],r=i[2],s=i[3],t=i[4];for(l=0;l<n;l++)i=a[f>>>24]^q[g>>16&255]^r[h>>8&255]^s[255&b]^e[o],j=a[g>>>24]^q[h>>16&255]^r[b>>8&255]^s[255&f]^e[o+1],k=a[h>>>24]^q[b>>16&255]^r[f>>8&255]^s[255&g]^e[o+2],b=a[b>>>24]^q[f>>16&255]^r[g>>8&255]^s[255&h]^e[o+3],o+=4,f=i,g=j,h=k;for(l=0;4>l;l++)p[c?3&-l:l]=t[f>>>24]<<24^t[g>>16&255]<<16^t[h>>8&255]<<8^t[255&b]^e[o++],i=f,f=g,g=h,h=b,b=i;return p}function f(a,b){var c,d=m.random.D[a],e=[];for(c in d)d.hasOwnProperty(c)&&e.push(d[c]);for(c=0;c<e.length;c++)e[c](b)}function g(a){"undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now?m.random.addEntropy(window.performance.now(),a,"loadtime"):m.random.addEntropy((new Date).valueOf(),a,"loadtime")}function h(a){a.b=i(a).concat(i(a)),a.F=new m.cipher.aes(a.b)}function i(a){for(var b=0;4>b&&(a.i[b]=a.i[b]+1|0,!a.i[b]);b++);return a.F.encrypt(a.i)}function j(a,b){return function(){b.apply(a,arguments)}}var k=void 0,l=!1,m={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},
5
codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message},this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message},this.message=a},bug:function(a){this.toString=function(){return"BUG: "+this.message},this.message=a},notReady:function(a){this.toString=function(){return"NOT READY: "+this.message},this.message=a}}};"undefined"!=typeof b&&b.exports&&(b.exports=m),"function"==typeof define&&define([],function(){return m}),m.cipher.aes=function(a){this.o[0][0][0]||this.t();var b,c,e,f,g=this.o[0][4],h=this.o[1];b=a.length;var i=1;for(4!==b&&6!==b&&8!==b&&d(new m.exception.invalid("invalid aes key size")),this.b=[e=a.slice(0),f=[]],a=b;a<4*b+28;a++)c=e[a-1],(0===a%b||8===b&&4===a%b)&&(c=g[c>>>24]<<24^g[c>>16&255]<<16^g[c>>8&255]<<8^g[255&c],0===a%b&&(c=c<<8^c>>>24^i<<24,i=i<<1^283*(i>>7))),e[a]=e[a-b]^c;for(b=0;a;b++,a--)c=e[3&b?a:a-4],f[b]=4>=a||4>b?c:h[0][g[c>>>24]]^h[1][g[c>>16&255]]^h[2][g[c>>8&255]]^h[3][g[255&c]]},m.cipher.aes.prototype={encrypt:function(a){return e(this,a,0)},decrypt:function(a){return e(this,a,1)},o:[[[],[],[],[],[]],[[],[],[],[],[]]],t:function(){var a,b,c,d,e,f,g,h=this.o[0],i=this.o[1],j=h[4],k=i[4],l=[],m=[];for(a=0;256>a;a++)m[(l[a]=a<<1^283*(a>>7))^a]=a;for(b=c=0;!j[b];b^=d||1,c=m[c]||1)for(f=c^c<<1^c<<2^c<<3^c<<4,f=f>>8^255&f^99,j[b]=f,k[f]=b,e=l[a=l[d=l[b]]],g=16843009*e^65537*a^257*d^16843008*b,e=257*l[f]^16843008*f,a=0;4>a;a++)h[a][b]=e=e<<24^e>>>8,i[a][f]=g=g<<24^g>>>8;for(a=0;5>a;a++)h[a]=h[a].slice(0),i[a]=i[a].slice(0)}},m.bitArray={bitSlice:function(a,b,c){return a=m.bitArray.R(a.slice(b/32),32-(31&b)).slice(1),c===k?a:m.bitArray.clamp(a,c-b)},extract:function(a,b,c){var d=Math.floor(-b-c&31);return((b+c-1^b)&-32?a[b/32|0]<<32-d^a[b/32+1|0]>>>d:a[b/32|0]>>>d)&(1<<c)-1},concat:function(a,b){if(0===a.length||0===b.length)return a.concat(b);var c=a[a.length-1],d=m.bitArray.getPartial(c);return 32===d?a.concat(b):m.bitArray.R(b,d,0|c,a.slice(0,a.length-1))},bitLength:function(a){var b=a.length;return 0===b?0:32*(b-1)+m.bitArray.getPartial(a[b-1])},clamp:function(a,b){if(32*a.length<b)return a;a=a.slice(0,Math.ceil(b/32));var c=a.length;return b&=31,0<c&&b&&(a[c-1]=m.bitArray.partial(b,a[c-1]&2147483648>>b-1,1)),a},partial:function(a,b,c){return 32===a?b:(c?0|b:b<<32-a)+1099511627776*a},getPartial:function(a){return Math.round(a/1099511627776)||32},equal:function(a,b){if(m.bitArray.bitLength(a)!==m.bitArray.bitLength(b))return l;var c,d=0;for(c=0;c<a.length;c++)d|=a[c]^b[c];return 0===d},R:function(a,b,c,d){var e;for(e=0,d===k&&(d=[]);32<=b;b-=32)d.push(c),c=0;if(0===b)return d.concat(a);for(e=0;e<a.length;e++)d.push(c|a[e]>>>b),c=a[e]<<32-b;return e=a.length?a[a.length-1]:0,a=m.bitArray.getPartial(e),d.push(m.bitArray.partial(b+a&31,32<b+a?c:d.pop(),1)),d},j:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]]},byteswapM:function(a){var b,c;for(b=0;b<a.length;++b)c=a[b],a[b]=c>>>24|c>>>8&65280|(65280&c)<<8|c<<24;return a}},m.codec.utf8String={fromBits:function(a){var b,c,d="",e=m.bitArray.bitLength(a);for(b=0;b<e/8;b++)0===(3&b)&&(c=a[b/4]),d+=String.fromCharCode(c>>>24),c<<=8;return decodeURIComponent(escape(d))},toBits:function(a){a=unescape(encodeURIComponent(a));var b,c=[],d=0;for(b=0;b<a.length;b++)d=d<<8|a.charCodeAt(b),3===(3&b)&&(c.push(d),d=0);return 3&b&&c.push(m.bitArray.partial(8*(3&b),d)),c}},m.codec.hex={fromBits:function(a){var b,c="";for(b=0;b<a.length;b++)c+=((0|a[b])+0xf00000000000).toString(16).substr(4);return c.substr(0,m.bitArray.bitLength(a)/4)},toBits:function(a){var b,c,d=[];for(a=a.replace(/\s|0x/g,""),c=a.length,a+="00000000",b=0;b<a.length;b+=8)d.push(0^parseInt(a.substr(b,8),16));return m.bitArray.clamp(d,4*c)}},m.codec.base64={M:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(a,b,c){var d="",e=0,f=m.codec.base64.M,g=0,h=m.bitArray.bitLength(a);for(c&&(f=f.substr(0,62)+"-_"),c=0;6*d.length<h;)d+=f.charAt((g^a[c]>>>e)>>>26),6>e?(g=a[c]<<6-e,e+=26,c++):(g<<=6,e-=6);for(;3&d.length&&!b;)d+="=";return d},toBits:function(a,b){a=a.replace(/\s|=/g,"");var c,e,f=[],g=0,h=m.codec.base64.M,i=0;for(b&&(h=h.substr(0,62)+"-_"),c=0;c<a.length;c++)e=h.indexOf(a.charAt(c)),0>e&&d(new m.exception.invalid("this isn't base64!")),26<g?(g-=26,f.push(i^e>>>g),i=e<<32-g):(g+=6,i^=e<<32-g);return 56&g&&f.push(m.bitArray.partial(56&g,i,1)),f}},m.codec.base64url={fromBits:function(a){return m.codec.base64.fromBits(a,1,1)},toBits:function(a){return m.codec.base64.toBits(a,1)}},m.hash.sha256=function(a){this.b[0]||this.t(),a?(this.e=a.e.slice(0),this.d=a.d.slice(0),this.c=a.c):this.reset()},m.hash.sha256.hash=function(a){return(new m.hash.sha256).update(a).finalize()},m.hash.sha256.prototype={blockSize:512,reset:function(){return this.e=this.l.slice(0),this.d=[],this.c=0,this},update:function(a){"string"==typeof a&&(a=m.codec.utf8String.toBits(a));var b,c=this.d=m.bitArray.concat(this.d,a);for(b=this.c,a=this.c=b+m.bitArray.bitLength(a),b=512+b&-512;b<=a;b+=512)this.r(c.splice(0,16));return this},finalize:function(){var a,b=this.d,c=this.e,b=m.bitArray.concat(b,[m.bitArray.partial(1,1)]);for(a=b.length+2;15&a;a++)b.push(0);for(b.push(Math.floor(this.c/4294967296)),b.push(0|this.c);b.length;)this.r(b.splice(0,16));return this.reset(),c},l:[],b:[],t:function(){function a(a){return 4294967296*(a-Math.floor(a))|0}var b,c=0,d=2;a:for(;64>c;d++){for(b=2;b*b<=d;b++)if(0===d%b)continue a;8>c&&(this.l[c]=a(Math.pow(d,.5))),this.b[c]=a(Math.pow(d,1/3)),c++}},r:function(a){var b,c,d=a.slice(0),e=this.e,f=this.b,g=e[0],h=e[1],i=e[2],j=e[3],k=e[4],l=e[5],m=e[6],n=e[7];for(a=0;64>a;a++)16>a?b=d[a]:(b=d[a+1&15],c=d[a+14&15],b=d[15&a]=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(c>>>17^c>>>19^c>>>10^c<<15^c<<13)+d[15&a]+d[a+9&15]|0),b=b+n+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(m^k&(l^m))+f[a],n=m,m=l,l=k,k=j+b|0,j=i,i=h,h=g,g=b+(h&i^j&(h^i))+(h>>>2^h>>>13^h>>>22^h<<30^h<<19^h<<10)|0;e[0]=e[0]+g|0,e[1]=e[1]+h|0,e[2]=e[2]+i|0,e[3]=e[3]+j|0,e[4]=e[4]+k|0,e[5]=e[5]+l|0,e[6]=e[6]+m|0,e[7]=e[7]+n|0}},m.hash.sha512=function(a){this.b[0]||this.t(),a?(this.e=a.e.slice(0),this.d=a.d.slice(0),this.c=a.c):this.reset()},m.hash.sha512.hash=function(a){return(new m.hash.sha512).update(a).finalize()},m.hash.sha512.prototype={blockSize:1024,reset:function(){return this.e=this.l.slice(0),this.d=[],this.c=0,this},update:function(a){"string"==typeof a&&(a=m.codec.utf8String.toBits(a));var b,c=this.d=m.bitArray.concat(this.d,a);for(b=this.c,a=this.c=b+m.bitArray.bitLength(a),b=1024+b&-1024;b<=a;b+=1024)this.r(c.splice(0,32));return this},finalize:function(){var a,b=this.d,c=this.e,b=m.bitArray.concat(b,[m.bitArray.partial(1,1)]);for(a=b.length+4;31&a;a++)b.push(0);for(b.push(0),b.push(0),b.push(Math.floor(this.c/4294967296)),b.push(0|this.c);b.length;)this.r(b.splice(0,32));return this.reset(),c},l:[],ca:[12372232,13281083,9762859,1914609,15106769,4090911,4308331,8266105],b:[],ea:[2666018,15689165,5061423,9034684,4764984,380953,1658779,7176472,197186,7368638,14987916,16757986,8096111,1480369,13046325,6891156,15813330,5187043,9229749,11312229,2818677,10937475,4324308,1135541,6741931,11809296,16458047,15666916,11046850,698149,229999,945776,13774844,2541862,12856045,9810911,11494366,7844520,15576806,8533307,15795044,4337665,16291729,5553712,15684120,6662416,7413802,12308920,13816008,4303699,9366425,10176680,13195875,4295371,6546291,11712675,15708924,1519456,15772530,6568428,6495784,8568297,13007125,7492395,2515356,12632583,14740254,7262584,1535930,13146278,16321966,1853211,294276,13051027,13221564,1051980,4080310,6651434,14088940,4675607],t:function(){function a(a){return 4294967296*(a-Math.floor(a))|0}function b(a){return 1099511627776*(a-Math.floor(a))&255}var c,d=0,e=2;a:for(;80>d;e++){for(c=2;c*c<=e;c++)if(0===e%c)continue a;8>d&&(this.l[2*d]=a(Math.pow(e,.5)),this.l[2*d+1]=b(Math.pow(e,.5))<<24|this.ca[d]),this.b[2*d]=a(Math.pow(e,1/3)),this.b[2*d+1]=b(Math.pow(e,1/3))<<24|this.ea[d],d++}},r:function(a){var b,c,d=a.slice(0),e=this.e,f=this.b,g=e[0],h=e[1],i=e[2],j=e[3],k=e[4],l=e[5],m=e[6],n=e[7],o=e[8],p=e[9],q=e[10],r=e[11],s=e[12],t=e[13],u=e[14],v=e[15],w=g,x=h,y=i,z=j,A=k,B=l,C=m,D=n,E=o,F=p,G=q,H=r,I=s,J=t,K=u,L=v;for(a=0;80>a;a++){if(16>a)b=d[2*a],c=d[2*a+1];else{c=d[2*(a-15)];var M=d[2*(a-15)+1];b=(M<<31|c>>>1)^(M<<24|c>>>8)^c>>>7;var N=(c<<31|M>>>1)^(c<<24|M>>>8)^(c<<25|M>>>7);c=d[2*(a-2)];var O=d[2*(a-2)+1],M=(O<<13|c>>>19)^(c<<3|O>>>29)^c>>>6,O=(c<<13|O>>>19)^(O<<3|c>>>29)^(c<<26|O>>>6),P=d[2*(a-7)],Q=d[2*(a-16)],R=d[2*(a-16)+1];c=N+d[2*(a-7)+1],b=b+P+(c>>>0<N>>>0?1:0),c+=O,b+=M+(c>>>0<O>>>0?1:0),c+=R,b+=Q+(c>>>0<R>>>0?1:0)}d[2*a]=b|=0,d[2*a+1]=c|=0;var P=E&G^~E&I,S=F&H^~F&J,O=w&y^w&A^y&A,T=x&z^x&B^z&B,Q=(x<<4|w>>>28)^(w<<30|x>>>2)^(w<<25|x>>>7),R=(w<<4|x>>>28)^(x<<30|w>>>2)^(x<<25|w>>>7),U=f[2*a],V=f[2*a+1],M=L+((E<<18|F>>>14)^(E<<14|F>>>18)^(F<<23|E>>>9)),N=K+((F<<18|E>>>14)^(F<<14|E>>>18)^(E<<23|F>>>9))+(M>>>0<L>>>0?1:0),M=M+S,N=N+(P+(M>>>0<S>>>0?1:0)),M=M+V,N=N+(U+(M>>>0<V>>>0?1:0)),M=M+c|0,N=N+(b+(M>>>0<c>>>0?1:0));c=R+T,b=Q+O+(c>>>0<R>>>0?1:0),K=I,L=J,I=G,J=H,G=E,H=F,F=D+M|0,E=C+N+(F>>>0<D>>>0?1:0)|0,C=A,D=B,A=y,B=z,y=w,z=x,x=M+c|0,w=N+b+(x>>>0<M>>>0?1:0)|0}h=e[1]=h+x|0,e[0]=g+w+(h>>>0<x>>>0?1:0)|0,j=e[3]=j+z|0,e[2]=i+y+(j>>>0<z>>>0?1:0)|0,l=e[5]=l+B|0,e[4]=k+A+(l>>>0<B>>>0?1:0)|0,n=e[7]=n+D|0,e[6]=m+C+(n>>>0<D>>>0?1:0)|0,p=e[9]=p+F|0,e[8]=o+E+(p>>>0<F>>>0?1:0)|0,r=e[11]=r+H|0,e[10]=q+G+(r>>>0<H>>>0?1:0)|0,t=e[13]=t+J|0,e[12]=s+I+(t>>>0<J>>>0?1:0)|0,v=e[15]=v+L|0,e[14]=u+K+(v>>>0<L>>>0?1:0)|0}},m.mode.ccm={name:"ccm",w:[],listenProgress:function(a){m.mode.ccm.w.push(a)},unListenProgress:function(a){a=m.mode.ccm.w.indexOf(a),-1<a&&m.mode.ccm.w.splice(a,1)},X:function(a){var b,c=m.mode.ccm.w.slice();for(b=0;b<c.length;b+=1)c[b](a)},encrypt:function(a,b,c,e,f){var g,h=b.slice(0),i=m.bitArray,j=i.bitLength(c)/8,k=i.bitLength(h)/8;for(f=f||64,e=e||[],7>j&&d(new m.exception.invalid("ccm: iv must be at least 7 bytes")),g=2;4>g&&k>>>8*g;g++);return g<15-j&&(g=15-j),c=i.clamp(c,8*(15-g)),b=m.mode.ccm.O(a,b,c,e,f,g),h=m.mode.ccm.s(a,h,c,b,f,g),i.concat(h.data,h.tag)},decrypt:function(a,b,c,e,f){f=f||64,e=e||[];var g=m.bitArray,h=g.bitLength(c)/8,i=g.bitLength(b),j=g.clamp(b,i-f),k=g.bitSlice(b,i-f),i=(i-f)/8;for(7>h&&d(new m.exception.invalid("ccm: iv must be at least 7 bytes")),b=2;4>b&&i>>>8*b;b++);return b<15-h&&(b=15-h),c=g.clamp(c,8*(15-b)),j=m.mode.ccm.s(a,j,c,k,f,b),a=m.mode.ccm.O(a,j.data,c,e,f,b),g.equal(j.tag,a)||d(new m.exception.corrupt("ccm: tag doesn't match")),j.data},ga:function(a,b,c,d,e,f){var g=[],h=m.bitArray,i=h.j;if(d=[h.partial(8,(b.length?64:0)|d-2<<2|f-1)],d=h.concat(d,c),d[3]|=e,d=a.encrypt(d),b.length)for(c=h.bitLength(b)/8,65279>=c?g=[h.partial(16,c)]:4294967295>=c&&(g=h.concat([h.partial(16,65534)],[c])),g=h.concat(g,b),b=0;b<g.length;b+=4)d=a.encrypt(i(d,g.slice(b,b+4).concat([0,0,0])));return d},O:function(a,b,c,e,f,g){var h=m.bitArray,i=h.j;for(f/=8,(f%2||4>f||16<f)&&d(new m.exception.invalid("ccm: invalid tag length")),(4294967295<e.length||4294967295<b.length)&&d(new m.exception.bug("ccm: can't deal with 4GiB or more data")),c=m.mode.ccm.ga(a,e,c,f,h.bitLength(b)/8,g),e=0;e<b.length;e+=4)c=a.encrypt(i(c,b.slice(e,e+4).concat([0,0,0])));return h.clamp(c,8*f)},s:function(a,b,c,d,e,f){var g,h=m.bitArray;g=h.j;var i=b.length,j=h.bitLength(b),k=i/50,l=k;if(c=h.concat([h.partial(8,f-1)],c).concat([0,0,0]).slice(0,4),d=h.bitSlice(g(d,a.encrypt(c)),0,e),!i)return{tag:d,data:[]};for(g=0;g<i;g+=4)g>k&&(m.mode.ccm.X(g/i),k+=l),c[3]++,e=a.encrypt(c),b[g]^=e[0],b[g+1]^=e[1],b[g+2]^=e[2],b[g+3]^=e[3];return{tag:d,data:h.clamp(b,j)}}},m.mode.ocb2={name:"ocb2",encrypt:function(a,b,c,e,f,g){128!==m.bitArray.bitLength(c)&&d(new m.exception.invalid("ocb iv must be 128 bits"));var h,i=m.mode.ocb2.K,j=m.bitArray,k=j.j,l=[0,0,0,0];c=i(a.encrypt(c));var n,o=[];for(e=e||[],f=f||64,h=0;h+4<b.length;h+=4)n=b.slice(h,h+4),l=k(l,n),o=o.concat(k(c,a.encrypt(k(c,n)))),c=i(c);return n=b.slice(h),b=j.bitLength(n),h=a.encrypt(k(c,[0,0,0,b])),n=j.clamp(k(n.concat([0,0,0]),h),b),l=k(l,k(n.concat([0,0,0]),h)),l=a.encrypt(k(l,k(c,i(c)))),e.length&&(l=k(l,g?e:m.mode.ocb2.pmac(a,e))),o.concat(j.concat(n,j.clamp(l,f)))},decrypt:function(a,b,c,e,f,g){128!==m.bitArray.bitLength(c)&&d(new m.exception.invalid("ocb iv must be 128 bits")),f=f||64;var h,i,j=m.mode.ocb2.K,k=m.bitArray,l=k.j,n=[0,0,0,0],o=j(a.encrypt(c)),p=m.bitArray.bitLength(b)-f,q=[];for(e=e||[],c=0;c+4<p/32;c+=4)h=l(o,a.decrypt(l(o,b.slice(c,c+4)))),n=l(n,h),q=q.concat(h),o=j(o);return i=p-32*c,h=a.encrypt(l(o,[0,0,0,i])),h=l(h,k.clamp(b.slice(c),i).concat([0,0,0])),n=l(n,h),n=a.encrypt(l(n,l(o,j(o)))),e.length&&(n=l(n,g?e:m.mode.ocb2.pmac(a,e))),k.equal(k.clamp(n,f),k.bitSlice(b,p))||d(new m.exception.corrupt("ocb: tag doesn't match")),q.concat(k.clamp(h,i))},pmac:function(a,b){var c,d=m.mode.ocb2.K,e=m.bitArray,f=e.j,g=[0,0,0,0],h=a.encrypt([0,0,0,0]),h=f(h,d(d(h)));for(c=0;c+4<b.length;c+=4)h=d(h),g=f(g,a.encrypt(f(h,b.slice(c,c+4))));return c=b.slice(c),128>e.bitLength(c)&&(h=f(h,d(h)),c=e.concat(c,[-2147483648,0,0,0])),g=f(g,c),a.encrypt(f(d(f(h,d(h))),g))},K:function(a){return[a[0]<<1^a[1]>>>31,a[1]<<1^a[2]>>>31,a[2]<<1^a[3]>>>31,a[3]<<1^135*(a[0]>>>31)]}},m.mode.gcm={name:"gcm",encrypt:function(a,b,c,d,e){var f=b.slice(0);return b=m.bitArray,d=d||[],a=m.mode.gcm.s(!0,a,f,d,c,e||128),b.concat(a.data,a.tag)},decrypt:function(a,b,c,e,f){var g=b.slice(0),h=m.bitArray,i=h.bitLength(g);return f=f||128,e=e||[],f<=i?(b=h.bitSlice(g,i-f),g=h.bitSlice(g,0,i-f)):(b=g,g=[]),a=m.mode.gcm.s(l,a,g,e,c,f),h.equal(a.tag,b)||d(new m.exception.corrupt("gcm: tag doesn't match")),a.data},ba:function(a,b){var c,d,e,f,g,h=m.bitArray.j;for(e=[0,0,0,0],f=b.slice(0),c=0;128>c;c++){for((d=0!==(a[Math.floor(c/32)]&1<<31-c%32))&&(e=h(e,f)),g=0!==(1&f[3]),d=3;0<d;d--)f[d]=f[d]>>>1|(1&f[d-1])<<31;f[0]>>>=1,g&&(f[0]^=-520093696)}return e},k:function(a,b,c){var d,e=c.length;for(b=b.slice(0),d=0;d<e;d+=4)b[0]^=4294967295&c[d],b[1]^=4294967295&c[d+1],b[2]^=4294967295&c[d+2],b[3]^=4294967295&c[d+3],b=m.mode.gcm.ba(b,a);return b},s:function(a,b,c,d,e,f){var g,h,i,j,k,l,n,o,p=m.bitArray;for(l=c.length,n=p.bitLength(c),o=p.bitLength(d),h=p.bitLength(e),g=b.encrypt([0,0,0,0]),96===h?(e=e.slice(0),e=p.concat(e,[1])):(e=m.mode.gcm.k(g,[0,0,0,0],e),e=m.mode.gcm.k(g,e,[0,0,Math.floor(h/4294967296),4294967295&h])),h=m.mode.gcm.k(g,[0,0,0,0],d),k=e.slice(0),d=h.slice(0),a||(d=m.mode.gcm.k(g,h,c)),j=0;j<l;j+=4)k[3]++,i=b.encrypt(k),c[j]^=i[0],c[j+1]^=i[1],c[j+2]^=i[2],c[j+3]^=i[3];return c=p.clamp(c,n),a&&(d=m.mode.gcm.k(g,h,c)),a=[Math.floor(o/4294967296),4294967295&o,Math.floor(n/4294967296),4294967295&n],d=m.mode.gcm.k(g,d,a),i=b.encrypt(e),d[0]^=i[0],d[1]^=i[1],d[2]^=i[2],d[3]^=i[3],{tag:p.bitSlice(d,0,f),data:c}}},m.misc.hmac=function(a,b){this.P=b=b||m.hash.sha256;var c,d=[[],[]],e=b.prototype.blockSize/32;for(this.q=[new b,new b],a.length>e&&(a=b.hash(a)),c=0;c<e;c++)d[0][c]=909522486^a[c],d[1][c]=1549556828^a[c];this.q[0].update(d[0]),this.q[1].update(d[1]),this.J=new b(this.q[0])},m.misc.hmac.prototype.encrypt=m.misc.hmac.prototype.mac=function(a){return this.S&&d(new m.exception.invalid("encrypt on already updated hmac called!")),this.update(a),this.digest(a)},m.misc.hmac.prototype.reset=function(){this.J=new this.P(this.q[0]),this.S=l},m.misc.hmac.prototype.update=function(a){this.S=!0,this.J.update(a)},m.misc.hmac.prototype.digest=function(){var a=this.J.finalize(),a=new this.P(this.q[1]).update(a).finalize();return this.reset(),a},m.misc.pbkdf2=function(a,b,c,e,f){c=c||1e3,(0>e||0>c)&&d(m.exception.invalid("invalid params to pbkdf2")),"string"==typeof a&&(a=m.codec.utf8String.toBits(a)),"string"==typeof b&&(b=m.codec.utf8String.toBits(b)),f=f||m.misc.hmac,a=new f(a);var g,h,i,j,k=[],l=m.bitArray;for(j=1;32*k.length<(e||1);j++){for(f=g=a.encrypt(l.concat(b,[j])),h=1;h<c;h++)for(g=a.encrypt(g),i=0;i<g.length;i++)f[i]^=g[i];k=k.concat(f)}return e&&(k=l.clamp(k,e)),k},m.prng=function(a){this.f=[new m.hash.sha256],this.m=[0],this.I=0,this.A={},this.H=0,this.N={},this.Q=this.g=this.n=this.Z=0,this.b=[0,0,0,0,0,0,0,0],this.i=[0,0,0,0],this.F=k,this.G=a,this.u=l,this.D={progress:{},seeded:{}},this.p=this.Y=0,this.B=1,this.C=2,this.U=65536,this.L=[0,48,64,96,128,192,256,384,512,768,1024],this.V=3e4,this.T=80},m.prng.prototype={randomWords:function(a,b){var c,e=[];c=this.isReady(b);var f;if(c===this.p&&d(new m.exception.notReady("generator isn't seeded")),c&this.C){c=!(c&this.B),f=[];var g,j=0;for(this.Q=f[0]=(new Date).valueOf()+this.V,g=0;16>g;g++)f.push(4294967296*Math.random()|0);for(g=0;g<this.f.length&&(f=f.concat(this.f[g].finalize()),j+=this.m[g],this.m[g]=0,!(!c&&this.I&1<<g));g++);for(this.I>=1<<this.f.length&&(this.f.push(new m.hash.sha256),this.m.push(0)),this.g-=j,j>this.n&&(this.n=j),this.I++,this.b=m.hash.sha256.hash(this.b.concat(f)),this.F=new m.cipher.aes(this.b),c=0;4>c&&(this.i[c]=this.i[c]+1|0,!this.i[c]);c++);}for(c=0;c<a;c+=4)0===(c+1)%this.U&&h(this),f=i(this),e.push(f[0],f[1],f[2],f[3]);return h(this),e.slice(0,a)},setDefaultParanoia:function(a,b){0===a&&"Setting paranoia=0 will ruin your security; use it only for testing"!==b&&d("Setting paranoia=0 will ruin your security; use it only for testing"),this.G=a},addEntropy:function(a,b,c){c=c||"user";var e,g,h=(new Date).valueOf(),i=this.A[c],j=this.isReady(),l=0;switch(e=this.N[c],e===k&&(e=this.N[c]=this.Z++),i===k&&(i=this.A[c]=0),this.A[c]=(this.A[c]+1)%this.f.length,typeof a){case"number":b===k&&(b=1),this.f[i].update([e,this.H++,1,b,h,1,0|a]);break;case"object":if(c=Object.prototype.toString.call(a),"[object Uint32Array]"===c){for(g=[],c=0;c<a.length;c++)g.push(a[c]);a=g}else for("[object Array]"!==c&&(l=1),c=0;c<a.length&&!l;c++)"number"!=typeof a[c]&&(l=1);if(!l){if(b===k)for(c=b=0;c<a.length;c++)for(g=a[c];0<g;)b++,g>>>=1;this.f[i].update([e,this.H++,2,b,h,a.length].concat(a))}break;case"string":b===k&&(b=a.length),this.f[i].update([e,this.H++,3,b,h,a.length]),this.f[i].update(a);break;default:l=1}l&&d(new m.exception.bug("random: addEntropy only supports number, array of numbers or string")),this.m[i]+=b,this.g+=b,j===this.p&&(this.isReady()!==this.p&&f("seeded",Math.max(this.n,this.g)),f("progress",this.getProgress()))},isReady:function(a){return a=this.L[a!==k?a:this.G],this.n&&this.n>=a?this.m[0]>this.T&&(new Date).valueOf()>this.Q?this.C|this.B:this.B:this.g>=a?this.C|this.p:this.p},getProgress:function(a){return a=this.L[a?a:this.G],this.n>=a?1:this.g>a?1:this.g/a},startCollectors:function(){this.u||(this.a={loadTimeCollector:j(this,this.fa),mouseCollector:j(this,this.ha),keyboardCollector:j(this,this.da),accelerometerCollector:j(this,this.W),touchCollector:j(this,this.ja)},window.addEventListener?(window.addEventListener("load",this.a.loadTimeCollector,l),window.addEventListener("mousemove",this.a.mouseCollector,l),window.addEventListener("keypress",this.a.keyboardCollector,l),window.addEventListener("devicemotion",this.a.accelerometerCollector,l),window.addEventListener("touchmove",this.a.touchCollector,l)):document.attachEvent?(document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector)):d(new m.exception.bug("can't attach event")),this.u=!0)},stopCollectors:function(){this.u&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,l),window.removeEventListener("mousemove",this.a.mouseCollector,l),window.removeEventListener("keypress",this.a.keyboardCollector,l),window.removeEventListener("devicemotion",this.a.accelerometerCollector,l),window.removeEventListener("touchmove",this.a.touchCollector,l)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.u=l)},addEventListener:function(a,b){this.D[a][this.Y++]=b},removeEventListener:function(a,b){var c,d,e=this.D[a],f=[];for(d in e)e.hasOwnProperty(d)&&e[d]===b&&f.push(d);for(c=0;c<f.length;c++)d=f[c],delete e[d]},da:function(){g(1)},ha:function(a){var b,c;try{b=a.x||a.clientX||a.offsetX||0,c=a.y||a.clientY||a.offsetY||0}catch(a){c=b=0}0!=b&&0!=c&&m.random.addEntropy([b,c],2,"mouse"),g(0)},ja:function(a){a=a.touches[0]||a.changedTouches[0],m.random.addEntropy([a.pageX||a.clientX,a.pageY||a.clientY],1,"touch"),g(0)},fa:function(){g(2)},W:function(a){if(a=a.accelerationIncludingGravity.x||a.accelerationIncludingGravity.y||a.accelerationIncludingGravity.z,window.orientation){var b=window.orientation;"number"==typeof b&&m.random.addEntropy(b,1,"accelerometer")}a&&m.random.addEntropy(a,2,"accelerometer"),g(0)}},m.random=new m.prng(6);a:try{var n,o,p,q;if(q="undefined"!=typeof b){var r;if(r=b.exports){var s;try{s=a("crypto")}catch(a){s=null}r=(o=s)&&o.randomBytes}q=r}if(q)n=o.randomBytes(128),n=new Uint32Array(new Uint8Array(n).buffer),m.random.addEntropy(n,1024,"crypto['randomBytes']");else if("undefined"!=typeof window&&"undefined"!=typeof Uint32Array){if(p=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(p);else{if(!window.msCrypto||!window.msCrypto.getRandomValues)break a;window.msCrypto.getRandomValues(p)}m.random.addEntropy(p,1024,"crypto['getRandomValues']")}}catch(a){"undefined"!=typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(a))}m.json={defaults:{v:1,iter:1e3,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},aa:function(a,b,c,e){c=c||{},e=e||{};var f,g=m.json,h=g.h({iv:m.random.randomWords(4,0)},g.defaults);return g.h(h,c),c=h.adata,"string"==typeof h.salt&&(h.salt=m.codec.base64.toBits(h.salt)),"string"==typeof h.iv&&(h.iv=m.codec.base64.toBits(h.iv)),(!m.mode[h.mode]||!m.cipher[h.cipher]||"string"==typeof a&&100>=h.iter||64!==h.ts&&96!==h.ts&&128!==h.ts||128!==h.ks&&192!==h.ks&&256!==h.ks||2>h.iv.length||4<h.iv.length)&&d(new m.exception.invalid("json encrypt: invalid parameters")),"string"==typeof a?(f=m.misc.cachedPbkdf2(a,h),a=f.key.slice(0,h.ks/32),h.salt=f.salt):m.ecc&&a instanceof m.ecc.elGamal.publicKey&&(f=a.kem(),h.kemtag=f.tag,a=f.key.slice(0,h.ks/32)),"string"==typeof b&&(b=m.codec.utf8String.toBits(b)),"string"==typeof c&&(h.adata=c=m.codec.utf8String.toBits(c)),f=new m.cipher[h.cipher](a),g.h(e,h),e.key=a,h.ct="ccm"===h.mode&&m.arrayBuffer&&m.arrayBuffer.ccm&&b instanceof ArrayBuffer?m.arrayBuffer.ccm.encrypt(f,b,h.iv,c,h.ts):m.mode[h.mode].encrypt(f,b,h.iv,c,h.ts),h},encrypt:function(a,b,c,d){var e=m.json,f=e.aa.apply(e,arguments);return e.encode(f)},$:function(a,b,c,e){c=c||{},e=e||{};var f=m.json;b=f.h(f.h(f.h({},f.defaults),b),c,!0);var g,h;return g=b.adata,"string"==typeof b.salt&&(b.salt=m.codec.base64.toBits(b.salt)),"string"==typeof b.iv&&(b.iv=m.codec.base64.toBits(b.iv)),(!m.mode[b.mode]||!m.cipher[b.cipher]||"string"==typeof a&&100>=b.iter||64!==b.ts&&96!==b.ts&&128!==b.ts||128!==b.ks&&192!==b.ks&&256!==b.ks||!b.iv||2>b.iv.length||4<b.iv.length)&&d(new m.exception.invalid("json decrypt: invalid parameters")),"string"==typeof a?(h=m.misc.cachedPbkdf2(a,b),a=h.key.slice(0,b.ks/32),b.salt=h.salt):m.ecc&&a instanceof m.ecc.elGamal.secretKey&&(a=a.unkem(m.codec.base64.toBits(b.kemtag)).slice(0,b.ks/32)),"string"==typeof g&&(g=m.codec.utf8String.toBits(g)),h=new m.cipher[b.cipher](a),g="ccm"===b.mode&&m.arrayBuffer&&m.arrayBuffer.ccm&&b.ct instanceof ArrayBuffer?m.arrayBuffer.ccm.decrypt(h,b.ct,b.iv,b.tag,g,b.ts):m.mode[b.mode].decrypt(h,b.ct,b.iv,g,b.ts),f.h(e,b),e.key=a,1===c.raw?g:m.codec.utf8String.fromBits(g)},decrypt:function(a,b,c,d){var e=m.json;return e.$(a,e.decode(b),c,d)},encode:function(a){var b,c="{",e="";for(b in a)if(a.hasOwnProperty(b))switch(b.match(/^[a-z0-9]+$/i)||d(new m.exception.invalid("json encode: invalid property name")),c+=e+'"'+b+'":',e=",",typeof a[b]){case"number":case"boolean":c+=a[b];break;case"string":c+='"'+escape(a[b])+'"';break;case"object":c+='"'+m.codec.base64.fromBits(a[b],0)+'"';break;default:d(new m.exception.bug("json encode: unsupported type"))}return c+"}"},decode:function(a){a=a.replace(/\s/g,""),a.match(/^\{.*\}$/)||d(new m.exception.invalid("json decode: this isn't json!")),a=a.replace(/^\{|\}$/g,"").split(/,/);var b,c,e={};for(b=0;b<a.length;b++)(c=a[b].match(/^\s*(?:(["']?)([a-z][a-z0-9]*)\1)\s*:\s*(?:(-?\d+)|"([a-z0-9+\/%*_.@=\-]*)"|(true|false))$/i))||d(new m.exception.invalid("json decode: this isn't json!")),null!=c[3]?e[c[2]]=parseInt(c[3],10):null!=c[4]?e[c[2]]=c[2].match(/^(ct|adata|salt|iv)$/)?m.codec.base64.toBits(c[4]):unescape(c[4]):null!=c[5]&&(e[c[2]]="true"===c[5]);return e},h:function(a,b,c){if(a===k&&(a={}),b===k)return a;for(var e in b)b.hasOwnProperty(e)&&(c&&a[e]!==k&&a[e]!==b[e]&&d(new m.exception.invalid("required parameter overridden")),a[e]=b[e]);return a},la:function(a,b){var c,d={};for(c in a)a.hasOwnProperty(c)&&a[c]!==b[c]&&(d[c]=a[c]);return d},ka:function(a,b){var c,d={};for(c=0;c<b.length;c++)a[b[c]]!==k&&(d[b[c]]=a[b[c]]);return d}},m.encrypt=m.json.encrypt,m.decrypt=m.json.decrypt,m.misc.ia={},m.misc.cachedPbkdf2=function(a,b){var c,d=m.misc.ia;return b=b||{},c=b.iter||1e3,d=d[a]=d[a]||{},c=d[c]=d[c]||{firstSalt:b.salt&&b.salt.length?b.salt.slice(0):m.random.randomWords(2,0)},d=b.salt===k?c.firstSalt:b.salt,c[d]=c[d]||m.misc.pbkdf2(a,d,b.iter),{key:c[d].slice(0),salt:d.slice(0)}}},{crypto:115}],30:[function(a,b,c){b.exports=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];
6
},{}],31:[function(a,b,c){function d(a){if(a.length<8)return!1;if(a.length>72)return!1;if(48!==a[0])return!1;if(a[1]!==a.length-2)return!1;if(2!==a[2])return!1;var b=a[3];if(0===b)return!1;if(5+b>=a.length)return!1;if(2!==a[4+b])return!1;var c=a[5+b];return 0!==c&&(6+b+c===a.length&&(!(128&a[4])&&(!(b>1&&0===a[4]&&!(128&a[5]))&&(!(128&a[b+6])&&!(c>1&&0===a[b+6]&&!(128&a[b+7]))))))}function e(a){if(a.length<8)throw new Error("DER sequence length is too short");if(a.length>72)throw new Error("DER sequence length is too long");if(48!==a[0])throw new Error("Expected DER sequence");if(a[1]!==a.length-2)throw new Error("DER sequence length is invalid");if(2!==a[2])throw new Error("Expected DER integer");var b=a[3];if(0===b)throw new Error("R length is zero");if(5+b>=a.length)throw new Error("R length is too long");if(2!==a[4+b])throw new Error("Expected DER integer (2)");var c=a[5+b];if(0===c)throw new Error("S length is zero");if(6+b+c!==a.length)throw new Error("S length is invalid");if(128&a[4])throw new Error("R value is negative");if(b>1&&0===a[4]&&!(128&a[5]))throw new Error("R value excessively padded");if(128&a[b+6])throw new Error("S value is negative");if(c>1&&0===a[b+6]&&!(128&a[b+7]))throw new Error("S value excessively padded");return{r:a.slice(4,4+b),s:a.slice(6+b)}}function f(a,b){var c=a.length,d=b.length;if(0===c)throw new Error("R length is zero");if(0===d)throw new Error("S length is zero");if(c>33)throw new Error("R length is too long");if(d>33)throw new Error("S length is too long");if(128&a[0])throw new Error("R value is negative");if(128&b[0])throw new Error("S value is negative");if(c>1&&0===a[0]&&!(128&a[1]))throw new Error("R value excessively padded");if(d>1&&0===b[0]&&!(128&b[1]))throw new Error("S value excessively padded");var e=Buffer.allocUnsafe(6+c+d);return e[0]=48,e[1]=e.length-2,e[2]=2,e[3]=a.length,a.copy(e,4),e[4+c]=2,e[5+c]=b.length,b.copy(e,6+c),e}var Buffer=a("safe-buffer").Buffer;b.exports={check:d,decode:e,encode:f}},{"safe-buffer":288}],32:[function(a,b,c){b.exports={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_1:81,OP_TRUE:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255}},{}],33:[function(a,b,c){var d=a("./index.json"),e={};for(var f in d){var g=d[f];e[g]=f}b.exports=e},{"./index.json":32}],34:[function(a,b,c){function d(a){var b=k.decode(a);if(b.length<21)throw new TypeError(a+" is too short");if(b.length>21)throw new TypeError(a+" is too long");var c=b.readUInt8(0),d=b.slice(1);return{version:c,hash:d}}function e(a){var b=j.decode(a),c=j.fromWords(b.words.slice(1));return{version:b.words[0],prefix:b.prefix,data:Buffer.from(c)}}function f(a,b){n(o.tuple(o.Hash160bit,o.UInt8),arguments);var c=Buffer.allocUnsafe(21);return c.writeUInt8(b,0),a.copy(c,1),k.encode(c)}function g(a,b,c){var d=j.toWords(a);return d.unshift(b),j.encode(c,d)}function h(a,b){if(b=b||m.bitcoin,l.pubKeyHash.output.check(a))return f(l.compile(a).slice(3,23),b.pubKeyHash);if(l.scriptHash.output.check(a))return f(l.compile(a).slice(2,22),b.scriptHash);if(l.witnessPubKeyHash.output.check(a))return g(l.compile(a).slice(2,22),0,b.bech32);if(l.witnessScriptHash.output.check(a))return g(l.compile(a).slice(2,34),0,b.bech32);throw new Error(l.toASM(a)+" has no matching Address")}function i(a,b){b=b||m.bitcoin;var c;try{c=d(a)}catch(a){}if(c){if(c.version===b.pubKeyHash)return l.pubKeyHash.output.encode(c.hash);if(c.version===b.scriptHash)return l.scriptHash.output.encode(c.hash)}else{try{c=e(a)}catch(a){}if(c){if(c.prefix!==b.bech32)throw new Error(a+" has an invalid prefix");if(0===c.version){if(20===c.data.length)return l.witnessPubKeyHash.output.encode(c.data);if(32===c.data.length)return l.witnessScriptHash.output.encode(c.data)}}}throw new Error(a+" has no matching Script")}var Buffer=a("safe-buffer").Buffer,j=a("bech32"),k=a("bs58check"),l=a("./script"),m=a("./networks"),n=a("typeforce"),o=a("./types");b.exports={fromBase58Check:d,fromBech32:e,fromOutputScript:h,toBase58Check:f,toBech32:g,toOutputScript:i}},{"./networks":43,"./script":44,"./types":70,bech32:22,bs58check:100,"safe-buffer":288,typeforce:312}],35:[function(a,b,c){function d(){this.version=1,this.prevHash=null,this.merkleRoot=null,this.timestamp=0,this.bits=0,this.nonce=0}var Buffer=a("safe-buffer").Buffer,e=a("buffer-reverse"),f=a("./crypto"),g=a("merkle-lib/fastRoot"),h=a("typeforce"),i=a("./types"),j=a("varuint-bitcoin"),k=a("./transaction");d.fromBuffer=function(a){function b(b){return h+=b,a.slice(h-b,h)}function c(){var b=a.readUInt32LE(h);return h+=4,b}function e(){var b=a.readInt32LE(h);return h+=4,b}function f(){var b=j.decode(a,h);return h+=j.decode.bytes,b}function g(){var b=k.fromBuffer(a.slice(h),!0);return h+=b.byteLength(),b}if(a.length<80)throw new Error("Buffer too small (< 80 bytes)");var h=0,i=new d;if(i.version=e(),i.prevHash=b(32),i.merkleRoot=b(32),i.timestamp=c(),i.bits=c(),i.nonce=c(),80===a.length)return i;var l=f();i.transactions=[];for(var m=0;m<l;++m){var n=g();i.transactions.push(n)}return i},d.prototype.byteLength=function(a){return a||!this.transactions?80:80+j.encodingLength(this.transactions.length)+this.transactions.reduce(function(a,b){return a+b.byteLength()},0)},d.fromHex=function(a){return d.fromBuffer(Buffer.from(a,"hex"))},d.prototype.getHash=function(){return f.hash256(this.toBuffer(!0))},d.prototype.getId=function(){return e(this.getHash()).toString("hex")},d.prototype.getUTCDate=function(){var a=new Date(0);return a.setUTCSeconds(this.timestamp),a},d.prototype.toBuffer=function(a){function b(a){a.copy(e,f),f+=a.length}function c(a){e.writeInt32LE(a,f),f+=4}function d(a){e.writeUInt32LE(a,f),f+=4}var e=Buffer.allocUnsafe(this.byteLength(a)),f=0;return c(this.version),b(this.prevHash),b(this.merkleRoot),d(this.timestamp),d(this.bits),d(this.nonce),a||!this.transactions?e:(j.encode(this.transactions.length,e,f),f+=j.encode.bytes,this.transactions.forEach(function(a){var b=a.byteLength();a.toBuffer(e,f),f+=b}),e)},d.prototype.toHex=function(a){return this.toBuffer(a).toString("hex")},d.calculateTarget=function(a){var b=((4278190080&a)>>24)-3,c=8388607&a,d=Buffer.alloc(32,0);return d.writeUInt32BE(c,28-b),d},d.calculateMerkleRoot=function(a){if(h([{getHash:i.Function}],a),0===a.length)throw TypeError("Cannot compute merkle root for zero transactions");var b=a.map(function(a){return a.getHash()});return g(b,f.hash256)},d.prototype.checkMerkleRoot=function(){if(!this.transactions)return!1;var a=d.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(a)},d.prototype.checkProofOfWork=function(){var a=e(this.getHash()),b=d.calculateTarget(this.bits);return a.compare(b)<=0},b.exports=d},{"./crypto":37,"./transaction":68,"./types":70,"buffer-reverse":102,"merkle-lib/fastRoot":232,"safe-buffer":288,typeforce:312,"varuint-bitcoin":321}],36:[function(a,b,c){function d(a,b){if("number"!=typeof a)throw new Error("cannot write a non-number as a number");if(a<0)throw new Error("specified a negative value for writing an unsigned value");if(a>b)throw new Error("RangeError: value out of range");if(Math.floor(a)!==a)throw new Error("value has a fractional component")}function e(a,b){var c=a.readUInt32LE(b),e=a.readUInt32LE(b+4);return e*=4294967296,d(e+c,9007199254740991),e+c}function f(a,b,c){return d(b,9007199254740991),a.writeInt32LE(b&-1,c),a.writeUInt32LE(Math.floor(b/4294967296),c+4),c+8}function g(a,b){var c=j.decode(a,b);return{number:c,size:j.decode.bytes}}function h(a,b,c){return j.encode(b,a,c),j.encode.bytes}var i=a("pushdata-bitcoin"),j=a("varuint-bitcoin");b.exports={pushDataSize:i.encodingLength,readPushDataInt:i.decode,readUInt64LE:e,readVarInt:g,varIntBuffer:j.encode,varIntSize:j.encodingLength,writePushDataInt:i.encode,writeUInt64LE:f,writeVarInt:h}},{"pushdata-bitcoin":266,"varuint-bitcoin":321}],37:[function(a,b,c){function d(a){return i("rmd160").update(a).digest()}function e(a){return i("sha1").update(a).digest()}function f(a){return i("sha256").update(a).digest()}function g(a){return d(f(a))}function h(a){return f(f(a))}var i=a("create-hash");b.exports={hash160:g,hash256:h,ripemd160:d,sha1:e,sha256:f}},{"create-hash":110}],38:[function(a,b,c){function d(a,b,c){h(i.tuple(i.Hash256bit,i.Buffer256bit,i.Function),arguments);var d=Buffer.alloc(32,0),e=Buffer.alloc(32,1);d=g("sha256",d).update(e).update(k).update(b).update(a).digest(),e=g("sha256",d).update(e).digest(),d=g("sha256",d).update(e).update(l).update(b).update(a).digest(),e=g("sha256",d).update(e).digest(),e=g("sha256",d).update(e).digest();for(var f=BigInteger.fromBuffer(e);f.signum()<=0||f.compareTo(n.n)>=0||!c(f);)d=g("sha256",d).update(e).update(k).digest(),e=g("sha256",d).update(e).digest(),e=g("sha256",d).update(e).digest(),f=BigInteger.fromBuffer(e);return f}function e(a,b){h(i.tuple(i.Hash256bit,i.BigInt),arguments);var c,e,f=b.toBuffer(32),g=BigInteger.fromBuffer(a),k=n.n,l=n.G;return d(a,f,function(a){var d=l.multiply(a);return!n.isInfinity(d)&&(c=d.affineX.mod(k),0!==c.signum()&&(e=a.modInverse(k).multiply(g.add(b.multiply(c))).mod(k),0!==e.signum()))}),e.compareTo(o)>0&&(e=k.subtract(e)),new j(c,e)}function f(a,b,c){h(i.tuple(i.Hash256bit,i.ECSignature,i.ECPoint),arguments);var d=n.n,e=n.G,f=b.r,g=b.s;if(f.signum()<=0||f.compareTo(d)>=0)return!1;if(g.signum()<=0||g.compareTo(d)>=0)return!1;var j=BigInteger.fromBuffer(a),k=g.modInverse(d),l=j.multiply(k).mod(d),m=f.multiply(k).mod(d),o=e.multiplyTwo(l,c,m);if(n.isInfinity(o))return!1;var p=o.affineX,q=p.mod(d);return q.equals(f)}var Buffer=a("safe-buffer").Buffer,g=a("create-hmac"),h=a("typeforce"),i=a("./types"),BigInteger=a("bigi"),j=a("./ecsignature"),k=Buffer.alloc(1,0),l=Buffer.alloc(1,1),m=a("ecurve"),n=m.getCurveByName("secp256k1"),o=n.n.shiftRight(1);b.exports={deterministicGenerateK:d,sign:e,verify:f,__curve:n}},{"./ecsignature":40,"./types":70,bigi:25,"create-hmac":113,ecurve:189,"safe-buffer":288,typeforce:312}],39:[function(a,b,c){function ECPair(a,b,c){if(c&&h({compressed:i.maybe(i.Boolean),network:i.maybe(i.Network)},c),c=c||{},a){if(a.signum()<=0)throw new Error("Private key must be greater than 0");if(a.compareTo(m.n)>=0)throw new Error("Private key must be less than the curve order");if(b)throw new TypeError("Unexpected publicKey parameter");this.d=a}else h(i.ECPoint,b),this.__Q=b;this.compressed=void 0===c.compressed||c.compressed,this.network=c.network||k.bitcoin}var d=a("./address"),e=a("./crypto"),f=a("./ecdsa"),g=a("randombytes"),h=a("typeforce"),i=a("./types"),j=a("wif"),k=a("./networks"),BigInteger=a("bigi"),l=a("ecurve"),m=f.__curve;Object.defineProperty(ECPair.prototype,"Q",{get:function(){return!this.__Q&&this.d&&(this.__Q=m.G.multiply(this.d)),this.__Q}}),ECPair.fromPublicKeyBuffer=function(a,b){var c=l.Point.decodeFrom(m,a);return new ECPair(null,c,{compressed:c.compressed,network:b})},ECPair.fromWIF=function(a,b){var c=j.decode(a),d=c.version;if(i.Array(b)){if(b=b.filter(function(a){return d===a.wif}).pop(),!b)throw new Error("Unknown network version")}else if(b=b||k.bitcoin,d!==b.wif)throw new Error("Invalid network version");var e=BigInteger.fromBuffer(c.privateKey);return new ECPair(e,null,{compressed:c.compressed,network:b})},ECPair.makeRandom=function(a){a=a||{};var b,c=a.rng||g;do{var d=c(32);h(i.Buffer256bit,d),b=BigInteger.fromBuffer(d)}while(b.signum()<=0||b.compareTo(m.n)>=0);return new ECPair(b,null,a)},ECPair.prototype.getAddress=function(){return d.toBase58Check(e.hash160(this.getPublicKeyBuffer()),this.getNetwork().pubKeyHash)},ECPair.prototype.getNetwork=function(){return this.network},ECPair.prototype.getPublicKeyBuffer=function(){return this.Q.getEncoded(this.compressed)},ECPair.prototype.sign=function(a){if(!this.d)throw new Error("Missing private key");return f.sign(a,this.d)},ECPair.prototype.toWIF=function(){if(!this.d)throw new Error("Missing private key");return j.encode(this.network.wif,this.d.toBuffer(32),this.compressed)},ECPair.prototype.verify=function(a,b){return f.verify(a,b,this.Q)},b.exports=ECPair},{"./address":34,"./crypto":37,"./ecdsa":38,"./networks":43,"./types":70,bigi:25,ecurve:189,randombytes:271,typeforce:312,wif:324}],40:[function(a,b,c){(function(Buffer){function c(a,b){e(f.tuple(f.BigInt,f.BigInt),arguments),this.r=a,this.s=b}var d=a("bip66"),e=a("typeforce"),f=a("./types"),BigInteger=a("bigi");c.parseCompact=function(a){if(65!==a.length)throw new Error("Invalid signature length");var b=a.readUInt8(0)-27;if(b!==(7&b))throw new Error("Invalid signature parameter");var d=!!(4&b),e=3&b,f=BigInteger.fromBuffer(a.slice(1,33)),g=BigInteger.fromBuffer(a.slice(33));return{compressed:d,i:e,signature:new c(f,g)}},c.fromDER=function(a){var b=d.decode(a),e=BigInteger.fromDERInteger(b.r),f=BigInteger.fromDERInteger(b.s);return new c(e,f)},c.parseScriptSignature=function(a){var b=a.readUInt8(a.length-1),d=b&-193;if(d<=0||d>=4)throw new Error("Invalid hashType "+b);return{signature:c.fromDER(a.slice(0,-1)),hashType:b}},c.prototype.toCompact=function(a,b){b&&(a+=4),a+=27;var c=Buffer.alloc(65);return c.writeUInt8(a,0),this.r.toBuffer(32).copy(c,1),this.s.toBuffer(32).copy(c,33),c},c.prototype.toDER=function(){var a=Buffer.from(this.r.toDERInteger()),b=Buffer.from(this.s.toDERInteger());return d.encode(a,b)},c.prototype.toScriptSignature=function(a){var b=a&-193;if(b<=0||b>=4)throw new Error("Invalid hashType "+a);var c=Buffer.alloc(1);return c.writeUInt8(a,0),Buffer.concat([this.toDER(),c])},b.exports=c}).call(this,a("buffer").Buffer)},{"./types":70,bigi:25,bip66:31,buffer:104,typeforce:312}],41:[function(a,b,c){function HDNode(a,b){if(g(h.tuple("ECPair",h.Buffer256bit),arguments),!a.compressed)throw new TypeError("BIP32 only allows compressed keyPairs");this.keyPair=a,this.chainCode=b,this.depth=0,this.index=0,this.parentFingerprint=0}var Buffer=a("safe-buffer").Buffer,d=a("bs58check"),e=a("./crypto"),f=a("create-hmac"),g=a("typeforce"),h=a("./types"),i=a("./networks"),BigInteger=a("bigi"),ECPair=a("./ecpair"),j=a("ecurve"),k=j.getCurveByName("secp256k1");HDNode.HIGHEST_BIT=2147483648,HDNode.LENGTH=78,HDNode.MASTER_SECRET=Buffer.from("Bitcoin seed","utf8"),HDNode.fromSeedBuffer=function(a,b){if(g(h.tuple(h.Buffer,h.maybe(h.Network)),arguments),a.length<16)throw new TypeError("Seed should be at least 128 bits");if(a.length>64)throw new TypeError("Seed should be at most 512 bits");var c=f("sha512",HDNode.MASTER_SECRET).update(a).digest(),d=c.slice(0,32),e=c.slice(32),i=BigInteger.fromBuffer(d),j=new ECPair(i,null,{network:b});return new HDNode(j,e)},HDNode.fromSeedHex=function(a,b){return HDNode.fromSeedBuffer(Buffer.from(a,"hex"),b)},HDNode.fromBase58=function(a,b){var c=d.decode(a);if(78!==c.length)throw new Error("Invalid buffer length");var e,f=c.readUInt32BE(0);if(Array.isArray(b)){if(e=b.filter(function(a){return f===a.bip32.private||f===a.bip32.public}).pop(),!e)throw new Error("Unknown network version")}else e=b||i.bitcoin;if(f!==e.bip32.private&&f!==e.bip32.public)throw new Error("Invalid network version");var g=c[4],h=c.readUInt32BE(5);if(0===g&&0!==h)throw new Error("Invalid parent fingerprint");var l=c.readUInt32BE(9);if(0===g&&0!==l)throw new Error("Invalid index");var m,n=c.slice(13,45);if(f===e.bip32.private){if(0!==c.readUInt8(45))throw new Error("Invalid private key");var o=BigInteger.fromBuffer(c.slice(46,78));m=new ECPair(o,null,{network:e})}else{var p=j.Point.decodeFrom(k,c.slice(45,78));k.validate(p),m=new ECPair(null,p,{network:e})}var q=new HDNode(m,n);return q.depth=g,q.index=l,q.parentFingerprint=h,q},HDNode.prototype.getAddress=function(){return this.keyPair.getAddress()},HDNode.prototype.getIdentifier=function(){return e.hash160(this.keyPair.getPublicKeyBuffer())},HDNode.prototype.getFingerprint=function(){return this.getIdentifier().slice(0,4)},HDNode.prototype.getNetwork=function(){return this.keyPair.getNetwork()},HDNode.prototype.getPublicKeyBuffer=function(){return this.keyPair.getPublicKeyBuffer()},HDNode.prototype.neutered=function(){var a=new ECPair(null,this.keyPair.Q,{network:this.keyPair.network}),b=new HDNode(a,this.chainCode);return b.depth=this.depth,b.index=this.index,b.parentFingerprint=this.parentFingerprint,b},HDNode.prototype.sign=function(a){return this.keyPair.sign(a)},HDNode.prototype.verify=function(a,b){return this.keyPair.verify(a,b)},HDNode.prototype.toBase58=function(a){if(void 0!==a)throw new TypeError("Unsupported argument in 2.0.0");var b=this.keyPair.network,c=this.isNeutered()?b.bip32.public:b.bip32.private,e=Buffer.allocUnsafe(78);return e.writeUInt32BE(c,0),e.writeUInt8(this.depth,4),e.writeUInt32BE(this.parentFingerprint,5),e.writeUInt32BE(this.index,9),this.chainCode.copy(e,13),this.isNeutered()?this.keyPair.getPublicKeyBuffer().copy(e,45):(e.writeUInt8(0,45),this.keyPair.d.toBuffer(32).copy(e,46)),d.encode(e)},HDNode.prototype.derive=function(a){g(h.UInt32,a);var b=a>=HDNode.HIGHEST_BIT,c=Buffer.allocUnsafe(37);if(b){if(this.isNeutered())throw new TypeError("Could not derive hardened child key");c[0]=0,this.keyPair.d.toBuffer(32).copy(c,1),c.writeUInt32BE(a,33)}else this.keyPair.getPublicKeyBuffer().copy(c,0),c.writeUInt32BE(a,33);var d=f("sha512",this.chainCode).update(c).digest(),e=d.slice(0,32),i=d.slice(32),j=BigInteger.fromBuffer(e);if(j.compareTo(k.n)>=0)return this.derive(a+1);var l;if(this.isNeutered()){var m=k.G.multiply(j).add(this.keyPair.Q);if(k.isInfinity(m))return this.derive(a+1);l=new ECPair(null,m,{network:this.keyPair.network})}else{var n=j.add(this.keyPair.d).mod(k.n);if(0===n.signum())return this.derive(a+1);l=new ECPair(n,null,{network:this.keyPair.network})}var o=new HDNode(l,i);return o.depth=this.depth+1,o.index=a,o.parentFingerprint=this.getFingerprint().readUInt32BE(0),o},HDNode.prototype.deriveHardened=function(a){return g(h.UInt31,a),this.derive(a+HDNode.HIGHEST_BIT)},HDNode.prototype.isNeutered=function(){return!this.keyPair.d},HDNode.prototype.derivePath=function(a){g(h.BIP32Path,a);var b=a.split("/");if("m"===b[0]){if(this.parentFingerprint)throw new Error("Not a master node");b=b.slice(1)}return b.reduce(function(a,b){var c;return"'"===b.slice(-1)?(c=parseInt(b.slice(0,-1),10),a.deriveHardened(c)):(c=parseInt(b,10),a.derive(c))},this)},b.exports=HDNode},{"./crypto":37,"./ecpair":39,"./networks":43,"./types":70,bigi:25,bs58check:100,"create-hmac":113,ecurve:189,"safe-buffer":288,typeforce:312}],42:[function(a,b,c){b.exports={Block:a("./block"),ECPair:a("./ecpair"),ECSignature:a("./ecsignature"),HDNode:a("./hdnode"),Transaction:a("./transaction"),TransactionBuilder:a("./transaction_builder"),address:a("./address"),bufferutils:a("./bufferutils"),crypto:a("./crypto"),networks:a("./networks"),opcodes:a("bitcoin-ops"),script:a("./script")}},{"./address":34,"./block":35,"./bufferutils":36,"./crypto":37,"./ecpair":39,"./ecsignature":40,"./hdnode":41,"./networks":43,"./script":44,"./transaction":68,"./transaction_builder":69,"bitcoin-ops":32}],43:[function(a,b,c){b.exports={bitcoincash:{messagePrefix:"Bitcoin Signed Message:\n",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},bitcoincashtestnet:{messagePrefix:"Bitcoin Signed Message:\n",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},bitcoin:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},testnet:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},litecoin:{messagePrefix:"Litecoin Signed Message:\n",bip32:{public:27108450,private:27106558},pubKeyHash:48,scriptHash:50,wif:176}}},{}],44:[function(a,b,c){function d(a){return s.Number(a)&&(a===u.OP_0||a>=u.OP_1&&a<=u.OP_16||a===u.OP_1NEGATE)}function e(a){return s.Buffer(a)||d(a)}function f(a){return s.Array(a)&&a.every(e)}function g(a){if(0===a.length)return u.OP_0;if(1===a.length)return a[0]>=1&&a[0]<=16?w+a[0]:129===a[0]?u.OP_1NEGATE:void 0}function h(a){if(Buffer.isBuffer(a))return a;r(s.Array,a);var b=a.reduce(function(a,b){return Buffer.isBuffer(b)?1===b.length&&void 0!==g(b)?a+1:a+q.encodingLength(b.length)+b.length:a+1},0),c=Buffer.allocUnsafe(b),d=0;if(a.forEach(function(a){if(Buffer.isBuffer(a)){var b=g(a);if(void 0!==b)return c.writeUInt8(b,d),void(d+=1);d+=q.encode(c,a.length,d),a.copy(c,d),d+=a.length}else c.writeUInt8(a,d),d+=1}),d!==c.length)throw new Error("Could not decode chunks");return c}function i(a){if(s.Array(a))return a;r(s.Buffer,a);for(var b=[],c=0;c<a.length;){var d=a[c];if(d>u.OP_0&&d<=u.OP_PUSHDATA4){var e=q.decode(a,c);if(null===e)return[];if(c+=e.size,c+e.number>a.length)return[];var f=a.slice(c,c+e.number);c+=e.number;var h=g(f);void 0!==h?b.push(h):b.push(f)}else b.push(d),c+=1}return b}function j(a){return Buffer.isBuffer(a)&&(a=i(a)),a.map(function(a){if(Buffer.isBuffer(a)){var b=g(a);if(void 0===b)return a.toString("hex");a=b}return v[a]}).join(" ")}function k(asm){return r(s.String,asm),h(asm.split(" ").map(function(a){return void 0!==u[a]?u[a]:(r(s.Hex,a),Buffer.from(a,"hex"))}))}function l(a){return a=i(a),r(f,a),a.map(function(a){return Buffer.isBuffer(a)?a:a===u.OP_0?Buffer.allocUnsafe(0):t.encode(a-w)})}function m(a){if(!Buffer.isBuffer(a))return!1;if(a.length<33)return!1;switch(a[0]){case 2:case 3:return 33===a.length;case 4:return 65===a.length}return!1}function n(a){var b=a&-193;return b>0&&b<4}function o(a){return!!Buffer.isBuffer(a)&&(!!n(a[a.length-1])&&p.check(a.slice(0,-1)))}var Buffer=a("safe-buffer").Buffer,p=a("bip66"),q=a("pushdata-bitcoin"),r=a("typeforce"),s=a("./types"),t=a("./script_number"),u=a("bitcoin-ops"),v=a("bitcoin-ops/map"),w=u.OP_RESERVED;b.exports={compile:h,decompile:i,fromASM:k,toASM:j,toStack:l,number:a("./script_number"),isCanonicalPubKey:m,isCanonicalSignature:o,isPushOnly:f,isDefinedHashType:n};var x=a("./templates");for(var y in x)b.exports[y]=x[y]},{"./script_number":45,"./templates":46,"./types":70,bip66:31,"bitcoin-ops":32,"bitcoin-ops/map":33,"pushdata-bitcoin":266,"safe-buffer":288,typeforce:312}],45:[function(a,b,c){function d(a,b,c){b=b||4,c=void 0===c||c;var d=a.length;if(0===d)return 0;if(d>b)throw new TypeError("Script number overflow");if(c&&0===(127&a[d-1])&&(d<=1||0===(128&a[d-2])))throw new Error("Non-minimally encoded script number");if(5===d){var e=a.readUInt32LE(0),f=a.readUInt8(4);return 128&f?-(4294967296*(f&-129)+e):4294967296*f+e}for(var g=0,h=0;h<d;++h)g|=a[h]<<8*h;return 128&a[d-1]?-(g&~(128<<8*(d-1))):g}function e(a){return a>2147483647?5:a>8388607?4:a>32767?3:a>127?2:a>0?1:0}function f(a){for(var b=Math.abs(a),c=e(b),d=Buffer.allocUnsafe(c),f=a<0,g=0;g<c;++g)d.writeUInt8(255&b,g),b>>=8;return 128&d[c-1]?d.writeUInt8(f?128:0,c-1):f&&(d[c-1]|=128),d}var Buffer=a("safe-buffer").Buffer;b.exports={decode:d,encode:f}},{"safe-buffer":288}],46:[function(a,b,c){function d(a){if(m.output.check(a))return p.P2WPKH;if(n.output.check(a))return p.P2WSH;if(k.output.check(a))return p.P2PKH;if(l.output.check(a))return p.P2SH;var b=g(a);return h.output.check(b)?p.MULTISIG:j.output.check(b)?p.P2PK:o.output.check(b)?p.WITNESS_COMMITMENT:i.output.check(b)?p.NULLDATA:p.NONSTANDARD}function e(a,b){var c=g(a);return k.input.check(c)?p.P2PKH:h.input.check(c,b)?p.MULTISIG:l.input.check(c,b)?p.P2SH:j.input.check(c)?p.P2PK:p.NONSTANDARD}function f(a,b){var c=g(a);return m.input.check(c)?p.P2WPKH:n.input.check(c,b)?p.P2WSH:p.NONSTANDARD}var g=a("../script").decompile,h=a("./multisig"),i=a("./nulldata"),j=a("./pubkey"),k=a("./pubkeyhash"),l=a("./scripthash"),m=a("./witnesspubkeyhash"),n=a("./witnessscripthash"),o=a("./witnesscommitment"),p={MULTISIG:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};b.exports={classifyInput:e,classifyOutput:d,classifyWitness:f,multisig:h,nullData:i,pubKey:j,pubKeyHash:k,scriptHash:l,witnessPubKeyHash:m,witnessScriptHash:n,witnessCommitment:o,types:p}},{"../script":44,"./multisig":47,"./nulldata":50,"./pubkey":51,"./pubkeyhash":54,"./scripthash":57,"./witnesscommitment":60,"./witnesspubkeyhash":62,"./witnessscripthash":65}],47:[function(a,b,c){b.exports={input:a("./input"),output:a("./output")}},{"./input":48,"./output":49}],48:[function(a,b,c){function d(a){return a===l.OP_0||j.isCanonicalSignature(a)}function e(a,b){var c=j.decompile(a);return!(c.length<2)&&(c[0]===l.OP_0&&(b?c.slice(1).every(d):c.slice(1).every(j.isCanonicalSignature)))}function f(a,b){if(k([d],a),b){var c=j.multisig.output.decode(b);if(a.length<c.m)throw new TypeError("Not enough signatures provided");if(a.length>c.pubKeys.length)throw new TypeError("Too many signatures provided")}return[].concat(m,a.map(function(a){return a===l.OP_0?m:a}))}function g(a,b){return j.compile(f(a,b))}function h(a,b){return k(e,a,b),a.slice(1)}function i(a,b){var c=j.decompile(a);return h(c,b)}var Buffer=a("safe-buffer").Buffer,j=a("../../script"),k=a("typeforce"),l=a("bitcoin-ops");e.toJSON=function(){return"multisig input"};var m=Buffer.allocUnsafe(0);b.exports={check:e,decode:i,decodeStack:h,encode:g,encodeStack:f}},{"../../script":44,"bitcoin-ops":32,"safe-buffer":288,typeforce:312}],49:[function(a,b,c){function d(a,b){var c=g.decompile(a);if(c.length<4)return!1;if(c[c.length-1]!==j.OP_CHECKMULTISIG)return!1;if(!h.Number(c[0]))return!1;if(!h.Number(c[c.length-2]))return!1;var d=c[0]-k,e=c[c.length-2]-k;if(d<=0)return!1;if(e>16)return!1;if(d>e)return!1;if(e!==c.length-3)return!1;if(b)return!0;var f=c.slice(1,-2);return f.every(g.isCanonicalPubKey)}function e(a,b){i({m:h.Number,pubKeys:[g.isCanonicalPubKey]},{m:a,pubKeys:b});var c=b.length;if(c<a)throw new TypeError("Not enough pubKeys provided");return g.compile([].concat(k+a,b,k+c,j.OP_CHECKMULTISIG))}function f(a,b){var c=g.decompile(a);return i(d,c,b),{m:c[0]-k,pubKeys:c.slice(1,-2)}}var g=a("../../script"),h=a("../../types"),i=a("typeforce"),j=a("bitcoin-ops"),k=j.OP_RESERVED;d.toJSON=function(){return"multi-sig output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"../../types":70,"bitcoin-ops":32,typeforce:312}],50:[function(a,b,c){function d(a){var b=g.compile(a);return b.length>1&&b[0]===j.OP_RETURN}function e(a){return i(h.Buffer,a),g.compile([j.OP_RETURN,a])}function f(a){return i(d,a),a.slice(2)}var g=a("../script"),h=a("../types"),i=a("typeforce"),j=a("bitcoin-ops");d.toJSON=function(){return"null data output"},b.exports={output:{check:d,decode:f,encode:e}}},{"../script":44,"../types":70,"bitcoin-ops":32,typeforce:312}],51:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{"./input":52,"./output":53,dup:47}],52:[function(a,b,c){function d(a){var b=i.decompile(a);return 1===b.length&&i.isCanonicalSignature(b[0])}function e(a){return j(i.isCanonicalSignature,a),[a]}function f(a){return i.compile(e(a))}function g(a){return j(d,a),a[0]}function h(a){var b=i.decompile(a);return g(b)}var i=a("../../script"),j=a("typeforce");d.toJSON=function(){return"pubKey input"},b.exports={check:d,decode:h,decodeStack:g,encode:f,encodeStack:e}},{"../../script":44,typeforce:312}],53:[function(a,b,c){function d(a){var b=g.decompile(a);return 2===b.length&&g.isCanonicalPubKey(b[0])&&b[1]===i.OP_CHECKSIG}function e(a){return h(g.isCanonicalPubKey,a),g.compile([a,i.OP_CHECKSIG])}function f(a){var b=g.decompile(a);return h(d,b),b[0]}var g=a("../../script"),h=a("typeforce"),i=a("bitcoin-ops");d.toJSON=function(){return"pubKey output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"bitcoin-ops":32,typeforce:312}],54:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{"./input":55,"./output":56,dup:47}],55:[function(a,b,c){function d(a){var b=i.decompile(a);return 2===b.length&&i.isCanonicalSignature(b[0])&&i.isCanonicalPubKey(b[1])}function e(a,b){return j({signature:i.isCanonicalSignature,pubKey:i.isCanonicalPubKey},{signature:a,pubKey:b}),[a,b]}function f(a,b){return i.compile(e(a,b))}function g(a){return j(d,a),{signature:a[0],pubKey:a[1]}}function h(a){var b=i.decompile(a);return g(b)}var i=a("../../script"),j=a("typeforce");d.toJSON=function(){return"pubKeyHash input"},b.exports={check:d,decode:h,decodeStack:g,encode:f,encodeStack:e}},{"../../script":44,typeforce:312}],56:[function(a,b,c){function d(a){var b=g.compile(a);return 25===b.length&&b[0]===j.OP_DUP&&b[1]===j.OP_HASH160&&20===b[2]&&b[23]===j.OP_EQUALVERIFY&&b[24]===j.OP_CHECKSIG}function e(a){return i(h.Hash160bit,a),g.compile([j.OP_DUP,j.OP_HASH160,a,j.OP_EQUALVERIFY,j.OP_CHECKSIG])}function f(a){return i(d,a),a.slice(3,23)}var g=a("../../script"),h=a("../../types"),i=a("typeforce"),j=a("bitcoin-ops");d.toJSON=function(){return"pubKeyHash output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"../../types":70,"bitcoin-ops":32,typeforce:312}],57:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{"./input":58,"./output":59,dup:47}],58:[function(a,b,c){function d(a,b){var c=i.decompile(a);if(c.length<1)return!1;var d=c[c.length-1];if(!Buffer.isBuffer(d))return!1;var e=i.decompile(i.compile(c.slice(0,-1))),f=i.decompile(d);if(0===f.length)return!1;if(!i.isPushOnly(e))return!1;var g=i.classifyInput(e,b),h=i.classifyOutput(f);return 1===c.length?h===i.types.P2WSH||h===i.types.P2WPKH:g===h}function e(a,b){var c=i.compile(b);return[].concat(a,c)}function f(a,b){var c=i.decompile(a);return i.compile(e(c,b))}function g(a){return j(d,a),{redeemScriptStack:a.slice(0,-1),redeemScript:a[a.length-1]}}function h(a){var b=i.decompile(a),c=g(b);return c.redeemScriptSig=i.compile(c.redeemScriptStack),delete c.redeemScriptStack,c}var Buffer=a("safe-buffer").Buffer,i=a("../../script"),j=a("typeforce");d.toJSON=function(){return"scriptHash input"},b.exports={check:d,decode:h,decodeStack:g,encode:f,encodeStack:e}},{"../../script":44,"safe-buffer":288,typeforce:312}],59:[function(a,b,c){function d(a){var b=g.compile(a);return 23===b.length&&b[0]===j.OP_HASH160&&20===b[1]&&b[22]===j.OP_EQUAL}function e(a){return i(h.Hash160bit,a),g.compile([j.OP_HASH160,a,j.OP_EQUAL])}function f(a){return i(d,a),a.slice(2,22)}var g=a("../../script"),h=a("../../types"),i=a("typeforce"),j=a("bitcoin-ops");d.toJSON=function(){return"scriptHash output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"../../types":70,"bitcoin-ops":32,typeforce:312}],60:[function(a,b,c){b.exports={output:a("./output")}},{"./output":61}],61:[function(a,b,c){function d(a){var b=g.compile(a);return b.length>37&&b[0]===j.OP_RETURN&&36===b[1]&&b.slice(2,6).equals(k)}function e(a){i(h.Hash256bit,a);var b=Buffer.allocUnsafe(36);return k.copy(b,0),a.copy(b,4),g.compile([j.OP_RETURN,b])}function f(a){return i(d,a),g.decompile(a)[1].slice(4,36)}var Buffer=a("safe-buffer").Buffer,g=a("../../script"),h=a("../../types"),i=a("typeforce"),j=a("bitcoin-ops"),k=Buffer.from("aa21a9ed","hex");
7
d.toJSON=function(){return"Witness commitment output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"../../types":70,"bitcoin-ops":32,"safe-buffer":288,typeforce:312}],62:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{"./input":63,"./output":64,dup:47}],63:[function(a,b,c){function d(a){return h.isCanonicalPubKey(a)&&33===a.length}function e(a){var b=h.decompile(a);return 2===b.length&&h.isCanonicalSignature(b[0])&&d(b[1])}function f(a,b){return i({signature:h.isCanonicalSignature,pubKey:d},{signature:a,pubKey:b}),[a,b]}function g(a){return i(e,a),{signature:a[0],pubKey:a[1]}}var h=a("../../script"),i=a("typeforce");e.toJSON=function(){return"witnessPubKeyHash input"},b.exports={check:e,decodeStack:g,encodeStack:f}},{"../../script":44,typeforce:312}],64:[function(a,b,c){function d(a){var b=g.compile(a);return 22===b.length&&b[0]===j.OP_0&&20===b[1]}function e(a){return i(h.Hash160bit,a),g.compile([j.OP_0,a])}function f(a){return i(d,a),a.slice(2)}var g=a("../../script"),h=a("../../types"),i=a("typeforce"),j=a("bitcoin-ops");d.toJSON=function(){return"Witness pubKeyHash output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"../../types":70,"bitcoin-ops":32,typeforce:312}],65:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{"./input":66,"./output":67,dup:47}],66:[function(a,b,c){var d=a("../scripthash/input");b.exports={check:d.check,decodeStack:d.decodeStack,encodeStack:d.encodeStack}},{"../scripthash/input":58}],67:[function(a,b,c){function d(a){var b=g.compile(a);return 34===b.length&&b[0]===j.OP_0&&32===b[1]}function e(a){return i(h.Hash256bit,a),g.compile([j.OP_0,a])}function f(a){return i(d,a),a.slice(2)}var g=a("../../script"),h=a("../../types"),i=a("typeforce"),j=a("bitcoin-ops");d.toJSON=function(){return"Witness scriptHash output"},b.exports={check:d,decode:f,encode:e}},{"../../script":44,"../../types":70,"bitcoin-ops":32,typeforce:312}],68:[function(a,b,c){function d(a){var b=a.length;return n.encodingLength(b)+b}function e(a){var b=a.length;return n.encodingLength(b)+a.reduce(function(a,b){return a+d(b)},0)}function f(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}var Buffer=a("safe-buffer").Buffer,g=a("buffer-reverse"),h=a("./crypto"),i=a("./script"),j=a("./bufferutils"),k=a("bitcoin-ops"),l=a("typeforce"),m=a("./types"),n=a("varuint-bitcoin");f.DEFAULT_SEQUENCE=4294967295,f.SIGHASH_ALL=1,f.SIGHASH_NONE=2,f.SIGHASH_SINGLE=3,f.SIGHASH_ANYONECANPAY=128,f.SIGHASH_BITCOINCASHBIP143=64,f.ADVANCED_TRANSACTION_MARKER=0,f.ADVANCED_TRANSACTION_FLAG=1;var o=Buffer.allocUnsafe(0),p=[],q=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),r=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),s=Buffer.from("ffffffffffffffff","hex"),t={script:o,valueBuffer:s};f.fromBuffer=function(a,b){function c(b){return l+=b,a.slice(l-b,l)}function d(){var b=a.readUInt32LE(l);return l+=4,b}function e(){var b=a.readInt32LE(l);return l+=4,b}function g(){var b=j.readUInt64LE(a,l);return l+=8,b}function h(){var b=n.decode(a,l);return l+=n.decode.bytes,b}function i(){return c(h())}function k(){for(var a=h(),b=[],c=0;c<a;c++)b.push(i());return b}var l=0,m=new f;m.version=e();var o=a.readUInt8(l),q=a.readUInt8(l+1),r=!1;o===f.ADVANCED_TRANSACTION_MARKER&&q===f.ADVANCED_TRANSACTION_FLAG&&(l+=2,r=!0);for(var s=h(),t=0;t<s;++t)m.ins.push({hash:c(32),index:d(),script:i(),sequence:d(),witness:p});var u=h();for(t=0;t<u;++t)m.outs.push({value:g(),script:i()});if(r){for(t=0;t<s;++t)m.ins[t].witness=k();if(!m.hasWitnesses())throw new Error("Transaction has superfluous witness data")}if(m.locktime=d(),b)return m;if(l!==a.length)throw new Error("Transaction has unexpected data");return m},f.fromHex=function(a){return f.fromBuffer(Buffer.from(a,"hex"))},f.isCoinbaseHash=function(a){l(m.Hash256bit,a);for(var b=0;b<32;++b)if(0!==a[b])return!1;return!0},f.prototype.isCoinbase=function(){return 1===this.ins.length&&f.isCoinbaseHash(this.ins[0].hash)},f.prototype.addInput=function(a,b,c,d){return l(m.tuple(m.Hash256bit,m.UInt32,m.maybe(m.UInt32),m.maybe(m.Buffer)),arguments),m.Null(c)&&(c=f.DEFAULT_SEQUENCE),this.ins.push({hash:a,index:b,script:d||o,sequence:c,witness:p})-1},f.prototype.addOutput=function(a,b){return l(m.tuple(m.Buffer,m.Satoshi),arguments),this.outs.push({script:a,value:b})-1},f.prototype.hasWitnesses=function(){return this.ins.some(function(a){return 0!==a.witness.length})},f.prototype.weight=function(){var a=this.__byteLength(!1),b=this.__byteLength(!0);return 3*a+b},f.prototype.virtualSize=function(){return Math.ceil(this.weight()/4)},f.prototype.byteLength=function(){return this.__byteLength(!0)},f.prototype.__byteLength=function(a){var b=a&&this.hasWitnesses();return(b?10:8)+n.encodingLength(this.ins.length)+n.encodingLength(this.outs.length)+this.ins.reduce(function(a,b){return a+40+d(b.script)},0)+this.outs.reduce(function(a,b){return a+8+d(b.script)},0)+(b?this.ins.reduce(function(a,b){return a+e(b.witness)},0):0)},f.prototype.clone=function(){var a=new f;return a.version=this.version,a.locktime=this.locktime,a.ins=this.ins.map(function(a){return{hash:a.hash,index:a.index,script:a.script,sequence:a.sequence,witness:a.witness}}),a.outs=this.outs.map(function(a){return{script:a.script,value:a.value}}),a},f.prototype.hashForSignature=function(a,b,c){if(l(m.tuple(m.UInt32,m.Buffer,m.Number),arguments),a>=this.ins.length)return r;var d=i.compile(i.decompile(b).filter(function(a){return a!==k.OP_CODESEPARATOR})),e=this.clone();if((31&c)===f.SIGHASH_NONE)e.outs=[],e.ins.forEach(function(b,c){c!==a&&(b.sequence=0)});else if((31&c)===f.SIGHASH_SINGLE){if(a>=this.outs.length)return r;e.outs.length=a+1;for(var g=0;g<a;g++)e.outs[g]=t;e.ins.forEach(function(b,c){c!==a&&(b.sequence=0)})}c&f.SIGHASH_ANYONECANPAY?(e.ins=[e.ins[a]],e.ins[0].script=d):(e.ins.forEach(function(a){a.script=o}),e.ins[a].script=d);var j=Buffer.allocUnsafe(e.__byteLength(!1)+4);return j.writeInt32LE(c,j.length-4),e.__toBuffer(j,0,!1),h.hash256(j)},f.prototype.hashForWitnessV0=function(a,b,c,e){function g(a){s+=a.copy(r,s)}function i(a){s=r.writeUInt32LE(a,s)}function k(a){s=j.writeUInt64LE(r,a,s)}function o(a){n.encode(a,r,s),s+=n.encode.bytes}function p(a){o(a.length),g(a)}l(m.tuple(m.UInt32,m.Buffer,m.Satoshi,m.UInt32),arguments);var r,s,t=q,u=q,v=q;if(e&f.SIGHASH_ANYONECANPAY||(r=Buffer.allocUnsafe(36*this.ins.length),s=0,this.ins.forEach(function(a){g(a.hash),i(a.index)}),u=h.hash256(r)),e&f.SIGHASH_ANYONECANPAY||(31&e)===f.SIGHASH_SINGLE||(31&e)===f.SIGHASH_NONE||(r=Buffer.allocUnsafe(4*this.ins.length),s=0,this.ins.forEach(function(a){i(a.sequence)}),v=h.hash256(r)),(31&e)!==f.SIGHASH_SINGLE&&(31&e)!==f.SIGHASH_NONE){var w=this.outs.reduce(function(a,b){return a+8+d(b.script)},0);r=Buffer.allocUnsafe(w),s=0,this.outs.forEach(function(a){k(a.value),p(a.script)}),t=h.hash256(r)}else if((31&e)===f.SIGHASH_SINGLE&&a<this.outs.length){var x=this.outs[a];r=Buffer.allocUnsafe(8+d(x.script)),s=0,k(x.value),p(x.script),t=h.hash256(r)}r=Buffer.allocUnsafe(156+d(b)),s=0;var y=this.ins[a];return i(this.version),g(u),g(v),g(y.hash),i(y.index),p(b),k(c),i(y.sequence),g(t),i(this.locktime),i(e),h.hash256(r)},f.prototype.hashForCashSignature=function(a,b,c,d){if(l(m.tuple(m.UInt32,m.Buffer,m.Number,m.maybe(m.UInt53)),arguments),d&f.SIGHASH_BITCOINCASHBIP143){if(m.Null(c))throw new Error("Bitcoin Cash sighash requires value of input to be signed.");return this.hashForWitnessV0(a,b,c,d)}return this.hashForSignature(a,b,d)},f.prototype.getHash=function(){return h.hash256(this.__toBuffer(void 0,void 0,!1))},f.prototype.getId=function(){return g(this.getHash()).toString("hex")},f.prototype.toBuffer=function(a,b){return this.__toBuffer(a,b,!0)},f.prototype.__toBuffer=function(a,b,c){function d(b){o+=b.copy(a,o)}function e(b){o=a.writeUInt8(b,o)}function g(b){o=a.writeUInt32LE(b,o)}function h(b){o=a.writeInt32LE(b,o)}function i(b){o=j.writeUInt64LE(a,b,o)}function k(b){n.encode(b,a,o),o+=n.encode.bytes}function l(a){k(a.length),d(a)}function m(a){k(a.length),a.forEach(l)}a||(a=Buffer.allocUnsafe(this.__byteLength(c)));var o=b||0;h(this.version);var p=c&&this.hasWitnesses();return p&&(e(f.ADVANCED_TRANSACTION_MARKER),e(f.ADVANCED_TRANSACTION_FLAG)),k(this.ins.length),this.ins.forEach(function(a){d(a.hash),g(a.index),l(a.script),g(a.sequence)}),k(this.outs.length),this.outs.forEach(function(a){a.valueBuffer?d(a.valueBuffer):i(a.value),l(a.script)}),p&&this.ins.forEach(function(a){m(a.witness)}),g(this.locktime),void 0!==b?a.slice(b,o):a},f.prototype.toHex=function(){return this.toBuffer().toString("hex")},f.prototype.setInputScript=function(a,b){l(m.tuple(m.Number,m.Buffer),arguments),this.ins[a].script=b},f.prototype.setWitness=function(a,b){l(m.tuple(m.Number,[m.Buffer]),arguments),this.ins[a].witness=b},b.exports=f},{"./bufferutils":36,"./crypto":37,"./script":44,"./types":70,"bitcoin-ops":32,"buffer-reverse":102,"safe-buffer":288,typeforce:312,"varuint-bitcoin":321}],69:[function(a,b,c){function d(a){return A.indexOf(a)!==-1}function e(a){return B.indexOf(a)!==-1}function f(a,b,c){var d=[],e=[];switch(a){case z.P2PKH:d=b.slice(1),e=b.slice(0,1);break;case z.P2PK:d[0]=c?u.pubKey.output.decode(c):void 0,e=b.slice(0,1);break;case z.MULTISIG:if(c){var f=u.multisig.output.decode(c);d=f.pubKeys}e=b.slice(1).map(function(a){return 0===a.length?void 0:a})}return{pubKeys:d,signatures:e}}function g(a,b){if(0===a.length&&0===b.length)return{};var c,g,h,i,j,k,l,m,n,o,p=!1,q=!1,r=!1,s=u.decompile(a),v=u.classifyInput(s,!0);v===z.P2SH&&(r=!0,j=s[s.length-1],m=u.classifyOutput(j),c=u.scriptHash.output.encode(t.hash160(j)),g=z.P2SH,i=j);var w=u.classifyWitness(b,!0);if(w===z.P2WSH){if(k=b[b.length-1],l=u.classifyOutput(k),q=!0,p=!0,0===a.length){if(c=u.witnessScriptHash.output.encode(t.sha256(k)),g=z.P2WSH,void 0!==j)throw new Error("Redeem script given when unnecessary")}else{if(!j)throw new Error("No redeemScript provided for P2WSH, but scriptSig non-empty");if(n=u.witnessScriptHash.output.encode(t.sha256(k)),!j.equals(n))throw new Error("Redeem script didn't match witnessScript")}if(!d(u.classifyOutput(k)))throw new Error("unsupported witness script");i=k,h=l,o=b.slice(0,-1)}else if(w===z.P2WPKH){p=!0;var x=b[b.length-1],y=t.hash160(x);if(0===a.length){if(c=u.witnessPubKeyHash.output.encode(y),g=z.P2WPKH,"undefined"!=typeof j)throw new Error("Redeem script given when unnecessary")}else{if(!j)throw new Error("No redeemScript provided for P2WPKH, but scriptSig wasn't empty");if(n=u.witnessPubKeyHash.output.encode(y),!j.equals(n))throw new Error("Redeem script did not have the right witness program")}h=z.P2PKH,o=b}else if(j){if(!e(m))throw new Error("Bad redeemscript!");i=j,h=m,o=s.slice(0,-1)}else g=h=u.classifyInput(a),o=s;var A=f(h,o,i),B={pubKeys:A.pubKeys,signatures:A.signatures,prevOutScript:c,prevOutType:g,signType:h,signScript:i,witness:Boolean(p)};return r&&(B.redeemScript=j,B.redeemScriptType=m),q&&(B.witnessScript=k,B.witnessScriptType=l),B}function h(a,b,c,d){if(a.signType===z.MULTISIG&&a.signScript&&a.pubKeys.length!==a.signatures.length){var e=a.signatures.concat();a.signatures=a.pubKeys.map(function(f){var g,h=ECPair.fromPublicKeyBuffer(f);return e.some(function(f,i){if(!f)return!1;var j,k=C.parseScriptSignature(f);return j=d?b.hashForCashSignature(c,a.signScript,a.value,k.hashType):a.witness?b.hashForWitnessV0(c,a.signScript,a.value,k.hashType):b.hashForSignature(c,a.signScript,k.hashType),!!h.verify(j,k.signature)&&(e[i]=void 0,g=f,!0)}),g})}}function i(a,b,c){x(y.Buffer,a);var d=u.decompile(a);b||(b=u.classifyOutput(a));var e=[];switch(b){case z.P2PKH:if(!c)break;var f=d[2],g=t.hash160(c);f.equals(g)&&(e=[c]);break;case z.P2WPKH:if(!c)break;var h=d[1],i=t.hash160(c);h.equals(i)&&(e=[c]);break;case z.P2PK:e=d.slice(0,1);break;case z.MULTISIG:e=d.slice(1,-2);break;default:return{scriptType:b}}return{pubKeys:e,scriptType:b,signatures:e.map(function(){})}}function j(a,b){if(a.prevOutType){if(a.prevOutType!==z.P2SH)throw new Error("PrevOutScript must be P2SH");var c=u.decompile(a.prevOutScript)[1];if(!c.equals(b))throw new Error("Inconsistent hash160(RedeemScript)")}}function k(a,b){if(a.prevOutType){if(a.prevOutType!==z.P2WSH)throw new Error("PrevOutScript must be P2WSH");var c=u.decompile(a.prevOutScript)[1];if(!c.equals(b))throw new Error("Inconsistent sha25(WitnessScript)")}}function l(a,b,c,d,e){var f,g,h,l,m,n,o,p,q,r=!1,s=!1,v=!1;if(c&&e){if(m=t.hash160(c),o=t.sha256(e),j(a,m),!c.equals(u.witnessScriptHash.output.encode(o)))throw new Error("Witness script inconsistent with redeem script");if(f=i(e,void 0,b),!f.pubKeys)throw new Error('WitnessScript not supported "'+u.toASM(c)+'"');g=u.types.P2SH,h=u.scriptHash.output.encode(m),r=s=v=!0,l=u.types.P2WSH,p=n=f.scriptType,q=e}else if(c){if(m=t.hash160(c),j(a,m),f=i(c,void 0,b),!f.pubKeys)throw new Error('RedeemScript not supported "'+u.toASM(c)+'"');g=u.types.P2SH,h=u.scriptHash.output.encode(m),r=!0,p=l=f.scriptType,q=c,s=p===u.types.P2WPKH}else if(e){if(o=t.sha256(e),k(a,o),f=i(e,void 0,b),!f.pubKeys)throw new Error('WitnessScript not supported "'+u.toASM(c)+'"');g=u.types.P2WSH,h=u.witnessScriptHash.output.encode(o),s=v=!0,p=n=f.scriptType,q=e}else if(a.prevOutType){if(a.prevOutType===z.P2SH||a.prevOutType===z.P2WSH)throw new Error("PrevOutScript is "+a.prevOutType+", requires redeemScript");if(g=a.prevOutType,h=a.prevOutScript,f=i(a.prevOutScript,a.prevOutType,b),!f.pubKeys)return;s=a.prevOutType===z.P2WPKH,p=g,q=h}else h=u.pubKeyHash.output.encode(t.hash160(b)),f=i(h,z.P2PKH,b),g=z.P2PKH,s=!1,p=g,q=h;if(void 0!==d||s){if(x(y.Satoshi,d),void 0!==a.value&&a.value!==d)throw new Error("Input didn't match witnessValue");a.value=d}p===z.P2WPKH&&(q=u.pubKeyHash.output.encode(u.witnessPubKeyHash.output.decode(q))),r&&(a.redeemScript=c,a.redeemScriptType=l),v&&(a.witnessScript=e,a.witnessScriptType=n),a.pubKeys=f.pubKeys,a.signatures=f.signatures,a.signScript=q,a.signType=p,a.prevOutScript=h,a.prevOutType=g,a.witness=s}function m(a,b,c,d){if(a===z.P2PKH){if(1===b.length&&Buffer.isBuffer(b[0])&&1===c.length)return u.pubKeyHash.input.encodeStack(b[0],c[0])}else if(a===z.P2PK){if(1===b.length&&Buffer.isBuffer(b[0]))return u.pubKey.input.encodeStack(b[0])}else{if(a!==z.MULTISIG)throw new Error("Not yet supported");if(b.length>0)return b=b.map(function(a){return a||w.OP_0}),d||(b=b.filter(function(a){return a!==w.OP_0})),u.multisig.input.encodeStack(b)}if(!d)throw new Error("Not enough signatures provided");return[]}function n(a,b){var c=a.prevOutType,f=[],g=[];d(c)&&(f=m(c,a.signatures,a.pubKeys,b));var h=!1;if(c===u.types.P2SH){if(!b&&!e(a.redeemScriptType))throw new Error("Impossible to sign this type");d(a.redeemScriptType)&&(f=m(a.redeemScriptType,a.signatures,a.pubKeys,b)),a.redeemScriptType&&(h=!0,c=a.redeemScriptType)}switch(c){case u.types.P2WPKH:g=m(u.types.P2PKH,a.signatures,a.pubKeys,b);break;case u.types.P2WSH:if(!b&&!d(a.witnessScriptType))throw new Error("Impossible to sign this type");d(a.witnessScriptType)&&(g=m(a.witnessScriptType,a.signatures,a.pubKeys,b),g.push(a.witnessScript),c=a.witnessScriptType)}return h&&f.push(a.redeemScript),{type:c,script:u.compile(f),witness:g}}function o(a,b){this.prevTxMap={},this.network=a||v.bitcoin,this.maximumFeeRate=b||1e3,this.inputs=[],this.bitcoinCash=!1,this.tx=new D}function p(a){return void 0!==a.prevOutScript&&void 0!==a.signScript&&void 0!==a.pubKeys&&void 0!==a.signatures&&a.signatures.length===a.pubKeys.length&&a.pubKeys.length>0&&void 0!==a.witness}function q(a){return a.readUInt8(a.length-1)}var Buffer=a("safe-buffer").Buffer,r=a("buffer-reverse"),s=a("./address"),t=a("./crypto"),u=a("./script"),v=a("./networks"),w=a("bitcoin-ops"),x=a("typeforce"),y=a("./types"),z=u.types,A=[u.types.P2PKH,u.types.P2PK,u.types.MULTISIG],B=A.concat([u.types.P2WPKH,u.types.P2WSH]),ECPair=a("./ecpair"),C=a("./ecsignature"),D=a("./transaction");o.prototype.enableBitcoinCash=function(a){"undefined"==typeof a&&(a=!0),this.bitcoinCash=a},o.prototype.setLockTime=function(a){if(x(y.UInt32,a),this.inputs.some(function(a){return!!a.signatures&&a.signatures.some(function(a){return a})}))throw new Error("No, this would invalidate signatures");this.tx.locktime=a},o.prototype.setVersion=function(a){x(y.UInt32,a),this.tx.version=a},o.fromTransaction=function(a,b,c){var d=new o(b);return d.enableBitcoinCash(Boolean(c)),d.setVersion(a.version),d.setLockTime(a.locktime),a.outs.forEach(function(a){d.addOutput(a.script,a.value)}),a.ins.forEach(function(a){d.__addInputUnsafe(a.hash,a.index,{sequence:a.sequence,script:a.script,value:a.value,witness:a.witness})}),d.inputs.forEach(function(b,d){h(b,a,d,c)}),d},o.prototype.addInput=function(a,b,c,d){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");var e;if("string"==typeof a)a=r(Buffer.from(a,"hex"));else if(a instanceof D){var f=a.outs[b];d=f.script,e=f.value,a=a.getHash()}return this.__addInputUnsafe(a,b,{sequence:c,prevOutScript:d,value:e})},o.prototype.__addInputUnsafe=function(a,b,c){if(D.isCoinbaseHash(a))throw new Error("coinbase inputs not supported");var d=a.toString("hex")+":"+b;if(void 0!==this.prevTxMap[d])throw new Error("Duplicate TxOut: "+d);var e={};if(void 0!==c.script&&(e=g(c.script,c.witness||[])),void 0!==c.value&&(e.value=c.value),!e.prevOutScript&&c.prevOutScript){var f;if(!e.pubKeys&&!e.signatures){var h=i(c.prevOutScript);h.pubKeys&&(e.pubKeys=h.pubKeys,e.signatures=h.signatures),f=h.scriptType}e.prevOutScript=c.prevOutScript,e.prevOutType=f||u.classifyOutput(c.prevOutScript)}var j=this.tx.addInput(a,b,c.sequence,c.scriptSig);return this.inputs[j]=e,this.prevTxMap[d]=j,j},o.prototype.addOutput=function(a,b){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof a&&(a=s.toOutputScript(a,this.network)),this.tx.addOutput(a,b)},o.prototype.build=function(){return this.__build(!1)},o.prototype.buildIncomplete=function(){return this.__build(!0)},o.prototype.__build=function(a){if(!a){if(!this.tx.ins.length)throw new Error("Transaction has no inputs");if(!this.tx.outs.length)throw new Error("Transaction has no outputs")}var b=this.tx.clone();if(this.inputs.forEach(function(c,e){var f=c.witnessScriptType||c.redeemScriptType||c.prevOutType;if(!f&&!a)throw new Error("Transaction is not complete");var g=n(c,a);if(!a&&!d(g.type)&&g.type!==u.types.P2WPKH)throw new Error(g.type+" not supported");b.setInputScript(e,g.script),b.setWitness(e,g.witness)}),!a&&this.__overMaximumFees(b.virtualSize()))throw new Error("Transaction has absurd fees");return b},o.prototype.sign=function(a,b,c,d,e,f){if(b.network!==this.network)throw new Error("Inconsistent network");if(!this.inputs[a])throw new Error("No input at index: "+a);d=d||D.SIGHASH_ALL;var g=this.inputs[a];if(void 0!==g.redeemScript&&c&&!g.redeemScript.equals(c))throw new Error("Inconsistent redeemScript");var h=b.getPublicKeyBuffer();if(!p(g)&&(l(g,h,c,e,f),!p(g)))throw Error(g.prevOutType+" not supported");var i;i=this.bitcoinCash?this.tx.hashForCashSignature(a,g.signScript,e,d):g.witness?this.tx.hashForWitnessV0(a,g.signScript,e,d):this.tx.hashForSignature(a,g.signScript,d);var j=g.pubKeys.some(function(a,c){if(!h.equals(a))return!1;if(g.signatures[c])throw new Error("Signature already exists");if(!b.compressed&&g.signType===z.P2WPKH)throw new Error("BIP143 rejects uncompressed public keys in P2WPKH or P2WSH");return g.signatures[c]=b.sign(i).toScriptSignature(d),!0});if(!j)throw new Error("Key pair cannot sign for this input")},o.prototype.__canModifyInputs=function(){return this.inputs.every(function(a){return void 0===a.signatures||a.signatures.every(function(a){if(!a)return!0;var b=q(a);return b&D.SIGHASH_ANYONECANPAY})})},o.prototype.__canModifyOutputs=function(){var a=this.tx.ins.length,b=this.tx.outs.length;return this.inputs.every(function(c){return void 0===c.signatures||c.signatures.every(function(c){if(!c)return!0;var d=q(c),e=31&d;return e===D.SIGHASH_NONE||(e===D.SIGHASH_SINGLE?a<=b:void 0)})})},o.prototype.__overMaximumFees=function(a){var b=this.inputs.reduce(function(a,b){return a+(b.value>>>0)},0),c=this.tx.outs.reduce(function(a,b){return a+b.value},0),d=b-c,e=d/a;return e>this.maximumFeeRate},b.exports=o},{"./address":34,"./crypto":37,"./ecpair":39,"./ecsignature":40,"./networks":43,"./script":44,"./transaction":68,"./types":70,"bitcoin-ops":32,"buffer-reverse":102,"safe-buffer":288,typeforce:312}],70:[function(a,b,c){function d(a){return g.UInt32(a)&&a<=h}function e(a){return g.String(a)&&a.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function f(a){return g.UInt53(a)&&a<=i}var g=a("typeforce"),h=Math.pow(2,31)-1;e.toJSON=function(){return"BIP32 derivation path"};var i=21e14,j=g.quacksLike("BigInteger"),k=g.quacksLike("Point"),l=g.compile({r:j,s:j}),m=g.compile({messagePrefix:g.oneOf(g.Buffer,g.String),bip32:{public:g.UInt32,private:g.UInt32},pubKeyHash:g.UInt8,scriptHash:g.UInt8,wif:g.UInt8}),n={BigInt:j,BIP32Path:e,Buffer256bit:g.BufferN(32),ECPoint:k,ECSignature:l,Hash160bit:g.BufferN(20),Hash256bit:g.BufferN(32),Network:m,Satoshi:f,UInt31:d};for(var o in g)n[o]=g[o];b.exports=n},{typeforce:312}],71:[function(a,b,c){(function(Buffer){function c(a){var b=l("sha256").update(a).digest();return l("sha256").update(b).digest()}function d(a){var b=l("sha256").update(a).digest();return l("ripemd160").update(b).digest()}function e(a,b,c){return c&&(b+=4),Buffer.concat([new Buffer([b+27]),a])}function f(a){if(65!==a.length)throw new Error("Invalid signature length");var b=a.readUInt8(0)-27;if(b>7)throw new Error("Invalid signature parameter");return{compressed:!!(4&b),recovery:3&b,signature:a.slice(1)}}function g(a,b){var d=n.encodingLength(a.length),e=new Buffer(b.length+d+a.length);return e.write(b,0),n.encode(a.length,e,b.length),e.write(a,b.length+d),c(e)}function h(a,b,c,d){var f=g(a,b),h=m.sign(f,c);return e(h.signature,h.recovery,d)}function i(a,b,c,e){Buffer.isBuffer(e)||(e=new Buffer(e,"base64"));var h=f(e),i=g(a,b),l=m.recover(i,h.signature,h.recovery,h.compressed),n=d(l),o=j.decode(c).slice(1);return k(n,o)}var j=a("bs58check"),k=a("buffer-equals"),l=a("create-hash"),m=a("secp256k1"),n=a("varuint-bitcoin");b.exports={magicHash:g,sign:h,verify:i}}).call(this,a("buffer").Buffer)},{bs58check:74,buffer:104,"buffer-equals":101,"create-hash":110,secp256k1:289,"varuint-bitcoin":321}],72:[function(a,b,c){b.exports=function(a){function b(b){if(0===b.length)return"";for(var c=[0],d=0;d<b.length;++d){for(var e=0,g=b[d];e<c.length;++e)g+=c[e]<<8,c[e]=g%f,g=g/f|0;for(;g>0;)c.push(g%f),g=g/f|0}for(var h="",i=0;0===b[i]&&i<b.length-1;++i)h+=a[0];for(var j=c.length-1;j>=0;--j)h+=a[c[j]];return h}function c(a){if(0===a.length)return[];for(var b=[0],c=0;c<a.length;c++){var d=e[a[c]];if(void 0===d)return;for(var h=0,i=d;h<b.length;++h)i+=b[h]*f,b[h]=255&i,i>>=8;for(;i>0;)b.push(255&i),i>>=8}for(var j=0;a[j]===g&&j<a.length-1;++j)b.push(0);return b.reverse()}function d(a){var b=c(a);if(b)return b;throw new Error("Non-base"+f+" character")}for(var e={},f=a.length,g=a.charAt(0),h=0;h<a.length;h++)e[a.charAt(h)]=h;return{encode:b,decodeUnsafe:c,decode:d}}},{}],73:[function(a,b,c){var d=a("base-x"),e="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";b.exports=d(e)},{"base-x":72}],74:[function(a,b,c){(function(Buffer){"use strict";function c(a){var b=i("sha256").update(a).digest();return i("sha256").update(b).digest()}function d(a){var b=c(a);return h.encode(Buffer.concat([a,b],a.length+4))}function e(a){var b=a.slice(0,-4),d=a.slice(-4),e=c(b);if(!(d[0]^e[0]|d[1]^e[1]|d[2]^e[2]|d[3]^e[3]))return b}function f(a){var b=h.decodeUnsafe(a);if(b){var c=new Buffer(b);return e(c)}}function g(a){var b=h.decode(a),c=new Buffer(b),d=e(c);if(!d)throw new Error("Invalid checksum");return d}var h=a("bs58"),i=a("create-hash");b.exports={encode:d,decode:g,decodeUnsafe:f,decodeRaw:f}}).call(this,a("buffer").Buffer)},{bs58:73,buffer:104,"create-hash":110}],75:[function(a,b,c){!function(b,c){"use strict";function d(a,b){if(!a)throw new Error(b||"Assertion failed")}function e(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}function f(a,b,c){return f.isBN(a)?a:(this.negative=0,this.words=null,this.length=0,this.red=null,void(null!==a&&("le"!==b&&"be"!==b||(c=b,b=10),this._init(a||0,b||10,c||"be"))))}function g(a,b,c){for(var d=0,e=Math.min(a.length,c),f=b;f<e;f++){var g=a.charCodeAt(f)-48;d<<=4,d|=g>=49&&g<=54?g-49+10:g>=17&&g<=22?g-17+10:15&g}return d}function h(a,b,c,d){for(var e=0,f=Math.min(a.length,c),g=b;g<f;g++){var h=a.charCodeAt(g)-48;e*=d,e+=h>=49?h-49+10:h>=17?h-17+10:h}return e}function i(a){for(var b=new Array(a.bitLength()),c=0;c<b.length;c++){var d=c/26|0,e=c%26;b[c]=(a.words[d]&1<<e)>>>e}return b}function j(a,b,c){c.negative=b.negative^a.negative;var d=a.length+b.length|0;c.length=d,d=d-1|0;var e=0|a.words[0],f=0|b.words[0],g=e*f,h=67108863&g,i=g/67108864|0;c.words[0]=h;for(var j=1;j<d;j++){for(var k=i>>>26,l=67108863&i,m=Math.min(j,b.length-1),n=Math.max(0,j-a.length+1);n<=m;n++){var o=j-n|0;e=0|a.words[o],f=0|b.words[n],g=e*f+l,k+=g/67108864|0,l=67108863&g}c.words[j]=0|l,i=0|k}return 0!==i?c.words[j]=0|i:c.length--,c.strip()}function k(a,b,c){c.negative=b.negative^a.negative,c.length=a.length+b.length;for(var d=0,e=0,f=0;f<c.length-1;f++){var g=e;e=0;for(var h=67108863&d,i=Math.min(f,b.length-1),j=Math.max(0,f-a.length+1);j<=i;j++){var k=f-j,l=0|a.words[k],m=0|b.words[j],n=l*m,o=67108863&n;g=g+(n/67108864|0)|0,o=o+h|0,h=67108863&o,g=g+(o>>>26)|0,e+=g>>>26,g&=67108863}c.words[f]=h,d=g,g=e}return 0!==d?c.words[f]=d:c.length--,c.strip()}function l(a,b,c){var d=new m;return d.mulp(a,b,c)}function m(a,b){this.x=a,this.y=b}function n(a,b){this.name=a,this.p=new f(b,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function o(){n.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function p(){n.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function q(){n.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function r(){n.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function s(a){if("string"==typeof a){var b=f._prime(a);this.m=b.p,this.prime=b}else d(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null}function t(a){s.call(this,a),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)}"object"==typeof b?b.exports=f:c.BN=f,f.BN=f,f.wordSize=26;var Buffer;try{Buffer=a("buffer").Buffer}catch(a){}f.isBN=function(a){return a instanceof f||null!==a&&"object"==typeof a&&a.constructor.wordSize===f.wordSize&&Array.isArray(a.words)},f.max=function(a,b){return a.cmp(b)>0?a:b},f.min=function(a,b){return a.cmp(b)<0?a:b},f.prototype._init=function(a,b,c){if("number"==typeof a)return this._initNumber(a,b,c);if("object"==typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16),d(b===(0|b)&&b>=2&&b<=36),a=a.toString().replace(/\s+/g,"");var e=0;"-"===a[0]&&e++,16===b?this._parseHex(a,e):this._parseBase(a,b,e),"-"===a[0]&&(this.negative=1),this.strip(),"le"===c&&this._initArray(this.toArray(),b,c)},f.prototype._initNumber=function(a,b,c){a<0&&(this.negative=1,a=-a),a<67108864?(this.words=[67108863&a],this.length=1):a<4503599627370496?(this.words=[67108863&a,a/67108864&67108863],this.length=2):(d(a<9007199254740992),this.words=[67108863&a,a/67108864&67108863,1],this.length=3),"le"===c&&this._initArray(this.toArray(),b,c)},f.prototype._initArray=function(a,b,c){if(d("number"==typeof a.length),a.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var f,g,h=0;if("be"===c)for(e=a.length-1,f=0;e>=0;e-=3)g=a[e]|a[e-1]<<8|a[e-2]<<16,this.words[f]|=g<<h&67108863,this.words[f+1]=g>>>26-h&67108863,h+=24,h>=26&&(h-=26,f++);else if("le"===c)for(e=0,f=0;e<a.length;e+=3)g=a[e]|a[e+1]<<8|a[e+2]<<16,this.words[f]|=g<<h&67108863,this.words[f+1]=g>>>26-h&67108863,h+=24,h>=26&&(h-=26,f++);return this.strip()},f.prototype._parseHex=function(a,b){this.length=Math.ceil((a.length-b)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d,e,f=0;for(c=a.length-6,d=0;c>=b;c-=6)e=g(a,c,c+6),this.words[d]|=e<<f&67108863,this.words[d+1]|=e>>>26-f&4194303,f+=24,f>=26&&(f-=26,d++);c+6!==b&&(e=g(a,b,c+6),this.words[d]|=e<<f&67108863,this.words[d+1]|=e>>>26-f&4194303),this.strip()},f.prototype._parseBase=function(a,b,c){this.words=[0],this.length=1;for(var d=0,e=1;e<=67108863;e*=b)d++;d--,e=e/b|0;for(var f=a.length-c,g=f%d,i=Math.min(f,f-g)+c,j=0,k=c;k<i;k+=d)j=h(a,k,k+d,b),this.imuln(e),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j);if(0!==g){var l=1;for(j=h(a,k,a.length,b),k=0;k<g;k++)l*=b;this.imuln(l),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j)}},f.prototype.copy=function(a){a.words=new Array(this.length);for(var b=0;b<this.length;b++)a.words[b]=this.words[b];a.length=this.length,a.negative=this.negative,a.red=this.red},f.prototype.clone=function(){var a=new f(null);return this.copy(a),a},f.prototype._expand=function(a){for(;this.length<a;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(a,b){a=a||10,b=0|b||1;var c;if(16===a||"hex"===a){c="";for(var e=0,f=0,g=0;g<this.length;g++){var h=this.words[g],i=(16777215&(h<<e|f)).toString(16);f=h>>>24-e&16777215,c=0!==f||g!==this.length-1?u[6-i.length]+i+c:i+c,e+=2,e>=26&&(e-=26,g--)}for(0!==f&&(c=f.toString(16)+c);c.length%b!==0;)c="0"+c;return 0!==this.negative&&(c="-"+c),c}if(a===(0|a)&&a>=2&&a<=36){var j=v[a],k=w[a];c="";var l=this.clone();for(l.negative=0;!l.isZero();){var m=l.modn(k).toString(a);l=l.idivn(k),c=l.isZero()?m+c:u[j-m.length]+m+c}for(this.isZero()&&(c="0"+c);c.length%b!==0;)c="0"+c;return 0!==this.negative&&(c="-"+c),c}d(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var a=this.words[0];return 2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-a:a},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(a,b){return d("undefined"!=typeof Buffer),this.toArrayLike(Buffer,a,b)},f.prototype.toArray=function(a,b){return this.toArrayLike(Array,a,b)},f.prototype.toArrayLike=function(a,b,c){var e=this.byteLength(),f=c||Math.max(1,e);d(e<=f,"byte array longer than desired length"),d(f>0,"Requested array length <= 0"),this.strip();var g,h,i="le"===b,j=new a(f),k=this.clone();if(i){for(h=0;!k.isZero();h++)g=k.andln(255),