block-syncer-js

Fast block sync and retrieval using bloom filters
git clone git://git.defalsify.org/block-sync-js.git
Log | Files | Refs

commit 956ffbea7a39e80ed2520fccc05b875558e2f7bd
Author: nolash <dev@holbrook.no>
Date:   Sat, 31 Oct 2020 12:29:26 +0100

Initial commit

Diffstat:
Aindex.html | 46++++++++++++++++++++++++++++++++++++++++++++++
Apackage.json | 29+++++++++++++++++++++++++++++
Async.js | 30++++++++++++++++++++++++++++++
Aweb3.min.js | 2++
Aworker.js | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 171 insertions(+), 0 deletions(-)

diff --git a/index.html b/index.html @@ -0,0 +1,46 @@ +<html> + <head> + <title>Worker demo</title> + <script src='web3.min.js'></script>; + <script src='plugin.js'></script>; + <script> + +function Settings(f) { + this.w3 = { + engine: undefined, + provider: undefined, + } + this.scanFilter = f; +} + +window.addEventListener('load', () => { + let settings = new Settings(scan); + let provider = 'ws://localhost:8545'; + settings.w3.provider = provider; + settings.w3.engine = new Web3(provider); + plugin(settings); +}); + +async function scan(settings, lo, hi, bloom_block_bytes, bloom_blocktx_bytes, bloom_rounds) { + let w = new Worker('worker.js'); + w.onmessage = function(e) { + console.log('main', e); + }; + console.log('hi ' + hi); + w.postMessage({ + w3_provider: settings.w3.provider, + lo: lo, + hi: hi, + filters: [ + bloom_block_bytes, + bloom_blocktx_bytes, + ], + filter_rounds: bloom_rounds, + }); +} + + </script> + </head> + <body> + </body> +</html> diff --git a/package.json b/package.json @@ -0,0 +1,29 @@ +{ + "name": "block-syncer", + "version": "0.0.1", + "description": "Block syncer using bloom filters for selection", + "main": "dist/index.js", + "directories": { + "tests": "new_test" + }, + "files": [ + "sync" + ], + "dependencies": { + "mocha": "^7.2.0", + "moolb": "^0.0.4" + }, + "scripts": { + "test": "mocha --reporter spec ./test" + }, + "repository": { + "type": "git", + "url": "https://gitlab.com/nolash/block-syncer-js" + }, + "author": "Louis Holbrook <npm@holbrook.no> (https://holbrook.no)", + "license": "GPL-3.0-or-later", + "engine": { + "node": "^12.0.0" + } + } +} diff --git a/sync.js b/sync.js @@ -0,0 +1,30 @@ +function sync_by_filter_block(block, count, buf, bloom_blocktx, result_callback) { + for (let j = 0; j < 200; j++) { + w = new DataView(buf); + w.setInt32(4, j); + r = new Uint8Array(buf); + bloom_blocktx.check(r).then(function(ok) { + if (ok) { + console.debug('match in block' + block + ' tx ' + j); + result_callback(block, j); + } + }); + } +} + +function sync_by_filter(caller, lo, hi, bloom_block, bloom_blocktx, tx_count_getter, result_callback) { + for (let i = lo; i <= hi; i++) { + let a = new ArrayBuffer(8); + let w = new DataView(a); + w.setInt32(0, i); + let r = new Uint8Array(a.slice(0, 4)); + bloom_block.check(r).then(function(ok) { + if (ok) { + console.debug('match in block ' + i); + tx_count_getter().then(caller, function(n) { + sync_by_filter_block(i, n, a, bloom_blocktx, result_callback); + }); + } + }); + } +} diff --git a/web3.min.js b/web3.min.js @@ -0,0 +1 @@ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Web3=e()}}(function(){var define,module,exports;return function o(a,s,u){function c(t,e){if(!s[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(f)return f(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[t]={exports:{}};a[t][0].call(i.exports,function(e){return c(a[t][1][e]||e)},i,i.exports,o,a,s,u)}return s[t].exports}for(var f="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":2,"./asn1/base":4,"./asn1/constants":8,"./asn1/decoders":10,"./asn1/encoders":13,"bn.js":"BN"}],2:[function(e,t,r){"use strict";var n=e("../asn1"),i=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return i(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":1,inherits:104,vm:188}],3:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("inherits"),o=e("../base").Reporter,a=e("buffer").Buffer;function s(e,t){o.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function u(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof u||(e=new u(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+n(e));this.value=e,this.length=e.length}}i(s,o),(r.DecoderBuffer=s).prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},(r.EncoderBuffer=u).prototype.join=function(t,r){return t||(t=new a(this.length)),r||(r=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,r),r+=e.length}):("number"==typeof this.value?t[r]=this.value:"string"==typeof this.value?t.write(this.value,r):a.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}},{"../base":4,buffer:50,inherits:104}],4:[function(e,t,r){"use strict";var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":3,"./node":5,"./reporter":6}],5:[function(e,t,r){"use strict";function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=e("../base").Reporter,n=e("../base").EncoderBuffer,d=e("../base").DecoderBuffer,i=e("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function s(e,t){var r={};(this._baseState=r).enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=s;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var t=this._baseState,r={};u.forEach(function(e){r[e]=t[e]});var e=new this.constructor(r.parent);return e._baseState=r,e},s.prototype._wrap=function(){var r=this._baseState;a.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return r.children.push(e),e[t].apply(e,arguments)}},this)},s.prototype._init=function(e){var t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),i.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(i(null===t.children),(t.children=r).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map(function(r){if("object"!==f(r)||r.constructor!==Object)return r;var n={};return Object.keys(r).forEach(function(e){e==(0|e)&&(e|=0);var t=r[e];n[t]=e}),n}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){s.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),o.forEach(function(r){s.prototype[r]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return i(null===e.tag),e.tag=r,this._useArgs(t),this}}),s.prototype.use=function(e){i(e);var t=this._baseState;return i(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},s.prototype.key=function(e){var t=this._baseState;return i(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(t){var e=this._baseState;return i(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},s.prototype.contains=function(e){var t=this._baseState;return i(null===t.use),t.contains=e,this},s.prototype._decode=function(t,r){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,r));var n,i=e.default,o=!0,a=null;if(null!==e.key&&(a=t.enterKey(e.key)),e.optional){var s=null;if(null!==e.explicit?s=e.explicit:null!==e.implicit?s=e.implicit:null!==e.tag&&(s=e.tag),null!==s||e.any){if(o=this._peekTag(t,s,e.any),t.isError(o))return o}else{var u=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),o=!0}catch(e){o=!1}t.restore(u)}}if(e.obj&&o&&(n=t.enterObject()),o){if(null!==e.explicit){var c=this._decodeTag(t,e.explicit);if(t.isError(c))return c;t=c}var f=t.offset;if(null===e.use&&null===e.choice){if(e.any)u=t.save();var l=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(l))return l;e.any?i=t.raw(u):t=l}if(r&&r.track&&null!==e.tag&&r.track(t.path(),f,t.length,"tagged"),r&&r.track&&null!==e.tag&&r.track(t.path(),t.offset,t.length,"content"),i=e.any?i:null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),t.isError(i))return i;if(e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,r)}),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var h=new d(i);i=this._getUse(e.contains,t._reporterState.obj)._decode(h,r)}}return e.obj&&o&&(i=t.leaveObject(n)),null===e.key||null===i&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,e.key,i),i},s.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),i(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},s.prototype._decodeChoice=function(i,o){var a=this._baseState,s=null,u=!1;return Object.keys(a.choice).some(function(e){var t=i.save(),r=a.choice[e];try{var n=r._decode(i,o);if(i.isError(n))return!1;s={type:e,value:n},u=!0}catch(e){return i.restore(t),!1}return!0},this),u?s:i.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},s.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},s.prototype._encodeValue=function(n,i,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(n,i||new l);var r=null;if(this.reporter=i,t.optional&&void 0===n){if(null===t.default)return;n=t.default}var o=null,a=!1;if(t.any)r=this._createEncoderBuffer(n);else if(t.choice)r=this._encodeChoice(n,i);else if(t.contains)o=this._getUse(t.contains,e)._encode(n,i),a=!0;else if(t.children)o=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,i,n);if(null===e._baseState.key)return i.error("Child should have a key");var t=i.enterKey(e._baseState.key);if("object"!==f(n))return i.error("Child expected, but input is not object");var r=e._encode(n[e._baseState.key],i,n);return i.leaveKey(t),r},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===t.tag||"setof"===t.tag){if(!t.args||1!==t.args.length)return i.error("Too many args for : "+t.tag);if(!Array.isArray(n))return i.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,o=this._createEncoderBuffer(n.map(function(e){var t=this._baseState;return this._getUse(t.args[0],n)._encode(e,i)},s))}else null!==t.use?r=this._getUse(t.use,e)._encode(n,i):(o=this._encodePrimitive(t.tag,n),a=!0);if(!t.any&&null===t.choice){var u=null!==t.implicit?t.implicit:t.tag,c=null===t.implicit?"universal":"context";null===u?null===t.use&&i.error("Tag could be omitted only for .use()"):null===t.use&&(r=this._encodeComposite(u,a,c,o))}return null!==t.explicit&&(r=this._encodeComposite(t.explicit,!1,"context",r)),r},s.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":4,"minimalistic-assert":109}],6:[function(e,t,r){"use strict";var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}(r.Reporter=i).prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:104}],7:[function(e,t,r){"use strict";var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n._reverse(r.tag)},{"../constants":8}],8:[function(e,t,r){"use strict";var n=r;n._reverse=function(r){var n={};return Object.keys(r).forEach(function(e){(0|e)==e&&(e|=0);var t=r[e];n[t]=e}),n},n.der=e("./der")},{"./der":7}],9:[function(e,t,r){"use strict";var n=e("inherits"),i=e("../../asn1"),o=i.base,a=i.bignum,s=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function f(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(4<i)return e.error("length octect is too long");for(var o=n=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}(t.exports=u).prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=f(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=f(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=f(e,t);if(e.isError(r))return r;var n,i=l(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":1,inherits:104}],10:[function(e,t,r){"use strict";var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":9,"./pem":11}],11:[function(e,t,r){"use strict";var n=e("inherits"),l=e("buffer").Buffer,h=e("./der");function i(e){h.call(this,e),this.enc="pem"}n(i,h),(t.exports=i).prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,a=-1,s=0;s<r.length;s++){var u=r[s].match(i);if(null!==u&&u[2]===n){if(-1!==o){if("END"!==u[1])break;a=s;break}if("BEGIN"!==u[1])break;o=s}}if(-1===o||-1===a)throw new Error("PEM section not found for: "+n);var c=r.slice(o+1,a).join("");c.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new l(c,"base64");return h.prototype.decode.call(this,f,t)}},{"./der":9,buffer:50,inherits:104}],12:[function(e,t,r){"use strict";var n=e("inherits"),c=e("buffer").Buffer,i=e("../../asn1"),o=i.base,f=i.constants.der;function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){o.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}(t.exports=a).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(s,o.Node),s.prototype._encodeComposite=function(e,t,r,n){var i,o=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(f.tagByName.hasOwnProperty(e))i=f.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(31<=i)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=f.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(i=new c(2))[0]=o,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var a=1,s=n.length;256<=s;s>>=8)a++;(i=new c(2+a))[0]=o,i[1]=128|a;s=1+a;for(var u=n.length;0<u;s--,u>>=8)i[s]=255&u;return this._createEncoderBuffer([i,n])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var r=new c(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)},s.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n<e.length;n++){var o=e[n];for(i++;128<=o;o>>=7)i++}var a=new c(i),s=a.length-1;for(n=e.length-1;0<=n;n--){o=e[n];for(a[s--]=127&o;0<(o>>=7);)a[s--]=128|127&o}return this._createEncoderBuffer(a)},s.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!c.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new c(r)}if(c.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new c(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;256<=o;o>>=8)n++;for(o=(i=new Array(n)).length-1;0<=o;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new c(i))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},{"../../asn1":1,buffer:50,inherits:104}],13:[function(e,t,r){"use strict";var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":12,"./pem":14}],14:[function(e,t,r){"use strict";var n=e("inherits"),o=e("./der");function i(e){o.call(this,e),this.enc="pem"}n(i,o),(t.exports=i).prototype.encode=function(e,t){for(var r=o.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],i=0;i<r.length;i+=64)n.push(r.slice(i,i+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":12,inherits:104}],15:[function(S,A,e){(function(t){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=S("object-assign");function a(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function s(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var f=S("util/"),n=Object.prototype.hasOwnProperty,l=Array.prototype.slice,r="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function c(e){return!s(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var h=A.exports=m,i=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(f.isFunction(e)){if(r)return e.name;var t=e.toString().match(i);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function b(e){if(r||!f.isFunction(e))return f.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,r,n,i){throw new h.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function m(e,t){e||y(e,!0,t,"==",h.ok)}function v(e,t,r,n){if(e===t)return!0;if(s(e)&&s(t))return 0===a(e,t);if(f.isDate(e)&&f.isDate(t))return e.getTime()===t.getTime();if(f.isRegExp(e)&&f.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===o(e)||null!==t&&"object"===o(t)){if(c(e)&&c(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===a(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(s(e)!==s(t))return!1;var i=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==i&&i===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(f.isPrimitive(e)||f.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=g(e),o=g(t);if(i&&!o||!i&&o)return!1;if(i)return e=l.call(e),t=l.call(t),v(e,t,r);var a,s,u=k(e),c=k(t);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),s=u.length-1;0<=s;s--)if(u[s]!==c[s])return!1;for(s=u.length-1;0<=s;s--)if(a=u[s],!v(e[a],t[a],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&y(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!e&&i&&!r;if((!e&&f.isError(i)&&o&&w(i,r)||a)&&y(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}h.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(b((t=this).actual),128)+" "+t.operator+" "+p(b(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=d(r),a=i.indexOf("\n"+o);if(0<=a){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},f.inherits(h.AssertionError,Error),h.fail=y,h.ok=m,h.equal=function(e,t,r){e!=t&&y(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&y(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){v(e,t,!1)||y(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){v(e,t,!0)||y(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){v(e,t,!1)&&y(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&y(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&y(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&y(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){_(!0,e,t,r)},h.doesNotThrow=function(e,t,r){_(!1,e,t,r)},h.ifError=function(e){if(e)throw e},h.strict=e(function e(t,r){t||y(t,!0,r,"==",e)},h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var k=Object.keys||function(e){var t=[];for(var r in e)n.call(e,r)&&t.push(r);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":111,"util/":18}],16:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],17:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=function(e){return e&&"object"===n(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],18:[function(M,e,j){(function(n,i){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=/%[sdj%]/g;j.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(s,function(e){if("%%"===e)return"%";if(i<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),a=n[r];r<i;a=n[++r])v(a)||!f(a)?o+=" "+a:o+=" "+u(a);return o},j.deprecate=function(e,t){if(_(i.process))return function(){return j.deprecate(e,t).apply(this,arguments)};if(!0===n.noDeprecation)return e;var r=!1;return function(){if(!r){if(n.throwDeprecation)throw new Error(t);n.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}};var e,o={};function u(e,t){var r={seen:[],stylize:c};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&j._extend(r,t),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),d(r,e,r.depth)}function a(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function c(e,t){return e}function d(t,r,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==j.inspect&&(!r.constructor||r.constructor.prototype!==r)){var e=r.inspect(n,t);return w(e)||(e=d(t,e,n)),e}var i=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(w(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(t,r);if(i)return i;var o,a=Object.keys(r),s=(o={},a.forEach(function(e,t){o[e]=!0}),o);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(0<=a.indexOf("message")||0<=a.indexOf("description")))return p(r);if(0===a.length){if(E(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(k(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var c,f="",l=!1,h=["{","}"];(y(r)&&(l=!0,h=["[","]"]),E(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return k(r)&&(f=" "+RegExp.prototype.toString.call(r)),S(r)&&(f=" "+Date.prototype.toUTCString.call(r)),A(r)&&(f=" "+p(r)),0!==a.length||l&&0!=r.length?n<0?k(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=l?function(t,r,n,i,e){for(var o=[],a=0,s=r.length;a<s;++a)x(r,String(a))?o.push(b(t,r,n,i,String(a),!0)):o.push("");return e.forEach(function(e){e.match(/^\d+$/)||o.push(b(t,r,n,i,e,!0))}),o}(t,r,n,s,a):a.map(function(e){return b(t,r,n,s,e,l)}),t.seen.pop(),function(e,t,r){if(60<e.reduce(function(e,t){return 0,0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,h)):h[0]+f+h[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),x(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?-1<(s=v(r)?d(e,u.value,null):d(e,u.value,r-1)).indexOf("\n")&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;a=(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return"number"==typeof e}function w(e){return"string"==typeof e}function _(e){return void 0===e}function k(e){return f(e)&&"[object RegExp]"===r(e)}function f(e){return"object"===t(e)&&null!==e}function S(e){return f(e)&&"[object Date]"===r(e)}function A(e){return f(e)&&("[object Error]"===r(e)||e instanceof Error)}function E(e){return"function"==typeof e}function r(e){return Object.prototype.toString.call(e)}function l(e){return e<10?"0"+e.toString(10):e.toString(10)}j.debuglog=function(t){if(_(e)&&(e=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(e)){var r=n.pid;o[t]=function(){var e=j.format.apply(j,arguments);console.error("%s %d: %s",t,r,e)}}else o[t]=function(){};return o[t]},(j.inspect=u).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},j.isArray=y,j.isBoolean=m,j.isNull=v,j.isNullOrUndefined=function(e){return null==e},j.isNumber=g,j.isString=w,j.isSymbol=function(e){return"symbol"===t(e)},j.isUndefined=_,j.isRegExp=k,j.isObject=f,j.isDate=S,j.isError=A,j.isFunction=E,j.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===t(e)||void 0===e},j.isBuffer=M("./support/isBuffer");var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}j.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[l(e.getHours()),l(e.getMinutes()),l(e.getSeconds())].join(":"),[e.getDate(),h[e.getMonth()],t].join(" ")),j.format.apply(j,arguments))},j.inherits=M("inherits"),j._extend=function(e,t){if(!t||!f(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,M("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":17,_process:124,inherits:16}],19:[function(e,t,r){"use strict";r.byteLength=function(e){var t=d(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){for(var t,r=d(e),n=r[0],i=r[1],o=new h((c=n,f=i,3*(c+f)/4-f)),a=0,s=0<i?n-4:n,u=0;u<s;u+=4)t=l[e.charCodeAt(u)]<<18|l[e.charCodeAt(u+1)]<<12|l[e.charCodeAt(u+2)]<<6|l[e.charCodeAt(u+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=255&t;var c,f;2===i&&(t=l[e.charCodeAt(u)]<<2|l[e.charCodeAt(u+1)]>>4,o[a++]=255&t);1===i&&(t=l[e.charCodeAt(u)]<<10|l[e.charCodeAt(u+1)]<<4|l[e.charCodeAt(u+2)]>>2,o[a++]=t>>8&255,o[a++]=255&t);return o},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(u(e,o,a<o+16383?a:o+16383));1===n?(t=e[r-1],i.push(s[t>>2]+s[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return i.join("")};for(var s=[],l=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)s[i]=n[i],l[n.charCodeAt(i)]=i;function d(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var n,i,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(i=n)>>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return o.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],20:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e){this.rand=e}if(t.exports=function(e){return i||(i=new o(null)),i.generate(e)},(t.exports.Rand=o).prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":n(self)))self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":n(window))&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:21}],21:[function(e,t,r){},{}],22:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer;function o(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function n(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],f=r[1],l=r[2],h=r[3],d=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],y=e[3]^t[3],m=4,v=1;v<i;v++)o=c[d>>>24]^f[p>>>16&255]^l[b>>>8&255]^h[255&y]^t[m++],a=c[p>>>24]^f[b>>>16&255]^l[y>>>8&255]^h[255&d]^t[m++],s=c[b>>>24]^f[y>>>16&255]^l[d>>>8&255]^h[255&p]^t[m++],u=c[y>>>24]^f[d>>>16&255]^l[p>>>8&255]^h[255&b]^t[m++],d=o,p=a,b=s,y=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&y])^t[m++],a=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[y>>>8&255]<<8|n[255&d])^t[m++],s=(n[b>>>24]<<24|n[y>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[m++],u=(n[y>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99;var f=e[n[r[a]=c]=a],l=e[f],h=e[l],d=257*e[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*l^257*f^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=f^e[e[e[h^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function s(e){this._key=o(e),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=h.SBOX[a>>>24]<<24|h.SBOX[a>>>16&255]<<16|h.SBOX[a>>>8&255]<<8|h.SBOX[255&a],a^=l[o/t|0]<<24):6<t&&o%t==4&&(a=h.SBOX[a>>>24]<<24|h.SBOX[a>>>16&255]<<16|h.SBOX[a>>>8&255]<<8|h.SBOX[255&a]),i[o]=i[o-t]^a}for(var s=[],u=0;u<n;u++){var c=n-u,f=i[c-(u%4?0:4)];s[u]=u<4||c<=4?f:h.INV_SUB_MIX[0][h.SBOX[f>>>24]]^h.INV_SUB_MIX[1][h.SBOX[f>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[f>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},s.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),n=i.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=s},{"safe-buffer":153}],23:[function(e,t,r){"use strict";var a=e("./aes"),c=e("safe-buffer").Buffer,s=e("cipher-base"),n=e("inherits"),f=e("./ghash"),i=e("buffer-xor"),l=e("./incr32");function o(e,t,r,n){s.call(this);var i=c.alloc(4,0);this._cipher=new a.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new f(o),r=function(e,t,r){if(12===t.length)return e._finID=c.concat([t,c.from([0,0,0,1])]),c.concat([t,c.from([0,0,0,2])]);var n=new f(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(c.alloc(o,0))),n.update(c.alloc(8,0));var a=8*i,s=c.alloc(8);s.writeUIntBE(a,0,8),n.update(s),e._finID=n.state;var u=c.from(e._finID);return l(u),u}(this,r,o),this._prev=c.from(r),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}n(o,s),o.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=c.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},o.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=o},{"./aes":22,"./ghash":27,"./incr32":28,"buffer-xor":49,"cipher-base":52,inherits:104,"safe-buffer":153}],24:[function(e,t,r){"use strict";var n=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(o)}},{"./decrypter":25,"./encrypter":26,"./modes/list.json":36}],25:[function(e,t,r){"use strict";var i=e("./authCipher"),o=e("safe-buffer").Buffer,a=e("./modes"),s=e("./streamCipher"),n=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function f(e,t,r){n.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=o.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===n.type?new s(n.module,t,r,!0):"auth"===n.type?new i(n.module,t,r,!0):new f(n.module,t,r)}e("inherits")(f,n),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return o.concat(n)},f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||16<t)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=o.concat([this.cache,e])},l.prototype.get=function(e){var t;if(e){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},r.createDecipheriv=h},{"./aes":22,"./authCipher":23,"./modes":35,"./streamCipher":38,"cipher-base":52,evp_bytestokey:87,inherits:104,"safe-buffer":153}],26:[function(e,t,r){"use strict";var i=e("./modes"),o=e("./authCipher"),a=e("safe-buffer").Buffer,s=e("./streamCipher"),n=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function f(e,t,r){n.call(this),this._cache=new h,this._cipher=new u.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}e("inherits")(f,n),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return a.concat(n)};var l=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(e,t,r){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===n.type?new s(n.module,t,r):"auth"===n.type?new o(n.module,t,r):new f(n.module,t,r)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(15<this.cache.length){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},r.createCipheriv=d,r.createCipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return d(e,n.key,n.iv)}},{"./aes":22,"./authCipher":23,"./modes":35,"./streamCipher":38,"cipher-base":52,evp_bytestokey:87,inherits:104,"safe-buffer":153}],27:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;0<t;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":153}],28:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],29:[function(e,t,r){"use strict";var i=e("buffer-xor");r.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return i(n,r)}},{"buffer-xor":49}],30:[function(e,t,r){"use strict";var o=e("safe-buffer").Buffer,a=e("buffer-xor");function s(e,t,r){var n=t.length,i=a(t,e._cache);return e._cache=e._cache.slice(n),e._prev=o.concat([e._prev,r?t:i]),i}r.encrypt=function(e,t,r){for(var n,i=o.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=o.allocUnsafe(0)),!(e._cache.length<=t.length)){i=o.concat([i,s(e,t,r)]);break}n=e._cache.length,i=o.concat([i,s(e,t.slice(0,n),r)]),t=t.slice(n)}return i}},{"buffer-xor":49,"safe-buffer":153}],31:[function(e,t,r){"use strict";var a=e("safe-buffer").Buffer;function s(e,t,r){for(var n,i,o=-1,a=0;++o<8;)n=t&1<<7-o?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=u(e._prev,r?n:i);return a}function u(e,t){var r=e.length,n=-1,i=a.allocUnsafe(e.length);for(e=a.concat([e,a.from([t])]);++n<r;)i[n]=e[n]<<1|e[n+1]>>7;return i}r.encrypt=function(e,t,r){for(var n=t.length,i=a.allocUnsafe(n),o=-1;++o<n;)i[o]=s(e,t[o],r);return i}},{"safe-buffer":153}],32:[function(e,t,r){"use strict";var f=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var n,i,o,a,s=t.length,u=f.allocUnsafe(s),c=-1;++c<s;)u[c]=(n=e,i=t[c],o=r,void 0,a=n._cipher.encryptBlock(n._prev)[0]^i,n._prev=f.concat([n._prev.slice(1),f.from([o?i:a])]),a);return u}},{"safe-buffer":153}],33:[function(e,t,r){"use strict";var f=e("buffer-xor"),l=e("safe-buffer").Buffer,h=e("../incr32");r.encrypt=function(e,t){var r,n,i=Math.ceil(t.length/16),o=e._cache.length;e._cache=l.concat([e._cache,l.allocUnsafe(16*i)]);for(var a=0;a<i;a++){var s=(void 0,n=(r=e)._cipher.encryptBlockRaw(r._prev),h(r._prev),n),u=o+16*a;e._cache.writeUInt32BE(s[0],u+0),e._cache.writeUInt32BE(s[1],u+4),e._cache.writeUInt32BE(s[2],u+8),e._cache.writeUInt32BE(s[3],u+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),f(t,c)}},{"../incr32":28,"buffer-xor":49,"safe-buffer":153}],34:[function(e,t,r){"use strict";r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],35:[function(e,t,r){"use strict";var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var o in i)i[o].module=n[i[o].mode];t.exports=i},{"./cbc":29,"./cfb":30,"./cfb1":31,"./cfb8":32,"./ctr":33,"./ecb":34,"./list.json":36,"./ofb":37}],36:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],37:[function(e,t,r){(function(i){"use strict";var o=e("buffer-xor");r.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,(r=e,r._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),o(t,n)}}).call(this,e("buffer").Buffer)},{buffer:50,"buffer-xor":49}],38:[function(e,t,r){"use strict";var i=e("./aes"),o=e("safe-buffer").Buffer,a=e("cipher-base");function n(e,t,r,n){a.call(this),this._cipher=new i.AES(t),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=n,this._mode=e}e("inherits")(n,a),n.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},t.exports=n},{"./aes":22,"cipher-base":52,inherits:104,"safe-buffer":153}],39:[function(e,t,r){"use strict";var n=e("browserify-des"),i=e("browserify-aes/browser"),o=e("browserify-aes/modes"),a=e("browserify-des/modes"),s=e("evp_bytestokey");function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=u,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},{"browserify-aes/browser":24,"browserify-aes/modes":35,"browserify-des":40,"browserify-des/modes":41,evp_bytestokey:87}],40:[function(e,t,r){"use strict";var a=e("cipher-base"),n=e("des.js"),i=e("inherits"),s=e("safe-buffer").Buffer,u={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function o(e){a.call(this);var t,r=e.mode.toLowerCase(),n=u[r];t=e.decrypt?"decrypt":"encrypt";var i=e.key;s.isBuffer(i)||(i=s.from(i)),"des-ede"!==r&&"des-ede-cbc"!==r||(i=s.concat([i,i.slice(0,8)]));var o=e.iv;s.isBuffer(o)||(o=s.from(o)),this._des=n.create({key:i,iv:o,type:t})}u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],i(t.exports=o,a),o.prototype._update=function(e){return s.from(this._des.update(e))},o.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":52,"des.js":60,inherits:104,"safe-buffer":153}],41:[function(e,t,r){"use strict";r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],42:[function(t,r,e){(function(b){"use strict";var y=t("bn.js"),n=t("randombytes");function e(e,t){var r,n,i={blinder:(n=m(r=t)).toRed(y.mont(r.modulus)).redPow(new y(r.publicExponent)).fromRed(),unblinder:n.invm(r.modulus)},o=t.modulus.byteLength(),a=(y.mont(t.modulus),new y(e).mul(i.blinder).umod(t.modulus)),s=a.toRed(y.mont(t.prime1)),u=a.toRed(y.mont(t.prime2)),c=t.coefficient,f=t.prime1,l=t.prime2,h=s.redPow(t.exponent1),d=u.redPow(t.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(c).umod(f);return p.imul(l),d.iadd(p),new b(d.imul(i.unblinder).umod(t.modulus).toArray(!1,o))}function m(e){for(var t=e.modulus.byteLength(),r=new y(n(t));0<=r.cmp(e.modulus)||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new y(n(t));return r}(r.exports=e).getr=m}).call(this,t("buffer").Buffer)},{"bn.js":"BN",buffer:50,randombytes:135}],43:[function(e,t,r){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":44}],44:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],45:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],46:[function(l,h,e){(function(i){"use strict";var r=l("create-hash"),n=l("stream"),e=l("inherits"),o=l("./sign"),a=l("./verify"),s=l("./algorithms.json");function t(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){return new t(e)}function f(e){return new u(e)}Object.keys(s).forEach(function(e){s[e].id=new i(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),e(t,n.Writable),t.prototype._write=function(e,t,r){this._hash.update(e),r()},t.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},t.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=o(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},e(u,n.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},u.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new i(t,r)),this.end();var n=this._hash.digest();return a(t,n,e,this._signType,this._tag)},h.exports={Sign:c,Verify:f,createSign:c,createVerify:f}}).call(this,l("buffer").Buffer)},{"./algorithms.json":44,"./sign":47,"./verify":48,buffer:50,"create-hash":55,inherits:104,stream:162}],47:[function(e,t,r){(function(b){"use strict";var c=e("create-hmac"),f=e("browserify-rsa"),l=e("elliptic").ec,y=e("bn.js"),h=e("parse-asn1"),d=e("./curves.json");function m(e,t,r,n){if((e=new b(e.toArray())).length<t.byteLength()){var i=new b(t.byteLength()-e.length);i.fill(0),e=b.concat([i,e])}var o=r.length,a=function(e,t){e=(e=v(e,t)).mod(t);var r=new b(e.toArray());if(r.length<t.byteLength()){var n=new b(t.byteLength()-r.length);n.fill(0),r=b.concat([n,r])}return r}(r,t),s=new b(o);s.fill(1);var u=new b(o);return u.fill(0),u=c(n,u).update(s).update(new b([0])).update(e).update(a).digest(),s=c(n,u).update(s).digest(),{k:u=c(n,u).update(s).update(new b([1])).update(e).update(a).digest(),v:s=c(n,u).update(s).digest()}}function v(e,t){var r=new y(e),n=(e.length<<3)-t.bitLength();return 0<n&&r.ishrn(n),r}function g(e,t,r){var n,i;do{for(n=new b(0);8*n.length<e.bitLength();)t.v=c(r,t.k).update(t.v).digest(),n=b.concat([n,t.v]);i=v(n,e),t.k=c(r,t.k).update(t.v).update(new b([0])).digest(),t.v=c(r,t.k).update(t.v).digest()}while(-1!==i.cmp(e));return i}t.exports=function(e,t,r,n,i){var o=h(t);if(o.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(e,t){var r=d[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new l(r).keyFromPrivate(t.privateKey).sign(e);return new b(n.toDER())}(e,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong private key type");return function(e,t,r){for(var n,i,o,a,s=t.params.priv_key,u=t.params.p,c=t.params.q,f=t.params.g,l=new y(0),h=v(e,c).mod(c),d=!1,p=m(s,c,e,r);!1===d;)n=g(c,p,r),i=n,o=u,a=c,l=f.toRed(y.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(c).imul(h.add(s.mul(l))).mod(c)).cmpn(0)&&(d=!1,l=new y(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),new b(r)}(l,d)}(e,o,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");e=b.concat([i,e]);for(var a=o.modulus.byteLength(),s=[0,1];e.length+s.length+1<a;)s.push(255);s.push(0);for(var u=-1;++u<e.length;)s.push(e[u]);return f(s,o)},t.exports.getKey=m,t.exports.makeKey=g}).call(this,e("buffer").Buffer)},{"./curves.json":45,"bn.js":"BN","browserify-rsa":42,buffer:50,"create-hmac":57,elliptic:70,"parse-asn1":117}],48:[function(e,t,r){(function(h){"use strict";var d=e("bn.js"),p=e("elliptic").ec,b=e("parse-asn1"),y=e("./curves.json");function m(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,n,i){var o=b(r);if("ec"===o.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=y[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new p(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,o=r.data.g,a=r.data.pub_key,s=b.signature.decode(e,"der"),u=s.s,c=s.r;m(u,i),m(c,i);var f=d.mont(n),l=u.invm(i);return 0===o.toRed(f).redPow(new d(t).mul(l).mod(i)).fromRed().mul(a.toRed(f).redPow(c.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(c)}(e,t,o)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");t=h.concat([i,t]);for(var a=o.modulus.byteLength(),s=[1],u=0;t.length+s.length+2<a;)s.push(255),u++;s.push(0);for(var c=-1;++c<t.length;)s.push(t[c]);s=new h(s);var f=d.mont(o.modulus);e=(e=new d(e).toRed(f)).redPow(new d(o.publicExponent)),e=new h(e.fromRed().toArray());var l=u<8?1:0;for(a=Math.min(e.length,s.length),e.length!==s.length&&(l=1),c=-1;++c<a;)l|=e[c]^s[c];return 0===l}}).call(this,e("buffer").Buffer)},{"./curves.json":45,"bn.js":"BN",buffer:50,elliptic:70,"parse-asn1":117}],49:[function(e,t,r){(function(o){"use strict";t.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new o(r),i=0;i<r;++i)n[i]=e[i]^t[i];return n}}).call(this,e("buffer").Buffer)},{buffer:50}],50:[function(e,t,P){(function(l){"use strict";function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=e("base64-js"),o=e("ieee754");P.Buffer=l,P.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},P.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=l.prototype,t}function l(e,t,r){if("number"!=typeof e)return i(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}function i(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=a(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(e));if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=l.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);var i=function(e){if(l.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||U(e.length)?a(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(e))}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return s(e),a(e<0?0:0|f(e))}function c(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(r<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function d(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+h(e));var r=e.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(i)return n?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),U(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(s<r+u&&(r=s-u),o=r;0<=o;o--){for(var l=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){l=!1;break}if(l)return o}return-1}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?i<(n=Number(n))&&(n=i):n=i;var o=t.length;o/2<n&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(U(s))return a;e[r+a]=s}return a}function v(e,t,r,n){return R(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function g(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function w(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],f=null,l=239<c?4:223<c?3:191<c?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=e[i+1]))&&127<(u=(31&c)<<6|63&o)&&(f=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&c)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(f=u)}null===f?(f=65533,l=1):65535<f&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=_));return r}(n)}P.kMaxLength=r,(l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),l.poolSize=8192,l.from=function(e,t,r){return i(e,t,r)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,l.alloc=function(e,t,r){return i=t,o=r,s(n=e),n<=0?a(n):void 0!==i?"string"==typeof o?a(n).fill(i,o):a(n).fill(i):a(n);var n,i,o},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(N(o,Uint8Array)&&(o=l.from(o)),!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},l.byteLength=d,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?w(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return g(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",t=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,i){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+h(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||i<r)&&(r=i),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,c,f,l,h,d,p=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return h=t,d=r,R(B(e,(l=this).length-h),l,h,d);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return u=this,c=t,f=r,R(C(e),u,c,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=r,R(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,(o=this).length-a),o,a,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function S(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=t;o<r;++o)i+=T(e[o]);return i}function E(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function x(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(e,t,r,n,i){return t=+t,r>>>=0,i||j(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function O(e,t,r,n,i){return t=+t,r>>>=0,i||j(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=l.prototype,n},l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;0<t&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,o=this[e+--n];0<n&&(i*=256);)o+=this[e+--n]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return O(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return O(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),0<n&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=l.isBuffer(e)?e:l.from(e,n),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function T(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!i){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===n){-1<(t-=3)&&o.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function C(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!=e}}).call(this,e("buffer").Buffer)},{"base64-js":19,buffer:50,ieee754:103}],51:[function(e,t,r){"use strict";t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],52:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("stream").Transform,o=e("string_decoder").StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=a},{inherits:104,"safe-buffer":153,stream:162,string_decoder:182}],53:[function(e,t,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"===t(e)},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===r(e)},n.isObject=function(e){return"object"===t(e)&&null!==e},n.isDate=function(e){return"[object Date]"===r(e)},n.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===t(e)||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":105}],54:[function(e,s,t){(function(o){"use strict";var t=e("elliptic"),n=e("bn.js");s.exports=function(e){return new i(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new o(e);if(r&&n.length<r){var i=new o(r-n.length);i.fill(0),n=o.concat([i,n])}return t?n.toString(t):n}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,i.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},i.prototype.computeSecret=function(e,t,r){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},i.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},i.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},i.prototype.setPublicKey=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.keys._importPublic(e),this},i.prototype.setPrivateKey=function(e,t){t=t||"utf8",o.isBuffer(e)||(e=new o(e,t));var r=new n(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":"BN",buffer:50,elliptic:70}],55:[function(e,t,r){"use strict";var n=e("inherits"),i=e("md5.js"),o=e("ripemd160"),a=e("sha.js"),s=e("cipher-base");function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},{"cipher-base":52,inherits:104,"md5.js":107,ripemd160:152,"sha.js":155}],56:[function(e,t,r){"use strict";var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":107}],57:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./legacy"),a=e("cipher-base"),s=e("safe-buffer").Buffer,o=e("create-hash/md5"),u=e("ripemd160"),c=e("sha.js"),f=s.alloc(128);function l(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>r)?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=s.concat([t,f],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),o=0;o<r;o++)n[o]=54^t[o],i[o]=92^t[o];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(l,a),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new l("rmd160",t):"md5"===e?new i(o,t):new l(e,t)}},{"./legacy":58,"cipher-base":52,"create-hash/md5":56,inherits:104,ripemd160:152,"safe-buffer":153,"sha.js":155}],58:[function(e,t,r){"use strict";var n=e("inherits"),o=e("safe-buffer").Buffer,a=e("cipher-base"),s=o.alloc(128);function i(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,64<(this._key=t).length?t=e(t):t.length<64&&(t=o.concat([t,s],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),i=0;i<64;i++)r[i]=54^t[i],n[i]=92^t[i];this._hash=[r]}n(i,a),i.prototype._update=function(e){this._hash.push(e)},i.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},t.exports=i},{"cipher-base":52,inherits:104,"safe-buffer":153}],59:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return o};var a=e("pbkdf2");r.pbkdf2=a.pbkdf2,r.pbkdf2Sync=a.pbkdf2Sync;var s=e("browserify-cipher");r.Cipher=s.Cipher,r.createCipher=s.createCipher,r.Cipheriv=s.Cipheriv,r.createCipheriv=s.createCipheriv,r.Decipher=s.Decipher,r.createDecipher=s.createDecipher,r.Decipheriv=s.Decipheriv,r.createDecipheriv=s.createDecipheriv,r.getCiphers=s.getCiphers,r.listCiphers=s.listCiphers;var u=e("diffie-hellman");r.DiffieHellmanGroup=u.DiffieHellmanGroup,r.createDiffieHellmanGroup=u.createDiffieHellmanGroup,r.getDiffieHellman=u.getDiffieHellman,r.createDiffieHellman=u.createDiffieHellman,r.DiffieHellman=u.DiffieHellman;var c=e("browserify-sign");r.createSign=c.createSign,r.Sign=c.Sign,r.createVerify=c.createVerify,r.Verify=c.Verify,r.createECDH=e("create-ecdh");var f=e("public-encrypt");r.publicEncrypt=f.publicEncrypt,r.privateEncrypt=f.privateEncrypt,r.publicDecrypt=f.publicDecrypt,r.privateDecrypt=f.privateDecrypt;var l=e("randomfill");r.randomFill=l.randomFill,r.randomFillSync=l.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":39,"browserify-sign":46,"browserify-sign/algos":43,"create-ecdh":54,"create-hash":55,"create-hmac":57,"diffie-hellman":66,pbkdf2:118,"public-encrypt":125,randombytes:135,randomfill:136}],60:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":61,"./des/cipher":62,"./des/des":63,"./des/ede":64,"./des/utils":65}],61:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),o=e("inherits"),a={};function i(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(t){function r(e){t.call(this,e),this._cbcInit()}o(r,t);for(var e=Object.keys(a),n=0;n<e.length;n++){var i=e[n];r.prototype[i]=a[i]}return r.create=function(e){return new r(e)},r},a._cbcInit=function(){var e=new i(this.options.iv);this._cbcState=e},a._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},{inherits:104,"minimalistic-assert":109}],62:[function(e,t,r){"use strict";var n=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}(t.exports=i).prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);0<n;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":109}],63:[function(e,t,r){"use strict";var a=e("minimalistic-assert"),n=e("inherits"),i=e("../des"),h=i.utils,o=i.Cipher;function s(){this.tmp=new Array(2),this.keys=null}function u(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}n(u,o),(t.exports=u).create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),a.equal(t.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(t,0),n=h.readUInt32BE(t,4);h.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var o=c[i>>>1];r=h.r28shl(r,o),n=h.r28shl(n,o),h.pc2(r,n,e.keys,i)}},u.prototype._update=function(e,t,r,n){var i=this._desState,o=h.readUInt32BE(e,t),a=h.readUInt32BE(e,t+4);h.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],h.writeUInt32BE(r,o,n),h.writeUInt32BE(r,a,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)a.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var o=t,a=r,s=0;s<e.keys.length;s+=2){var u=e.keys[s],c=e.keys[s+1];h.expand(a,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var f=h.substitute(u,c),l=a;a=(o^h.permute(f))>>>0,o=l}h.rip(a,o,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var o=r,a=t,s=e.keys.length-2;0<=s;s-=2){var u=e.keys[s],c=e.keys[s+1];h.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var f=h.substitute(u,c),l=o;o=(a^h.permute(f))>>>0,a=l}h.rip(o,a,n,i)}},{"../des":60,inherits:104,"minimalistic-assert":109}],64:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),n=e("inherits"),i=e("../des"),a=i.Cipher,s=i.DES;function u(e,t){o.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:n}),s.create({type:"encrypt",key:i})]:[s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:r})]}function c(e){a.call(this,e);var t=new u(this.type,this.options.key);this._edeState=t}n(c,a),(t.exports=c).create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=s.prototype._pad,c.prototype._unpad=s.prototype._unpad},{"../des":60,inherits:104,"minimalistic-assert":109}],65:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,o=0,a=6;0<=a;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;0<=a;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;0<=s;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;0<=s;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;5<=a;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var i=0,o=0,a=u.length>>>1,s=0;s<a;s++)i<<=1,i|=e>>>u[s]&1;for(s=a;s<u.length;s++)o<<=1,o|=t>>>u[s]&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;15<=o;o-=4)n<<=6,n|=e>>>o&63;for(o=11;3<=o;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<n.length;r++)t<<=1,t|=e>>>n[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},{}],66:[function(e,t,r){(function(o){"use strict";var a=e("./lib/generatePrime"),n=e("./lib/primes.json"),s=e("./lib/dh");var u={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new o(n[e].prime,"hex"),r=new o(n[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,n,i){return o.isBuffer(r)||void 0===u[r]?e(t,"binary",r,n):(r=r||"binary",i=i||"binary",n=n||new o([2]),o.isBuffer(n)||(n=new o(n,i)),"number"==typeof t?new s(a(t,n),n,!0):(o.isBuffer(t)||(t=new o(t,r)),new s(t,n,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":67,"./lib/generatePrime":68,"./lib/primes.json":69,buffer:50}],67:[function(b,y,e){(function(o){"use strict";var a=b("bn.js"),s=new(b("miller-rabin")),u=new a(24),c=new a(11),f=new a(10),l=new a(3),h=new a(7),d=b("./generatePrime"),e=b("randombytes");function n(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this._pub=new a(e),this}function i(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this._priv=new a(e),this}y.exports=t;var p={};function t(e,t,r){this.setGenerator(t),this.__prime=new a(e),this._prime=a.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function r(e,t){var r=new o(e.toArray());return t?r.toString(t):r}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var i,o=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!s.test(e))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(s.test(e.shrn(1))||(o+=2),r){case"02":e.mod(u).cmp(c)&&(o+=8);break;case"05":(i=e.mod(f)).cmp(l)&&i.cmp(h)&&(o+=8);break;default:o+=4}return p[n]=o}(this.__prime,this.__gen)),this._primeCode}}),t.prototype.generateKeys=function(){return this._priv||(this._priv=new a(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},t.prototype.computeSecret=function(e){var t=(e=(e=new a(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new o(t.toArray()),n=this.getPrime();if(r.length<n.length){var i=new o(n.length-r.length);i.fill(0),r=o.concat([i,r])}return r},t.prototype.getPublicKey=function(e){return r(this._pub,e)},t.prototype.getPrivateKey=function(e){return r(this._priv,e)},t.prototype.getPrime=function(e){return r(this.__prime,e)},t.prototype.getGenerator=function(e){return r(this._gen,e)},t.prototype.setGenerator=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.__gen=e,this._gen=new a(e),this}}).call(this,b("buffer").Buffer)},{"./generatePrime":68,"bn.js":"BN",buffer:50,"miller-rabin":108,randombytes:135}],68:[function(e,t,r){"use strict";var i=e("randombytes");(t.exports=n).simpleSieve=y,n.fermatTest=m;var o=e("bn.js"),a=new o(24),s=new(e("miller-rabin")),u=new o(1),c=new o(2),f=new o(5),l=(new o(16),new o(8),new o(10)),h=new o(3),d=(new o(7),new o(11)),p=new o(4),b=(new o(12),null);function y(e){for(var t=function(){if(null!==b)return b;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return b=e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function m(e){var t=o.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function n(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var r,n;for(t=new o(t);;){for(r=new o(i(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(f))for(;r.mod(l).cmp(h);)r.iadd(p)}else for(;r.mod(a).cmp(d);)r.iadd(p);if(y(n=r.shrn(1))&&y(r)&&m(n)&&m(r)&&s.test(n)&&s.test(r))return r}}},{"bn.js":"BN","miller-rabin":108,randombytes:135}],69:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],70:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":85,"./elliptic/curve":73,"./elliptic/curves":76,"./elliptic/ec":77,"./elliptic/eddsa":80,"./elliptic/utils":84,brorand:20}],71:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils,E=i.getNAF,x=i.getJSF,l=i.assert;function o(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||0<r.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function a(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=o).prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(e,t){l(e.precomputed);var r=e._getDoubles(),n=E(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var o=[],a=0;a<n.length;a+=r.step){var s=0;for(t=a+r.step-1;a<=t;t--)s=(s<<1)+n[t];o.push(s)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;0<f;f--){for(a=0;a<o.length;a++){(s=o[a])===f?c=c.mixedAdd(r.points[a]):s===-f&&(c=c.mixedAdd(r.points[a].neg()))}u=u.add(c)}return u.toP()},o.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=E(t,r),a=this.jpoint(null,null,null),s=o.length-1;0<=s;s--){for(t=0;0<=s&&0===o[s];s--)t++;if(0<=s&&t++,a=a.dblp(t),s<0)break;var u=o[s];l(0!==u),a="affine"===e.type?0<u?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):0<u?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},o.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,u=0,c=0;c<n;c++){var f=(S=t[c])._getNAFPoints(e);o[c]=f.wnd,a[c]=f.points}for(c=n-1;1<=c;c-=2){var l=c-1,h=c;if(1===o[l]&&1===o[h]){var d=[t[l],null,null,t[h]];0===t[l].y.cmp(t[h].y)?(d[1]=t[l].add(t[h]),d[2]=t[l].toJ().mixedAdd(t[h].neg())):0===t[l].y.cmp(t[h].y.redNeg())?(d[1]=t[l].toJ().mixedAdd(t[h]),d[2]=t[l].add(t[h].neg())):(d[1]=t[l].toJ().mixedAdd(t[h]),d[2]=t[l].toJ().mixedAdd(t[h].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],b=x(r[l],r[h]);u=Math.max(b[0].length,u),s[l]=new Array(u),s[h]=new Array(u);for(var y=0;y<u;y++){var m=0|b[0][y],v=0|b[1][y];s[l][y]=p[3*(m+1)+(v+1)],s[h][y]=0,a[l]=d}}else s[l]=E(r[l],o[l]),s[h]=E(r[h],o[h]),u=Math.max(s[l].length,u),u=Math.max(s[h].length,u)}var g=this.jpoint(null,null,null),w=this._wnafT4;for(c=u;0<=c;c--){for(var _=0;0<=c;){var k=!0;for(y=0;y<n;y++)w[y]=0|s[y][c],0!==w[y]&&(k=!1);if(!k)break;_++,c--}if(0<=c&&_++,g=g.dblp(_),c<0)break;for(y=0;y<n;y++){var S,A=w[y];0!==A&&(0<A?S=a[y][A-1>>1]:A<0&&(S=a[y][-A-1>>1].neg()),g="affine"===S.type?g.mixedAdd(S):g.add(S))}}for(c=0;c<n;c++)a[c]=null;return i?g:g.toP()},(o.BasePoint=a).prototype.eq=function(){throw new Error("Not implemented")},a.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?l(e[e.length-1]%2==0):7===e[0]&&l(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},a.prototype.encodeCompressed=function(e){return this.encode(e,!0)},a.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},a.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},a.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},a.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},a.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../../elliptic":70,"bn.js":"BN"}],72:[function(e,t,r){"use strict";var n=e("../curve"),i=e("../../elliptic"),u=e("bn.js"),o=e("inherits"),a=n.base,s=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new u(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function f(e,t,r,n,i){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new u(t,16),this.y=new u(r,16),this.z=n?new u(n,16):this.curve.one,this.t=i&&new u(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),(t.exports=c).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},c.prototype.pointFromY=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(f,a.BasePoint),c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},f.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),h=a.redMul(s);return this.curve.point(c,f,h,l)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return r=this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"../../elliptic":70,"../curve":73,"bn.js":"BN",inherits:104}],73:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":71,"./edwards":72,"./mont":74,"./short":75}],74:[function(e,t,r){"use strict";var n=e("../curve"),i=e("bn.js"),o=e("inherits"),a=n.base,s=e("../../elliptic").utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),(t.exports=u).prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(c,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new c(this,e,t)},u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;0<=o;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":70,"../curve":73,"bn.js":"BN",inherits:104}],75:[function(e,t,r){"use strict";var n=e("../curve"),i=e("../../elliptic"),_=e("bn.js"),o=e("inherits"),a=n.base,s=i.utils.assert;function u(e){a.call(this,"short",e),this.a=new _(e.a,16).toRed(this.red),this.b=new _(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),this.inf=null===t&&null===r?(this.x=null,!(this.y=null)):(this.x=new _(t,16),this.y=new _(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),this.z=null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,new _(0)):(this.x=new _(t,16),this.y=new _(r,16),new _(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),(t.exports=u).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new _(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new _(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new _(e.a,16),b:new _(e.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:_.mont(e),r=new _(2).toRed(t).redInvm(),n=r.redNeg(),i=new _(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,a,s,u,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),d=new _(1),p=new _(0),b=new _(0),y=new _(1),m=0;0!==l.cmpn(0);){var v=h.div(l);u=h.sub(v.mul(l)),c=b.sub(v.mul(d));var g=y.sub(v.mul(p));if(!n&&u.cmp(f)<0)t=s.neg(),r=d,n=u.neg(),i=c;else if(n&&2==++m)break;h=l,l=s=u,b=d,d=c,y=p,p=g}o=u.neg(),a=c;var w=n.sqr().add(i.sqr());return 0<=o.sqr().add(a.sqr()).cmp(w)&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new _(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new _(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),h=u.redSqr().redIAdd(f).redISub(l).redISub(l),d=u.redMul(l.redISub(h)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),h=s.redMul(f.redISub(l)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<e;r++){var f=o.redSqr(),l=c.redSqr(),h=l.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=d.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),m=d.redMul(y);m=m.redIAdd(m).redISub(h);var v=c.redMul(s);r+1<e&&(u=u.redMul(h)),o=b,s=v,c=m}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(f).redISub(h);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=h.redIAdd(h);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),b=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=d.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(l).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,h,d)},f.prototype.mul=function(e,t){return e=new _(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),0<=n.cmp(this.curve.p))return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":70,"../curve":73,"bn.js":"BN",inherits:104}],76:[function(e,t,r){"use strict";var n,i=r,o=e("hash.js"),a=e("../elliptic"),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,r){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var e=new u(r);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"../elliptic":70,"./precomputed/secp256k1":83,"hash.js":89}],77:[function(e,t,r){"use strict";function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=e("bn.js"),v=e("hmac-drbg"),o=e("../../elliptic"),d=o.utils.assert,n=e("./key"),g=e("./signature");function i(e){if(!(this instanceof i))return new i(e);"string"==typeof e&&(d(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=i).prototype.keyPair=function(e){return new n(this,e)},i.prototype.keyFromPrivate=function(e,t){return n.fromPrivate(this,e,t)},i.prototype.keyFromPublic=function(e,t){return n.fromPublic(this,e,t)},i.prototype.genKeyPair=function(e){e||(e={});for(var t=new v({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new m(2));;){var i=new m(t.generate(r));if(!(0<i.cmp(n)))return i.iaddn(1),this.keyFromPrivate(i)}},i.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},i.prototype.sign=function(e,t,r,n){"object"===y(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new m(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new v({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new m(1)),c=0;;c++){var f=n.k?n.k(c):new m(s.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||0<=f.cmp(u))){var l=this.g.mul(f);if(!l.isInfinity()){var h=l.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=f.invm(this.n).mul(d.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var b=(l.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),b^=1),new g({r:d,s:p,recoveryParam:b})}}}}}},i.prototype.verify=function(e,t,r,n){e=this._truncateToN(new m(e,16)),r=this.keyFromPublic(r,n);var i=(t=new g(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||0<=i.cmp(this.n))return!1;if(o.cmpn(1)<0||0<=o.cmp(this.n))return!1;var a,s=o.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},i.prototype.recoverPubKey=function(e,t,r,n){d((3&r)===r,"The recovery param is more than two bits"),t=new g(t,n);var i=this.n,o=new m(e),a=t.r,s=t.s,u=1&r,c=r>>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var f=t.r.invm(i),l=i.sub(o).mul(f).umod(i),h=s.mul(f).umod(i);return this.g.mulAdd(l,a,h)},i.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new g(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":70,"./key":78,"./signature":79,"bn.js":"BN","hmac-drbg":101}],78:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils.assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=o).fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../../elliptic":70,"bn.js":"BN"}],79:[function(e,t,r){"use strict";var s=e("bn.js"),u=e("../../elliptic").utils,n=u.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function c(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function a(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=i).prototype._importDER=function(e,t){e=u.toArray(e,t);var r=new c;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=f(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=f(e,r);if(e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===a[0]&&128&a[1]&&(a=a.slice(1)),this.r=new s(i),this.s=new s(a),!(this.recoveryParam=null)},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=a(t),r=a(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var i=n.concat(r),o=[48];return l(o,i.length),o=o.concat(i),u.encode(o,e)}},{"../../elliptic":70,"bn.js":"BN"}],80:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../../elliptic"),o=i.utils,a=o.assert,u=o.parseBytes,s=e("./key"),c=e("./signature");function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}(t.exports=f).prototype.sign=function(e,t){e=u(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},f.prototype.verify=function(e,t,r){e=u(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":70,"./key":81,"./signature":82,"hash.js":89}],81:[function(e,t,r){"use strict";var n=e("../../elliptic").utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../../elliptic":70}],82:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("bn.js"),o=e("../../elliptic").utils,a=o.assert,s=o.cachedProperty,u=o.parseBytes;function c(e,t){this.eddsa=e,"object"!==n(t)&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../../elliptic":70,"bn.js":"BN"}],83:[function(e,t,r){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],84:[function(e,t,r){"use strict";var n=r,i=e("bn.js"),o=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();0<=i.cmpn(1);){var o;if(i.isOdd()){var a=i.andln(n-1);o=(n>>1)-1<a?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u<s;u++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;0<e.cmpn(-n)||0<t.cmpn(-i);){var o,a,s,u=e.andln(3)+n&3,c=t.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?u:-u,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":"BN","minimalistic-assert":109,"minimalistic-crypto-utils":110}],85:[function(e,t,r){t.exports={_args:[["elliptic@6.4.1","/Users/ryanghods/dev/web3.js"]],_development:!0,_from:"elliptic@6.4.1",_id:"elliptic@6.4.1",_inBundle:!1,_integrity:"sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.1",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.1",saveSpec:null,fetchSpec:"6.4.1"},_requiredBy:["/browserify-sign","/create-ecdh","/eth-lib","/secp256k1","/web3-core-helpers/eth-lib","/web3-core-method/eth-lib","/web3-core/eth-lib","/web3-eth-accounts/eth-lib","/web3-eth-accounts/web3-utils/eth-lib","/web3-eth-contract/eth-lib","/web3-eth-ens/eth-lib","/web3-eth-iban/eth-lib","/web3-eth-personal/eth-lib","/web3-eth/eth-lib","/web3-net/eth-lib","/web3-utils/eth-lib","/web3/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",_spec:"6.4.1",_where:"/Users/ryanghods/dev/web3.js",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.1"}},{}],86:[function(e,t,r){"use strict";function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=Object.create||function(e){var t=function(){};return t.prototype=e,new t},a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=c(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0;var i,s=10;try{var f={};Object.defineProperty&&Object.defineProperty(f,"x",{value:0}),i=0===f.x}catch(e){i=!1}function l(e){return void 0===e._maxListeners?n.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,o,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]):(o=e._events=c(null),e._eventsCount=0),a){if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=l(e))&&0<i&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,"object"===("undefined"==typeof console?"undefined":u(console))&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[t]=r,++e._eventsCount;return e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=o.call(d,n);return i.listener=r,n.wrapFn=i}function b(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):m(i,i.length):[]}function y(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}i?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');s=e}}):n.defaultMaxListeners=s,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},n.prototype.getMaxListeners=function(){return l(this)},n.prototype.emit=function(e){var t,r,n,i,o,a,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(1<arguments.length&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(r=a[e]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=m(e,n),o=0;o<n;++o)i[o].call(r)}(r,c,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=m(e,o),s=0;s<o;++s)a[s].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=m(e,a),u=0;u<a;++u)s[u].call(r,n,i,o)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].apply(r,n)}(r,c,this,i)}return!0},n.prototype.on=n.prototype.addListener=function(e,t){return h(this,e,t,!1)},n.prototype.prependListener=function(e,t){return h(this,e,t,!0)},n.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,p(this,e,t)),this},n.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,p(this,e,t)),this},n.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=c(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;0<=o;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),n.removeListener&&this.emit("removeListener",e,a||t)}return this},n.prototype.removeAllListeners=function(e){var t,r,n;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=c(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=c(null):delete r[e]),this;if(0===arguments.length){var i,o=a(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=c(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(n=t.length-1;0<=n;n--)this.removeListener(e,t[n]);return this},n.prototype.listeners=function(e){return b(this,e,!0)},n.prototype.rawListeners=function(e){return b(this,e,!1)},n.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},n.prototype.listenerCount=y,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],87:[function(e,t,r){"use strict";var d=e("safe-buffer").Buffer,p=e("md5.js");t.exports=function(e,t,r,n){if(d.isBuffer(e)||(e=d.from(e,"binary")),t&&(d.isBuffer(t)||(t=d.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=r/8,o=d.alloc(i),a=d.alloc(n||0),s=d.alloc(0);0<i||0<n;){var u=new p;u.update(s),u.update(e),t&&u.update(t),s=u.digest();var c=0;if(0<i){var f=o.length-i;c=Math.min(i,s.length),s.copy(o,f,0,c),i-=c}if(c<s.length&&0<n){var l=a.length-n,h=Math.min(n,s.length-c);s.copy(a,l,c,c+h),n-=h}}return s.fill(0),{key:o,iv:a}}},{"md5.js":107,"safe-buffer":153}],88:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,n=e("stream").Transform;function i(e){n.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(i,n),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=s.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;0<a;++o)this._length[o]+=a,0<(a=this._length[o]/4294967296|0)&&(this._length[o]-=4294967296*a);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},{inherits:104,"safe-buffer":153,stream:162}],89:[function(e,t,r){"use strict";var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":90,"./hash/hmac":91,"./hash/ripemd":92,"./hash/sha":93,"./hash/utils":100}],90:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(r.BlockHash=o).prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},{"./utils":100,"minimalistic-assert":109}],91:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}(t.exports=o).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":100,"minimalistic-assert":109}],92:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./common"),p=n.rotl32,b=n.sum32,y=n.sum32_3,m=n.sum32_4,o=i.BlockHash;function a(){if(!(this instanceof a))return new a;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function g(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function w(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(a,o),(r.ripemd160=a).blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=r,u=n,c=i,f=o,l=a,h=0;h<80;h++){var d=b(p(m(r,v(h,n,i,o),e[_[h]+t],g(h)),S[h]),a);r=a,a=o,o=p(i,10),i=n,n=d,d=b(p(m(s,v(79-h,u,c,f),e[k[h]+t],w(h)),A[h]),l),s=l,l=f,f=p(c,10),c=u,u=d}d=y(this.h[1],i,f),this.h[1]=y(this.h[2],o,l),this.h[2]=y(this.h[3],a,s),this.h[3]=y(this.h[4],r,u),this.h[4]=y(this.h[0],n,c),this.h[0]=d},a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var _=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],k=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],S=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],A=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":90,"./utils":100}],93:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":94,"./sha/224":95,"./sha/256":96,"./sha/384":97,"./sha/512":98}],94:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),l=n.rotl32,h=n.sum32,d=n.sum32_5,p=o.ft_1,a=i.BlockHash,b=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(s,a),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4];for(n=0;n<r.length;n++){var c=~~(n/20),f=d(l(i,5),p(c,o,a,s),u,r[n],b[c]);u=s,s=a,a=l(o,30),o=i,i=f}this.h[0]=h(this.h[0],i),this.h[1]=h(this.h[1],o),this.h[2]=h(this.h[2],a),this.h[3]=h(this.h[3],s),this.h[4]=h(this.h[4],u)},s.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":90,"../utils":100,"./common":99}],95:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),(t.exports=o).blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":100,"./256":96}],96:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),p=e("minimalistic-assert"),b=n.sum32,y=n.sum32_4,m=n.sum32_5,v=o.ch32,g=o.maj32,w=o.s0_256,_=o.s1_256,k=o.g0_256,S=o.g1_256,a=i.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function u(){if(!(this instanceof u))return new u;a.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}n.inherits(u,a),(t.exports=u).blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=y(S(r[n-2]),r[n-7],k(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],f=this.h[6],l=this.h[7];for(p(this.k.length===r.length),n=0;n<r.length;n++){var h=m(l,_(u),v(u,c,f),this.k[n],r[n]),d=b(w(i),g(i,o,a));l=f,f=c,c=u,u=b(s,h),s=a,a=o,o=i,i=b(h,d)}this.h[0]=b(this.h[0],i),this.h[1]=b(this.h[1],o),this.h[2]=b(this.h[2],a),this.h[3]=b(this.h[3],s),this.h[4]=b(this.h[4],u),this.h[5]=b(this.h[5],c),this.h[6]=b(this.h[6],f),this.h[7]=b(this.h[7],l)},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":90,"../utils":100,"./common":99,"minimalistic-assert":109}],97:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),(t.exports=o).blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":100,"./512":98}],98:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),R=e("minimalistic-assert"),o=n.rotr64_hi,a=n.rotr64_lo,s=n.shr64_hi,u=n.shr64_lo,N=n.sum64,U=n.sum64_hi,P=n.sum64_lo,h=n.sum64_4_hi,d=n.sum64_4_lo,L=n.sum64_5_hi,F=n.sum64_5_lo,c=i.BlockHash,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=f,this.W=new Array(160)}function D(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function q(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function z(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function H(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function K(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function V(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function W(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function G(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function p(e,t){var r=o(e,t,1)^o(e,t,8)^s(e,t,7);return r<0&&(r+=4294967296),r}function b(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function y(e,t){var r=o(e,t,19)^o(t,e,29)^s(e,t,6);return r<0&&(r+=4294967296),r}function m(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(l,c),(t.exports=l).blockSize=1024,l.outSize=512,l.hmacStrength=192,l.padLength=128,l.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=y(r[n-4],r[n-3]),o=m(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=p(r[n-30],r[n-29]),c=b(r[n-30],r[n-29]),f=r[n-32],l=r[n-31];r[n]=h(i,o,a,s,u,c,f,l),r[n+1]=d(i,o,a,s,u,c,f,l)}},l.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],u=this.h[5],c=this.h[6],f=this.h[7],l=this.h[8],h=this.h[9],d=this.h[10],p=this.h[11],b=this.h[12],y=this.h[13],m=this.h[14],v=this.h[15];R(this.k.length===r.length);for(var g=0;g<r.length;g+=2){var w=m,_=v,k=W(l,h),S=G(l,h),A=D(l,h,d,p,b),E=q(l,h,d,p,b,y),x=this.k[g],M=this.k[g+1],j=r[g],I=r[g+1],O=L(w,_,k,S,A,E,x,M,j,I),T=F(w,_,k,S,A,E,x,M,j,I);w=K(n,i),_=V(n,i),k=z(n,i,o,a,s),S=H(n,i,o,a,s,u);var B=U(w,_,k,S),C=P(w,_,k,S);m=b,v=y,b=d,y=p,d=l,p=h,l=U(c,f,O,T),h=P(f,f,O,T),c=s,f=u,s=o,u=a,o=n,a=i,n=U(O,T,B,C),i=P(O,T,B,C)}N(this.h,0,n,i),N(this.h,2,o,a),N(this.h,4,s,u),N(this.h,6,c,f),N(this.h,8,l,h),N(this.h,10,d,p),N(this.h,12,b,y),N(this.h,14,m,v)},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":90,"../utils":100,"minimalistic-assert":109}],99:[function(e,t,r){"use strict";var n=e("../utils").rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},r.ch32=i,r.maj32=o,r.p32=a,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":100}],100:[function(e,t,r){"use strict";var c=e("minimalistic-assert"),n=e("inherits");function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=n,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r,n,i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)i.push(parseInt(e[a]+e[a+1],16))}else for(var o=0,a=0;a<e.length;a++){var s=e.charCodeAt(a);i[o++]=s<128?s:(i[o++]=s<2048?s>>6|192:(n=a,55296!=(64512&(r=e).charCodeAt(n))||n<0||n+1>=r.length||56320!=(64512&r.charCodeAt(n+1))?i[o++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++a)),i[o++]=s>>18|240,i[o++]=s>>12&63|128),s>>6&63|128),63&s|128)}else for(a=0;a<e.length;a++)i[a]=0|e[a];return i},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t},r.htonl=o,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=a(i.toString(16))}return r},r.zero2=i,r.zero8=a,r.join32=function(e,t,r,n){var i=r-t;c(i%4==0);for(var o=new Array(i/4),a=0,s=t;a<o.length;a++,s+=4){var u;u="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[a]=u>>>0}return o},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},r.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;return f+=(l=l+n>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+s>>>0)<s?1:0,e+r+i+a+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:104,"minimalistic-assert":109}],101:[function(e,t,r){"use strict";var n=e("hash.js"),a=e("minimalistic-crypto-utils"),i=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}(t.exports=o).prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=a.toArray(e,t),r=a.toArray(r,n),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,a.encode(o,t)}},{"hash.js":89,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],102:[function(e,t,r){"use strict";var n=e("http"),i=e("url"),o=t.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},{http:163,url:185}],103:[function(e,t,r){"use strict";r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;0<f;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;0<f;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+l?h/u:h*Math.pow(2,1-l))*u&&(a++,u/=2),f<=a+l?(s=0,a=f):1<=a+l?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*b}},{}],104:[function(e,t,r){arguments[4][16][0].apply(r,arguments)},{dup:16}],105:[function(e,t,r){"use strict";function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))||!!e._isBuffer);var t}},{}],106:[function(e,t,r){"use strict";var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],107:[function(e,t,r){"use strict";var n=e("inherits"),i=e("hash-base"),o=e("safe-buffer").Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;n=h(n=h(n=h(n=h(n=l(n=l(n=l(n=l(n=f(n=f(n=f(n=f(n=c(n=c(n=c(n=c(n,i=c(i,o=c(o,r=c(r,n,i,o,e[0],3614090360,7),n,i,e[1],3905402710,12),r,n,e[2],606105819,17),o,r,e[3],3250441966,22),i=c(i,o=c(o,r=c(r,n,i,o,e[4],4118548399,7),n,i,e[5],1200080426,12),r,n,e[6],2821735955,17),o,r,e[7],4249261313,22),i=c(i,o=c(o,r=c(r,n,i,o,e[8],1770035416,7),n,i,e[9],2336552879,12),r,n,e[10],4294925233,17),o,r,e[11],2304563134,22),i=c(i,o=c(o,r=c(r,n,i,o,e[12],1804603682,7),n,i,e[13],4254626195,12),r,n,e[14],2792965006,17),o,r,e[15],1236535329,22),i=f(i,o=f(o,r=f(r,n,i,o,e[1],4129170786,5),n,i,e[6],3225465664,9),r,n,e[11],643717713,14),o,r,e[0],3921069994,20),i=f(i,o=f(o,r=f(r,n,i,o,e[5],3593408605,5),n,i,e[10],38016083,9),r,n,e[15],3634488961,14),o,r,e[4],3889429448,20),i=f(i,o=f(o,r=f(r,n,i,o,e[9],568446438,5),n,i,e[14],3275163606,9),r,n,e[3],4107603335,14),o,r,e[8],1163531501,20),i=f(i,o=f(o,r=f(r,n,i,o,e[13],2850285829,5),n,i,e[2],4243563512,9),r,n,e[7],1735328473,14),o,r,e[12],2368359562,20),i=l(i,o=l(o,r=l(r,n,i,o,e[5],4294588738,4),n,i,e[8],2272392833,11),r,n,e[11],1839030562,16),o,r,e[14],4259657740,23),i=l(i,o=l(o,r=l(r,n,i,o,e[1],2763975236,4),n,i,e[4],1272893353,11),r,n,e[7],4139469664,16),o,r,e[10],3200236656,23),i=l(i,o=l(o,r=l(r,n,i,o,e[13],681279174,4),n,i,e[0],3936430074,11),r,n,e[3],3572445317,16),o,r,e[6],76029189,23),i=l(i,o=l(o,r=l(r,n,i,o,e[9],3654602809,4),n,i,e[12],3873151461,11),r,n,e[15],530742520,16),o,r,e[2],3299628645,23),i=h(i,o=h(o,r=h(r,n,i,o,e[0],4096336452,6),n,i,e[7],1126891415,10),r,n,e[14],2878612391,15),o,r,e[5],4237533241,21),i=h(i,o=h(o,r=h(r,n,i,o,e[12],1700485571,6),n,i,e[3],2399980690,10),r,n,e[10],4293915773,15),o,r,e[1],2240044497,21),i=h(i,o=h(o,r=h(r,n,i,o,e[8],1873313359,6),n,i,e[15],4264355552,10),r,n,e[6],2734768916,15),o,r,e[13],1309151649,21),i=h(i,o=h(o,r=h(r,n,i,o,e[4],4149444226,6),n,i,e[11],3174756917,10),r,n,e[2],718787259,15),o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":88,inherits:104,"safe-buffer":153}],108:[function(e,t,r){"use strict";var d=e("bn.js"),n=e("brorand");function i(e){this.rand=e||new n.Rand}(t.exports=i).create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new d(this.rand.generate(r))}while(0<=n.cmp(e));return n},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var n=e.bitLength(),i=d.mont(e),o=new d(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);0<t;t--){var f=this._randrange(new d(2),a);r&&r(f);var l=f.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(c)){for(var h=1;h<s;h++){if(0===(l=l.redSqr()).cmp(o))return!1;if(0===l.cmp(c))break}if(h===s)return!1}}return!0},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=d.mont(e),i=new d(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var s=e.shrn(a),u=o.toRed(n);0<t;t--){var c=this._randrange(new d(2),o),f=e.gcd(c);if(0!==f.cmpn(1))return f;var l=c.toRed(n).redPow(s);if(0!==l.cmp(i)&&0!==l.cmp(u)){for(var h=1;h<a;h++){if(0===(l=l.redSqr()).cmp(i))return l.fromRed().subn(1).gcd(e);if(0===l.cmp(u))break}if(h===a)return(l=l.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":"BN",brorand:20}],109:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=n).equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],110:[function(e,t,r){"use strict";var n=r;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},{}],111:[function(e,t,r){"use strict";var u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in r=Object(arguments[o]))c.call(r,a)&&(i[a]=r[a]);if(u){n=u(r);for(var s=0;s<n.length;s++)f.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i}},{}],112:[function(e,t,r){"use strict";r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n",r.homedir=function(){return"/"}},{}],113:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],114:[function(e,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});r.PublicKey=a;var s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});r.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=f,r.DSAparam=n.define("DSAparam",function(){this.int()});var l=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=l;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":115,"asn1.js":1}],115:[function(e,t,r){"use strict";var n=e("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(u)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),l=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":1}],116:[function(e,t,r){"use strict";var h=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,d=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,b=e("evp_bytestokey"),y=e("browserify-aes"),m=e("safe-buffer").Buffer;t.exports=function(e,t){var r,n=e.toString(),i=n.match(h);if(i){var o="aes"+i[1],a=m.from(i[2],"hex"),s=m.from(i[3].replace(/[\r\n]/g,""),"base64"),u=b(t,a.slice(0,8),parseInt(i[1],10)).key,c=[],f=y.createDecipheriv(o,u,a);c.push(f.update(s)),c.push(f.final()),r=m.concat(c)}else{var l=n.match(p);r=new m(l[2].replace(/[\r\n]/g,""),"base64")}return{tag:n.match(d)[1],data:r}}},{"browserify-aes":24,evp_bytestokey:87,"safe-buffer":153}],117:[function(e,t,r){"use strict";function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=e("./asn1"),w=e("./aesid.json"),_=e("./fixProc"),k=e("browserify-aes"),S=e("pbkdf2"),A=e("safe-buffer").Buffer;function n(e){var t;"object"!==v(e)||A.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=A.from(e));var r,n,i,o,a,s,u,c,f,l,h,d,p,b=_(e,t),y=b.tag,m=b.data;switch(y){case"CERTIFICATE":n=g.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=g.PublicKey.decode(m,"der")),r=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return g.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=g.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+y);case"ENCRYPTED PRIVATE KEY":m=g.EncryptedPrivateKey.decode(m,"der"),o=t,a=(i=m).algorithm.decrypt.kde.kdeparams.salt,s=parseInt(i.algorithm.decrypt.kde.kdeparams.iters.toString(),10),u=w[i.algorithm.decrypt.cipher.algo.join(".")],c=i.algorithm.decrypt.cipher.iv,f=i.subjectPrivateKey,l=parseInt(u.split("-")[1],10)/8,h=S.pbkdf2Sync(o,a,s,l,"sha1"),d=k.createDecipheriv(u,h,c),(p=[]).push(d.update(f)),p.push(d.final()),m=A.concat(p);case"PRIVATE KEY":switch(r=(n=g.PrivateKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return g.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:g.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=g.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+y);case"RSA PUBLIC KEY":return g.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return g.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:g.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return{curve:(m=g.ECPrivateKey.decode(m,"der")).parameters.value,privateKey:m.privateKey};default:throw new Error("unknown key type "+y)}}(t.exports=n).signature=g.signature},{"./aesid.json":113,"./asn1":114,"./fixProc":116,"browserify-aes":24,pbkdf2:118,"safe-buffer":153}],118:[function(e,t,r){"use strict";r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":119,"./lib/sync":122}],119:[function(e,t,r){(function(c,f){"use strict";var l,h=e("./precondition"),d=e("./default-encoding"),p=e("./sync"),b=e("safe-buffer").Buffer,y=f.crypto&&f.crypto.subtle,m={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},v=[];function g(e,t,r,n,i){return y.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return y.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return b.from(e)})}t.exports=function(t,r,n,i,o,a){"function"==typeof o&&(a=o,o=void 0);var e,s,u=m[(o=o||"sha1").toLowerCase()];if(!u||"function"!=typeof f.Promise)return c.nextTick(function(){var e;try{e=p(t,r,n,i,o)}catch(e){return a(e)}a(null,e)});if(h(t,r,n,i),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");b.isBuffer(t)||(t=b.from(t,d)),b.isBuffer(r)||(r=b.from(r,d)),e=function(e){if(f.process&&!f.process.browser)return Promise.resolve(!1);if(!y||!y.importKey||!y.deriveBits)return Promise.resolve(!1);if(void 0!==v[e])return v[e];var t=g(l=l||b.alloc(8),l,10,128,e).then(function(){return!0}).catch(function(){return!1});return v[e]=t}(u).then(function(e){return e?g(t,r,n,i,u):p(t,r,n,i,o)}),s=a,e.then(function(e){c.nextTick(function(){s(null,e)})},function(e){c.nextTick(function(){s(e)})})}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":120,"./precondition":121,"./sync":122,_process:124,"safe-buffer":153}],120:[function(e,r,t){(function(e){"use strict";var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=t}).call(this,e("_process"))},{_process:124}],121:[function(e,t,r){(function(r){"use strict";var i=Math.pow(2,30)-1;function o(e,t){if("string"!=typeof e&&!r.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}t.exports=function(e,t,r,n){if(o(e,"Password"),o(t,"Salt"),"number"!=typeof r)throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||i<n||n!=n)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":105}],122:[function(e,t,r){"use strict";var f=e("create-hash/md5"),l=e("ripemd160"),h=e("sha.js"),y=e("./precondition"),m=e("./default-encoding"),v=e("safe-buffer").Buffer,d=v.alloc(128),g={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function w(e,t,r){var n,i="rmd160"===(n=e)||"ripemd160"===n?function(e){return(new l).update(e).digest()}:"md5"===n?f:function(e){return h(n).update(e).digest()},o="sha512"===e||"sha384"===e?128:64;t.length>o?t=i(t):t.length<o&&(t=v.concat([t,d],o));for(var a=v.allocUnsafe(o+g[e]),s=v.allocUnsafe(o+g[e]),u=0;u<o;u++)a[u]=54^t[u],s[u]=92^t[u];var c=v.allocUnsafe(o+r+4);a.copy(c,0,0,o),this.ipad1=c,this.ipad2=a,this.opad=s,this.alg=e,this.blocksize=o,this.hash=i,this.size=g[e]}w.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,i){y(e,t,r,n),v.isBuffer(e)||(e=v.from(e,m)),v.isBuffer(t)||(t=v.from(t,m));var o=new w(i=i||"sha1",e,t.length),a=v.allocUnsafe(n),s=v.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var u=0,c=g[i],f=Math.ceil(n/c),l=1;l<=f;l++){s.writeUInt32BE(l,t.length);for(var h=o.run(s,o.ipad1),d=h,p=1;p<r;p++){d=o.run(d,o.ipad2);for(var b=0;b<c;b++)h[b]^=d[b]}h.copy(a,u),u+=c}return a}},{"./default-encoding":120,"./precondition":121,"create-hash/md5":56,ripemd160:152,"safe-buffer":153,"sha.js":155}],123:[function(e,t,r){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){e.apply(null,i)})}}}:t.exports=s}).call(this,e("_process"))},{_process:124}],124:[function(e,t,r){"use strict";var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,f=[],l=!1,h=-1;function d(){l&&c&&(l=!1,c.length?f=c.concat(f):h=-1,f.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=f.length;t;){for(c=f,f=[];++h<t;)c&&c[h].run();h=-1,t=f.length}c=null,l=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new b(e,t)),1!==f.length||l||u(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],125:[function(e,t,r){"use strict";r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":127,"./publicEncrypt":128}],126:[function(e,t,r){"use strict";var o=e("create-hash"),a=e("safe-buffer").Buffer;function s(e){var t=a.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,n=a.alloc(0),i=0;n.length<t;)r=s(i++),n=a.concat([n,o("sha1").update(e).update(r).digest()]);return n.slice(0,t)}},{"create-hash":55,"safe-buffer":153}],127:[function(e,t,r){"use strict";var u=e("parse-asn1"),f=e("./mgf"),l=e("./xor"),c=e("bn.js"),h=e("browserify-rsa"),d=e("create-hash"),p=e("./withPublic"),b=e("safe-buffer").Buffer;t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,o=u(e),a=o.modulus.byteLength();if(t.length>a||0<=new c(t).cmp(o.modulus))throw new Error("decryption error");i=r?p(new c(t),o):h(t,o);var s=b.alloc(a-i.length);if(i=b.concat([s,i],a),4===n)return function(e,t){var r=e.modulus.byteLength(),n=d("sha1").update(b.alloc(0)).digest(),i=n.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),a=t.slice(i+1),s=l(o,f(a,i)),u=l(a,f(s,r-i-1));if(function(e,t){e=b.from(e),t=b.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,u.slice(0,i)))throw new Error("decryption error");var c=i;for(;0===u[c];)c++;if(1===u[c++])return u.slice(c);throw new Error("decryption error")}(o,i);if(1===n)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,i,r);if(3===n)return i;throw new Error("unknown padding")}},{"./mgf":126,"./withPublic":129,"./xor":130,"bn.js":"BN","browserify-rsa":42,"create-hash":55,"parse-asn1":117,"safe-buffer":153}],128:[function(e,t,r){"use strict";var a=e("parse-asn1"),h=e("randombytes"),d=e("create-hash"),p=e("./mgf"),b=e("./xor"),y=e("bn.js"),s=e("./withPublic"),u=e("browserify-rsa"),m=e("safe-buffer").Buffer;t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,o=a(e);if(4===n)i=function(e,t){var r=e.modulus.byteLength(),n=t.length,i=d("sha1").update(m.alloc(0)).digest(),o=i.length,a=2*o;if(r-a-2<n)throw new Error("message too long");var s=m.alloc(r-n-a-2),u=r-o-1,c=h(o),f=b(m.concat([i,s,m.alloc(1,1),t],u),p(c,u)),l=b(c,p(f,o));return new y(m.concat([m.alloc(1),l,f],r))}(o,t);else if(1===n)i=function(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(o-11<i)throw new Error("message too long");n=r?m.alloc(o-i-3,255):function(e){var t,r=m.allocUnsafe(e),n=0,i=h(2*e),o=0;for(;n<e;)o===i.length&&(i=h(2*e),o=0),(t=i[o++])&&(r[n++]=t);return r}(o-i-3);return new y(m.concat([m.from([0,r?1:2]),n,m.alloc(1),t],o))}(o,t,r);else{if(3!==n)throw new Error("unknown padding");if(0<=(i=new y(t)).cmp(o.modulus))throw new Error("data too long for modulus")}return r?u(i,o):s(i,o)}},{"./mgf":126,"./withPublic":129,"./xor":130,"bn.js":"BN","browserify-rsa":42,"create-hash":55,"parse-asn1":117,randombytes:135,"safe-buffer":153}],129:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"bn.js":"BN","safe-buffer":153}],130:[function(e,t,r){"use strict";t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],131:[function(e,C,R){(function(T){"use strict";function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){var t="object"==(void 0===R?"undefined":B(R))&&R&&!R.nodeType&&R,r="object"==(void 0===C?"undefined":B(C))&&C&&!C.nodeType&&C,n="object"==(void 0===T?"undefined":B(T))&&T;n.global!==n&&n.window!==n&&n.self!==n||(e=n);var i,o,m=2147483647,v=36,g=1,w=26,a=38,s=700,_=72,k=128,S="-",u=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=v-g,A=Math.floor,E=String.fromCharCode;function x(e){throw new RangeError(l[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function p(e,t){var r=e.split("@"),n="";return 1<r.length&&(n=r[0]+"@",e=r[1]),n+d((e=e.replace(f,".")).split("."),t).join(".")}function M(e){for(var t,r,n=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function j(e){return d(e,function(e){var t="";return 65535<e&&(t+=E((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=E(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,r){var n=0;for(e=r?A(e/s):e>>1,e+=A(e/t);h*w>>1<e;n+=v)e=A(e/h);return A(n+(h+1)*e/(e+a))}function b(e){var t,r,n,i,o,a,s,u,c,f,l,h=[],d=e.length,p=0,b=k,y=_;for((r=e.lastIndexOf(S))<0&&(r=0),n=0;n<r;++n)128<=e.charCodeAt(n)&&x("not-basic"),h.push(e.charCodeAt(n));for(i=0<r?r+1:0;i<d;){for(o=p,a=1,s=v;d<=i&&x("invalid-input"),l=e.charCodeAt(i++),(v<=(u=l-48<10?l-22:l-65<26?l-65:l-97<26?l-97:v)||u>A((m-p)/a))&&x("overflow"),p+=u*a,!(u<(c=s<=y?g:y+w<=s?w:s-y));s+=v)a>A(m/(f=v-c))&&x("overflow"),a*=f;y=O(p-o,t=h.length+1,0==o),A(p/t)>m-b&&x("overflow"),b+=A(p/t),p%=t,h.splice(p++,0,b)}return j(h)}function y(e){var t,r,n,i,o,a,s,u,c,f,l,h,d,p,b,y=[];for(h=(e=M(e)).length,t=k,o=_,a=r=0;a<h;++a)(l=e[a])<128&&y.push(E(l));for(n=i=y.length,i&&y.push(S);n<h;){for(s=m,a=0;a<h;++a)t<=(l=e[a])&&l<s&&(s=l);for(s-t>A((m-r)/(d=n+1))&&x("overflow"),r+=(s-t)*d,t=s,a=0;a<h;++a)if((l=e[a])<t&&++r>m&&x("overflow"),l==t){for(u=r,c=v;!(u<(f=c<=o?g:o+w<=c?w:c-o));c+=v)b=u-f,p=v-f,y.push(E(I(f+b%p,0))),u=A(b/p);y.push(E(I(u,0))),o=O(r,d,n==i),r=0,++n}++r,++t}return y.join("")}if(i={version:"1.4.1",ucs2:{decode:M,encode:j},decode:b,encode:y,toASCII:function(e){return p(e,function(e){return c.test(e)?"xn--"+y(e):e})},toUnicode:function(e){return p(e,function(e){return u.test(e)?b(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==B(define.amd)&&define.amd)define("punycode",function(){return i});else if(t&&r)if(C.exports==t)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(void 0)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],132:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,u,c=e.length;0<a&&a<c&&(c=a);for(var f=0;f<c;++f){var l,h,d,p,b=e[f].replace(o,"%20"),y=b.indexOf(r);h=0<=y?(l=b.substr(0,y),b.substr(y+1)):(l=b,""),d=decodeURIComponent(l),p=decodeURIComponent(h),s=i,u=d,Object.prototype.hasOwnProperty.call(s,u)?m(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i};var m=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],133:[function(e,t,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=function(e){switch(o(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(r,n,i,e){return n=n||"&",i=i||"=",null===r&&(r=void 0),"object"===o(r)?u(c(r),function(e){var t=encodeURIComponent(a(e))+i;return s(r[e])?u(r[e],function(e){return t+encodeURIComponent(a(e))}).join(n):t+encodeURIComponent(a(r[e]))}).join(n):e?encodeURIComponent(a(e))+i+encodeURIComponent(a(r)):""};var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function u(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var c=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],134:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":132,"./encode":133}],135:[function(t,r,e){(function(i,e){"use strict";var o=t("safe-buffer").Buffer,a=e.crypto||e.msCrypto;a&&a.getRandomValues?r.exports=function(e,t){if(4294967295<e)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(0<e)if(65536<e)for(var n=0;n<e;n+=65536)a.getRandomValues(r.slice(n,n+65536));else a.getRandomValues(r);return"function"!=typeof t?r:i.nextTick(function(){t(null,r)})}:r.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":153}],136:[function(r,e,d){(function(a,i){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=r("safe-buffer"),s=r("randombytes"),o=t.Buffer,n=t.kMaxLength,u=i.crypto||i.msCrypto,c=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(c<e||e<0)throw new TypeError("offset must be a uint32");if(n<e||t<e)throw new RangeError("offset out of range")}function l(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(c<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||n<e)throw new RangeError("buffer too small")}function h(r,n,e,i){if(a.browser){var t=r.buffer,o=new Uint8Array(t,n,e);return u.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return s(e).copy(r,n),r;s(e,function(e,t){if(e)return i(e);t.copy(r,n),i(null,r)})}u&&u.getRandomValues||!a.browser?(d.randomFill=function(e,t,r,n){if(!(o.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return f(t,e.length),l(r,t,e.length),h(e,t,r,n)},d.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(o.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(t,e.length),void 0===r&&(r=e.length-t);return l(r,t,e.length),h(e,t,r)}):(d.randomFill=e,d.randomFillSync=e)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,randombytes:135,"safe-buffer":153}],137:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":138}],138:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":140,"./_stream_writable":142,"core-util-is":53,inherits:104,"process-nextick-args":123}],139:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":141,"core-util-is":53,inherits:104}],140:[function(C,R,e){(function(y,e){"use strict";var m=C("process-nextick-args");R.exports=h;var a,v=C("isarray");h.ReadableState=o;C("events").EventEmitter;var g=function(e,t){return e.listeners(t).length},i=C("./internal/streams/stream"),c=C("safe-buffer").Buffer,f=e.Uint8Array||function(){};var t=C("core-util-is");t.inherits=C("inherits");var r=C("util"),w=void 0;w=r&&r.debuglog?r.debuglog("stream"):function(){};var s,u=C("./internal/streams/BufferList"),n=C("./internal/streams/destroy");t.inherits(h,i);var l=["error","close","destroy","pause","resume"];function o(e,t){e=e||{};var r=t instanceof(a=a||C("./_stream_duplex"));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new u,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=C("string_decoder/").StringDecoder),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function h(e){if(a=a||C("./_stream_duplex"),!(this instanceof h))return new h(e);this._readableState=new o(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function d(e,t,r,n,i){var o,a,s,u=e._readableState;null===t?(u.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}(e,u)):(i||(o=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,t)),o?e.emit("error",o):u.objectMode||t&&0<t.length?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===c.prototype||(a=t,t=c.from(a)),n?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):p(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?p(e,u,t,!1):A(e,u)):p(e,u,t,!1))):n||(u.reading=!1));return!(s=u).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function p(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),A(e,t)}Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),h.prototype.destroy=n.destroy,h.prototype._undestroy=n.undestroy,h.prototype._destroy=function(e,t){this.push(null),t(e)},h.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),d(this,e,t,!1,r)},h.prototype.unshift=function(e){return d(this,e,null,!0,!1)},h.prototype.isPaused=function(){return!1===this._readableState.flowing},h.prototype.setEncoding=function(e){return s||(s=C("string_decoder/").StringDecoder),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var b=8388608;function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(b<=(r=e)?r=b:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m.nextTick(S,e):S(e))}function S(e){w("emit readable"),e.emit("readable"),j(e)}function A(e,t){t.readingMore||(t.readingMore=!0,m.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function x(e){w("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(a);break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(a);break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function O(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,m.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}h.prototype.read=function(e){w("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return w("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):k(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&O(this),null;var n,i=t.needReadable;return w("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&w("length less than watermark",i=!0),t.ended||t.reading?w("reading or ended",i=!1):i&&(w("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(r,t))),null===(n=0<e?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&O(this)),null!==n&&this.emit("data",n),n},h.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},h.prototype.pipe=function(r,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,w("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&r!==y.stdout&&r!==y.stderr?a:b;function o(e,t){w("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,w("cleanup"),r.removeListener("close",d),r.removeListener("finish",p),r.removeListener("drain",u),r.removeListener("error",h),r.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",b),n.removeListener("data",l),c=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function a(){w("onend"),r.end()}i.endEmitted?m.nextTick(t):n.once("end",t),r.on("unpipe",o);var s,u=(s=n,function(){var e=s._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&g(s,"data")&&(e.flowing=!0,j(s))});r.on("drain",u);var c=!1;var f=!1;function l(e){w("ondata"),(f=!1)!==r.write(e)||f||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==B(i.pipes,r))&&!c&&(w("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function h(e){w("onerror",e),b(),r.removeListener("error",h),0===g(r,"error")&&r.emit("error",e)}function d(){r.removeListener("finish",p),b()}function p(){w("onfinish"),r.removeListener("close",d),b()}function b(){w("unpipe"),n.unpipe(r)}return n.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?v(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(r,"error",h),r.once("close",d),r.once("finish",p),r.emit("pipe",n),i.flowing||(w("pipe resume"),n.resume()),r},h.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},h.prototype.addListener=h.prototype.on=function(e,t){var r=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):m.nextTick(x,this))}return r},h.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(w("resume"),r.flowing=!0,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,m.nextTick(M,e,t))),this},h.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},h.prototype.wrap=function(t){var r=this,n=this._readableState,i=!1;for(var e in t.on("end",function(){if(w("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),t.on("data",function(e){(w("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e)||(n.objectMode||e&&e.length)&&(r.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<l.length;o++)t.on(l[o],this.emit.bind(this,l[o]));return this._read=function(e){w("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(h.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),h._fromList=I}).call(this,C("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":138,"./internal/streams/BufferList":143,"./internal/streams/destroy":144,"./internal/streams/stream":145,_process:124,"core-util-is":53,events:86,inherits:104,isarray:106,"process-nextick-args":123,"safe-buffer":153,"string_decoder/":146,util:21}],141:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_duplex"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){s(r,e,t)}):s(this,null,null)}function s(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":138,"core-util-is":53,inherits:104}],142:[function(S,A,e){(function(e,t,r){"use strict";var m=S("process-nextick-args");function l(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}A.exports=f;var s,h=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:m.nextTick;f.WritableState=c;var n=S("core-util-is");n.inherits=S("inherits");var i={deprecate:S("util-deprecate")},o=S("./internal/streams/stream"),v=S("safe-buffer").Buffer,g=t.Uint8Array||function(){};var a,u=S("./internal/streams/destroy");function w(){}function c(e,t){s=s||S("./_stream_duplex"),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(l=r,l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,t)a=e,s=r,u=n,c=t,f=i,--s.pendingcb,u?(m.nextTick(f,c),m.nextTick(k,a,s),a._writableState.errorEmitted=!0,a.emit("error",c)):(f(c),a._writableState.errorEmitted=!0,a.emit("error",c),k(a,s));else{var o=b(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||p(e,r),n?h(d,e,r,o,i):d(e,r,o,i)}var a,s,u,c,f;var l}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function f(e){if(s=s||S("./_stream_duplex"),!(a.call(f,this)||this instanceof s))return new f(e);this._writableState=new c(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),o.call(this)}function _(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function d(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),k(e,t)}function p(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)(i[a]=r).isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,_(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new l(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback;if(_(e,t,!1,t.objectMode?1:u.length,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),k(t,r)})}function k(e,t){var r,n,i=b(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(y,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}n.inherits(f,o),c.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(c.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===f&&(e&&e._writableState instanceof c)}})):a=function(e){return e instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(e,t,r){var n,i,o,a,s,u,c,f,l,h,d,p=this._writableState,b=!1,y=!p.objectMode&&(n=e,v.isBuffer(n)||n instanceof g);return y&&!v.isBuffer(e)&&(i=e,e=v.from(i)),"function"==typeof t&&(r=t,t=null),y?t="buffer":t||(t=p.defaultEncoding),"function"!=typeof r&&(r=w),p.ended?(l=this,h=r,d=new Error("write after end"),l.emit("error",d),m.nextTick(h,d)):(y||(o=this,a=p,u=r,f=!(c=!0),null===(s=e)?f=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||a.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(o.emit("error",f),m.nextTick(u,f),c=!1),c))&&(p.pendingcb++,b=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=v.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,s,n,i,o);return u}(this,p,y,e,t,r)),b},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||p(this,e))},f.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),f.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},f.prototype._writev=null,f.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?m.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),f.prototype.destroy=u.destroy,f.prototype._undestroy=u.undestroy,f.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("timers").setImmediate)},{"./_stream_duplex":138,"./internal/streams/destroy":144,"./internal/streams/stream":145,_process:124,"core-util-is":53,inherits:104,"process-nextick-args":123,"safe-buffer":153,timers:184,"util-deprecate":187}],143:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,n=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,t.copy(r,n),a+=o.data.length,o=o.next;return i},e}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":153,util:21}],144:[function(e,t,r){"use strict";var o=e("process-nextick-args");function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(a,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){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)}}},{"process-nextick-args":123}],145:[function(e,t,r){"use strict";t.exports=e("events").EventEmitter},{events:86}],146:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(r.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(0<=(i=a(t[n])))return 0<i&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(0<=(i=a(t[n])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":153}],147:[function(e,t,r){"use strict";t.exports=e("./readable").PassThrough},{"./readable":148}],148:[function(e,t,r){"use strict";(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":138,"./lib/_stream_passthrough.js":139,"./lib/_stream_readable.js":140,"./lib/_stream_transform.js":141,"./lib/_stream_writable.js":142}],149:[function(e,t,r){"use strict";t.exports=e("./readable").Transform},{"./readable":148}],150:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":142}],151:[function(e,t,r){"use strict";function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=function(o){var u,e=Object.prototype,c=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",n=t.toStringTag||"@@toStringTag";function a(e,t,r,n){var o,a,s,u,i=t&&t.prototype instanceof m?t:m,c=Object.create(i.prototype),f=new M(n||[]);return c._invoke=(o=e,a=r,s=f,u=h,function(e,t){if(u===p)throw new Error("Generator is already running");if(u===b){if("throw"===e)throw t;return I()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){var n=A(r,s);if(n){if(n===y)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(u===h)throw u=b,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);u=p;var i=l(o,a,s);if("normal"===i.type){if(u=s.done?b:d,i.arg===y)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(u=b,s.method="throw",s.arg=i.arg)}}),c}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=a;var h="suspendedStart",d="suspendedYield",p="executing",b="completed",y={};function m(){}function s(){}function f(){}var v={};v[i]=function(){return this};var g=Object.getPrototypeOf,w=g&&g(g(j([])));w&&w!==e&&c.call(w,i)&&(v=w);var _=f.prototype=m.prototype=Object.create(v);function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(u){var t;this._invoke=function(r,n){function e(){return new Promise(function(e,t){!function t(e,r,n,i){var o=l(u[e],u,r);if("throw"!==o.type){var a=o.arg,s=a.value;return s&&"object"===O(s)&&c.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,n,i)},function(e){t("throw",e,n,i)}):Promise.resolve(s).then(function(e){a.value=e,n(a)},function(e){return t("throw",e,n,i)})}i(o.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function A(e,t){var r=e.iterator[t.method];if(r===u){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=u,A(e,t),"throw"===t.method))return y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,y;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=u),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=u,e.done=!0,e};return n.next=n}}return{next:I}}function I(){return{value:u,done:!0}}return s.prototype=_.constructor=f,f.constructor=s,f[n]=s.displayName="GeneratorFunction",o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n in e||(e[n]="GeneratorFunction")),e.prototype=Object.create(_),e},o.awrap=function(e){return{__await:e}},k(S.prototype),S.prototype[r]=function(){return this},o.AsyncIterator=S,o.async=function(e,t,r,n){var i=new S(a(e,t,r,n));return o.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},k(_),_[n]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},o.keys=function(r){var n=[];for(var e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=j,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return o.type="throw",o.arg=r,n.next=e,t&&(n.method="next",n.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),s=c.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=u),y}},o}("object"===(void 0===t?"undefined":O(t))?t.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},{}],152:[function(e,t,r){"use strict";var n=e("buffer").Buffer,i=e("inherits"),o=e("hash-base"),y=new Array(16),m=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],_=[0,1518500249,1859775393,2400959708,2840853838],k=[1352829926,1548603684,1836072691,2053994217,0];function a(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function S(e,t){return e<<t|e>>>32-t}function A(e,t,r,n,i,o,a,s){return S(e+(t^r^n)+o+a|0,s)+i|0}function E(e,t,r,n,i,o,a,s){return S(e+(t&r|~t&n)+o+a|0,s)+i|0}function x(e,t,r,n,i,o,a,s){return S(e+((t|~r)^n)+o+a|0,s)+i|0}function M(e,t,r,n,i,o,a,s){return S(e+(t&n|r&~n)+o+a|0,s)+i|0}function j(e,t,r,n,i,o,a,s){return S(e+(t^(r|~n))+o+a|0,s)+i|0}i(a,o),a.prototype._update=function(){for(var e=y,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._a,u=0|this._b,c=0|this._c,f=0|this._d,l=0|this._e,h=0;h<80;h+=1){var d,p;p=h<16?(d=A(r,n,i,o,a,e[m[h]],_[0],g[h]),j(s,u,c,f,l,e[v[h]],k[0],w[h])):h<32?(d=E(r,n,i,o,a,e[m[h]],_[1],g[h]),M(s,u,c,f,l,e[v[h]],k[1],w[h])):h<48?(d=x(r,n,i,o,a,e[m[h]],_[2],g[h]),x(s,u,c,f,l,e[v[h]],k[2],w[h])):h<64?(d=M(r,n,i,o,a,e[m[h]],_[3],g[h]),E(s,u,c,f,l,e[v[h]],k[3],w[h])):(d=j(r,n,i,o,a,e[m[h]],_[4],g[h]),A(s,u,c,f,l,e[v[h]],k[4],w[h])),r=a,a=o,o=S(i,10),i=n,n=d,s=l,l=f,f=S(c,10),c=u,u=p}var b=this._b+i+f|0;this._b=this._c+o+l|0,this._c=this._d+a+s|0,this._d=this._e+r+u|0,this._e=this._a+n+c|0,this._a=b},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=a},{buffer:50,"hash-base":88,inherits:104}],153:[function(e,t,r){"use strict";var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:50}],154:[function(e,t,r){"use strict";var f=e("safe-buffer").Buffer;function n(e,t){this._block=f.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=f.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var s=o%n,u=Math.min(i-a,n-s),c=0;c<u;c++)r[s+c]=e[a+c];a+=u,(o+=u)%n==0&&this._update(r)}return this._len+=i,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":153}],155:[function(e,t,r){"use strict";var n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":156,"./sha1":157,"./sha224":158,"./sha256":159,"./sha384":160,"./sha512":161}],156:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,m=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,n,i,o,a,s=this._w,u=0|this._a,c=0|this._b,f=0|this._c,l=0|this._d,h=0|this._e,d=0;d<16;++d)s[d]=e.readInt32BE(4*d);for(;d<80;++d)s[d]=s[d-3]^s[d-8]^s[d-14]^s[d-16];for(var p=0;p<80;++p){var b=~~(p/20),y=0|((a=u)<<5|a>>>27)+(n=c,i=f,o=l,0===(r=b)?n&i|~n&o:2===r?n&i|n&o|i&o:n^i^o)+h+s[p]+m[b];h=l,l=f,f=(t=c)<<30|t>>>2,c=u,u=y}this._a=u+this._a|0,this._b=c+this._b|0,this._c=f+this._c|0,this._d=l+this._d|0,this._e=h+this._e|0},s.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],157:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,v=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,n,i,o,a,s,u=this._w,c=0|this._a,f=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0;p<16;++p)u[p]=e.readInt32BE(4*p);for(;p<80;++p)u[p]=(t=u[p-3]^u[p-8]^u[p-14]^u[p-16])<<1|t>>>31;for(var b=0;b<80;++b){var y=~~(b/20),m=0|((s=c)<<5|s>>>27)+(i=f,o=l,a=h,0===(n=y)?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a)+d+u[b]+v[y];d=h,h=l,l=(r=f)<<30|r>>>2,f=c,c=m}this._a=c+this._a|0,this._b=f+this._b|0,this._c=l+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],158:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./sha256"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u},{"./hash":154,"./sha256":159,inherits:104,"safe-buffer":153}],159:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,_=[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],a=new Array(64);function s(){this.init(),this._w=a,i.call(this,64,56)}n(s,i),s.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},s.prototype._update=function(e){for(var t,r,n,i,o,a,s,u=this._w,c=0|this._a,f=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,b=0|this._g,y=0|this._h,m=0;m<16;++m)u[m]=e.readInt32BE(4*m);for(;m<64;++m)u[m]=0|(((r=u[m-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+u[m-7]+(((t=u[m-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+u[m-16];for(var v=0;v<64;++v){var g=y+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((a=b)^d&(p^a))+_[v]+u[v]|0,w=0|(((o=c)>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=c)&(i=f)|l&(n|i));y=b,b=p,p=d,d=h+g|0,h=l,l=f,f=c,c=g+w|0}this._a=c+this._a|0,this._b=f+this._b|0,this._c=l+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=y+this._h|0},s.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],160:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./sha512"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var n=a.allocUnsafe(48);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),n},t.exports=u},{"./hash":154,"./sha512":161,inherits:104,"safe-buffer":153}],161:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,ee=[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],a=new Array(160);function s(){this.init(),this._w=a,i.call(this,128,112)}function te(e,t,r){return r^e&(t^r)}function re(e,t,r){return e&t|r&(e|t)}function ne(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function ie(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function oe(e,t){return e>>>0<t>>>0?1:0}n(s,i),s.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},s.prototype._update=function(e){for(var t,r,n,i,o,a,s,u,c=this._w,f=0|this._ah,l=0|this._bh,h=0|this._ch,d=0|this._dh,p=0|this._eh,b=0|this._fh,y=0|this._gh,m=0|this._hh,v=0|this._al,g=0|this._bl,w=0|this._cl,_=0|this._dl,k=0|this._el,S=0|this._fl,A=0|this._gl,E=0|this._hl,x=0;x<32;x+=2)c[x]=e.readInt32BE(4*x),c[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var M=c[x-30],j=c[x-30+1],I=((s=M)>>>1|(u=j)<<31)^(s>>>8|u<<24)^s>>>7,O=((o=j)>>>1|(a=M)<<31)^(o>>>8|a<<24)^(o>>>7|a<<25);M=c[x-4],j=c[x-4+1];var T=((n=M)>>>19|(i=j)<<13)^(i>>>29|n<<3)^n>>>6,B=((t=j)>>>19|(r=M)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),C=c[x-14],R=c[x-14+1],N=c[x-32],U=c[x-32+1],P=O+R|0,L=I+C+oe(P,O)|0;L=(L=L+T+oe(P=P+B|0,B)|0)+N+oe(P=P+U|0,U)|0,c[x]=L,c[x+1]=P}for(var F=0;F<160;F+=2){L=c[F],P=c[F+1];var D=re(f,l,h),q=re(v,g,w),z=ne(f,v),H=ne(v,f),K=ie(p,k),V=ie(k,p),W=ee[F],G=ee[F+1],Y=te(p,b,y),X=te(k,S,A),J=E+V|0,Z=m+K+oe(J,E)|0;Z=(Z=(Z=Z+Y+oe(J=J+X|0,X)|0)+W+oe(J=J+G|0,G)|0)+L+oe(J=J+P|0,P)|0;var $=H+q|0,Q=z+D+oe($,H)|0;m=y,E=A,y=b,A=S,b=p,S=k,p=d+Z+oe(k=_+J|0,_)|0,d=h,_=w,h=l,w=g,l=f,g=v,f=Z+Q+oe(v=J+$|0,J)|0}this._al=this._al+v|0,this._bl=this._bl+g|0,this._cl=this._cl+w|0,this._dl=this._dl+_|0,this._el=this._el+k|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+f+oe(this._al,v)|0,this._bh=this._bh+l+oe(this._bl,g)|0,this._ch=this._ch+h+oe(this._cl,w)|0,this._dh=this._dh+d+oe(this._dl,_)|0,this._eh=this._eh+p+oe(this._el,k)|0,this._fh=this._fh+b+oe(this._fl,S)|0,this._gh=this._gh+y+oe(this._gl,A)|0,this._hh=this._hh+m+oe(this._hl,E)|0},s.prototype._hash=function(){var n=o.allocUnsafe(64);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),n},t.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],162:[function(e,t,r){"use strict";t.exports=n;var f=e("events").EventEmitter;function n(){f.call(this)}e("inherits")(n,f),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(c(),0===f.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",u),t.on("error",u),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},{events:86,inherits:104,"readable-stream/duplex.js":137,"readable-stream/passthrough.js":147,"readable-stream/readable.js":148,"readable-stream/transform.js":149,"readable-stream/writable.js":150}],163:[function(r,e,i){(function(u){"use strict";var c=r("./lib/request"),e=r("./lib/response"),f=r("xtend"),t=r("builtin-status-codes"),l=r("url"),n=i;n.request=function(e,t){e="string"==typeof e?l.parse(e):f(e);var r=-1===u.location.protocol.search(/^https?:$/)?"http:":"",n=e.protocol||r,i=e.hostname||e.host,o=e.port,a=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?n+"//"+i:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new c(e);return t&&s.on("response",t),s},n.get=function(e,t){var r=n.request(e,t);return r.end(),r},n.ClientRequest=c,n.IncomingMessage=e.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=t,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":165,"./lib/response":166,"builtin-status-codes":51,url:185,xtend:189}],164:[function(e,t,o){(function(e){"use strict";var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}o.fetch=i(e.fetch)&&i(e.ReadableStream),o.writableStream=i(e.WritableStream),o.abortController=i(e.AbortController),o.arraybuffer=o.fetch||n("arraybuffer"),o.msstream=!o.fetch&&n("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&n("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||!!r()&&i(r().overrideMimeType),t=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],165:[function(o,h,e){(function(u,c,a){"use strict";var f=o("./capability"),e=o("inherits"),t=o("./response"),s=o("readable-stream"),r=t.IncomingMessage,l=t.readyStates;var n=h.exports=function(t){var e,r=this;s.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+a.from(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])});var n,i,o=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!f.abortController)e=!(o=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!f.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=(n=e,i=o,f.fetch&&i?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&n?"arraybuffer":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};e(n,s.Writable),n.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===i.indexOf(r)&&(this._headers[r]={name:e,value:t})},n.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},n.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},n.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,n=t._headers,r=null;"GET"!==e.method&&"HEAD"!==e.method&&(r=new Blob(t._body,{type:(n["content-type"]||{}).value||""}));var i=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){i.push([t,e])}):i.push([t,r])}),"fetch"===t._mode){var o=null;if(f.abortController){var a=new AbortController;o=a.signal,t._fetchAbortController=a,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=c.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))}c.fetch(t._opts.url,{method:t._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){c.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var s=t._xhr=new c.XMLHttpRequest;try{s.open(t._opts.method,t._opts.url,!0)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}"responseType"in s&&(s.responseType=t._mode),"withCredentials"in s&&(s.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(s.timeout=e.requestTimeout,s.ontimeout=function(){t.emit("requestTimeout")}),i.forEach(function(e){s.setRequestHeader(e[0],e[1])}),t._response=null,s.onreadystatechange=function(){switch(s.readyState){case l.LOADING:case l.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(s.onprogress=function(){t._onXHRProgress()}),s.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{s.send(r)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}}}},n.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},n.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},n.prototype._write=function(e,t,r){this._body.push(e),r()},n.prototype.abort=n.prototype.destroy=function(){this._destroyed=!0,c.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},n.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o("buffer").Buffer)},{"./capability":164,"./response":166,_process:124,buffer:50,inherits:104,"readable-stream":181}],166:[function(r,e,n){(function(c,f,l){"use strict";var h=r("./capability"),e=r("inherits"),d=r("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(e,t,r,n){var i=this;if(d.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){c.nextTick(function(){i.emit("close")})}),"fetch"===r){if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(e,t){i.headers[t.toLowerCase()]=e,i.rawHeaders.push(t,e)}),h.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(e,t){i._destroyed?t():i.push(l.from(r))?e():i._resumeFetch=e})},close:function(){f.clearTimeout(n),i._destroyed||i.push(null)},abort:function(e){i._destroyed||i.emit("error",e)}});try{return void t.body.pipeTo(o).catch(function(e){f.clearTimeout(n),i._destroyed||i.emit("error",e)})}catch(e){}}var a=t.body.getReader();!function t(){a.read().then(function(e){if(!i._destroyed){if(e.done)return f.clearTimeout(n),void i.push(null);i.push(l.from(e.value)),t()}}).catch(function(e){f.clearTimeout(n),i._destroyed||i.emit("error",e)})}()}else{if(i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(t[2])):void 0!==i.headers[r]?i.headers[r]+=", "+t[2]:i.headers[r]=t[2],i.rawHeaders.push(t[1],t[2])}}),i._charset="x-user-defined",!h.overrideMimeType){var s=i.rawHeaders["mime-type"];if(s){var u=s.match(/;\s*charset=([^;])(;|$)/);u&&(i._charset=u[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};e(t,d.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text":if((r=t.responseText).length>e._pos){var n=r.substr(e._pos);if("x-user-defined"===e._charset){for(var i=l.alloc(n.length),o=0;o<n.length;o++)i[o]=255&n.charCodeAt(o);e.push(i)}else e.push(n,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==s.DONE||!t.response)break;r=t.response,e.push(l.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==s.LOADING||!r)break;e.push(l.from(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==s.LOADING)break;var a=new f.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(l.from(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(r)}e._xhr.readyState===s.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":164,_process:124,buffer:50,inherits:104,"readable-stream":181}],167:[function(e,t,r){"use strict";function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n={};function i(e,s,t){t||(t=Error);var r=function(a){var e,t;function r(e,t,r){return a.call(this,(n=e,i=t,o=r,"string"==typeof s?s:s(n,i,o)))||this;var n,i,o}return t=a,(e=r).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,r}(t);r.prototype.name=t.name,r.prototype.code=e,n[e]=r}function b(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),2<r?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,o,a,s,u,c,f,l,h;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",f=e,l=" argument",(void 0===h||h>f.length)&&(h=f.length),f.substring(h-l.length,h)===l)a="The ".concat(e," ").concat(n," ").concat(b(t,"type"));else{var d=("number"!=typeof c&&(c=0),c+(u=".").length>(s=e).length||-1===s.indexOf(u,c)?"argument":"property");a='The "'.concat(e,'" ').concat(d," ").concat(n," ").concat(b(t,"type"))}return a+=". Received type ".concat(p(r))},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],168:[function(e,t,r){(function(r){"use strict";var n=new Set;t.exports.emitExperimentalWarning=r.emitWarning?function(e){if(!n.has(e)){var t=e+" is an experimental feature. This feature could change at any time";n.add(e),r.emitWarning(t,"ExperimentalWarning")}}:function(){}}).call(this,e("_process"))},{_process:124}],169:[function(f,l,e){(function(e){"use strict";var t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};l.exports=s;var r=f("./_stream_readable"),n=f("./_stream_writable");f("inherits")(s,r);for(var i=t(n.prototype),o=0;o<i.length;o++){var a=i[o];s.prototype[a]||(s.prototype[a]=n.prototype[a])}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||e.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,f("_process"))},{"./_stream_readable":171,"./_stream_writable":173,_process:124,inherits:104}],170:[function(e,t,r){"use strict";t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":172,inherits:104}],171:[function(F,D,e){(function(b,e){"use strict";var n;(D.exports=k).ReadableState=_;F("events").EventEmitter;var y=function(e,t){return e.listeners(t).length},i=F("./internal/streams/stream"),u=F("buffer").Buffer,c=e.Uint8Array||function(){};var m,t=F("util");m=t&&t.debuglog?t.debuglog("stream"):function(){};var o,r,a=F("./internal/streams/buffer_list"),s=F("./internal/streams/destroy"),f=F("./internal/streams/state").getHighWaterMark,l=F("../errors").codes,h=l.ERR_INVALID_ARG_TYPE,d=l.ERR_STREAM_PUSH_AFTER_EOF,p=l.ERR_METHOD_NOT_IMPLEMENTED,v=l.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,g=F("../experimentalWarning").emitExperimentalWarning;F("inherits")(k,i);var w=["error","close","destroy","pause","resume"];function _(e,t,r){n=n||F("./_stream_duplex"),e=e||{},"boolean"!=typeof r&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=f(this,e,"readableHighWaterMark",r),this.buffer=new a,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.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=F("string_decoder/").StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||F("./_stream_duplex"),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new _(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function S(e,t,r,n,i){m("readableAddChunk",t);var o,a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,s);else if(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new h("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(s,t)),o)e.emit("error",o);else if(s.objectMode||t&&0<t.length)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(a=t,t=u.from(a)),n)s.endEmitted?e.emit("error",new v):A(e,s,t,!0);else if(s.ended)e.emit("error",new d);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):I(e,s)):A(e,s,t,!1)}else n||(s.reading=!1,I(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),I(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=s.destroy,k.prototype._undestroy=s.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},k.prototype.unshift=function(e){return S(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){return o||(o=F("string_decoder/").StringDecoder),this._readableState.decoder=new o(e),this._readableState.encoding=this._readableState.decoder.encoding,this};var E=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(E<=(r=e)?r=E:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,b.nextTick(j,e))}function j(e){var t=e._readableState;m("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function I(e,t){t.readingMore||(t.readingMore=!0,b.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(m("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function T(e){var t=e._readableState;t.readableListening=0<e.listenerCount("readable"),t.resumeScheduled&&!t.paused?t.flowing=!0:0<e.listenerCount("data")&&e.resume()}function B(e){m("readable nexttick read 0"),e.read(0)}function C(e,t){m("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(m("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;m("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,b.nextTick(P,t,e))}function P(e,t){m("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}k.prototype.read=function(e){m("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:0<t.length)||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):M(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&m("length less than watermark",i=!0),t.ended||t.reading?m("reading or ended",i=!1):i&&(m("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=0<e?N(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){this.emit("error",new p("_read()"))},k.prototype.pipe=function(r,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,m("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&r!==b.stdout&&r!==b.stderr?a:p;function o(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,m("cleanup"),r.removeListener("close",h),r.removeListener("finish",d),r.removeListener("drain",u),r.removeListener("error",l),r.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",p),n.removeListener("data",f),c=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function a(){m("onend"),r.end()}i.endEmitted?b.nextTick(t):n.once("end",t),r.on("unpipe",o);var s,u=(s=n,function(){var e=s._readableState;m("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&y(s,"data")&&(e.flowing=!0,R(s))});r.on("drain",u);var c=!1;function f(e){m("ondata");var t=r.write(e);m("dest.write",t),!1===t&&((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==L(i.pipes,r))&&!c&&(m("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function l(e){m("onerror",e),p(),r.removeListener("error",l),0===y(r,"error")&&r.emit("error",e)}function h(){r.removeListener("finish",d),p()}function d(){m("onfinish"),r.removeListener("close",h),p()}function p(){m("unpipe"),n.unpipe(r)}return n.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(r,"error",l),r.once("close",h),r.once("finish",d),r.emit("pipe",n),i.flowing||(m("pipe resume"),n.resume()),r},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},k.prototype.addListener=k.prototype.on=function(e,t){var r=i.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=0<this.listenerCount("readable"),!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,m("on readable",n.length,n.reading),n.length?M(this):n.reading||b.nextTick(B,this))),r},k.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&b.nextTick(T,this),r},k.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||b.nextTick(T,this),t},k.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(m("resume"),r.flowing=!r.readableListening,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,b.nextTick(C,e,t))),r.paused=!1,this},k.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var r=this,n=this._readableState,i=!1;for(var e in t.on("end",function(){if(m("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),t.on("data",function(e){(m("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e)||(n.objectMode||e&&e.length)&&(r.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<w.length;o++)t.on(w[o],this.emit.bind(this,w[o]));return this._read=function(e){m("wrapped _read",e),i&&(i=!1,t.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return g("Readable[Symbol.asyncIterator]"),void 0===r&&(r=F("./internal/streams/async_iterator")),r(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=N,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}})}).call(this,F("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":167,"../experimentalWarning":168,"./_stream_duplex":169,"./internal/streams/async_iterator":174,"./internal/streams/buffer_list":175,"./internal/streams/destroy":176,"./internal/streams/state":179,"./internal/streams/stream":180,_process:124,buffer:50,events:86,inherits:104,"string_decoder/":182,util:21}],172:[function(e,t,r){"use strict";t.exports=c;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(e,t){l(r,e,t)})}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":167,"./_stream_duplex":169,inherits:104}],173:[function(I,O,e){(function(y,e){"use strict";function l(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;(O.exports=b).WritableState=p;var t={deprecate:I("util-deprecate")},r=I("./internal/streams/stream"),m=I("buffer").Buffer,v=e.Uint8Array||function(){};var n,o=I("./internal/streams/destroy"),a=I("./internal/streams/state").getHighWaterMark,s=I("../errors").codes,g=s.ERR_INVALID_ARG_TYPE,u=s.ERR_METHOD_NOT_IMPLEMENTED,h=s.ERR_MULTIPLE_CALLBACK,c=s.ERR_STREAM_CANNOT_PIPE,f=s.ERR_STREAM_DESTROYED,w=s.ERR_STREAM_NULL_VALUES,_=s.ERR_STREAM_WRITE_AFTER_END,d=s.ERR_UNKNOWN_ENCODING;function k(){}function p(e,t,r){i=i||I("./_stream_duplex"),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=a(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new h;if(l=r,l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,t)a=e,s=r,u=n,c=t,f=i,--s.pendingcb,u?(y.nextTick(f,c),y.nextTick(j,a,s),a._writableState.errorEmitted=!0,a.emit("error",c)):(f(c),a._writableState.errorEmitted=!0,a.emit("error",c),j(a,s));else{var o=x(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),n?y.nextTick(A,e,r,o,i):A(e,r,o,i)}var a,s,u,c,f;var l}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function b(e){var t=this instanceof(i=i||I("./_stream_duplex"));if(!t&&!n.call(b,this))return new b(e);this._writableState=new p(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new f("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),j(e,t)}function E(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)(i[a]=r).isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,S(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new l(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback;if(S(e,t,!1,t.objectMode?1:u.length,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),j(t,r)})}function j(e,t){var r,n,i=x(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"!=typeof r._final||n.destroyed?(n.prefinished=!0,r.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,y.nextTick(M,r,n))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}I("inherits")(b,r),p.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(p.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===b&&(e&&e._writableState instanceof p)}})):n=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new c)},b.prototype.write=function(e,t,r){var n,i,o,a,s,u,c,f,l,h,d=this._writableState,p=!1,b=!d.objectMode&&(n=e,m.isBuffer(n)||n instanceof v);return b&&!m.isBuffer(e)&&(i=e,e=m.from(i)),"function"==typeof t&&(r=t,t=null),b?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof r&&(r=k),d.ending?(f=this,l=r,h=new _,f.emit("error",h),y.nextTick(l,h)):(b||(o=this,a=d,u=r,null===(s=e)?c=new w:"string"==typeof s||a.objectMode||(c=new g("chunk",["string","Buffer"],s)),!c||(o.emit("error",c),y.nextTick(u,c),0)))&&(d.pendingcb++,p=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,d,b,e,t,r)),p},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new d(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new u("_write()"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?y.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(b.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=o.destroy,b.prototype._undestroy=o.undestroy,b.prototype._destroy=function(e,t){t(e)}}).call(this,I("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":167,"./_stream_duplex":169,"./internal/streams/destroy":176,"./internal/streams/state":179,"./internal/streams/stream":180,_process:124,buffer:50,inherits:104,"util-deprecate":187}],174:[function(n,y,e){(function(s){"use strict";var e;function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=n("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[o]=null,e[a]=null,t(d(r,!1)))}}var t=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((r(e={get stream(){return this[h]},next:function(){var r=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){s.nextTick(function(){r[u]?t(r[u]):e(d(void 0,!0))})});var t,n,i,o=this[f];if(o)t=new Promise((n=o,i=this,function(e,t){n.then(function(){i[c]?e(d(void 0,!0)):i[l](e,t)},t)}));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));t=new Promise(this[l])}return this[f]=t}},Symbol.asyncIterator,function(){return this}),r(e,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(d(void 0,!0))})})}),e),t);y.exports=function(e){var t,n=Object.create(b,(r(t={},h,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,u,{value:null,writable:!0}),r(t,c,{value:e._readableState.endEmitted,writable:!0}),r(t,l,{value:function(e,t){var r=n[h].read();r?(n[f]=null,n[o]=null,n[a]=null,e(d(r,!1))):(n[o]=e,n[a]=t)},writable:!0}),t));return n[f]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[f]=null,n[o]=null,n[a]=null,t(e)),void(n[u]=e)}var r=n[o];null!==r&&(n[f]=null,n[o]=null,r(d(void 0,!(n[a]=null)))),n[c]=!0}),e.on("readable",function(e){s.nextTick(p,e)}.bind(null,n)),n}}).call(this,n("_process"))},{"./end-of-stream":177,_process:124}],175:[function(e,t,r){"use strict";var s=e("buffer").Buffer,n=e("util").inspect,i=n&&n.custom||"inspect";t.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype;return t.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},t.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},t.clear=function(){this.head=this.tail=null,this.length=0},t.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},t.concat=function(e){if(0===this.length)return s.alloc(0);for(var t,r,n,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,s.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i},t.consume=function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r},t.first=function(){return this.head.data},t._getString=function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t).data=i.slice(o);break}++r}return this.length-=r,n},t._getBuffer=function(e){var t=s.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=i.slice(o);break}++n}return this.length-=n,t},t[i]=function(e,t){return n(this,function(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.forEach(function(e){var t,r,n;t=i,n=o[r=e],r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n})}return i}({},t,{depth:0,customInspect:!1}))},e}()},{buffer:50,util:21}],176:[function(e,t,r){(function(o){"use strict";function a(e,t){u(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function u(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(u,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(a,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t?(o.nextTick(s,r),t(e)):o.nextTick(s,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}).call(this,e("_process"))},{_process:124}],177:[function(e,t,r){"use strict";var m=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function v(){}t.exports=function e(t,r,n){if("function"==typeof r)return e(t,null,r);var i,o;r||(r={}),i=n||v,o=!1,n=function(){if(!o){o=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.apply(this,t)}};var a,s=r.readable||!1!==r.readable&&t.readable,u=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},f=t._writableState&&t._writableState.finished,l=function(){f=!(u=!1),s||n.call(t)},h=t._readableState&&t._readableState.endEmitted,d=function(){h=!(s=!1),u||n.call(t)},p=function(e){n.call(t,e)},b=function(){var e;return s&&!h?(t._readableState&&t._readableState.ended||(e=new m),n.call(t,e)):u&&!f?(t._writableState&&t._writableState.ended||(e=new m),n.call(t,e)):void 0},y=function(){t.req.on("finish",l)};return(a=t).setHeader&&"function"==typeof a.abort?(t.on("complete",l),t.on("abort",b),t.req?y():t.on("request",y)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",p),t.on("close",b),function(){t.removeListener("complete",l),t.removeListener("abort",b),t.removeListener("request",y),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",b)}}},{"../../../errors":167}],178:[function(u,e,t){"use strict";var c;var r=u("../../../errors").codes,s=r.ERR_MISSING_ARGS,f=r.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function h(e){e()}function d(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,i,o=(r=n).length?"function"!=typeof r[r.length-1]?l:r.pop():l;if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new s("streams");var a=n.map(function(e,t){var r=t<n.length-1;return function(r,e,t,n){var i,o;i=n,o=!1;var a=!(n=function(){o||(o=!0,i.apply(void 0,arguments))});r.on("close",function(){a=!0}),void 0===c&&(c=u("./end-of-stream")),c(r,{readable:e,writable:t},function(e){if(e)return n(e);a=!0,n()});var s=!1;return function(e){var t;if(!a&&!s)return s=!0,(t=r).setHeader&&"function"==typeof t.abort?r.abort():"function"==typeof r.destroy?r.destroy():void n(e||new f("pipe"))}}(e,r,0<t,function(e){i||(i=e),e&&a.forEach(h),r||(a.forEach(h),o(i))})});return n.reduce(d)}},{"../../../errors":167,"./end-of-stream":177}],179:[function(e,t,r){"use strict";var u=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,n){var i,o,a,s=(o=n,a=r,null!=(i=t).highWaterMark?i.highWaterMark:o?i[a]:null);if(null==s)return e.objectMode?16:16384;if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new u(n?r:"highWaterMark",s);return Math.floor(s)}}},{"../../../errors":167}],180:[function(e,t,r){arguments[4][145][0].apply(r,arguments)},{dup:145,events:86}],181:[function(e,t,r){"use strict";(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":169,"./lib/_stream_passthrough.js":170,"./lib/_stream_readable.js":171,"./lib/_stream_transform.js":172,"./lib/_stream_writable.js":173,"./lib/internal/streams/end-of-stream.js":177,"./lib/internal/streams/pipeline.js":178}],182:[function(e,t,r){arguments[4][146][0].apply(r,arguments)},{dup:146,"safe-buffer":183}],183:[function(e,t,r){"use strict";var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:50}],184:[function(u,e,c){(function(e,t){"use strict";var n=u("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,o={},a=0;function s(e,t){this._id=e,this._clearFn=t}c.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},c.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},c._unrefActive=c.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},c.setImmediate="function"==typeof e?e:function(e){var t=a++,r=!(arguments.length<2)&&i.call(arguments,1);return o[t]=!0,n(function(){o[t]&&(r?e.apply(null,r):e.call(null),c.clearImmediate(t))}),t},c.clearImmediate="function"==typeof t?t:function(e){delete o[e]}}).call(this,u("timers").setImmediate,u("timers").clearImmediate)},{"process/browser.js":124,timers:184}],185:[function(e,t,r){"use strict";function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var R=e("punycode"),N=e("./util");function M(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=o,r.resolve=function(e,t){return o(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?o(e,!1,!0).resolveObject(t):t},r.format=function(e){N.isString(e)&&(e=o(e));return e instanceof M?e.format():M.prototype.format.call(e)},r.Url=M;var U=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,P=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),L=["'"].concat(i),F=["%","/","?",";","#"].concat(L),D=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,z=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},K={javascript:!0,"javascript:":!0},V={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=e("querystring");function o(e,t,r){if(e&&N.isObject(e)&&e instanceof M)return e;var n=new M;return n.parse(e,t,r),n}M.prototype.parse=function(e,t,r){if(!N.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+C(e));var n=e.indexOf("?"),i=-1!==n&&n<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!r&&1===e.split("#").length){var s=P.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?W.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=U.exec(a);if(u){var c=(u=u[0]).toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===a.substr(0,2);!f||u&&K[u]||(a=a.substr(2),this.slashes=!0)}if(!K[u]&&(f||u&&!V[u])){for(var l,h,d=-1,p=0;p<D.length;p++){-1!==(b=a.indexOf(D[p]))&&(-1===d||b<d)&&(d=b)}-1!==(h=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(l=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(l)),d=-1;for(p=0;p<F.length;p++){var b;-1!==(b=a.indexOf(F[p]))&&(-1===d||b<d)&&(d=b)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var y="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!y)for(var m=this.hostname.split(/\./),v=(p=0,m.length);p<v;p++){var g=m[p];if(g&&!g.match(q)){for(var w="",_=0,k=g.length;_<k;_++)127<g.charCodeAt(_)?w+="x":w+=g[_];if(!w.match(q)){var S=m.slice(0,p),A=m.slice(p+1),E=g.match(z);E&&(S.push(E[1]),A.unshift(E[2])),A.length&&(a="/"+A.join(".")+a),this.hostname=S.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=R.toASCII(this.hostname));var x=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+x,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!H[c])for(p=0,v=L.length;p<v;p++){var j=L[p];if(-1!==a.indexOf(j)){var I=encodeURIComponent(j);I===j&&(I=escape(j)),a=a.split(j).join(I)}}var O=a.indexOf("#");-1!==O&&(this.hash=a.substr(O),a=a.slice(0,O));var T=a.indexOf("?");if(-1!==T?(this.search=a.substr(T),this.query=a.substr(T+1),t&&(this.query=W.parse(this.query)),a=a.slice(0,T)):t&&(this.search="",this.query={}),a&&(this.pathname=a),V[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){x=this.pathname||"";var B=this.search||"";this.path=x+B}return this.href=this.format(),this},M.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&N.isObject(this.query)&&Object.keys(this.query).length&&(o=W.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||V[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},M.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},M.prototype.resolveObject=function(e){if(N.isString(e)){var t=new M;t.parse(e,!1,!0),e=t}for(var r=new M,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return V[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!V[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var l=c[f];r[l]=e[l]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||K[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),m=y||b||r.host&&e.pathname,v=m,g=r.pathname&&r.pathname.split("/")||[],w=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!V[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===g[0]?g[0]=r.host:g.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),m=m&&(""===h[0]||""===g[0])),y)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,g=h;else if(h.length)g||(g=[]),g.pop(),g=g.concat(h),r.search=e.search,r.query=e.query;else if(!N.isNullOrUndefined(e.search)){if(w)r.hostname=r.host=g.shift(),(E=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=E.shift(),r.host=r.hostname=E.shift());return r.search=e.search,r.query=e.query,N.isNull(r.pathname)&&N.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!g.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=g.slice(-1)[0],k=(r.host||e.host||1<g.length)&&("."===_||".."===_)||""===_,S=0,A=g.length;0<=A;A--)"."===(_=g[A])?g.splice(A,1):".."===_?(g.splice(A,1),S++):S&&(g.splice(A,1),S--);if(!m&&!v)for(;S--;S)g.unshift("..");!m||""===g[0]||g[0]&&"/"===g[0].charAt(0)||g.unshift(""),k&&"/"!==g.join("/").substr(-1)&&g.push("");var E,x=""===g[0]||g[0]&&"/"===g[0].charAt(0);w&&(r.hostname=r.host=x?"":g.length?g.shift():"",(E=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=E.shift(),r.host=r.hostname=E.shift()));return(m=m||r.host&&g.length)&&!x&&g.unshift(""),g.length?r.pathname=g.join("/"):(r.pathname=null,r.path=null),N.isNull(r.pathname)&&N.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},M.prototype.parseHost=function(){var e=this.host,t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":186,punycode:131,querystring:134}],186:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===n(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],187:[function(e,t,r){(function(r){"use strict";function n(e){try{if(!r.localStorage)return!1}catch(e){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],188:[function(require,module,exports){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var r=Script.createContext(t),e=this.runInContext(r);return t&&forEach(Object_keys(r),function(e){t[e]=r[e]}),e},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(e){var t=Script(e);return t[r].apply(t,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(t){var r=new Context;return"object"===_typeof(t)&&forEach(Object_keys(t),function(e){r[e]=t[e]}),r}},{}],189:[function(e,t,r){"use strict";t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)i.call(r,n)&&(e[n]=r[n])}return e};var i=Object.prototype.hasOwnProperty},{}],190:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i="%[a-f0-9]{2}",o=new RegExp(i,"gi"),s=new RegExp("("+i+")+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function u(t){try{return decodeURIComponent(t)}catch(e){for(var r=t.match(o),n=1;n<r.length;n++)r=(t=a(r,n).join("")).match(o);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+n(t)+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=s.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=u(r[0]);n!==r[0]&&(t[r[0]]=n)}r=s.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;o<i.length;o++){var a=i[o];e=e.replace(new RegExp(a,"g"),t[a])}return e}(t)}}},{}],191:[function(e,t,r){"use strict";var n=function(e,t){for(var r=[],n=0;n<e;++n)r.push(t(n));return r};t.exports={generate:n,replicate:function(e,t){return n(e,function(){return t})},concat:function(e,t){return e.concat(t)},flatten:function(e){for(var t=[],r=0,n=e.length;r<n;++r)for(var i=0,o=e[r].length;i<o;++i)t.push(e[r][i]);return t},chunksOf:function(e,t){for(var r=[],n=0,i=t.length;n<i;n+=e)r.push(t.slice(n,n+e));return r}}},{}],192:[function(i,e,t){"use strict";i("./array.js");var o=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},a=function(e){return(e.length-2)/2},r=function(e){for(var t=[],r=2,n=e.length;r<n;r+=2)t.push(parseInt(e.slice(r,r+2),16));return t},n=function(e){for(var t="0x",r=0,n=e.length;r<n;++r){var i=e[r];t+=(i<16?"0":"")+i.toString(16)}return t};e.exports={random:function(e){var t=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)t=window.crypto.getRandomValues(new Uint8Array(e));else{if(void 0===i)throw"Safe random numbers not available.";t=i("crypto").randomBytes(e)}for(var r="0x",n=0;n<e;++n)r+=("00"+t[n].toString(16)).slice(-2);return r},length:a,concat:function(e,t){return e.concat(t.slice(2))},flatten:function(e){return"0x"+e.reduce(function(e,t){return e+t.slice(2)},"")},slice:function(e,t,r){return"0x"+r.slice(2*e+2,2*t+2)},reverse:function(e){for(var t="0x",r=0,n=a(e);r<n;++r)t+=e.slice(2*(n-r),2*(n-r+1));return t},pad:function e(t,r){return r.length===2*t+2?r:e(t,"0x0"+r.slice(2))},padRight:function e(t,r){return r.length===2*t+2?r:e(t,r+"0")},fromAscii:function(e){for(var t="0x",r=0;r<e.length;++r)t+=("00"+e.charCodeAt(r).toString(16)).slice(-2);return t},toAscii:function(e){for(var t="",r=2;r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.slice(r,r+2),16));return t},fromString:function(e){for(var t=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},r="0x",n=0;n!=e.length;n++){var i=e.charCodeAt(n);if(i<128)r+=t(i);else{if(i<2048)r+=t(i>>6|192);else{if(55295<i&&i<56320){if(++n==e.length)return null;var o=e.charCodeAt(n);if(o<56320||57343<o)return null;r+=t((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=t(i>>12&63|128)}else r+=t(i>>12|224);r+=t(i>>6&63|128)}r+=t(63&i|128)}}return r},toString:function(e){for(var t="",r=0,n=a(e);r<n;){var i=o(e,r++);if(127<i){if(191<i&&i<224){if(n<=r)return null;i=(31&i)<<6|63&o(e,r)}else if(223<i&&i<240){if(n<=r+1)return null;i=(15&i)<<12|(63&o(e,r))<<6|63&o(e,++r)}else{if(!(239<i&&i<248))return null;if(n<=r+2)return null;i=(7&i)<<18|(63&o(e,r))<<12|(63&o(e,++r))<<6|63&o(e,++r)}++r}if(i<=65535)t+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(1023&i|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:n,toArray:r,fromUint8Array:function(e){return n([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(r(e))}}},{"./array.js":191}],193:[function(e,t,r){"use strict";var p="0123456789abcdef".split(""),b=[1,256,65536,16777216],y=[0,8,16,24],fe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=function(e){var t,r,n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,v,g,w,_,k,S,A,E,x,M,j,I,O,T,B,C,R,N,U,P,L,F,D,q,z,H,K,V,W,G,Y,X,J,Z,$,Q,ee,te,re,ne,ie,oe,ae,se,ue,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,ee=e[5]<<30|e[4]>>>2,te=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,P=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,A=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,Q=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,D=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&g,e[10]=A^~x&j,e[11]=E^~M&I,e[20]=R^~U&L,e[21]=N^~P&F,e[30]=K^~W&Y,e[31]=V^~G&X,e[40]=ee^~re&ie,e[41]=te^~ne&oe,e[2]=y^~v&w,e[3]=m^~g&_,e[12]=x^~j&O,e[13]=M^~I&T,e[22]=U^~L&D,e[23]=P^~F&q,e[32]=W^~Y&J,e[33]=G^~X&Z,e[42]=re^~ie&ae,e[43]=ne^~oe&se,e[4]=v^~w&k,e[5]=g^~_&S,e[14]=j^~O&B,e[15]=I^~T&C,e[24]=L^~D&z,e[25]=F^~q&H,e[34]=Y^~J&$,e[35]=X^~Z&Q,e[44]=ie^~ae&ue,e[45]=oe^~se&ce,e[6]=w^~k&p,e[7]=_^~S&b,e[16]=O^~B&A,e[17]=T^~C&E,e[26]=D^~z&R,e[27]=q^~H&N,e[36]=J^~$&K,e[37]=Z^~Q&V,e[46]=ae^~ue&ee,e[47]=se^~ce&te,e[8]=k^~p&y,e[9]=S^~b&m,e[18]=B^~A&x,e[19]=C^~E&M,e[28]=z^~R&U,e[29]=H^~N&P,e[38]=$^~K&W,e[39]=Q^~V&G,e[48]=ue^~ee&re,e[49]=ce^~te&ne,e[0]^=fe[n],e[1]^=fe[n+1]},n=function(a){return function(e){var t,r,n;if("0x"===e.slice(0,2)){t=[];for(var i=2,o=e.length;i<o;i+=2)t.push(parseInt(e.slice(i,i+2),16))}else t=e;return function(e,t){for(var r,n=t.length,i=e.blocks,o=e.blockCount<<2,a=e.blockCount,s=e.outputBlocks,u=e.s,c=0;c<n;){if(e.reset)for(e.reset=!1,i[0]=e.block,h=1;h<a+1;++h)i[h]=0;if("string"!=typeof t)for(h=e.start;c<n&&h<o;++c)i[h>>2]|=t[c]<<y[3&h++];else for(h=e.start;c<n&&h<o;++c)(r=t.charCodeAt(c))<128?i[h>>2]|=r<<y[3&h++]:(r<2048?i[h>>2]|=(192|r>>6)<<y[3&h++]:(r<55296||57344<=r?i[h>>2]|=(224|r>>12)<<y[3&h++]:(r=65536+((1023&r)<<10|1023&t.charCodeAt(++c)),i[h>>2]|=(240|r>>18)<<y[3&h++],i[h>>2]|=(128|r>>12&63)<<y[3&h++]),i[h>>2]|=(128|r>>6&63)<<y[3&h++]),i[h>>2]|=(128|63&r)<<y[3&h++]);if(o<=(e.lastByteIndex=h)){for(e.start=h-o,e.block=i[a],h=0;h<a;++h)u[h]^=i[h];m(u),e.reset=!0}else e.start=h}if(i[(h=e.lastByteIndex)>>2]|=b[3&h],e.lastByteIndex===o)for(i[0]=i[a],h=1;h<a+1;++h)i[h]=0;for(i[a-1]|=2147483648,h=0;h<a;++h)u[h]^=i[h];m(u);for(var f,l="",h=0,d=0;d<s;){for(h=0;h<a&&d<s;++h,++d)f=u[h],l+=p[f>>4&15]+p[15&f]+p[f>>12&15]+p[f>>8&15]+p[f>>20&15]+p[f>>16&15]+p[f>>28&15]+p[f>>24&15];d%a==0&&(m(u),h=0)}return"0x"+l}({blocks:[],reset:!0,block:0,start:0,blockCount:1600-((r=a)<<1)>>5,outputBlocks:r>>5,s:(n=[0,0,0,0,0,0,0,0,0,0],[].concat(n,n,n,n,n))},t)}};t.exports={keccak256:n(256),keccak512:n(512),keccak256s:n(256),keccak512s:n(512)}},{}],194:[function(e,r,t){(function(e){"use strict";var t;t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},r.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],195:[function(e,t,r){"use strict";t.exports=function(e){var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},{}],196:[function(e,t,r){arguments[4][111][0].apply(r,arguments)},{dup:111}],197:[function(e,t,r){"use strict";var c=function(e){return e.replace(/^\s+|\s+$/g,"")};t.exports=function(e){if(!e)return{};for(var t,r={},n=c(e).split("\n"),i=0;i<n.length;i++){var o=n[i],a=o.indexOf(":"),s=c(o.slice(0,a)).toLowerCase(),u=c(o.slice(a+1));void 0===r[s]?r[s]=u:(t=r[s],"[object Array]"===Object.prototype.toString.call(t)?r[s].push(u):r[s]=[r[s],u])}return r}},{}],198:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("strict-uri-encode"),a=e("object-assign"),s=e("decode-uri-component");function u(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function o(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var i=function(e){var n;switch(e.arrayFormat){case"index":return function(e,t,r){n=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),n?(void 0===r[e]&&(r[e]={}),r[e][n[1]]=t):r[e]=t};case"bracket":return function(e,t,r){n=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),n?void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=[t]:r[e]=t};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=a({arrayFormat:"none"},t)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),n=0<t.length?t.join("="):void 0;n=void 0===n?null:s(n),i(s(r),n,o)}),Object.keys(o).sort().reduce(function(e,t){var r=o[t];return Boolean(r)&&"object"===n(r)&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===n(t)?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(r):e[t]=r,e},Object.create(null))):o}r.extract=o,r.parse=c,r.stringify=function(n,i){!1===(i=a({encode:!0,strict:!0,arrayFormat:"none"},i)).sort&&(i.sort=function(){});var o=function(n){switch(n.arrayFormat){case"index":return function(e,t,r){return null===t?[u(e,n),"[",r,"]"].join(""):[u(e,n),"[",u(r,n),"]=",u(t,n)].join("")};case"bracket":return function(e,t){return null===t?u(e,n):[u(e,n),"[]=",u(t,n)].join("")};default:return function(e,t){return null===t?u(e,n):[u(e,n),"=",u(t,n)].join("")}}}(i);return n?Object.keys(n).sort(i.sort).map(function(t){var e=n[t];if(void 0===e)return"";if(null===e)return u(t,i);if(Array.isArray(e)){var r=[];return e.slice().forEach(function(e){void 0!==e&&r.push(o(t,e,r.length))}),r.join("&")}return u(t,i)+"="+u(e,i)}).filter(function(e){return 0<e.length}).join("&"):""},r.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(o(e),t)}}},{"decode-uri-component":190,"object-assign":196,"strict-uri-encode":199}],199:[function(e,t,r){"use strict";t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},{}],200:[function(e,t,r){"use strict";var n=function(){throw"This swarm.js function isn't available on the browser."},i={readFile:n},o={download:n,safeDownloadArchived:n,directoryTree:n},a={platform:n,arch:n},s={join:n,slice:n},u={spawn:n},c={lookup:n},f=e("xhr-request"),l=e("eth-lib/lib/bytes"),h=e("./swarm-hash.js"),d=e("./pick.js"),p=e("./swarm");t.exports=p({fs:i,files:o,os:a,path:s,child_process:u,defaultArchives:{},mimetype:c,request:f,downloadUrl:null,bytes:l,hash:h,pick:d})},{"./pick.js":201,"./swarm":203,"./swarm-hash.js":202,"eth-lib/lib/bytes":192,"xhr-request":206}],201:[function(e,t,r){"use strict";var n=function(c){return function(){return new Promise(function(u,e){var t,r=function(e){var o={},a=e.target.files.length,s=0;[].map.call(e.target.files,function(i){var e=new FileReader;e.onload=function(e){var t=new Uint8Array(e.target.result);if("directory"===c){var r=i.webkitRelativePath;o[r.slice(r.indexOf("/")+1)]={type:"text/plain",data:t},++s===a&&u(o)}else if("file"===c){var n=i.webkitRelativePath;u({type:mimetype.lookup(n),data:t})}else u(t)},e.readAsArrayBuffer(i)})};"directory"===c?((t=document.createElement("input")).addEventListener("change",r),t.type="file",t.webkitdirectory=!0,t.mozdirectory=!0,t.msdirectory=!0,t.odirectory=!0,t.directory=!0):((t=document.createElement("input")).addEventListener("change",r),t.type="file");var n=document.createEvent("MouseEvents");n.initEvent("click",!0,!1),t.dispatchEvent(n)})}};t.exports={data:n("data"),file:n("file"),directory:n("directory")}},{}],202:[function(e,t,r){"use strict";var i=e("eth-lib/lib/hash").keccak256,s=e("eth-lib/lib/bytes"),u=function(e,t){var r=s.reverse(s.pad(6,s.fromNumber(e))),n=s.flatten([r,"0x0000",t]);return i(n).slice(2)};t.exports=function e(t){"string"==typeof t&&"0x"!==t.slice(0,2)?t=s.fromString(t):"string"!=typeof t&&void 0!==t.length&&(t=s.fromUint8Array(t));var r=s.length(t);if(r<=4096)return u(r,t);for(var n=4096;128*n<r;)n*=128;for(var i=[],o=0;o<r;o+=n){var a=n<r-o?n:r-o;i.push(e(s.slice(t,o,o+a)))}return u(r,s.flatten(i))}},{"eth-lib/lib/bytes":192,"eth-lib/lib/hash":193}],203:[function(e,t,r){"use strict";t.exports=function(e){var o=e.fs,s=e.files,u=e.os,a=e.path,p=e.child_process,c=e.mimetype,f=e.defaultArchives,l=e.request,h=e.downloadUrl,t=e.bytes,n=e.hash,i=e.pick,d=function(i){return function(e){for(var t={},r=0,n=i.length;r<n;++r)t[i[r]]=e[r];return t}},b=function(t){return function(e){return"".concat(t,"/bzz-raw:/").concat(e)}},y=function(t){return function(e){return new Promise(function(n,i){l(b(t)(e),{responseType:"arraybuffer"},function(e,t,r){return e?i(e):400<=r.statusCode?i(new Error("Error ".concat(r.statusCode,"."))):n(new Uint8Array(t))})})}},m=function(r){return function(e){return function s(e){return function(a){return function(o){var t=function(e){return void 0===e.path?Promise.resolve():"application/bzz-manifest+json"===e.contentType?s(e.hash)(a+e.path)(o):Promise.resolve((i=a+e.path,r={type:(n=e).contentType,hash:n.hash},(t=o)[i]=r,t));var t,r,n,i};return y(r)(e).then(function(e){return JSON.parse(U(e)).entries}).then(function(e){return Promise.all(e.map(t))}).then(function(){return o})}}}(e)("")({})}},v=function(t){return function(e){return m(t)(e).then(function(t){return d(Object.keys(t))(Object.keys(t).map(function(e){return t[e].hash}))})}},g=function(o){return function(e){return m(o)(e).then(function(t){var r=Object.keys(t),e=r.map(function(e){return t[e].hash}),n=r.map(function(e){return t[e].type}),i=e.map(y(o));return Promise.all(i).then(function(e){return d(r)(e.map(function(e,t){return{type:n[t],data:e}}))})})}},w=function(r){return function(t){return function(e){return s.download(b(r)(t))(e)}}},_=function(o){return function(e){return function(i){return v(o)(e).then(function(e){var t=[];for(var r in e)if(0<r.length){var n=a.join(i,r);t.push(w(o)(e[r])(n))}return Promise.all(t).then(function(){return i})})}}},k=function(i){return function(t){return new Promise(function(r,n){var e={body:"string"==typeof t?P(t):t,method:"POST"};l("".concat(i,"/bzz-raw:/"),e,function(e,t){return e?n(e):r(t)})})}},S=function(u){return function(s){return function(a){return function(n){return function t(r){var e="/"===a[0]?a:"/"+a,i="".concat(u,"/bzz:/").concat(s).concat(e),o={method:"PUT",headers:{"Content-Type":n.type},body:n.data};return new Promise(function(r,n){l(i,o,function(e,t){return e?n(e):-1!==t.indexOf("error")?n(t):r(t)})}).catch(function(e){return 0<r&&t(r-1)})}(3)}}}},A=function(t){return function(e){return E(t)({"":e})}},r=function(r){return function(t){return o.readFile(t).then(function(e){return A(r)({type:c.lookup(t),data:e})})}},E=function(i){return function(n){return k(i)("{}").then(function(e){return Object.keys(n).reduce(function(e,t){return e.then((r=t,function(e){return S(i)(e)(r)(n[r])}));var r},Promise.resolve(e))})}},x=function(t){return function(e){return o.readFile(e).then(k(t))}},M=function(e){return function(t){return function(i){return s.directoryTree(i).then(function(n){return Promise.all(n.map(function(e){return o.readFile(e)})).then(function(e){var t=n.map(function(e){return e.slice(i.length)}),r=n.map(function(e){return c.lookup(e)||"text/plain"});return d(t)(e.map(function(e,t){return{type:r[t],data:e}}))})}).then(function(e){return i=t?{"":e[t]}:{},function(e){var t={};for(var r in i)t[r]=i[r];for(var n in e)t[n]=e[n];return t}(e);var i}).then(E(e))}}},j=function(t){return function(e){if("data"===e.pick)return i.data().then(k(t));if("file"===e.pick)return i.file().then(A(t));if("directory"===e.pick)return i.directory().then(E(t));if(e.path)switch(e.kind){case"data":return x(t)(e.path);case"file":return r(t)(e.path);case"directory":return M(t)(e.defaultFile)(e.path)}else{if(e.length||"string"==typeof e)return k(t)(e);if(e instanceof Object)return E(t)(e)}return Promise.reject(new Error("Bad arguments"))}},I=function(n){return function(r){return function(t){return R(n)(r).then(function(e){return e?t?_(n)(r)(t):g(n)(r):t?w(n)(r)(t):y(n)(r)})}}},O=function(e,t){var r=u.platform().replace("win32","windows")+"-"+("x64"===u.arch()?"amd64":"386"),n=(t||f)[r],i=h+n.archive+".tar.gz",o=n.archiveMD5,a=n.binaryMD5;return s.safeDownloadArchived(i)(o)(a)(e)},T=function(d){return new Promise(function(t,e){var r=p.spawn,n=function(t){return function(e){return-1!==(""+e).indexOf(t)}},i=d.account,o=d.password,a=d.dataDir,s=d.ensApi,u=d.privateKey,c=0,f=r(d.binPath,["--bzzaccount",i||u,"--datadir",a,"--ens-api",s]),l=function(e){0===c&&n("Passphrase")(e)?setTimeout(function(){c=1,f.stdin.write(o+"\n")},500):n("Swarm http proxy started")(e)&&(c=2,clearTimeout(h),t(f))};f.stdout.on("data",l),f.stderr.on("data",l);var h=setTimeout(function(){return e(new Error("Couldn't start swarm process."))},2e4)})},B=function(n){return new Promise(function(e,t){n.stderr.removeAllListeners("data"),n.stdout.removeAllListeners("data"),n.stdin.removeAllListeners("error"),n.removeAllListeners("error"),n.removeAllListeners("exit"),n.kill("SIGINT");var r=setTimeout(function(){return n.kill("SIGKILL")},8e3);n.once("close",function(){clearTimeout(r),e()})})},C=function(e){return k(e)("test").then(function(e){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===e}).catch(function(){return!1})},R=function(t){return function(e){return y(t)(e).then(function(e){try{return!!JSON.parse(U(e)).entries}catch(e){return!1}})}},N=function(a){return function(e,t,r,n,i){var o;return void 0!==e&&(o=a(e)),void 0!==t&&(o=a(t)),void 0!==r&&(o=a(r)),void 0!==n&&(o=a(n)),void 0!==i&&(o=a(i)),o}},U=function(e){return t.toString(t.fromUint8Array(e))},P=function(e){return t.toUint8Array(t.fromString(e))},L=function(r){return{download:function(e,t){return I(r)(e)(t)},downloadData:N(y(r)),downloadDataToDisk:N(w(r)),downloadDirectory:N(g(r)),downloadDirectoryToDisk:N(_(r)),downloadEntries:N(m(r)),downloadRoutes:N(v(r)),isAvailable:function(){return C(r)},upload:function(e){return j(r)(e)},uploadData:N(k(r)),uploadFile:N(A(r)),uploadFileFromDisk:N(A(r)),uploadDataFromDisk:N(x(r)),uploadDirectory:N(E(r)),uploadDirectoryFromDisk:N(M(r)),uploadToManifest:N(S(r)),pick:i,hash:n,fromString:P,toString:U}};return{at:L,local:function(r){return function(t){return C("http://localhost:8500").then(function(e){return e?t(L("http://localhost:8500")).then(function(){}):O(r.binPath,r.archives).onData(function(e){return(r.onProgress||function(){})(e.length)}).then(function(){return T(r)}).then(function(e){return t(L("http://localhost:8500")).then(function(){return e})}).then(B)})}},download:I,downloadBinary:O,downloadData:y,downloadDataToDisk:w,downloadDirectory:g,downloadDirectoryToDisk:_,downloadEntries:m,downloadRoutes:v,isAvailable:C,startProcess:T,stopProcess:B,upload:j,uploadData:k,uploadDataFromDisk:x,uploadFile:A,uploadFileFromDisk:r,uploadDirectory:E,uploadDirectoryFromDisk:M,uploadToManifest:S,pick:i,hash:n,fromString:P,toString:U}}},{}],204:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],205:[function(e,t,r){"use strict";t.exports=function(e,t){if(t){t=(t=t.trim().replace(/^(\?|#|&)/,""))?"?"+t:t;var r=e.split(/[\?\#]/),n=r[0];t&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var i=e.match(/(\#.*)$/);e=n+t,i&&(e+=i[0])}return e}},{}],206:[function(e,t,r){"use strict";var s=e("query-string"),u=e("url-set-query"),c=e("object-assign"),f=e("./lib/ensure-header.js"),l=e("./lib/request.js"),h="application/json",d=function(){};t.exports=function(e,t,r){if(!e||"string"!=typeof e)throw new TypeError("must specify a URL");"function"==typeof t&&(r=t,t={});if(r&&"function"!=typeof r)throw new TypeError("expected cb to be undefined or a function");r=r||d;var n=(t=t||{}).json?"json":"text",i=(t=c({responseType:n},t)).headers||{},o=(t.method||"GET").toUpperCase(),a=t.query;a&&("string"!=typeof a&&(a=s.stringify(a)),e=u(e,a));"json"===t.responseType&&f(i,"Accept",h);t.json&&"GET"!==o&&"HEAD"!==o&&(f(i,"Content-Type",h),t.body=JSON.stringify(t.body));return t.method=o,t.url=e,t.headers=i,delete t.query,delete t.json,l(t,r)}},{"./lib/ensure-header.js":207,"./lib/request.js":209,"object-assign":196,"query-string":198,"url-set-query":205}],207:[function(e,t,r){"use strict";t.exports=function(e,t,r){var n=t.toLowerCase();e[t]||e[n]||(e[t]=r)}},{}],208:[function(e,t,r){"use strict";t.exports=function(e,t){return t?{statusCode:t.statusCode,headers:t.headers,method:e.method,url:e.url,rawRequest:t.rawRequest?t.rawRequest:t}:null}},{}],209:[function(e,t,r){"use strict";var n=e("xhr"),s=e("./normalize-response"),u=function(){};t.exports=function(i,o){delete i.uri;var a=!1;"json"===i.responseType&&(i.responseType="text",a=!0);var t=n(i,function(t,e,r){if(a&&!t)try{var n=e.rawRequest.responseText;r=JSON.parse(n)}catch(e){t=e}e=s(i,e),o(t,t?null:r,e),o=u}),r=t.onabort;return t.onabort=function(){var e=r.apply(t,Array.prototype.slice.call(arguments));return o(new Error("XHR Aborted")),o=u,e},t}},{"./normalize-response":208,xhr:210}],210:[function(e,t,r){"use strict";var n=e("global/window"),i=e("is-function"),y=e("parse-headers"),o=e("xtend");function a(e,t,r){var n=e;return i(t)?(r=t,"string"==typeof e&&(n={uri:e})):n=o(t,{uri:e}),n.callback=r,n}function m(e,t,r){return s(t=a(e,t,r))}function s(n){if(void 0===n.callback)throw new Error("callback argument missing");var i=!1,o=function(e,t,r){i||(i=!0,n.callback(e,t,r))};function t(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,o(e,b)}function e(){if(!a){var e;clearTimeout(u),e=n.useXDR&&void 0===s.status?200:1223===s.status?204:s.status;var t=b,r=null;return 0!==e?(t={body:function(){var e=void 0;if(e=s.response?s.response:s.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(s),p)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:e,method:f,headers:{},url:c,rawRequest:s},s.getAllResponseHeaders&&(t.headers=y(s.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),o(r,t,t.body)}}var r,a,s=n.xhr||null;s||(s=n.cors||n.useXDR?new m.XDomainRequest:new m.XMLHttpRequest);var u,c=s.url=n.uri||n.url,f=s.method=n.method||"GET",l=n.body||n.data,h=s.headers=n.headers||{},d=!!n.sync,p=!1,b={body:void 0,headers:{},statusCode:0,method:f,url:c,rawRequest:s};if("json"in n&&!1!==n.json&&(p=!0,h.accept||h.Accept||(h.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json"),l=JSON.stringify(!0===n.json?l:n.json))),s.onreadystatechange=function(){4===s.readyState&&setTimeout(e,0)},s.onload=e,s.onerror=t,s.onprogress=function(){},s.onabort=function(){a=!0},s.ontimeout=t,s.open(f,c,!d,n.username,n.password),d||(s.withCredentials=!!n.withCredentials),!d&&0<n.timeout&&(u=setTimeout(function(){if(!a){a=!0,s.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",t(e)}},n.timeout)),s.setRequestHeader)for(r in h)h.hasOwnProperty(r)&&s.setRequestHeader(r,h[r]);else if(n.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(s.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(s),s.send(l||null),s}t.exports=m,(t.exports.default=m).XMLHttpRequest=n.XMLHttpRequest||function(){},m.XDomainRequest="withCredentials"in new m.XMLHttpRequest?m.XMLHttpRequest:n.XDomainRequest,function(e,t){for(var r=0;r<e.length;r++)t(e[r])}(["get","put","post","patch","head","delete"],function(n){m["delete"===n?"del":n]=function(e,t,r){return(t=a(e,t,r)).method=n.toUpperCase(),s(t)}})},{"global/window":194,"is-function":195,"parse-headers":197,xtend:211}],211:[function(e,t,r){arguments[4][189][0].apply(r,arguments)},{dup:189}],212:[function(e,t,r){"use strict";var n=e("underscore"),i=e("swarm-js"),o=function e(t){this.givenProvider=e.givenProvider,t&&t._requestManager&&(t=t.currentProvider),"undefined"!=typeof document&&(this.pick=i.pick),this.setProvider(t)};o.givenProvider=null,"undefined"!=typeof ethereumProvider&&ethereumProvider.bzz&&(o.givenProvider=ethereumProvider.bzz),o.prototype.setProvider=function(e){if(n.isObject(e)&&n.isString(e.bzz)&&(e=e.bzz),n.isString(e))return this.currentProvider=e,this.download=i.at(e).download,this.upload=i.at(e).upload,this.isAvailable=i.at(e).isAvailable,!0;this.currentProvider=null;var t=new Error("No provider set, please set one using bzz.setProvider().");return!(this.download=this.upload=this.isAvailable=function(){throw t})},t.exports=o},{"swarm-js":200,underscore:204}],213:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],214:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports={ErrorResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e);return new Error("Returned error: "+t)},InvalidNumberOfParams:function(e,t,r){return new Error('Invalid number of parameters for "'+r+'". Got '+e+" expected "+t+"!")},InvalidConnection:function(e,t){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+e+".",t)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")},ConnectionNotOpenError:function(e){return this.ConnectionError("connection not open on send()",e)},ConnectionCloseError:function(e){return"object"===n(e)&&e.code&&e.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+e.code+"` and the following reason string `"+e.reason+"`",e):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(e,t){var r=new Error(e);return t&&(r.code=t.code,r.reason=t.reason),r},RevertInstructionError:function(e,t){var r=new Error("Your request got reverted with the following reason string: "+e);return r.reason=e,r.signature=t,r},TransactionRevertInstructionError:function(e,t,r){var n=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return n.reason=e,n.signature=t,n.receipt=r,n},TransactionError:function(e,t){var r=new Error(e);return r.receipt=t,r},NoContractAddressFoundError:function(e){return this.TransactionError("The transaction receipt didn't contain a contract address.",e)},ContractCodeNotStoredError:function(e){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",e)},TransactionRevertedWithoutReasonError:function(e){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(e,null,2),e)},TransactionOutOfGasError:function(e){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(e,null,2),e)},ResolverMethodMissingError:function(e,t){return new Error("The resolver at "+e+'does not implement requested method: "'+t+'".')}}},{}],215:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("underscore"),o=e("web3-utils"),a=e("web3-eth-iban"),s=function(e){return o.toBN(e).toString(10)},u=function(e){var t;if(void 0!==e)return"latest"===(t=e)||"pending"===t||"earliest"===t?e:"genesis"===e?"0x0":o.isHexStrict(e)?i.isString(e)?e.toLowerCase():e:o.numberToHex(e)},c=function(t){if(t.to&&(t.to=h(t.to)),t.data&&t.input)throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');if(!t.data&&t.input&&(t.data=t.input,delete t.input),t.data&&!o.isHex(t.data))throw new Error("The data field must be HEX encoded data.");return(t.gas||t.gasLimit)&&(t.gas=t.gas||t.gasLimit),["gasPrice","gas","value","nonce"].filter(function(e){return void 0!==t[e]}).forEach(function(e){t[e]=o.numberToHex(t[e])}),t},f=function(e){return null!==e.blockNumber&&(e.blockNumber=o.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=o.hexToNumber(e.transactionIndex)),e.nonce=o.hexToNumber(e.nonce),e.gas=o.hexToNumber(e.gas),e.gasPrice=s(e.gasPrice),e.value=s(e.value),e.to&&o.isAddress(e.to)?e.to=o.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=o.toChecksumAddress(e.from)),e},l=function(e){if("string"==typeof e.blockHash&&"string"==typeof e.transactionHash&&"string"==typeof e.logIndex){var t=o.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x",""));e.id="log_"+t.replace("0x","").substr(0,8)}else e.id||(e.id=null);return null!==e.blockNumber&&(e.blockNumber=o.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=o.hexToNumber(e.transactionIndex)),null!==e.logIndex&&(e.logIndex=o.hexToNumber(e.logIndex)),e.address&&(e.address=o.toChecksumAddress(e.address)),e},h=function(e){var t=new a(e);if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase();if(o.isAddress(e))return"0x"+e.toLowerCase().replace("0x","");throw new Error('Provided address "'+e+"\" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted.")};t.exports={inputDefaultBlockNumberFormatter:function(e){return u(this&&null==e?this.defaultBlock:e)},inputBlockNumberFormatter:u,inputCallFormatter:function(e){var t=(e=c(e)).from||(this?this.defaultAccount:null);return t&&(e.from=h(t)),e},inputTransactionFormatter:function(e){if(e=c(e),!i.isNumber(e.from)&&!i.isObject(e.from)){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!i.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!');e.from=h(e.from)}return e},inputAddressFormatter:h,inputPostFormatter:function(e){return e.ttl&&(e.ttl=o.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=o.numberToHex(e.workToProve)),e.priority&&(e.priority=o.numberToHex(e.priority)),i.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map(function(e){return 0===e.indexOf("0x")?e:o.fromUtf8(e)}),e},inputLogFormatter:function(e){var t=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:o.fromUtf8(e)};return(e.fromBlock||0===e.fromBlock)&&(e.fromBlock=u(e.fromBlock)),(e.toBlock||0===e.toBlock)&&(e.toBlock=u(e.toBlock)),e.topics=e.topics||[],e.topics=e.topics.map(function(e){return i.isArray(e)?e.map(t):t(e)}),t=null,e.address&&(e.address=i.isArray(e.address)?e.address.map(function(e){return h(e)}):h(e.address)),e},inputSignFormatter:function(e){return o.isHexStrict(e)?e:o.utf8ToHex(e)},inputStorageKeysFormatter:function(e){return e.map(o.numberToHex)},outputProofFormatter:function(e){return e.address=o.toChecksumAddress(e.address),e.nonce=o.hexToNumberString(e.nonce),e.balance=o.hexToNumberString(e.balance),e},outputBigNumberFormatter:s,outputTransactionFormatter:f,outputTransactionReceiptFormatter:function(e){if("object"!==n(e))throw new Error("Received receipt is invalid: "+e);return null!==e.blockNumber&&(e.blockNumber=o.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=o.hexToNumber(e.transactionIndex)),e.cumulativeGasUsed=o.hexToNumber(e.cumulativeGasUsed),e.gasUsed=o.hexToNumber(e.gasUsed),i.isArray(e.logs)&&(e.logs=e.logs.map(l)),e.contractAddress&&(e.contractAddress=o.toChecksumAddress(e.contractAddress)),void 0!==e.status&&null!==e.status&&(e.status=Boolean(parseInt(e.status))),e},outputBlockFormatter:function(e){return e.gasLimit=o.hexToNumber(e.gasLimit),e.gasUsed=o.hexToNumber(e.gasUsed),e.size=o.hexToNumber(e.size),e.timestamp=o.hexToNumber(e.timestamp),null!==e.number&&(e.number=o.hexToNumber(e.number)),e.difficulty&&(e.difficulty=s(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=s(e.totalDifficulty)),i.isArray(e.transactions)&&e.transactions.forEach(function(e){if(!i.isString(e))return f(e)}),e.miner&&(e.miner=o.toChecksumAddress(e.miner)),e},outputLogFormatter:l,outputPostFormatter:function(e){return e.expiry=o.hexToNumber(e.expiry),e.sent=o.hexToNumber(e.sent),e.ttl=o.hexToNumber(e.ttl),e.workProved=o.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map(function(e){return o.toUtf8(e)}),e},outputSyncingFormatter:function(e){return e.startingBlock=o.hexToNumber(e.startingBlock),e.currentBlock=o.hexToNumber(e.currentBlock),e.highestBlock=o.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=o.hexToNumber(e.knownStates),e.pulledStates=o.hexToNumber(e.pulledStates)),e}}},{underscore:213,"web3-eth-iban":519,"web3-utils":559}],216:[function(e,t,r){"use strict";var n=e("./errors"),i=e("./formatters");t.exports={errors:n,formatters:i}},{"./errors":214,"./formatters":215}],217:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],218:[function(e,t,r){"use strict";function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function g(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function i(e){u(n,t,r,i,o,"next",e)}function o(e){u(n,t,r,i,o,"throw",e)}i(void 0)})}}var w=e("underscore"),_=e("web3-core-helpers").errors,k=e("web3-core-helpers").formatters,S=e("web3-utils"),A=e("web3-core-promievent"),i=e("web3-core-subscriptions").subscriptions,E=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.abiCoder=e.abiCoder,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.transactionBlockTimeout=e.transactionBlockTimeout||50,this.transactionConfirmationBlocks=e.transactionConfirmationBlocks||24,this.transactionPollingTimeout=e.transactionPollingTimeout||750,this.defaultCommon=e.defaultCommon,this.defaultChain=e.defaultChain,this.defaultHardfork=e.defaultHardfork,this.handleRevert=e.handleRevert};E.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},E.prototype.createFunction=function(e,t){var r=this.buildCall();return r.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),r},E.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var r=this.name.split(".");1<r.length?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},E.prototype.getCall=function(e){return w.isFunction(this.call)?this.call(e):this.call},E.prototype.extractCallback=function(e){if(w.isFunction(e[e.length-1]))return e.pop()},E.prototype.validateArgs=function(e){if(e.length!==this.params)throw _.InvalidNumberOfParams(e.length,this.params,this.name)},E.prototype.formatInput=function(r){var n=this;return this.inputFormatter?this.inputFormatter.map(function(e,t){return e?e.call(n,r[t]):r[t]}):r},E.prototype.formatOutput=function(e){var t=this;return w.isArray(e)?e.map(function(e){return t.outputFormatter&&e?t.outputFormatter(e):e}):this.outputFormatter&&e?this.outputFormatter(e):e},E.prototype.toPayload=function(e){var t=this.getCall(e),r=this.extractCallback(e),n=this.formatInput(e);this.validateArgs(n);var i={method:t,params:n,callback:r};return this.transformPayload&&(i=this.transformPayload(i)),i},E.prototype._confirmTransaction=function(a,r,s){var u=this,c=!1,f=!0,l=0,h=0,d=null,p=null,b=w.isObject(s.params[0])&&s.params[0].gas?s.params[0].gas:null,y=w.isObject(s.params[0])&&s.params[0].data&&s.params[0].from&&!s.params[0].to,m=y&&2<s.params[0].data.length,e=[new E({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[k.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:k.outputBlockFormatter}),new E({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:k.outputTransactionReceiptFormatter}),new E({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[k.inputAddressFormatter,k.inputDefaultBlockNumberFormatter]}),new E({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:k.outputTransactionFormatter}),new i({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:k.outputBlockFormatter}}})],v={};w.each(e,function(e){e.attachToObject(v),e.requestManager=u.requestManager});var t=function(n,i,e,t,o){if(!e)return o||(o={unsubscribe:function(){clearInterval(d)}}),(n?A.resolve(n):v.getTransactionReceipt(r)).catch(function(e){o.unsubscribe(),c=!0,S._fireError({message:"Failed to check for transaction receipt:",data:e},a.eventEmitter,a.reject)}).then(function(){var t=g(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.blockHash){e.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(u.extraFormatters&&u.extraFormatters.receiptFormatter&&(t=u.extraFormatters.receiptFormatter(t)),!(0<a.eventEmitter.listeners("confirmation").length)){e.next=24;break}if(void 0!==n&&0===h){e.next=21;break}if(!i){e.next=20;break}if(p)return e.next=9,v.getBlockByNumber(p.number+1);e.next=13;break;case 9:(r=e.sent)&&(p=r,a.eventEmitter.emit("confirmation",h,t)),e.next=18;break;case 13:return e.next=15,v.getBlockByNumber(t.blockNumber);case 15:r=e.sent,p=r,a.eventEmitter.emit("confirmation",h,t);case 18:e.next=21;break;case 20:a.eventEmitter.emit("confirmation",h,t);case 21:(i&&r||!i)&&h++,f=!1,h===u.transactionConfirmationBlocks+1&&(o.unsubscribe(),a.eventEmitter.removeAllListeners());case 24:return e.abrupt("return",t);case 25:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=g(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!y||c){e.next=19;break}if(t.contractAddress){e.next=5;break}return f&&(o.unsubscribe(),c=!0),S._fireError(_.NoContractAddressFoundError(t),a.eventEmitter,a.reject,null,t),e.abrupt("return");case 5:return e.prev=5,e.next=8,v.getCode(t.contractAddress);case 8:r=e.sent,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:if(r){e.next=15;break}return e.abrupt("return");case 15:!0===t.status&&m||2<r.length?(a.eventEmitter.emit("receipt",t),u.extraFormatters&&u.extraFormatters.contractDeployFormatter?a.resolve(u.extraFormatters.contractDeployFormatter(t)):a.resolve(t),f&&a.eventEmitter.removeAllListeners()):S._fireError(_.ContractCodeNotStoredError(t),a.eventEmitter,a.reject,null,t),f&&o.unsubscribe(),c=!0;case 19:return e.abrupt("return",t);case 20:case"end":return e.stop()}},e,null,[[5,11]])}));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=g(regeneratorRuntime.mark(function e(t){var r,n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(y||c){e.next=39;break}if(t.outOfGas||b&&b===t.gasUsed||!0!==t.status&&"0x1"!==t.status&&void 0!==t.status){e.next=7;break}a.eventEmitter.emit("receipt",t),a.resolve(t),f&&a.eventEmitter.removeAllListeners(),e.next=37;break;case 7:if(JSON.stringify(t,null,2),!1!==t.status&&"0x0"!==t.status){e.next=36;break}if(e.prev=9,r=null,!u.handleRevert||"eth_sendTransaction"!==u.call&&"eth_sendRawTransaction"!==u.call){e.next=28;break}if(n=s.params[0],"eth_sendRawTransaction"===u.call)return e.next=16,v.getTransactionByHash(t.transactionHash);e.next=18;break;case 16:i=e.sent,n=k.inputTransactionFormatter({data:i.input,to:i.to,from:i.from,gas:i.gas,gasPrice:i.gasPrice,value:i.value});case 18:return e.next=20,u.getRevertReason(n,t.blockNumber);case 20:if(!(r=e.sent)){e.next=25;break}S._fireError(_.TransactionRevertInstructionError(r.reason,r.signature,t),a.eventEmitter,a.reject,null,t),e.next=26;break;case 25:throw!1;case 26:e.next=29;break;case 28:throw!1;case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(9),S._fireError(_.TransactionRevertedWithoutReasonError(t),a.eventEmitter,a.reject,null,t);case 34:e.next=37;break;case 36:S._fireError(_.TransactionOutOfGasError(t),a.eventEmitter,a.reject,null,t);case 37:f&&o.unsubscribe(),c=!0;case 39:case"end":return e.stop()}},e,null,[[9,31]])}));return function(e){return t.apply(this,arguments)}}()).catch(function(){l++,i?l-1>=u.transactionPollingTimeout&&(o.unsubscribe(),c=!0,S._fireError(_.TransactionError("Transaction was not mined within "+u.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),a.eventEmitter,a.reject)):l-1>=u.transactionBlockTimeout&&(o.unsubscribe(),c=!0,S._fireError(_.TransactionError("Transaction was not mined within "+u.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),a.eventEmitter,a.reject))});o.unsubscribe(),c=!0,S._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:e},a.eventEmitter,a.reject)},n=function(e){w.isFunction(this.requestManager.provider.on)?v.subscribe("newBlockHeaders",t.bind(null,e,!1)):d=setInterval(t.bind(null,e,!0),1e3)}.bind(this);v.getTransactionReceipt(r).then(function(e){e&&e.blockHash?(0<a.eventEmitter.listeners("confirmation").length&&n(e),t(e,!1)):c||n()}).catch(function(){c||n()})};var l=function(e,t){return w.isNumber(e)?t.wallet[e]:w.isObject(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};E.prototype.buildCall=function(){var o=this,a="eth_sendTransaction"===o.call||"eth_sendRawTransaction"===o.call,f="eth_call"===o.call,e=function(){var s=A(!a),i=o.toPayload(Array.prototype.slice.call(arguments)),u=function(t,e){if(o.handleRevert&&!t&&f&&o.isRevertReasonString(e)&&o.abiCoder){var r=o.abiCoder.decodeParameter("string","0x"+e.substring(10)),n="Error(String)";S._fireError(_.RevertInstructionError(r,n),s.eventEmitter,s.reject,i.callback,{reason:r,signature:n})}else{try{e=o.formatOutput(e)}catch(e){t=e}if(e instanceof Error&&(t=e),t)return t.error&&(t=t.error),S._fireError(t,s.eventEmitter,s.reject,i.callback);i.callback&&i.callback(null,e),a?(s.eventEmitter.emit("transactionHash",e),o._confirmTransaction(s,e,i)):t||s.resolve(e)}},c=function(e){var t=w.extend({},i,{method:"eth_sendRawTransaction",params:[e.rawTransaction]});o.requestManager.send(t,u)},r=function(e,t){var r;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var n=e.params[0];if((r=l(w.isObject(n)?n.from:null,t.accounts))&&r.privateKey){var i=w.omit(n,"from");return t.defaultChain&&!i.chain&&(i.chain=t.defaultChain),t.defaultHardfork&&!i.hardfork&&(i.hardfork=t.defaultHardfork),t.defaultCommon&&!i.common&&(i.common=t.defaultCommon),t.accounts.signTransaction(i,r.privateKey).then(c).catch(function(e){w.isFunction(s.eventEmitter.listeners)&&s.eventEmitter.listeners("error").length&&(s.eventEmitter.emit("error",e),s.eventEmitter.removeAllListeners(),s.eventEmitter.catch(function(){})),s.reject(e)})}}else if("eth_sign"===e.method){var o=e.params[1];if((r=l(e.params[0],t.accounts))&&r.privateKey){var a=t.accounts.sign(o,r.privateKey);return e.callback&&e.callback(null,a.signature),void s.resolve(a.signature)}}return t.requestManager.send(e,u)};a&&w.isObject(i.params[0])&&void 0===i.params[0].gasPrice?new E({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(o.requestManager)(function(e,t){t&&(i.params[0].gasPrice=t),r(i,o)}):r(i,o);return s.eventEmitter};return e.method=o,e.request=this.request.bind(this),e},E.prototype.getRevertReason=function(e,n){var i=this;return new Promise(function(t,r){new E({name:"call",call:"eth_call",params:2,abiCoder:i.abiCoder,handleRevert:!0}).createFunction(i.requestManager)(e,S.numberToHex(n)).then(function(){t(!1)}).catch(function(e){e.reason?t({reason:e.reason,signature:e.signature}):r(e)})})},E.prototype.isRevertReasonString=function(e){return w.isString(e)&&(e.length-2)/2%32==4&&"0x08c379a0"===e.substring(0,10)},E.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},t.exports=E},{underscore:217,"web3-core-helpers":216,"web3-core-promievent":220,"web3-core-subscriptions":228,"web3-utils":559}],219:[function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,d="~";function i(){}function s(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,r,n,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new s(r,n||e,i),a=d?d+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],o]:e._events[a].push(o):(e._events[a]=o,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(d=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(d?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=d?d+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,o=new Array(i);n<i;n++)o[n]=r[n].fn;return o},a.prototype.listenerCount=function(e){var t=d?d+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,n,i,o){var a=d?d+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,n),!0;case 5:return c.fn.call(c.context,t,r,n,i),!0;case 6:return c.fn.call(c.context,t,r,n,i,o),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var l,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,n);break;default:if(!s)for(l=1,s=new Array(f-1);l<f;l++)s[l-1]=arguments[l];c[u].fn.apply(c[u].context,s)}}return!0},a.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,r,n){var i=d?d+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||n&&!o.once||r&&o.context!==r||c(this,i);else{for(var a=0,s=[],u=o.length;a<u;a++)(o[a].fn!==t||n&&!o[a].once||r&&o[a].context!==r)&&s.push(o[a]);s.length?this._events[i]=1===s.length?s[0]:s:c(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=d?d+e:e,this._events[t]&&c(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=d,a.EventEmitter=a,void 0!==t&&(t.exports=a)},{}],220:[function(e,t,r){"use strict";var o=e("eventemitter3"),n=function(e){var t,r,n=new Promise(function(){t=arguments[0],r=arguments[1]});if(e)return{resolve:t,reject:r,eventEmitter:n};var i=new o;return n._events=i._events,n.emit=i.emit,n.on=i.on,n.once=i.once,n.off=i.off,n.listeners=i.listeners,n.addListener=i.addListener,n.removeListener=i.removeListener,n.removeAllListeners=i.removeAllListeners,{resolve:t,reject:r,eventEmitter:n}};n.resolve=function(e){var t=n(!0);return t.resolve(e),t.eventEmitter},t.exports=n},{eventemitter3:219}],221:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],222:[function(e,t,r){"use strict";var i=e("./jsonrpc"),o=e("web3-core-helpers").errors,n=function(e){this.requestManager=e,this.requests=[]};n.prototype.add=function(e){this.requests.push(e)},n.prototype.execute=function(){var n=this.requests;this.requestManager.sendBatch(n,function(e,r){r=r||[],n.map(function(e,t){return r[t]||{}}).forEach(function(e,t){if(n[t].callback){if(e&&e.error)return n[t].callback(o.ErrorResponse(e));if(!i.isValidResponse(e))return n[t].callback(o.InvalidResponse(e));try{n[t].callback(null,n[t].format?n[t].format(e.result):e.result)}catch(e){n[t].callback(e)}}})})},t.exports=n},{"./jsonrpc":225,"web3-core-helpers":216}],223:[function(e,t,r){"use strict";var n,i=null;try{n=Function("return this")()}catch(e){n=window}void 0!==n.ethereumProvider?i=n.ethereumProvider:void 0!==n.web3&&n.web3.currentProvider&&(n.web3.currentProvider.sendAsync&&(n.web3.currentProvider.send=n.web3.currentProvider.sendAsync,delete n.web3.currentProvider.sendAsync),!n.web3.currentProvider.on&&n.web3.currentProvider.connection&&"ipcProviderWrapper"===n.web3.currentProvider.connection.constructor.name&&(n.web3.currentProvider.on=function(e,r){if("function"!=typeof r)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.connection.on("data",function(t){var e="";t=t.toString();try{e=JSON.parse(t)}catch(e){return r(new Error("Couldn't parse response data"+t))}e.id||-1===e.method.indexOf("_subscription")||r(null,e)});break;default:this.connection.on(e,r)}}),i=n.web3.currentProvider),t.exports=i},{}],224:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("underscore"),o=e("web3-core-helpers").errors,a=e("./jsonrpc.js"),s=e("./batch.js"),u=e("./givenProvider.js"),c=function e(t,r){this.provider=null,this.providers=e.providers,this.setProvider(t,r),this.subscriptions=new Map};c.givenProvider=u,c.providers={WebsocketProvider:e("web3-providers-ws"),HttpProvider:e("web3-providers-http"),IpcProvider:e("web3-providers-ipc")},c.prototype.setProvider=function(e,t){var r=this;if(e&&"string"==typeof e&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e);else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e);else if(e&&"object"===n(t)&&"function"==typeof t.connect)e=new this.providers.IpcProvider(e,t);else if(e)throw new Error("Can't autodetect provider for \""+e+'"');this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on&&(this.provider.on("data",function(e,t){(e=e||t).method&&r.subscriptions.has(e.params.subscription)&&r.subscriptions.get(e.params.subscription).callback(null,e.params.result)}),this.provider.on("connect",function(){r.subscriptions.forEach(function(e){e.subscription.resubscribe()})}),this.provider.on("error",function(t){r.subscriptions.forEach(function(e){e.callback(t)})}),this.provider.on("close",function(t){r._isCleanCloseEvent(t)&&!r._isIpcCloseError(t)||(r.subscriptions.forEach(function(e){e.callback(o.ConnectionCloseError(t)),r.subscriptions.delete(e.subscription.id)}),r.provider&&r.provider.emit&&r.provider.emit("error",o.ConnectionCloseError(t))),r.provider&&r.provider.emit&&r.provider.emit("end",t)}))},c.prototype.send=function(e,r){if(r=r||function(){},!this.provider)return r(o.InvalidProvider());var n=a.toPayload(e.method,e.params);this.provider[this.provider.sendAsync?"sendAsync":"send"](n,function(e,t){return t&&t.id&&n.id!==t.id?r(new Error('Wrong response id "'+t.id+'" (expected: "'+n.id+'") in '+JSON.stringify(n))):e?r(e):t&&t.error?r(o.ErrorResponse(t)):a.isValidResponse(t)?void r(null,t.result):r(o.InvalidResponse(t))})},c.prototype.sendBatch=function(e,r){if(!this.provider)return r(o.InvalidProvider());var t=a.toBatchPayload(e);this.provider[this.provider.sendAsync?"sendAsync":"send"](t,function(e,t){return e?r(e):i.isArray(t)?void r(null,t):r(o.InvalidResponse(t))})},c.prototype.addSubscription=function(e,t){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(e.id,{callback:t,subscription:e})},c.prototype.removeSubscription=function(e,t){if(this.subscriptions.has(e)){var r=this.subscriptions.get(e).subscription.options.type;return this.subscriptions.delete(e),void this.send({method:r+"_unsubscribe",params:[e]},t)}"function"==typeof t&&t(null)},c.prototype.clearSubscriptions=function(r){var n=this;0<this.subscriptions.size&&this.subscriptions.forEach(function(e,t){r&&"syncing"===e.name||n.removeSubscription(t)}),this.provider.reset&&this.provider.reset()},c.prototype._isCleanCloseEvent=function(e){return"object"===n(e)&&([1e3].includes(e.code)||!0===e.wasClean)},c.prototype._isIpcCloseError=function(e){return"boolean"==typeof e&&e},t.exports={Manager:c,BatchManager:s}},{"./batch.js":222,"./givenProvider.js":223,"./jsonrpc.js":225,underscore:221,"web3-core-helpers":216,"web3-providers-http":532,"web3-providers-ipc":535,"web3-providers-ws":542}],225:[function(e,t,r){"use strict";var n={messageId:0,toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}},toBatchPayload:function(e){return e.map(function(e){return n.toPayload(e.method,e.params)})}};t.exports=n},{}],226:[function(e,t,r){arguments[4][219][0].apply(r,arguments)},{dup:219}],227:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],228:[function(e,t,r){"use strict";var n=e("./subscription.js"),i=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(e){this.requestManager=e},i.prototype.attachToObject=function(e){var t=this.buildCall(),r=this.name.split(".");1<r.length?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},i.prototype.buildCall=function(){var t=this;return function(){t.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var e=new n({subscription:t.subscriptions[arguments[0]]||{},requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},t.exports={subscriptions:i,subscription:n}},{"./subscription.js":229}],229:[function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("underscore"),n=e("web3-core-helpers").errors,a=e("eventemitter3");function s(e){a.call(this),this.id=null,this.callback=o.identity,this.arguments=null,this.lastBlock=null,this.options={subscription:e.subscription,type:e.type,requestManager:e.requestManager}}((s.prototype=Object.create(a.prototype)).constructor=s).prototype._extractCallback=function(e){if(o.isFunction(e[e.length-1]))return e.pop()},s.prototype._validateArgs=function(e){var t=this.options.subscription;if(t||(t={}),t.params||(t.params=0),e.length!==t.params)throw n.InvalidNumberOfParams(e.length,t.params,t.subscriptionName)},s.prototype._formatInput=function(r){var e=this.options.subscription;return e&&e.inputFormatter?e.inputFormatter.map(function(e,t){return e?e(r[t]):r[t]}):r},s.prototype._formatOutput=function(e){var t=this.options.subscription;return t&&t.outputFormatter&&e?t.outputFormatter(e):e},s.prototype._toPayload=function(e){var t=[];if(this.callback=this._extractCallback(e)||o.identity,this.subscriptionMethod||(this.subscriptionMethod=e.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(e),this._validateArgs(this.arguments),e=[]),t.push(this.subscriptionMethod),t=t.concat(this.arguments),e.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:t}},s.prototype.unsubscribe=function(e){this.options.requestManager.removeSubscription(this.id,e),this.id=null,this.lastBlock=null,this.removeAllListeners()},s.prototype.subscribe=function(){var r=this,e=Array.prototype.slice.call(arguments),n=this._toPayload(e);if(!n)return this;if(!this.options.requestManager.provider)return setTimeout(function(){var e=new Error("No provider set.");r.callback(e,null,r),r.emit("error",e)},0),this;if(!this.options.requestManager.provider.on)return setTimeout(function(){var e=new Error("The current provider doesn't support subscriptions: "+r.options.requestManager.provider.constructor.name);r.callback(e,null,r),r.emit("error",e)},0),this;if(this.lastBlock&&o.isObject(this.options.params)&&(n.params[1]=this.options.params,n.params[1].fromBlock=this.lastBlock+1),this.id&&this.unsubscribe(),this.options.params=n.params[1],"logs"===n.params[0]&&o.isObject(n.params[1])&&n.params[1].hasOwnProperty("fromBlock")&&isFinite(n.params[1].fromBlock)){var t=Object.assign({},n.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[t]},function(e,t){e?setTimeout(function(){r.callback(e,null,r),r.emit("error",e)},0):t.forEach(function(e){var t=r._formatOutput(e);r.callback(null,t,r),r.emit("data",t)})})}return"object"===i(n.params[1])&&delete n.params[1].fromBlock,this.options.requestManager.send(n,function(e,t){!e&&t?(r.id=t,r.method=n.params[0],r.emit("connected",t),r.options.requestManager.addSubscription(r,function(e,t){e?(r.callback(e,!1,r),r.emit("error",e)):(o.isArray(t)||(t=[t]),t.forEach(function(e){var t=r._formatOutput(e);if(r.lastBlock=o.isObject(t)?t.blockNumber:null,o.isFunction(r.options.subscription.subscriptionHandler))return r.options.subscription.subscriptionHandler.call(r,t);r.emit("data",t),r.callback(null,t,r)}))})):setTimeout(function(){r.callback(e,!1,r),r.emit("error",e)},0)}),this},s.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},t.exports=s},{eventemitter3:226,underscore:227,"web3-core-helpers":216}],230:[function(e,t,r){"use strict";var n=e("web3-core-helpers").formatters,i=e("web3-core-method"),o=e("web3-utils");t.exports=function(r){var e=function(e){var t;return t=e.property?(r[e.property]||(r[e.property]={}),r[e.property]):r,e.methods&&e.methods.forEach(function(e){e instanceof i||(e=new i(e)),e.attachToObject(t),e.setRequestManager(r._requestManager)}),r};return e.formatters=n,e.utils=o,e.Method=i,e}},{"web3-core-helpers":216,"web3-core-method":218,"web3-utils":559}],231:[function(e,t,r){"use strict";var n=e("web3-core-requestmanager"),i=e("./extend.js");t.exports={packageInit:function(r,e){if(e=Array.prototype.slice.call(e),!r)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(r,"currentProvider",{get:function(){return r._provider},set:function(e){return r.setProvider(e)},enumerable:!0,configurable:!0}),e[0]&&e[0]._requestManager?r._requestManager=e[0]._requestManager:r._requestManager=new n.Manager(e[0],e[1]),r.givenProvider=n.Manager.givenProvider,r.providers=n.Manager.providers,r._provider=r._requestManager.provider,r.setProvider||(r.setProvider=function(e,t){return r._requestManager.setProvider(e,t),r._provider=r._requestManager.provider,!0}),r.setRequestManager=function(e){r._requestManager=e,r._provider=e.provider},r.BatchRequest=n.BatchManager.bind(null,r._requestManager),r.extend=i(r)},addProviders:function(e){e.givenProvider=n.Manager.givenProvider,e.providers=n.Manager.providers}}},{"./extend.js":230,"web3-core-requestmanager":224}],232:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="abi/5.0.0-beta.153"},{}],233:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("@ethersproject/bytes"),n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),o=e("./_version"),s=new a.Logger(o.version),u=e("./coders/abstract-coder"),c=e("./coders/address"),f=e("./coders/array"),l=e("./coders/boolean"),h=e("./coders/bytes"),d=e("./coders/fixed-bytes"),p=e("./coders/null"),b=e("./coders/number"),y=e("./coders/string"),m=e("./coders/tuple"),v=e("./fragments"),g=new RegExp(/^bytes([0-9]*)$/),w=new RegExp(/^(u?int)([0-9]*)$/),_=function(){function r(e){var t=this.constructor;s.checkNew(t,r),n.defineReadOnly(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new c.AddressCoder(e.name);case"bool":return new l.BooleanCoder(e.name);case"string":return new y.StringCoder(e.name);case"bytes":return new h.BytesCoder(e.name);case"array":return new f.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new m.TupleCoder((e.components||[]).map(function(e){return t._getCoder(e)}),e.name);case"":return new p.NullCoder(e.name)}var r,n=e.type.match(w);return n?((0===(r=parseInt(n[2]||"256"))||256<r||r%8!=0)&&s.throwArgumentError("invalid "+n[1]+" bit length","param",e),new b.NumberCoder(r/8,"int"===n[1],e.name)):(n=e.type.match(g))?((0===(r=parseInt(n[1]))||32<r)&&s.throwArgumentError("invalid bytes length","param",e),new d.FixedBytesCoder(r,e.name)):s.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e){return new u.Reader(e,this._getWordSize(),this.coerceFunc)},r.prototype._getWriter=function(){return new u.Writer(this._getWordSize())},r.prototype.encode=function(e,t){var r=this;e.length!==t.length&&s.throwError("types/values length mismatch",a.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map(function(e){return r._getCoder(v.ParamType.from(e))}),i=new m.TupleCoder(n,"_"),o=this._getWriter();return i.encode(o,t),o.data},r.prototype.decode=function(e,t){var r=this,n=e.map(function(e){return r._getCoder(v.ParamType.from(e))});return new m.TupleCoder(n,"_").decode(this._getReader(i.arrayify(t)))},r}();r.AbiCoder=_,r.defaultAbiCoder=new _},{"./_version":232,"./coders/abstract-coder":234,"./coders/address":235,"./coders/array":237,"./coders/boolean":238,"./coders/bytes":239,"./coders/fixed-bytes":240,"./coders/null":241,"./coders/number":242,"./coders/string":243,"./coders/tuple":244,"./fragments":245,"@ethersproject/bytes":255,"@ethersproject/logger":261,"@ethersproject/properties":263}],234:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("@ethersproject/bytes"),i=e("@ethersproject/bignumber"),o=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("../_version"),u=new a.Logger(s.version);r.checkResultErrors=function(e){var o=[];return function e(t,r){if(Array.isArray(r))for(var n in r){var i=t.slice();i.push(n);try{e(i,r[n])}catch(e){o.push({path:i,error:e})}}}([],e),o};var c=function(){function e(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}return e.prototype._throwError=function(e,t){u.throwArgumentError(e,this.localName,t)},e}();r.Coder=c;var f=function(){function e(e){o.defineReadOnly(this,"wordSize",e||32),this._data=n.arrayify([]),this._padding=new Uint8Array(e)}return Object.defineProperty(e.prototype,"data",{get:function(){return n.hexlify(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._data.length},enumerable:!0,configurable:!0}),e.prototype._writeData=function(e){return this._data=n.concat([this._data,e]),e.length},e.prototype.writeBytes=function(e){var t=n.arrayify(e);return t.length%this.wordSize&&(t=n.concat([t,this._padding.slice(t.length%this.wordSize)])),this._writeData(t)},e.prototype._getValue=function(e){var t=n.arrayify(i.BigNumber.from(e));return t.length>this.wordSize&&u.throwError("value out-of-bounds",a.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=n.concat([this._padding.slice(t.length%this.wordSize),t])),t},e.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},e.prototype.writeUpdatableValue=function(){var t=this,r=this.length;return this.writeValue(0),function(e){t._data.set(t._getValue(e),r)}},e}();r.Writer=f;var l=function(){function r(e,t,r){o.defineReadOnly(this,"_data",n.arrayify(e)),o.defineReadOnly(this,"wordSize",t||32),o.defineReadOnly(this,"_coerceFunc",r),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return n.hexlify(this._data)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!0,configurable:!0}),r.coerce=function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&u.throwError("data out-of-bounds",a.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r}),this._data.slice(this._offset,this._offset+r)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc)},r.prototype.readBytes=function(e){var t=this._peekBytes(0,e);return this._offset+=t.length,t.slice(0,e)},r.prototype.readValue=function(){return i.BigNumber.from(this.readBytes(this.wordSize))},r}();r.Reader=l},{"../_version":232,"@ethersproject/bignumber":253,"@ethersproject/bytes":255,"@ethersproject/logger":261,"@ethersproject/properties":263}],235:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=e("@ethersproject/address"),a=e("@ethersproject/bytes"),s=function(t){function e(e){return t.call(this,"address","address",e,!1)||this}return i(e,t),e.prototype.encode=function(e,t){try{o.getAddress(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)},e.prototype.decode=function(e){return o.getAddress(a.hexZeroPad(e.readValue().toHexString(),20))},e}(e("./abstract-coder").Coder);r.AddressCoder=s},{"./abstract-coder":234,"@ethersproject/address":249,"@ethersproject/bytes":255}],236:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(r){function e(e){var t=r.call(this,e.name,e.type,void 0,e.dynamic)||this;return t.coder=e,t}return i(e,r),e.prototype.encode=function(e,t){return this.coder.encode(e,t)},e.prototype.decode=function(e){return this.coder.decode(e)},e}(e("./abstract-coder").Coder);r.AnonymousCoder=o},{"./abstract-coder":234}],237:[function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var u=e("@ethersproject/logger"),a=e("../_version"),c=new u.Logger(a.version),f=e("./abstract-coder"),s=e("./anonymous");function l(e,t,o){if(Array.isArray(o));else if(o&&"object"===i(o)){var r=[];t.forEach(function(e){r.push(o[e.localName])}),o=r}else c.throwArgumentError("invalid tuple value","tuple",o);t.length!==o.length&&c.throwArgumentError("types/value length mismatch","tuple",o);var a=new f.Writer(e.wordSize),s=new f.Writer(e.wordSize),u=[];t.forEach(function(e,t){var r=o[t];if(e.dynamic){var n=s.length;e.encode(s,r);var i=a.writeUpdatableValue();u.push(function(e){i(e+n)})}else e.encode(a,r)}),u.forEach(function(e){e(a.length)});var n=e.writeBytes(a.data);return n+=e.writeBytes(s.data)}function h(i,e){var o=[],a=i.subReader(0),s=0;e.forEach(function(t){var r=null;if(t.dynamic){var e=i.readValue(),n=a.subReader(e.toNumber());try{r=t.decode(n)}catch(e){if(e.code===u.Logger.errors.BUFFER_OVERRUN)throw e;(r=e).baseType=t.name,r.name=t.localName,r.type=t.type}s+=n.consumed}else try{r=t.decode(i)}catch(e){if(e.code===u.Logger.errors.BUFFER_OVERRUN)throw e;(r=e).baseType=t.name,r.name=t.localName,r.type=t.type}null!=r&&o.push(r)}),i.readBytes(s),e.forEach(function(e,t){var r=e.localName;if(r&&("length"===r&&(r="_length"),null==o[r])){var n=o[t];n instanceof Error?Object.defineProperty(o,r,{get:function(){throw n}}):o[r]=n}});for(var t=function(e){var t=o[e];t instanceof Error&&Object.defineProperty(o,e,{get:function(){throw t}})},r=0;r<o.length;r++)t(r);return Object.freeze(o)}r.pack=l,r.unpack=h;var d=function(a){function e(e,t,r){var n=this,i=e.type+"["+(0<=t?t:"")+"]",o=-1===t||e.dynamic;return(n=a.call(this,"array",i,r,o)||this).coder=e,n.length=t,n}return o(e,a),e.prototype.encode=function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),c.checkArgumentCount(r,t.length,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i<t.length;i++)n.push(this.coder);return l(e,n,t)},e.prototype.decode=function(e){var t=this.length;-1===t&&(t=e.readValue().toNumber());for(var r=[],n=0;n<t;n++)r.push(new s.AnonymousCoder(this.coder));return e.coerce(this.name,h(e,r))},e}(f.Coder);r.ArrayCoder=d},{"../_version":232,"./abstract-coder":234,"./anonymous":236,"@ethersproject/logger":261}],238:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(t){function e(e){return t.call(this,"bool","bool",e,!1)||this}return i(e,t),e.prototype.encode=function(e,t){return e.writeValue(t?1:0)},e.prototype.decode=function(e){return e.coerce(this.type,!e.readValue().isZero())},e}(e("./abstract-coder").Coder);r.BooleanCoder=o},{"./abstract-coder":234}],239:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=e("@ethersproject/bytes"),a=function(r){function e(e,t){return r.call(this,e,e,t,!0)||this}return i(e,r),e.prototype.encode=function(e,t){t=o.arrayify(t);var r=e.writeValue(t.length);return r+=e.writeBytes(t)},e.prototype.decode=function(e){return e.readBytes(e.readValue().toNumber())},e}(e("./abstract-coder").Coder),s=function(t){function e(e){return t.call(this,"bytes",e)||this}return i(e,t),e.prototype.decode=function(e){return e.coerce(this.name,o.hexlify(t.prototype.decode.call(this,e)))},e}(r.DynamicBytesCoder=a);r.BytesCoder=s},{"./abstract-coder":234,"@ethersproject/bytes":255}],240:[function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var a=e("@ethersproject/bytes"),i=function(i){function e(e,t){var r=this,n="bytes"+String(e);return(r=i.call(this,n,n,t,!1)||this).size=e,r}return o(e,i),e.prototype.encode=function(e,t){var r=a.arrayify(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)},e.prototype.decode=function(e){return e.coerce(this.name,a.hexlify(e.readBytes(this.size)))},e}(e("./abstract-coder").Coder);r.FixedBytesCoder=i},{"./abstract-coder":234,"@ethersproject/bytes":255}],241:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(t){function e(e){return t.call(this,"null","",e,!1)||this}return i(e,t),e.prototype.encode=function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])},e.prototype.decode=function(e){return e.readBytes(0),e.coerce(this.name,null)},e}(e("./abstract-coder").Coder);r.NullCoder=o},{"./abstract-coder":234}],242:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var a=e("@ethersproject/bignumber"),s=e("@ethersproject/constants"),o=function(o){function e(e,t,r){var n=this,i=(t?"int":"uint")+8*e;return(n=o.call(this,i,i,r,!1)||this).size=e,n.signed=t,n}return i(e,o),e.prototype.encode=function(e,t){var r=a.BigNumber.from(t),n=s.MaxUint256.mask(8*e.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(s.One).mul(s.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(s.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)},e.prototype.decode=function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)},e}(e("./abstract-coder").Coder);r.NumberCoder=o},{"./abstract-coder":234,"@ethersproject/bignumber":253,"@ethersproject/constants":256}],243:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=e("@ethersproject/strings"),a=function(r){function e(e){return r.call(this,"string",e)||this}return i(e,r),e.prototype.encode=function(e,t){return r.prototype.encode.call(this,e,o.toUtf8Bytes(t))},e.prototype.decode=function(e){return o.toUtf8String(r.prototype.decode.call(this,e))},e}(e("./bytes").DynamicBytesCoder);r.StringCoder=a},{"./bytes":239,"@ethersproject/strings":269}],244:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=e("./abstract-coder"),s=e("./array"),a=function(a){function e(e,t){var r=this,n=!1,i=[];e.forEach(function(e){e.dynamic&&(n=!0),i.push(e.type)});var o="tuple("+i.join(",")+")";return(r=a.call(this,"tuple",o,t,n)||this).coders=e,r}return i(e,a),e.prototype.encode=function(e,t){return s.pack(e,this.coders,t)},e.prototype.decode=function(e){return e.coerce(this.name,s.unpack(e,this.coders))},e}(o.Coder);r.TupleCoder=a},{"./abstract-coder":234,"./array":237}],245:[function(e,t,i){"use strict";var n,r=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(i,"__esModule",{value:!0});var a=e("@ethersproject/bignumber"),o=e("@ethersproject/properties"),s=e("@ethersproject/logger"),u=e("./_version"),l=new s.Logger(u.version),c={},f={calldata:!0,memory:!0,storage:!0},h={calldata:!0,memory:!0};function d(e,t){if("bytes"===e||"string"===e){if(f[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((0<=e.indexOf("[")||"tuple"===e)&&h[t])return!0;return(f[t]||"payable"===t)&&l.throwArgumentError("invalid modifier","name",t),!1}function p(e,t){for(var r in t)o.defineReadOnly(e,r,t[r])}i.FormatTypes=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});var b=new RegExp(/^(.*)\[([0-9]*)\]$/),y=function(){function n(e,t){e!==c&&l.throwError("use fromString",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),p(this,t);var r=this.type.match(b);p(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:n.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return n.prototype.format=function(t){if(t||(t=i.FormatTypes.sighash),i.FormatTypes[t]||l.throwArgumentError("invalid format type","format",t),t===i.FormatTypes.json){var e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map(function(e){return JSON.parse(e.format(t))})),JSON.stringify(e)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(t),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==i.FormatTypes.sighash&&(r+=this.type),r+="("+this.components.map(function(e){return e.format(t)}).join(t===i.FormatTypes.full?", ":",")+")"):r+=this.type,t!==i.FormatTypes.sighash&&(!0===this.indexed&&(r+=" indexed"),t===i.FormatTypes.full&&this.name&&(r+=" "+this.name)),r},n.from=function(e,t){return"string"==typeof e?n.fromString(e,t):n.fromObject(e)},n.fromObject=function(e){return n.isParamType(e)?e:new n(c,{name:e.name||null,type:E(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(n.fromObject):null})},n.fromString=function(e,t){return r=function(t,r){var e=t;function n(e){l.throwArgumentError("unexpected character at position "+e,"param",t)}function i(e){var t={type:"",name:"",parent:e,state:{allowType:!0}};return r&&(t.indexed=!1),t}t=t.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s<t.length;s++){var u=t[s];switch(u){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(s),a.state.allowType=!1,a.type=E(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(r||n(s),a.indexed=!0,a.name=""),d(a.type,a.name)&&(a.name=""),a.type=E(a.type);var c=a;(a=a.parent)||n(s),delete c.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(r||n(s),a.indexed=!0,a.name=""),d(a.type,a.name)&&(a.name=""),a.type=E(a.type);var f=i(a.parent);a.parent.components.push(f),delete a.parent,a=f;break;case" ":a.state.allowType&&""!==a.type&&(a.type=E(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(r||n(s),a.indexed&&n(s),a.indexed=!0,a.name=""):d(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(s),a.type+=u,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(s),a.type+=u,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=u,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=u,delete a.state.allowArray):a.state.readArray?a.type+=u:n(s)}}return a.parent&&l.throwArgumentError("unexpected eof","param",t),delete o.state,"indexed"===a.name?(r||n(e.length-7),a.indexed&&n(e.length-7),a.indexed=!0,a.name=""):d(a.type,a.name)&&(a.name=""),o.type=E(o.type),o}(e,!!t),n.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r},n.isParamType=function(e){return!(null==e||!e._isParamType)},n}();function m(e,t){return function(e){e=e.trim();for(var t=[],r="",n=0,i=0;i<e.length;i++){var o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1===--n&&l.throwArgumentError("unbalanced parenthesis","value",e))}r&&t.push(r);return t}(e).map(function(e){return y.fromString(e,t)})}i.ParamType=y;var v=function(){function t(e,t){e!==c&&l.throwError("use a static from method",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),p(this,t),this._isFragment=!0,Object.freeze(this)}return t.from=function(e){return t.isFragment(e)?e:"string"==typeof e?t.fromString(e):t.fromObject(e)},t.fromObject=function(e){if(t.isFragment(e))return e;switch(e.type){case"function":return A.fromObject(e);case"event":return g.fromObject(e);case"constructor":return S.fromObject(e);case"fallback":case"receive":return null}return l.throwArgumentError("invalid fragment object","value",e)},t.fromString=function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?g.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?A.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?S.fromString(e.trim()):l.throwArgumentError("unsupported fragment","value",e)},t.isFragment=function(e){return!(!e||!e._isFragment)},t}(),g=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.format=function(t){if(t||(t=i.FormatTypes.sighash),i.FormatTypes[t]||l.throwArgumentError("invalid format type","format",t),t===i.FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(function(e){return JSON.parse(e.format(t))})});var e="";return t!==i.FormatTypes.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(function(e){return e.format(t)}).join(t===i.FormatTypes.full?", ":",")+") ",t!==i.FormatTypes.sighash&&this.anonymous&&(e+="anonymous "),e.trim()},n.from=function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)},n.fromObject=function(e){if(n.isEventFragment(e))return e;"event"!==e.type&&l.throwArgumentError("invalid event object","value",e);var t={name:M(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(y.fromObject):[],type:"event"};return new n(c,t)},n.fromString=function(e){var t=e.match(j);t||l.throwArgumentError("invalid event string","value",e);var r=!1;return t[3].split(" ").forEach(function(e){switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:l.warn("unknown modifier: "+e)}}),n.fromObject({name:t[1].trim(),anonymous:r,inputs:m(t[2],!0),type:"event"})},n.isEventFragment=function(e){return e&&e._isFragment&&"event"===e.type},n}(i.Fragment=v);function w(e,t){t.gas=null;var r=e.split("@");return 1!==r.length?(2<r.length&&l.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||l.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=a.BigNumber.from(r[1]),r[0]):e}function _(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function k(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&l.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&l.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||l.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&l.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&l.throwArgumentError("unable to determine stateMutability","value",e),t}i.EventFragment=g;var S=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.format=function(t){if(t||(t=i.FormatTypes.sighash),i.FormatTypes[t]||l.throwArgumentError("invalid format type","format",t),t===i.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(e){return JSON.parse(e.format(t))})});t===i.FormatTypes.sighash&&l.throwError("cannot format a constructor for sighash",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var e="constructor("+this.inputs.map(function(e){return e.format(t)}).join(t===i.FormatTypes.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()},n.from=function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)},n.fromObject=function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&l.throwArgumentError("invalid constructor object","value",e);var t=k(e);t.constant&&l.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(y.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?a.BigNumber.from(e.gas):null};return new n(c,r)},n.fromString=function(e){var t={type:"constructor"},r=(e=w(e,t)).match(j);return r&&"constructor"===r[1].trim()||l.throwArgumentError("invalid constructor string","value",e),t.inputs=m(r[2].trim(),!1),_(r[3].trim(),t),n.fromObject(t)},n.isConstructorFragment=function(e){return e&&e._isFragment&&"constructor"===e.type},n}(v),A=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return r(o,e),o.prototype.format=function(t){if(t||(t=i.FormatTypes.sighash),i.FormatTypes[t]||l.throwArgumentError("invalid format type","format",t),t===i.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(e){return JSON.parse(e.format(t))}),ouputs:this.outputs.map(function(e){return JSON.parse(e.format(t))})});var e="";return t!==i.FormatTypes.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(function(e){return e.format(t)}).join(t===i.FormatTypes.full?", ":",")+") ",t!==i.FormatTypes.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(function(e){return e.format(t)}).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()},o.from=function(e){return"string"==typeof e?o.fromString(e):o.fromObject(e)},o.fromObject=function(e){if(o.isFunctionFragment(e))return e;"function"!==e.type&&l.throwArgumentError("invalid function object","value",e);var t=k(e),r={type:e.type,name:M(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(y.fromObject):[],outputs:e.outputs?e.outputs.map(y.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?a.BigNumber.from(e.gas):null};return new o(c,r)},o.fromString=function(e){var t={type:"function"},r=(e=w(e,t)).split(" returns ");2<r.length&&l.throwArgumentError("invalid function string","value",e);var n=r[0].match(j);if(n||l.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&M(t.name),t.inputs=m(n[2],!1),_(n[3].trim(),t),1<r.length){var i=r[1].match(j);""==i[1].trim()&&""==i[3].trim()||l.throwArgumentError("unexpected tokens","value",e),t.outputs=m(i[2],!1)}else t.outputs=[];return o.fromObject(t)},o.isFunctionFragment=function(e){return e&&e._isFragment&&"function"===e.type},o}(i.ConstructorFragment=S);function E(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}i.FunctionFragment=A;var x=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function M(e){return e&&e.match(x)||l.throwArgumentError('invalid identifier "'+e+'"',"value",e),e}var j=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},{"./_version":232,"@ethersproject/bignumber":253,"@ethersproject/logger":261,"@ethersproject/properties":263}],246:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./fragments");r.ConstructorFragment=n.ConstructorFragment,r.EventFragment=n.EventFragment,r.FormatTypes=n.FormatTypes,r.Fragment=n.Fragment,r.FunctionFragment=n.FunctionFragment,r.ParamType=n.ParamType;var i=e("./abi-coder");r.AbiCoder=i.AbiCoder,r.defaultAbiCoder=i.defaultAbiCoder;var o=e("./interface");r.checkResultErrors=o.checkResultErrors,r.Indexed=o.Indexed,r.Interface=o.Interface,r.LogDescription=o.LogDescription,r.TransactionDescription=o.TransactionDescription},{"./abi-coder":233,"./fragments":245,"./interface":247}],247:[function(e,t,r){"use strict";var n,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),p=e("@ethersproject/bytes"),u=e("@ethersproject/hash"),c=e("@ethersproject/keccak256"),s=e("@ethersproject/properties"),f=e("./abi-coder"),l=e("./coders/abstract-coder");r.checkResultErrors=l.checkResultErrors;var b=e("./fragments"),y=e("@ethersproject/logger"),h=e("./_version"),m=new y.Logger(h.version),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(s.Description);r.LogDescription=d;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(s.Description);r.TransactionDescription=v;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.isIndexed=function(e){return!(!e||!e._isIndexed)},t}(s.Description);function w(e,t){var r=new Error("deferred error during ABI decoding triggered accessing "+e);return r.error=t,r}function _(r,n,e){e.reduce(function(e,t){return t.name&&(e[t.name]&&m.throwArgumentError("duplicate "+n+" parameter "+JSON.stringify(t.name)+" in "+r.format("full"),"fragment",r),e[t.name]=!0),e},{})}r.Indexed=g;var k=function(){function i(e){var t=this.constructor,n=this;m.checkNew(t,i);var r=[];r="string"==typeof e?JSON.parse(e):e,s.defineReadOnly(this,"fragments",r.map(function(e){return b.Fragment.from(e)}).filter(function(e){return null!=e})),s.defineReadOnly(this,"_abiCoder",s.getStatic(t,"getAbiCoder")()),s.defineReadOnly(this,"functions",{}),s.defineReadOnly(this,"errors",{}),s.defineReadOnly(this,"events",{}),s.defineReadOnly(this,"structs",{}),this.fragments.forEach(function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void m.warn("duplicate definition - constructor"):(_(e,"input",e.inputs),void s.defineReadOnly(n,"deploy",e));case"function":_(e,"input",e.inputs),_(e,"output",e.outputs),t=n.functions;break;case"event":_(e,"input",e.inputs),t=n.events;break;default:return}var r=e.format();t[r]?m.warn("duplicate definition - "+r):t[r]=e}),this.deploy||s.defineReadOnly(this,"deploy",b.ConstructorFragment.from({payable:!1,type:"constructor"})),s.defineReadOnly(this,"_isInterface",!0)}return i.prototype.format=function(t){t||(t=b.FormatTypes.full),t===b.FormatTypes.sighash&&m.throwArgumentError("interface does not support formatting sighash","format",t);var e=this.fragments.map(function(e){return e.format(t)});return t===b.FormatTypes.json?JSON.stringify(e.map(function(e){return JSON.parse(e)})):e},i.getAbiCoder=function(){return f.defaultAbiCoder},i.getAddress=function(e){return o.getAddress(e)},i.getSighash=function(e){return p.hexDataSlice(u.id(e.format()),0,4)},i.getEventTopic=function(e){return u.id(e.format())},i.prototype.getFunction=function(e){if(p.isHexString(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];m.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.functions).filter(function(e){return e.split("(")[0]===r});return 0===n.length?m.throwArgumentError("no matching function","name",r):1<n.length&&m.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[b.FunctionFragment.fromString(e).format()];return i||m.throwArgumentError("no matching function","signature",e),i},i.prototype.getEvent=function(e){if(p.isHexString(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];m.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter(function(e){return e.split("(")[0]===n});return 0===i.length?m.throwArgumentError("no matching event","name",n):1<i.length&&m.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[b.EventFragment.fromString(e).format()];return o||m.throwArgumentError("no matching event","signature",e),o},i.prototype.getSighash=function(e){return"string"==typeof e&&(e=this.getFunction(e)),s.getStatic(this.constructor,"getSighash")(e)},i.prototype.getEventTopic=function(e){return"string"==typeof e&&(e=this.getEvent(e)),s.getStatic(this.constructor,"getEventTopic")(e)},i.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},i.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},i.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},i.prototype.decodeFunctionData=function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=p.arrayify(t);return p.hexlify(r.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match function "+e.name+".","data",p.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))},i.prototype.encodeFunctionData=function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),p.hexlify(p.concat([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},i.prototype.decodeFunctionResult=function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=p.arrayify(t),n=null,i=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:"0x08c379a0"===p.hexlify(r.slice(0,4))&&(i="Error(string)",n=this._abiCoder.decode(["string"],r.slice(4))[0])}return m.throwError("call revert exception",y.Logger.errors.CALL_EXCEPTION,{method:e.format(),errorSignature:i,errorArgs:[n],reason:n})},i.prototype.encodeFunctionResult=function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),p.hexlify(this._abiCoder.encode(e.outputs,t||[]))},i.prototype.encodeFilterTopics=function(n,e){var r=this;"string"==typeof n&&(n=this.getEvent(n)),e.length>n.inputs.length&&m.throwError("too many arguments for "+n.format(),y.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});var i=[];n.anonymous||i.push(this.getEventTopic(n));var o=function(e,t){return"string"===e.type?u.id(t):"bytes"===e.type?c.keccak256(p.hexlify(t)):("address"===e.type&&r._abiCoder.encode(["address"],[t]),p.hexZeroPad(p.hexlify(t),32))};for(e.forEach(function(e,t){var r=n.inputs[t];r.indexed?null==e?i.push(null):"array"===r.baseType||"tuple"===r.baseType?m.throwArgumentError("filtering with tuples or arrays not supported","contract."+r.name,e):Array.isArray(e)?i.push(e.map(function(e){return o(r,e)})):i.push(o(r,e)):null!=e&&m.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+r.name,e)});i.length&&null===i[i.length-1];)i.pop();return i},i.prototype.encodeEventLog=function(e,n){var i=this;"string"==typeof e&&(e=this.getEvent(e));var o=[],a=[],s=[];return e.anonymous||o.push(this.getEventTopic(e)),n.length!==e.inputs.length&&m.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach(function(e,t){var r=n[t];if(e.indexed)if("string"===e.type)o.push(u.id(r));else if("bytes"===e.type)o.push(c.keccak256(r));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");o.push(i._abiCoder.encode([e.type],[r]))}else a.push(e),s.push(r)}),{data:this._abiCoder.encode(a,s),topics:o}},i.prototype.decodeEventLog=function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);p.isHexString(r[0],32)&&r[0].toLowerCase()===n||m.throwError("fragment/topic mismatch",y.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[];e.inputs.forEach(function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(b.ParamType.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))});var s=null!=r?this._abiCoder.decode(i,p.concat(r)):null,u=this._abiCoder.decode(o,t),c=[],f=0,l=0;e.inputs.forEach(function(e,t){if(e.indexed)if(null==s)c[t]=new g({_isIndexed:!0,hash:null});else if(a[t])c[t]=new g({_isIndexed:!0,hash:s[l++]});else try{c[t]=s[l++]}catch(e){c[t]=e}else try{c[t]=u[f++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){var r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{get:function(){throw w("property "+JSON.stringify(e.name),r)}}):c[e.name]=r}});for(var h=function(e){var t=c[e];t instanceof Error&&Object.defineProperty(c,e,{get:function(){throw w("index "+e,t)}})},d=0;d<c.length;d++)h(d);return Object.freeze(c)},i.prototype.parseTransaction=function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new v({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:a.BigNumber.from(e.value||"0")}):null},i.prototype.parseLog=function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new d({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})},i.isInterface=function(e){return!(!e||!e._isInterface)},i}();r.Interface=k},{"./_version":232,"./abi-coder":233,"./coders/abstract-coder":234,"./fragments":245,"@ethersproject/address":249,"@ethersproject/bignumber":253,"@ethersproject/bytes":255,"@ethersproject/hash":258,"@ethersproject/keccak256":259,"@ethersproject/logger":261,"@ethersproject/properties":263}],248:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="address/5.0.0-beta.134"},{}],249:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("bn.js"),o=e("@ethersproject/bytes"),i=e("@ethersproject/bignumber"),a=e("@ethersproject/keccak256"),s=e("@ethersproject/rlp"),u=e("@ethersproject/logger"),c=e("./_version"),f=new u.Logger(c.version);function l(e){o.isHexString(e,20)||f.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);var i=o.arrayify(a.keccak256(r));for(n=0;n<40;n+=2)8<=i[n>>1]>>4&&(t[n]=t[n].toUpperCase()),8<=(15&i[n>>1])&&(t[n+1]=t[n+1].toUpperCase());return"0x"+t.join("")}for(var h={},d=0;d<10;d++)h[String(d)]=String(d);for(d=0;d<26;d++)h[String.fromCharCode(65+d)]=String(10+d);var p,b=Math.floor((p=9007199254740991,Math.log10?Math.log10(p):Math.log(p)/Math.LN10));function y(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(function(e){return h[e]}).join("");t.length>=b;){var r=t.substring(0,b);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function m(e){var t=null;if("string"!=typeof e&&f.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&f.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==y(e)&&f.throwArgumentError("bad icap checksum","address",e),t=new n.BN(e.substring(4),36).toString(16);t.length<40;)t="0"+t;t=l("0x"+t)}else f.throwArgumentError("invalid address","address",e);return t}r.getAddress=m,r.isAddress=function(e){try{return m(e),!0}catch(e){}return!1},r.getIcapAddress=function(e){for(var t=new n.BN(m(e).substring(2),16).toString(36).toUpperCase();t.length<30;)t="0"+t;return"XE"+y("XE00"+t)+t},r.getContractAddress=function(t){var e=null;try{e=m(t.from)}catch(e){f.throwArgumentError("missing from address","transaction",t)}var r=o.stripZeros(o.arrayify(i.BigNumber.from(t.nonce).toHexString()));return m(o.hexDataSlice(a.keccak256(s.encode([e,r])),12))},r.getCreate2Address=function(e,t,r){return 32!==o.hexDataLength(t)&&f.throwArgumentError("salt must be 32 bytes","salt",t),32!==o.hexDataLength(r)&&f.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),m(o.hexDataSlice(a.keccak256(o.concat(["0xff",m(e),t,r])),12))}},{"./_version":248,"@ethersproject/bignumber":253,"@ethersproject/bytes":255,"@ethersproject/keccak256":259,"@ethersproject/logger":261,"@ethersproject/rlp":265,"bn.js":271}],250:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="bignumber/5.0.0-beta.138"},{}],251:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("bn.js"),o=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),n=e("./_version"),s=new a.Logger(n.version),u={},c=9007199254740991;r.isBigNumberish=function(e){return null!=e&&(f.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||o.isHexString(e)||"bigint"==typeof e||o.isBytes(e))};var f=function(){function n(e,t){var r=this.constructor;s.checkNew(r,n),e!==u&&s.throwError("cannot call constructor directly; use BigNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return n.prototype.fromTwos=function(e){return h(d(this).fromTwos(e))},n.prototype.toTwos=function(e){return h(d(this).toTwos(e))},n.prototype.abs=function(){return"-"===this._hex[0]?n.from(this._hex.substring(1)):this},n.prototype.add=function(e){return h(d(this).add(d(e)))},n.prototype.sub=function(e){return h(d(this).sub(d(e)))},n.prototype.div=function(e){return n.from(e).isZero()&&p("division by zero","div"),h(d(this).div(d(e)))},n.prototype.mul=function(e){return h(d(this).mul(d(e)))},n.prototype.mod=function(e){var t=d(e);return t.isNeg()&&p("cannot modulo negative values","mod"),h(d(this).umod(t))},n.prototype.pow=function(e){return h(d(this).pow(d(e)))},n.prototype.and=function(e){var t=d(e);return(this.isNegative()||t.isNeg())&&p("cannot 'and' negative values","and"),h(d(this).and(t))},n.prototype.or=function(e){var t=d(e);return(this.isNegative()||t.isNeg())&&p("cannot 'or' negative values","or"),h(d(this).or(t))},n.prototype.xor=function(e){var t=d(e);return(this.isNegative()||t.isNeg())&&p("cannot 'xor' negative values","xor"),h(d(this).xor(t))},n.prototype.mask=function(e){return(this.isNegative()||e<0)&&p("cannot mask negative values","mask"),h(d(this).maskn(e))},n.prototype.shl=function(e){return(this.isNegative()||e<0)&&p("cannot shift negative values","shl"),h(d(this).shln(e))},n.prototype.shr=function(e){return(this.isNegative()||e<0)&&p("cannot shift negative values","shr"),h(d(this).shrn(e))},n.prototype.eq=function(e){return d(this).eq(d(e))},n.prototype.lt=function(e){return d(this).lt(d(e))},n.prototype.lte=function(e){return d(this).lte(d(e))},n.prototype.gt=function(e){return d(this).gt(d(e))},n.prototype.gte=function(e){return d(this).gte(d(e))},n.prototype.isNegative=function(){return"-"===this._hex[0]},n.prototype.isZero=function(){return d(this).isZero()},n.prototype.toNumber=function(){try{return d(this).toNumber()}catch(e){p("overflow","toNumber",this.toString())}return null},n.prototype.toString=function(){return 0!==arguments.length&&s.throwError("bigNumber.toString does not accept parameters",a.Logger.errors.UNEXPECTED_ARGUMENT,{}),d(this).toString(10)},n.prototype.toHexString=function(){return this._hex},n.from=function(e){return e instanceof n?e:"string"==typeof e?e.match(/-?0x[0-9a-f]+/i)?new n(u,l(e)):e.match(/^-?[0-9]+$/)?new n(u,l(new i.BN(e))):s.throwArgumentError("invalid BigNumber string","value",e):"number"==typeof e?(e%1&&p("underflow","BigNumber.from",e),(c<=e||e<=-c)&&p("overflow","BigNumber.from",e),n.from(String(e))):"bigint"==typeof e?n.from(e.toString()):o.isBytes(e)?n.from(o.hexlify(e)):e._hex&&o.isHexString(e._hex)?n.from(e._hex):e.toHexString&&"string"==typeof(e=e.toHexString())?n.from(e):s.throwArgumentError("invalid BigNumber value","value",e)},n.isBigNumber=function(e){return!(!e||!e._isBigNumber)},n}();function l(e){if("string"!=typeof e)return l(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&s.throwArgumentError("invalid hex","value",e),"0x00"===(e=l(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));4<e.length&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function h(e){return f.from(l(e))}function d(e){var t=f.from(e).toHexString();return"-"===t[0]?new i.BN("-"+t.substring(3),16):new i.BN(t.substring(2),16)}function p(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),s.throwError(e,a.Logger.errors.NUMERIC_FAULT,n)}r.BigNumber=f},{"./_version":250,"@ethersproject/bytes":255,"@ethersproject/logger":261,"bn.js":271}],252:[function(e,t,r){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(r,"__esModule",{value:!0});var u=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),n=e("./_version"),f=new o.Logger(n.version),l=e("./bignumber"),c={},h=l.BigNumber.from(0),d=l.BigNumber.from(-1);function p(e,t,r,n){var i={fault:t,operation:r};return void 0!==n&&(i.value=n),f.throwError(e,o.Logger.errors.NUMERIC_FAULT,i)}for(var i="0";i.length<256;)i+=i;function b(e){if("number"!=typeof e)try{e=l.BigNumber.from(e).toNumber()}catch(e){}return"number"==typeof e&&0<=e&&e<=256&&!(e%1)?"1"+i.substring(0,e):f.throwArgumentError("invalid decimal size","decimals",e)}function y(e,t){null==t&&(t=0);var r=b(t),n=(e=l.BigNumber.from(e)).lt(h);n&&(e=e.mul(d));for(var i=e.mod(r).toString();i.length<r.length-1;)i="0"+i;return i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1],e=e.div(r).toString()+"."+i,n&&(e="-"+e),e}function m(e,t){null==t&&(t=0);var r=b(t);if("string"==typeof e&&e.match(/^-?[0-9.,]+$/)||f.throwArgumentError("invalid decimal value","value",e),r.length-1==0)return l.BigNumber.from(e);var n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&f.throwArgumentError("missing value","value",e);var i=e.split(".");2<i.length&&f.throwArgumentError("too many decimal points","value",e);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0"),a.length>r.length-1&&p("fractional component exceeds decimals","underflow","parseFixed");a.length<r.length-1;)a+="0";var s=l.BigNumber.from(o),u=l.BigNumber.from(a),c=s.mul(r).add(u);return n&&(c=c.mul(d)),c}r.formatFixed=y,r.parseFixed=m;var v=function(){function a(e,t,r,n){this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=b(n),Object.freeze(this)}return a.from=function(n){if(n instanceof a)return n;var e=!0,t=128,r=18;if("string"==typeof n){if("fixed"===n);else if("ufixed"===n)e=!1;else if(null!=n){var i=n.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||f.throwArgumentError("invalid fixed format","format",n),e="u"!==i[1],t=parseInt(i[2]),r=parseInt(i[3])}}else if(n){var o=function(e,t,r){return null==n[e]?r:(s(n[e])!==t&&f.throwArgumentError("invalid fixed format ("+e+" not "+t+")","format."+e,n[e]),n[e])};e=o("signed","boolean",e),t=o("width","number",t),r=o("decimals","number",r)}return t%8&&f.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",t),80<r&&f.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new a(c,e,t,r)},a}();r.FixedFormat=v;var a=function(){function a(e,t,r,n){var i=this.constructor;f.checkNew(i,a),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}return a.prototype._checkFormat=function(e){this.format.name!==e.format.name&&f.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},a.prototype.addUnsafe=function(e){this._checkFormat(e);var t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return a.fromValue(t.add(r),this.format.decimals,this.format)},a.prototype.subUnsafe=function(e){this._checkFormat(e);var t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return a.fromValue(t.sub(r),this.format.decimals,this.format)},a.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return a.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)},a.prototype.divUnsafe=function(e){this._checkFormat(e);var t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return a.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)},a.prototype.round=function(e){null==e&&(e=0),(e<0||80<e||e%1)&&f.throwArgumentError("invalid decimal count","decimals",e);var t=this.toString().split(".");if(t[1].length<=e)return this;var r="0."+i.substring(0,e)+"5";return t=this.addUnsafe(a.fromString(r,this.format))._value.split("."),a.fromString(t[0]+"."+t[1].substring(0,e))},a.prototype.toString=function(){return this._value},a.prototype.toHexString=function(e){if(null==e)return this._hex;e%8&&f.throwArgumentError("invalid byte width","width",e);var t=l.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return u.hexZeroPad(t,e/8)},a.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},a.prototype.toFormat=function(e){return a.fromString(this._value,e)},a.fromValue=function(e,t,r){return null!=r||null==t||l.isBigNumberish(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),a.fromString(y(e,t),v.from(r))},a.fromString=function(e,t){null==t&&(t="fixed");var r=v.from(t),n=m(e,r.decimals);!r.signed&&n.lt(h)&&p("unsigned value cannot be negative","overflow","value",e);var i=null;i=r.signed?n.toTwos(r.width).toHexString():(i=n.toHexString(),u.hexZeroPad(i,r.width/8));var o=y(n,r.decimals);return new a(c,i,o,r)},a.fromBytes=function(e,t){null==t&&(t="fixed");var r=v.from(t);if(u.arrayify(e).length>r.width/8)throw new Error("overflow");var n=l.BigNumber.from(e);r.signed&&(n=n.fromTwos(r.width));var i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=y(n,r.decimals);return new a(c,i,o,r)},a.from=function(e,t){if("string"==typeof e)return a.fromString(e,t);if(u.isBytes(e))return a.fromBytes(e,t);try{return a.fromValue(e,0,t)}catch(e){if(e.code!==o.Logger.errors.INVALID_ARGUMENT)throw e}return f.throwArgumentError("invalid FixedNumber value","value",e)},a.isFixedNumber=function(e){return!(!e||!e._isFixedNumber)},a}();r.FixedNumber=a},{"./_version":250,"./bignumber":251,"@ethersproject/bytes":255,"@ethersproject/logger":261}],253:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./bignumber");r.BigNumber=n.BigNumber;var i=e("./fixednumber");r.formatFixed=i.formatFixed,r.FixedFormat=i.FixedFormat,r.FixedNumber=i.FixedNumber,r.parseFixed=i.parseFixed},{"./bignumber":251,"./fixednumber":252}],254:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="bytes/5.0.0-beta.137"},{}],255:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("@ethersproject/logger"),i=e("./_version"),u=new n.Logger(i.version);function a(e){return!!e.toHexString}function o(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function c(e){return d(e)&&!(e.length%2)||s(e)}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(r<0||256<=r||r%1)return!1}return!0}function f(e,t){if(t||(t={}),"number"==typeof e){u.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),o(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),d(e)){var n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0x0"+n.substring(2):"right"===t.hexPad?n+="0":u.throwArgumentError("hex data is odd-length","value",e));r=[];for(var i=0;i<n.length;i+=2)r.push(parseInt(n.substring(i,i+2),16));return o(new Uint8Array(r))}return s(e)?o(new Uint8Array(e)):u.throwArgumentError("invalid arrayify value","value",e)}function l(e){var t=e.map(function(e){return f(e)}),r=t.reduce(function(e,t){return e+t.length},0),n=new Uint8Array(r);return t.reduce(function(e,t){return n.set(t,e),e+t.length},0),o(n)}function h(e,t){(e=f(e)).length>t&&u.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),o(r)}function d(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}r.isBytesLike=c,r.isBytes=s,r.arrayify=f,r.concat=l,r.stripZeros=function(e){var t=f(e);if(0===t.length)return t;for(var r=0;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t},r.zeroPad=h,r.isHexString=d;var p="0123456789abcdef";function b(e,t){if(t||(t={}),"number"==typeof e){u.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r=p[15&e]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":u.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){for(var n="0x",i=0;i<e.length;i++){var o=e[i];n+=p[(240&o)>>4]+p[15&o]}return n}return u.throwArgumentError("invalid hexlify value","value",e)}function y(e){"string"!=typeof e&&(e=b(e)),d(e)||u.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function m(e,t){for("string"!=typeof e?e=b(e):d(e)||u.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&u.throwArgumentError("value out of range","value",t);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function v(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(c(e)){var r=f(e);65!==r.length&&u.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=b(r.slice(0,32)),t.s=b(r.slice(32,64)),t.v=r[64],t.recoveryParam=1-t.v%2,t.v<27&&(0===t.v||1===t.v?t.v+=27:u.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam&&(r[32]|=128),t._vs=b(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var n=h(f(t._vs),32);t._vs=b(n);var i=128<=n[0]?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&u.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var o=b(n);null==t.s?t.s=o:t.s!==o&&u.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?u.throwArgumentError("signature missing v and recoveryParam","signature",e):t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&u.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&d(t.r)?t.r=m(t.r,32):u.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&d(t.s)?t.s=m(t.s,32):u.throwArgumentError("signature missing or invalid s","signature",e);var a=f(t.s);128<=a[0]&&u.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(a[0]|=128);var s=b(a);t._vs&&(d(t._vs)||u.throwArgumentError("signature invalid _vs","signature",e),t._vs=m(t._vs,32)),null==t._vs?t._vs=s:t._vs!==s&&u.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}r.hexlify=b,r.hexDataLength=function(e){if("string"!=typeof e)e=b(e);else if(!d(e)||e.length%2)return null;return(e.length-2)/2},r.hexDataSlice=function(e,t,r){return"string"!=typeof e?e=b(e):(!d(e)||e.length%2)&&u.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)},r.hexConcat=function(e){var t="0x";return e.forEach(function(e){t+=b(e).substring(2)}),t},r.hexValue=function(e){var t=y(b(e,{hexPad:"left"}));return"0x"===t?"0x0":t},r.hexStripZeros=y,r.hexZeroPad=m,r.splitSignature=v,r.joinSignature=function(e){return b(l([(e=v(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},{"./_version":254,"@ethersproject/logger":261}],256:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("@ethersproject/bignumber");r.AddressZero="0x0000000000000000000000000000000000000000";r.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000";r.EtherSymbol="Ξ";var i=n.BigNumber.from(-1);r.NegativeOne=i;var o=n.BigNumber.from(0);r.Zero=o;var a=n.BigNumber.from(1);r.One=a;var s=n.BigNumber.from(2);r.Two=s;var u=n.BigNumber.from("1000000000000000000");r.WeiPerEther=u;var c=n.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");r.MaxUint256=c},{"@ethersproject/bignumber":253}],257:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="hash/5.0.0-beta.133"},{}],258:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("@ethersproject/bytes"),o=e("@ethersproject/strings"),a=e("@ethersproject/keccak256"),n=e("@ethersproject/logger"),s=e("./_version"),u=new n.Logger(s.version),c=new Uint8Array([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=new RegExp("^((.*)\\.)?([^.]+)$");r.isValidName=function(e){try{for(var t=e.split("."),r=0;r<t.length;r++)if(0===o.nameprep(t[r]).length)throw new Error("empty");return!0}catch(e){}return!1},r.namehash=function(e){"string"!=typeof e&&u.throwArgumentError("invalid address - "+String(e),"name",e);for(var t=c;e.length;){var r=e.match(f),n=o.toUtf8Bytes(o.nameprep(r[3]));t=a.keccak256(i.concat([t,a.keccak256(n)])),e=r[2]||""}return i.hexlify(t)},r.id=function(e){return a.keccak256(o.toUtf8Bytes(e))},r.messagePrefix="Ethereum Signed Message:\n",r.hashMessage=function(e){return"string"==typeof e&&(e=o.toUtf8Bytes(e)),a.keccak256(i.concat([o.toUtf8Bytes(r.messagePrefix),o.toUtf8Bytes(String(e.length)),e]))}},{"./_version":257,"@ethersproject/bytes":255,"@ethersproject/keccak256":259,"@ethersproject/logger":261,"@ethersproject/strings":269}],259:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("js-sha3")),o=e("@ethersproject/bytes");r.keccak256=function(e){return"0x"+i.default.keccak_256(o.arrayify(e))}},{"@ethersproject/bytes":255,"js-sha3":272}],260:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="logger/5.0.0-beta.137"},{}],261:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=!1,s=!1,i={debug:1,default:2,info:2,warning:3,error:4,off:5},o=i.default,u=e("./_version"),c=null;var f,a,l,h,d=function(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(e){r.push(t)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();(a=f=r.LogLevel||(r.LogLevel={})).DEBUG="DEBUG",a.INFO="INFO",a.WARNING="WARNING",a.ERROR="ERROR",a.OFF="OFF",(h=l=r.ErrorCode||(r.ErrorCode={})).UNKNOWN_ERROR="UNKNOWN_ERROR",h.NOT_IMPLEMENTED="NOT_IMPLEMENTED",h.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",h.NETWORK_ERROR="NETWORK_ERROR",h.SERVER_ERROR="SERVER_ERROR",h.TIMEOUT="TIMEOUT",h.BUFFER_OVERRUN="BUFFER_OVERRUN",h.NUMERIC_FAULT="NUMERIC_FAULT",h.MISSING_NEW="MISSING_NEW",h.INVALID_ARGUMENT="INVALID_ARGUMENT",h.MISSING_ARGUMENT="MISSING_ARGUMENT",h.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",h.CALL_EXCEPTION="CALL_EXCEPTION",h.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",h.NONCE_EXPIRED="NONCE_EXPIRED",h.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",h.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT";var p=function(){function a(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return a.prototype._log=function(e,t){var r=e.toLowerCase();null==i[r]&&this.throwArgumentError("invalid log level name","logLevel",e),i[r]<o||console.log.apply(console,t)},a.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log(a.levels.DEBUG,e)},a.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log(a.levels.INFO,e)},a.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log(a.levels.WARNING,e)},a.prototype.makeError=function(e,t,r){if(s)return this.makeError("censored error",t,{});t||(t=a.errors.UNKNOWN_ERROR),r||(r={});var n=[];Object.keys(r).forEach(function(t){try{n.push(t+"="+JSON.stringify(r[t]))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push("code="+t),n.push("version="+this.version);var i=e;n.length&&(e+=" ("+n.join(", ")+")");var o=new Error(e);return o.reason=i,o.code=t,Object.keys(r).forEach(function(e){o[e]=r[e]}),o},a.prototype.throwError=function(e,t,r){throw this.makeError(e,t,r)},a.prototype.throwArgumentError=function(e,t,r){return this.throwError(e,a.errors.INVALID_ARGUMENT,{argument:t,value:r})},a.prototype.checkNormalize=function(e){null==e&&(e="platform missing String.prototype.normalize"),d&&this.throwError("platform missing String.prototype.normalize",a.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:d})},a.prototype.checkSafeUint53=function(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||9007199254740991<=e)&&this.throwError(t,a.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,a.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},a.prototype.checkArgumentCount=function(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,a.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),t<e&&this.throwError("too many arguments"+r,a.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},a.prototype.checkNew=function(e,t){e!==Object&&null!=e||this.throwError("missing new",a.errors.MISSING_NEW,{name:t.name})},a.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",a.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",a.errors.MISSING_NEW,{name:t.name})},a.globalLogger=function(){return c||(c=new a(u.version)),c},a.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",a.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",a.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!e,n=!!t},a.setLogLevel=function(e){var t=i[e];null!=t?o=t:a.globalLogger().warn("invalid log level - "+e)},a.errors=l,a.levels=f,a}();r.Logger=p},{"./_version":260}],262:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="properties/5.0.0-beta.140"},{}],263:[function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=function(e,a,s,u){return new(s||(s=Promise))(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(n,i)}o((u=u.apply(e,a||[])).next())})},o=function(r,n){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=n.call(r,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};Object.defineProperty(r,"__esModule",{value:!0});var a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version);function c(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}r.defineReadOnly=c,r.getStatic=function(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==i(e.prototype))break;e=Object.getPrototypeOf(e.prototype).constructor}return null},r.resolveProperties=function(r){return n(this,void 0,void 0,function(){var t;return o(this,function(e){switch(e.label){case 0:return t=Object.keys(r).map(function(t){var e=r[t];return Promise.resolve(e).then(function(e){return{key:t,value:e}})}),[4,Promise.all(t)];case 1:return[2,e.sent().reduce(function(e,t){return e[t.key]=t.value,e},{})]}})})},r.checkProperties=function(t,r){t&&"object"===i(t)||u.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(function(e){r[e]||u.throwArgumentError("invalid object key - "+e,"transaction:"+e,t)})},r.shallowCopy=function(e){var t={};for(var r in e)t[r]=e[r];return t};var f={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function l(e){if(function e(t){if(null==t||f[i(t)])return!0;if(Array.isArray(t)||"object"===i(t)){if(!Object.isFrozen(t))return!1;for(var r=Object.keys(t),n=0;n<r.length;n++)if(!e(t[r[n]]))return!1;return!0}return u.throwArgumentError("Cannot deepCopy "+i(t),"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(function(e){return h(e)}));if("object"!==i(e))return u.throwArgumentError("Cannot deepCopy "+i(e),"object",e);var t={};for(var r in e){var n=e[r];void 0!==n&&c(t,r,h(n))}return t}function h(e){return l(e)}r.deepCopy=h;var d=function(e){for(var t in e)this[t]=h(e[t])};r.Description=d},{"./_version":262,"@ethersproject/logger":261}],264:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="rlp/5.0.0-beta.132"},{}],265:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=e("@ethersproject/bytes"),u=e("@ethersproject/logger"),n=e("./_version"),c=new u.Logger(n.version);function a(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function f(e,t,r){for(var n=0,i=0;i<r;i++)n=256*n+e[t+i];return n}function l(e,t,r,n){for(var i=[];r<t+1+n;){var o=h(e,r);i.push(o.result),t+1+n<(r+=o.consumed)&&c.throwError("child data too short",u.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function h(e,t){if(0===e.length&&c.throwError("data too short",u.Logger.errors.BUFFER_OVERRUN,{}),248<=e[t]){t+1+(i=e[t]-247)>e.length&&c.throwError("data short segment too short",u.Logger.errors.BUFFER_OVERRUN,{});var r=f(e,t+1,i);return t+1+i+r>e.length&&c.throwError("data long segment too short",u.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+i,i+r)}if(192<=e[t]){var n=e[t]-192;return t+1+n>e.length&&c.throwError("data array too short",u.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,n)}if(184<=e[t]){var i;t+1+(i=e[t]-183)>e.length&&c.throwError("data array too short",u.Logger.errors.BUFFER_OVERRUN,{});var o=f(e,t+1,i);return t+1+i+o>e.length&&c.throwError("data array too short",u.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+i+o,result:s.hexlify(e.slice(t+1+i,t+1+i+o))}}if(128<=e[t]){var a=e[t]-128;return t+1+a>e.length&&c.throwError("data too short",u.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+a,result:s.hexlify(e.slice(t+1,t+1+a))}}return{consumed:1,result:s.hexlify(e[t])}}r.encode=function(e){return s.hexlify(function t(e){if(Array.isArray(e)){var r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;var n=a(r.length);return n.unshift(247+n.length),n.concat(r)}s.isBytesLike(e)||c.throwArgumentError("RLP object must be BytesLike","object",e);var i=Array.prototype.slice.call(s.arrayify(e));if(1===i.length&&i[0]<=127)return i;if(i.length<=55)return i.unshift(128+i.length),i;var o=a(i.length);return o.unshift(183+o.length),o.concat(i)}(e))},r.decode=function(e){var t=s.arrayify(e),r=h(t,0);return r.consumed!==t.length&&c.throwArgumentError("invalid rlp data","data",e),r.result}},{"./_version":264,"@ethersproject/bytes":255,"@ethersproject/logger":261}],266:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.version="strings/5.0.0-beta.136"},{}],267:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("@ethersproject/constants"),i=e("@ethersproject/bytes"),o=e("./utf8");r.formatBytes32String=function(e){var t=o.toUtf8Bytes(e);if(31<t.length)throw new Error("bytes32 string must be less than 32 bytes");return i.hexlify(i.concat([t,n.HashZero]).slice(0,32))},r.parseBytes32String=function(e){var t=i.arrayify(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return o.toUtf8String(t.slice(0,r))}},{"./utf8":270,"@ethersproject/bytes":255,"@ethersproject/constants":256}],268:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./utf8");function i(e,r){r||(r=function(e){return[parseInt(e,16)]});var n=0,i={};return e.split(",").forEach(function(e){var t=e.split(":");n+=parseInt(t[0],16),i[n]=r(t[1])}),i}function o(e){var r=0;return e.split(",").map(function(e){var t=e.split("-");return 1===t.length?t[1]="0":""===t[1]&&(t[1]="1"),{l:r+parseInt(t[0],16),h:r=parseInt(t[1],16)}})}function a(e,t){for(var r=0,n=0;n<t.length;n++){var i=t[n];if((r+=i.l)<=e&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}var s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(e){return parseInt(e,16)}),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],f=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),l=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),h=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t}),d=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(e){return!!a(e,s)}function b(e){var t=a(e,c);if(t)return[e+t.s];var r=f[e];if(r)return r;var n=l[e];if(n)return[e+n[0]];var i=h[e];return i||null}function y(e){return!!a(e,d)}r._nameprepTableA1=p,r._nameprepTableB2=b,r._nameprepTableC=y,r.nameprep=function(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t=n.toUtf8CodePoints(e);t=t.map(function(e){if(0<=u.indexOf(e))return[];if(65024<=e&&e<=65039)return[];var t=b(e);return t||[e]}).reduce(function(t,e){return e.forEach(function(e){t.push(e)}),t},[]),(t=n.toUtf8CodePoints(n._toUtf8String(t),n.UnicodeNormalizationForm.NFKC)).forEach(function(e){if(y(e))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(function(e){if(p(e))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var r=n._toUtf8String(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw new Error("invalid hyphen");if(63<r.length)throw new Error("too long");return r}},{"./utf8":270}],269:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./bytes32");r.formatBytes32String=n.formatBytes32String,r.parseBytes32String=n.parseBytes32String;var i=e("./idna");r.nameprep=i.nameprep;var o=e("./utf8");r._toEscapedUtf8String=o._toEscapedUtf8String,r.toUtf8Bytes=o.toUtf8Bytes,r.toUtf8CodePoints=o.toUtf8CodePoints,r.toUtf8String=o.toUtf8String,r.UnicodeNormalizationForm=o.UnicodeNormalizationForm,r.Utf8ErrorFuncs=o.Utf8ErrorFuncs,r.Utf8ErrorReason=o.Utf8ErrorReason},{"./bytes32":267,"./idna":268,"./utf8":270}],270:[function(e,t,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var s,r,l,n,h=e("@ethersproject/bytes"),i=e("@ethersproject/logger"),o=e("./_version"),u=new i.Logger(o.version);function a(e,t,r,n,i){if(e!==l.BAD_PREFIX&&e!==l.UNEXPECTED_CONTINUE)return e===l.OVERRUN?r.length-t-1:0;for(var o=0,a=t+1;a<r.length&&r[a]>>6==2;a++)o++;return o}function c(e,t){null==t&&(t=f.Utf8ErrorFuncs.error),e=h.arrayify(e);for(var r=[],n=0;n<e.length;){var i=e[n++];if(i>>7!=0){var o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){n+=t(128==(192&i)?l.UNEXPECTED_CONTINUE:l.BAD_PREFIX,n-1,e,r);continue}o=3,a=65535}if(n-1+o>=e.length)n+=t(l.OVERRUN,n-1,e,r);else{for(var s=i&(1<<8-o-1)-1,u=0;u<o;u++){var c=e[n];if(128!=(192&c)){n+=t(l.MISSING_CONTINUE,n,e,r),s=null;break}s=s<<6|63&c,n++}null!==s&&(1114111<s?n+=t(l.OUT_OF_RANGE,n-1-o,e,r,s):55296<=s&&s<=57343?n+=t(l.UTF16_SURROGATE,n-1-o,e,r,s):s<=a?n+=t(l.OVERLONG,n-1-o,e,r,s):r.push(s))}}else r.push(i)}return r}function d(e,t){void 0===t&&(t=s.current),t!=s.current&&(u.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if(55296==(64512&i)){n++;var o=e.charCodeAt(n);if(n>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string");var a=65536+((1023&i)<<10)+(1023&o);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return h.arrayify(r)}function p(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function b(e){return e.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))}).join("")}(r=s=f.UnicodeNormalizationForm||(f.UnicodeNormalizationForm={})).current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD",(n=l=f.Utf8ErrorReason||(f.Utf8ErrorReason={})).UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation",f.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,n,i){return u.throwArgumentError("invalid codepoint at offset "+t+"; "+e,"bytes",r)},ignore:a,replace:function(e,t,r,n,i){return e===l.OVERLONG?(n.push(i),0):(n.push(65533),a(e,t,r))}}),f.toUtf8Bytes=d,f._toEscapedUtf8String=function(e,t){return'"'+c(e,t).map(function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(32<=e&&e<127)return String.fromCharCode(e)}return e<=65535?p(e):p(55296+((e-=65536)>>10&1023))+p(56320+(1023&e))}).join("")+'"'},f._toUtf8String=b,f.toUtf8String=function(e,t){return b(c(e,t))},f.toUtf8CodePoints=function(e,t){return void 0===t&&(t=s.current),c(d(e,t))}},{"./_version":266,"@ethersproject/bytes":255,"@ethersproject/logger":261}],271:[function(S,e,t){"use strict";function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){function y(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function m(e,t,r){if(m.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var n;"object"===A(e)?e.exports=m:(void 0).BN=m,(m.BN=m).wordSize=26;try{n=S("buffer").Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=49<=a&&a<=54?a-49+10:17<=a&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}m.isBN=function(e){return e instanceof m||null!==e&&"object"===A(e)&&e.constructor.wordSize===m.wordSize&&Array.isArray(e.words)},m.max=function(e,t){return 0<e.cmp(t)?e:t},m.min=function(e,t){return e.cmp(t)<0?e:t},m.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===A(e))return this._initArray(e,t,r);"hex"===t&&(t=16),y(t===(0|t)&&2<=t&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},m.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),this.length=e<67108864?(this.words=[67108863&e],1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],2):(y(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],3),"le"===r&&this._initArray(this.toArray(),t,r)},m.prototype._initArray=function(e,t,r){if(y("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,a=0;if("be"===r)for(n=e.length-1,i=0;0<=n;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);else if("le"===r)for(i=n=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);return this.strip()},m.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;t<=r;r-=6)i=a(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,26<=(o+=24)&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},m.prototype._parseBase=function(e,t,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c<s;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=l(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},m.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},m.prototype.clone=function(){var e=new m(null);return this.copy(e),e},m.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},m.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},m.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},m.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],d=[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],p=[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];function i(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;n=(r.length=n)-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[d])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}m.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<n|i)).toString(16);r=0!==(i=a>>>24-n&16777215)||o!==this.length-1?h[6-s.length]+s+r:s+r,26<=(n+=2)&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var u=d[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(c).toString(e);r=(f=f.idivn(c)).isZero()?l+r:h[u-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}y(!1,"Base should be between 2 and 36")},m.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},m.prototype.toJSON=function(){return this.toString(16)},m.prototype.toBuffer=function(e,t){return y(void 0!==n),this.toArrayLike(n,e,t)},m.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},m.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);y(n<=i,"byte array longer than desired length"),y(0<i,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,u=new e(i),c=this.clone();if(s){for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[a]=o;for(;a<i;a++)u[a]=0}else{for(a=0;a<i-n;a++)u[a]=0;for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[i-a-1]=o}return u},m.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,r=0;return 4096<=t&&(r+=13,t>>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},m.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},m.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},m.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},m.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},m.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},m.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},m.prototype.isNeg=function(){return 0!==this.negative},m.prototype.neg=function(){return this.clone().ineg()},m.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},m.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},m.prototype.ior=function(e){return y(0==(this.negative|e.negative)),this.iuor(e)},m.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},m.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},m.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},m.prototype.iand=function(e){return y(0==(this.negative|e.negative)),this.iuand(e)},m.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},m.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},m.prototype.iuxor=function(e){var t,r;r=this.length>e.length?(t=this,e):(t=e,this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},m.prototype.ixor=function(e){return y(0==(this.negative|e.negative)),this.iuxor(e)},m.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},m.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},m.prototype.inotn=function(e){y("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0<r&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return 0<r&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},m.prototype.notn=function(e){return this.clone().inotn(e)},m.prototype.setn=function(e,t){y("number"==typeof e&&0<=e);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},m.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();n=this.length>e.length?(r=this,e):(r=e,this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},m.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},m.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;n=0<i?(r=this,e):(r=e,this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},m.prototype.sub=function(e){return this.clone().isub(e)};var o=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,h=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,y=0|a[2],m=8191&y,v=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],S=8191&k,A=k>>>13,E=0|a[5],x=8191&E,M=E>>>13,j=0|a[6],I=8191&j,O=j>>>13,T=0|a[7],B=8191&T,C=T>>>13,R=0|a[8],N=8191&R,U=R>>>13,P=0|a[9],L=8191&P,F=P>>>13,D=0|s[0],q=8191&D,z=D>>>13,H=0|s[1],K=8191&H,V=H>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],J=8191&X,Z=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,he=fe>>>13,de=0|s[9],pe=8191&de,be=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,q))|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(h,q)|0))<<13)|0;c=((o=Math.imul(h,z))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(b,q)|0,o=Math.imul(b,z);var me=(c+(n=n+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(h,K)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,z))+Math.imul(v,q)|0,o=Math.imul(v,z),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0;var ve=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,V)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ge=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0;var we=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Z)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(I,q),i=(i=Math.imul(I,z))+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var ke=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Se=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,z))+Math.imul(U,q)|0,o=Math.imul(U,z),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(x,J)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var Ae=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(F,q)|0,o=Math.imul(F,z),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(U,K)|0,o=o+Math.imul(U,V)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Ee=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,V))+Math.imul(F,K)|0,o=Math.imul(F,V),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(U,G)|0,o=o+Math.imul(U,Y)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(m,le)|0,i=(i=i+Math.imul(m,he)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,he)|0;var xe=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(U,J)|0,o=o+Math.imul(U,Z)|0,n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,he)|0;var Me=(c+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(U,Q)|0,o=o+Math.imul(U,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,he)|0;var je=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(U,re)|0,o=o+Math.imul(U,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,he)|0;var Ie=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(U,oe)|0,o=o+Math.imul(U,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,he)|0;var Oe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(U,ue)|0,o=o+Math.imul(U,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,he)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,he)|0;var Te=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,be)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,le)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(U,le)|0,o=o+Math.imul(U,he)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,he))+Math.imul(F,le)|0,o=Math.imul(F,he);var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,be)|0)+Math.imul(U,pe)|0))<<13)|0;c=((o=o+Math.imul(U,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var Re=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,be))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,u[0]=ye,u[1]=me,u[2]=ve,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=Se,u[8]=Ae,u[9]=Ee,u[10]=xe,u[11]=Me,u[12]=je,u[13]=Ie,u[14]=Oe,u[15]=Te,u[16]=Be,u[17]=Ce,u[18]=Re,0!==c&&(u[19]=c,r.length++),r};function s(e,t,r){return(new u).mulp(e,t,r)}function u(e,t){this.x=e,this.y=t}Math.imul||(o=i),m.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?o(this,e,t):r<63?i(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),h=67108863&l;s=67108863&(h=h+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):s(this,e,t)},u.prototype.makeRBT=function(e){for(var t=new Array(e),r=m.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},u.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},u.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},u.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,h=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],y=r[f+d+a],m=n[f+d+a],v=l*y-h*m;m=l*m+h*y,y=v,r[f+d]=p+y,n[f+d]=b+m,r[f+d+a]=p-y,n[f+d+a]=b-m,d!==s&&(v=u*l-c*h,h=u*h+c*l,l=v)}},u.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},u.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},u.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},u.prototype.convert13b=function(e,t,r,n){for(var i=0,o=0;o<t;o++)i+=0|e[o],r[2*o]=8191&i,i>>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<n;++o)r[o]=0;y(0===i),y(0==(-8192&i))},u.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},u.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},m.prototype.mul=function(e){var t=new m(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},m.prototype.mulf=function(e){var t=new m(null);return t.words=new Array(this.length+e.length),s(this,e,t)},m.prototype.imul=function(e){return this.clone().mulTo(e,this)},m.prototype.imuln=function(e){y("number"==typeof e),y(e<67108864);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,i=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},m.prototype.muln=function(e){return this.clone().imuln(e)},m.prototype.sqr=function(){return this.mul(this)},m.prototype.isqr=function(){return this.imul(this.clone())},m.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new m(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},m.prototype.iushln=function(e){y("number"==typeof e&&0<=e);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,s=(0|this.words[t])-a<<r;this.words[t]=s|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;0<=t;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},m.prototype.ishln=function(e){return y(0===this.negative),this.iushln(e)},m.prototype.iushrn=function(e,t,r){var n;y("number"==typeof e&&0<=e),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,s=r;if(n-=o,n=Math.max(0,n),s){for(var u=0;u<o;u++)s.words[u]=this.words[u];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;0<=u&&(0!==c||n<=u);u--){var f=0|this.words[u];this.words[u]=c<<26-i|f>>>i,c=f&a}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},m.prototype.ishrn=function(e,t,r){return y(0===this.negative),this.iushrn(e,t,r)},m.prototype.shln=function(e){return this.clone().ishln(e)},m.prototype.ushln=function(e){return this.clone().iushln(e)},m.prototype.shrn=function(e){return this.clone().ishrn(e)},m.prototype.ushrn=function(e){return this.clone().iushrn(e)},m.prototype.testn=function(e){y("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},m.prototype.imaskn=function(e){y("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26;if(y(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},m.prototype.maskn=function(e){return this.clone().imaskn(e)},m.prototype.iaddn=function(e){return y("number"==typeof e),y(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},m.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},m.prototype.isubn=function(e){if(y("number"==typeof e),y(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},m.prototype.addn=function(e){return this.clone().iaddn(e)},m.prototype.subn=function(e){return this.clone().isubn(e)},m.prototype.iabs=function(){return this.negative=0,this},m.prototype.abs=function(){return this.clone().iabs()},m.prototype._ishlnsubmul=function(e,t,r){var n,i,o=e.length+r;this._expand(o);var a=0;for(n=0;n<e.length;n++){i=(0|this.words[n+r])+a;var s=(0|e.words[n])*t;a=((i-=67108863&s)>>26)-(s/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)a=(i=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&i;if(0===a)return this.strip();for(y(-1===a),n=a=0;n<this.length;n++)a=(i=-(0|this.words[n])+a)>>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},m.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,s=n.length-i.length;if("mod"!==t){(a=new m(null)).length=s+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,a&&(a.words[s]=1));for(var f=s-1;0<=f;f--){var l=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,f);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);a&&(a.words[f]=l)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},m.prototype.divmod=function(e,t,r){return y(!e.isZero()),this.isZero()?{div:new m(0),mod:new m(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new m(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new m(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new m(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},m.prototype.div=function(e){return this.divmod(e,"div",!1).div},m.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},m.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},m.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},m.prototype.modn=function(e){y(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;0<=n;n--)r=(t*r+(0|this.words[n]))%e;return r},m.prototype.idivn=function(e){y(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},m.prototype.divn=function(e){return this.clone().idivn(e)},m.prototype.egcd=function(e){y(0===e.negative),y(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new m(1),i=new m(0),o=new m(0),a=new m(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),c=t.clone();!t.isZero();){for(var f=0,l=1;0==(t.words[0]&l)&&f<26;++f,l<<=1);if(0<f)for(t.iushrn(f);0<f--;)(n.isOdd()||i.isOdd())&&(n.iadd(u),i.isub(c)),n.iushrn(1),i.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(0<h)for(r.iushrn(h);0<h--;)(o.isOdd()||a.isOdd())&&(o.iadd(u),a.isub(c)),o.iushrn(1),a.iushrn(1);0<=t.cmp(r)?(t.isub(r),n.isub(o),i.isub(a)):(r.isub(t),o.isub(n),a.isub(i))}return{a:o,b:a,gcd:r.iushln(s)}},m.prototype._invmp=function(e){y(0===e.negative),y(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new m(1),o=new m(0),a=r.clone();0<t.cmpn(1)&&0<r.cmpn(1);){for(var s=0,u=1;0==(t.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(t.iushrn(s);0<s--;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var c=0,f=1;0==(r.words[0]&f)&&c<26;++c,f<<=1);if(0<c)for(r.iushrn(c);0<c--;)o.isOdd()&&o.iadd(a),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(o)):(r.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},m.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var n=r.negative=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},m.prototype.invm=function(e){return this.egcd(e).a.umod(e)},m.prototype.isEven=function(){return 0==(1&this.words[0])},m.prototype.isOdd=function(){return 1==(1&this.words[0])},m.prototype.andln=function(e){return this.words[0]&e},m.prototype.bincn=function(e){y("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var i=n,o=r;0!==i&&o<this.length;o++){var a=0|this.words[o];i=(a+=i)>>>26,a&=67108863,this.words[o]=a}return 0!==i&&(this.words[o]=i,this.length++),this},m.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},m.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)t=1;else{r&&(e=-e),y(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},m.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},m.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:i<n&&(t=1);break}}return t},m.prototype.gtn=function(e){return 1===this.cmpn(e)},m.prototype.gt=function(e){return 1===this.cmp(e)},m.prototype.gten=function(e){return 0<=this.cmpn(e)},m.prototype.gte=function(e){return 0<=this.cmp(e)},m.prototype.ltn=function(e){return-1===this.cmpn(e)},m.prototype.lt=function(e){return-1===this.cmp(e)},m.prototype.lten=function(e){return this.cmpn(e)<=0},m.prototype.lte=function(e){return this.cmp(e)<=0},m.prototype.eqn=function(e){return 0===this.cmpn(e)},m.prototype.eq=function(e){return 0===this.cmp(e)},m.red=function(e){return new _(e)},m.prototype.toRed=function(e){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},m.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},m.prototype._forceRed=function(e){return this.red=e,this},m.prototype.forceRed=function(e){return y(!this.red,"Already a number in reduction context"),this._forceRed(e)},m.prototype.redAdd=function(e){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},m.prototype.redIAdd=function(e){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},m.prototype.redSub=function(e){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},m.prototype.redISub=function(e){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},m.prototype.redShl=function(e){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},m.prototype.redMul=function(e){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},m.prototype.redIMul=function(e){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},m.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},m.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},m.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},m.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},m.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},m.prototype.redPow=function(e){return y(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new m(t,16),this.n=this.p.bitLength(),this.k=new m(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=m._prime(e);this.m=t.p,this.prime=t}else y(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new m(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)}f.prototype._tmp=function(){var e=new m(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):0<n?r.isub(this.p):r.strip(),r},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},r(b,f),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,0===(e.words[n-10]=i)&&10<e.length?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(v,f),r(g,f),r(w,f),w.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},m._prime=function(e){if(c[e])return c[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return c[e]=t},_.prototype._verify1=function(e){y(0===e.negative,"red works only with positives"),y(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){y(0==(e.negative|t.negative),"red works only with positives"),y(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},_.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(y(t%2==1),3===t){var r=this.m.add(new m(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);y(!n.isZero());var o=new m(1).toRed(this),a=o.redNeg(),s=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new m(2*u*u).toRed(this);0!==this.pow(u,s).cmp(a);)u.redIAdd(a);for(var c=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var d=l,p=0;0!==d.cmp(o);p++)d=d.redSqr();y(p<h);var b=this.pow(c,new m(1).iushln(h-p-1));f=f.redMul(b),c=b.redSqr(),l=l.redMul(c),h=p}return f},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new m(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new m(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;0<=n;n--){for(var u=t.words[n],c=s-1;0<=c;c--){var f=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[o]),o=a=0)):a=0}s=26}return i},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},m.mont=function(e){return new k(e)},r(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new m(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e)},{buffer:21}],272:[function(e,k,t){(function(g,w){"use strict";function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":_(window))?window:{};!e.JS_SHA3_NO_NODE_JS&&"object"===(void 0===g?"undefined":_(g))&&g.versions&&g.versions.node&&(e=w);for(var t=!e.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===k?"undefined":_(k))&&k.exports,u="0123456789abcdef".split(""),f=[0,8,16,24],fe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],r=[224,256,384,512],o=["hex","buffer","arrayBuffer","array"],a=function(t,r,n){return function(e){return new m(t,r,t).update(e)[n]()}},s=function(r,n,i){return function(e,t){return new m(r,n,t).update(e)[i]()}},n=function(e,t){var r=a(e,t,"hex");r.create=function(){return new m(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<o.length;++n){var i=o[n];r[i]=a(e,t,i)}return r},i=[{name:"keccak",padding:[1,256,65536,16777216],bits:r,createMethod:n},{name:"sha3",padding:[6,1536,393216,100663296],bits:r,createMethod:n},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(t,r){var n=s(t,r,"hex");n.create=function(e){return new m(t,r,e)},n.update=function(e,t){return n.create(t).update(e)};for(var e=0;e<o.length;++e){var i=o[e];n[i]=s(t,r,i)}return n}}],c={},l=[],h=0;h<i.length;++h)for(var d=i[h],p=d.bits,b=0;b<p.length;++b){var y=d.name+"_"+p[b];l.push(y),c[y]=d.createMethod(p[b],d.padding)}function m(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}m.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=e.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,c=this.s;u<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<s+1;++r)o[r]=0;if(t)for(r=this.start;u<i&&r<a;++u)o[r>>2]|=e[u]<<f[3&r++];else for(r=this.start;u<i&&r<a;++u)(n=e.charCodeAt(u))<128?o[r>>2]|=n<<f[3&r++]:(n<2048?o[r>>2]|=(192|n>>6)<<f[3&r++]:(n<55296||57344<=n?o[r>>2]|=(224|n>>12)<<f[3&r++]:(n=65536+((1023&n)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<f[3&r++],o[r>>2]|=(128|n>>12&63)<<f[3&r++]),o[r>>2]|=(128|n>>6&63)<<f[3&r++]),o[r>>2]|=(128|63&n)<<f[3&r++]);if(a<=(this.lastByteIndex=r)){for(this.start=r-a,this.block=o[s],r=0;r<s;++r)c[r]^=o[r];v(c),this.reset=!0}else this.start=r}return this},m.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];v(n)},m.prototype.toString=m.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=u[e>>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];a%t==0&&(v(r),o=0)}return i&&(e=r[o],0<i&&(s+=u[e>>4&15]+u[15&e]),1<i&&(s+=u[e>>12&15]+u[e>>8&15]),2<i&&(s+=u[e>>20&15]+u[e>>16&15])),s},m.prototype.buffer=m.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&v(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},m.prototype.digest=m.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&v(n)}return o&&(e=s<<2,t=n[a],0<o&&(u[e]=255&t),1<o&&(u[e+1]=t>>8&255),2<o&&(u[e+2]=t>>16&255)),u};var v=function(e){var t,r,n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,v,g,w,_,k,S,A,E,x,M,j,I,O,T,B,C,R,N,U,P,L,F,D,q,z,H,K,V,W,G,Y,X,J,Z,$,Q,ee,te,re,ne,ie,oe,ae,se,ue,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,ee=e[5]<<30|e[4]>>>2,te=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,P=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,A=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,Q=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,D=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&g,e[10]=A^~x&j,e[11]=E^~M&I,e[20]=R^~U&L,e[21]=N^~P&F,e[30]=K^~W&Y,e[31]=V^~G&X,e[40]=ee^~re&ie,e[41]=te^~ne&oe,e[2]=y^~v&w,e[3]=m^~g&_,e[12]=x^~j&O,e[13]=M^~I&T,e[22]=U^~L&D,e[23]=P^~F&q,e[32]=W^~Y&J,e[33]=G^~X&Z,e[42]=re^~ie&ae,e[43]=ne^~oe&se,e[4]=v^~w&k,e[5]=g^~_&S,e[14]=j^~O&B,e[15]=I^~T&C,e[24]=L^~D&z,e[25]=F^~q&H,e[34]=Y^~J&$,e[35]=X^~Z&Q,e[44]=ie^~ae&ue,e[45]=oe^~se&ce,e[6]=w^~k&p,e[7]=_^~S&b,e[16]=O^~B&A,e[17]=T^~C&E,e[26]=D^~z&R,e[27]=q^~H&N,e[36]=J^~$&K,e[37]=Z^~Q&V,e[46]=ae^~ue&ee,e[47]=se^~ce&te,e[8]=k^~p&y,e[9]=S^~b&m,e[18]=B^~A&x,e[19]=C^~E&M,e[28]=z^~R&U,e[29]=H^~N&P,e[38]=$^~K&W,e[39]=Q^~V&G,e[48]=ue^~ee&re,e[49]=ce^~te&ne,e[0]^=fe[n],e[1]^=fe[n+1]};if(t)k.exports=c;else for(h=0;h<l.length;++h)e[l[h]]=c[l[h]]}()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124}],273:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],274:[function(e,t,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=e("buffer").Buffer,f=e("underscore"),h=e("web3-utils"),n=e("@ethersproject/abi").AbiCoder,a=e("@ethersproject/abi").ParamType,d=new n(function(e,t){return!e.match(/^u?int/)||f.isArray(t)||f.isObject(t)&&"BN"===t.constructor.name?t:t.toString()});function p(){}var i=function(){};i.prototype.encodeFunctionSignature=function(e){return f.isObject(e)&&(e=h._jsonInterfaceMethodToString(e)),h.sha3(e).slice(0,10)},i.prototype.encodeEventSignature=function(e){return f.isObject(e)&&(e=h._jsonInterfaceMethodToString(e)),h.sha3(e)},i.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},i.prototype.encodeParameters=function(n,e){var s=new RegExp(/^bytes([0-9]*)$/),u=new RegExp(/^bytes([0-9]*)\[\]$/),c=new RegExp(/^(u?int)([0-9]*)$/),f=new RegExp(/^(u?int)([0-9]*)\[\]$/);return e=e.map(function(e,t){var r=n[t];if("object"===o(r)&&r.type&&(r=r.type),h.isBN(e)||h.isBigNumber(e))return e.toString(10);var i=function t(r,e){if(r.match(u)||r.match(f))return e.map(function(e){return t(r.replace("[]",""),e)});var n=r.match(c);if(n){var i=parseInt(n[2]||"256");i/8<e.length&&(e=h.leftPad(e,i))}if(n=r.match(s)){l.isBuffer(e)&&(e=h.toHex(e));var o=parseInt(n[1]);if(o){var a=2*o;"0x"===e.substring(0,2)&&(a+=2),e.length<a&&(e=h.rightPad(e,2*o))}e.length%2==1&&(e="0x0"+e.substring(2))}return e};if(e=i(r,e),"string"==typeof r&&r.includes("tuple")){!function r(e,n){e.coders.forEach(function(e,t){"tuple"===e.name?r(e,n[t]):n[t]=i(e.name,n[t])})}(d._getCoder(a.from(r)),e)}return e}),d.encode(this.mapTypes(n),e)},i.prototype.mapTypes=function(e){var r=this,n=[];return e.forEach(function(e){if(r.isSimplifiedStructFormat(e)){var t=Object.keys(e)[0];n.push(Object.assign(r.mapStructNameAndType(t),{components:r.mapStructToCoderFormat(e[t])}))}else n.push(e)}),n},i.prototype.isSimplifiedStructFormat=function(e){return"object"===o(e)&&void 0===e.components&&void 0===e.name},i.prototype.mapStructNameAndType=function(e){var t="tuple";return-1<e.indexOf("[]")&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},i.prototype.mapStructToCoderFormat=function(t){var r=this,n=[];return Object.keys(t).forEach(function(e){"object"!==o(t[e])?n.push({name:e,type:t[e]}):n.push(Object.assign(r.mapStructNameAndType(e),{components:r.mapStructToCoderFormat(t[e])}))}),n},i.prototype.encodeFunctionCall=function(e,t){return this.encodeFunctionSignature(e)+this.encodeParameters(e.inputs,t).replace("0x","")},i.prototype.decodeParameter=function(e,t){return this.decodeParameters([e],t)[0]},i.prototype.decodeParameters=function(e,t){if(0<e.length&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var n=d.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,"")),i=new p;return i.__length__=0,e.forEach(function(e,t){var r=n[i.__length__];r="0x"===r?null:r,i[t]=r,f.isObject(e)&&e.name&&(i[e.name]=r),i.__length__++}),i},i.prototype.decodeLog=function(e,t,r){var n=this;r=f.isArray(r)?r:[r],t=t||"";var i=[],o=[],a=0;e.forEach(function(t,e){t.indexed?(o[e]=["bool","int","uint","address","fixed","ufixed"].find(function(e){return-1!==t.type.indexOf(e)})?n.decodeParameter(t.type,r[a]):r[a],a++):i[e]=t});var s=t,u=s?this.decodeParameters(i,s):[],c=new p;return c.__length__=0,e.forEach(function(e,t){c[t]="string"===e.type?"":null,void 0!==u[t]&&(c[t]=u[t]),void 0!==o[t]&&(c[t]=o[t]),e.name&&(c[e.name]=c[t]),c.__length__++}),c};var s=new i;t.exports=s},{"@ethersproject/abi":246,buffer:50,underscore:273,"web3-utils":559}],275:[function(e,t,r){"use strict";t.exports=e("scryptsy")},{scryptsy:437}],276:[function(e,t,r){arguments[4][1][0].apply(r,arguments)},{"./asn1/api":277,"./asn1/base":279,"./asn1/constants":283,"./asn1/decoders":285,"./asn1/encoders":288,"bn.js":291,dup:1}],277:[function(e,t,r){arguments[4][2][0].apply(r,arguments)},{"../asn1":276,dup:2,inherits:404,vm:188}],278:[function(e,t,r){arguments[4][3][0].apply(r,arguments)},{"../base":279,buffer:50,dup:3,inherits:404}],279:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{"./buffer":278,"./node":280,"./reporter":281,dup:4}],280:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{"../base":279,dup:5,"minimalistic-assert":414}],281:[function(e,t,r){arguments[4][6][0].apply(r,arguments)},{dup:6,inherits:404}],282:[function(e,t,r){arguments[4][7][0].apply(r,arguments)},{"../constants":283,dup:7}],283:[function(e,t,r){arguments[4][8][0].apply(r,arguments)},{"./der":282,dup:8}],284:[function(e,t,r){arguments[4][9][0].apply(r,arguments)},{"../../asn1":276,dup:9,inherits:404}],285:[function(e,t,r){arguments[4][10][0].apply(r,arguments)},{"./der":284,"./pem":286,dup:10}],286:[function(e,t,r){arguments[4][11][0].apply(r,arguments)},{"./der":284,buffer:50,dup:11,inherits:404}],287:[function(e,t,r){arguments[4][12][0].apply(r,arguments)},{"../../asn1":276,buffer:50,dup:12,inherits:404}],288:[function(e,t,r){arguments[4][13][0].apply(r,arguments)},{"./der":287,"./pem":289,dup:13}],289:[function(e,t,r){arguments[4][14][0].apply(r,arguments)},{"./der":287,dup:14,inherits:404}],290:[function(e,t,r){"use strict";var o=e("safe-buffer").Buffer;t.exports={check:function(e){if(e.length<8)return!1;if(72<e.length)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var r=e[5+t];return!(0===r||6+t+r!==e.length||128&e[4]||1<t&&0===e[4]&&!(128&e[5])||128&e[t+6]||1<r&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(72<e.length)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var r=e[5+t];if(0===r)throw new Error("S length is zero");if(6+t+r!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(1<t&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(1<r&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var r=e.length,n=t.length;if(0===r)throw new Error("R length is zero");if(0===n)throw new Error("S length is zero");if(33<r)throw new Error("R length is too long");if(33<n)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(1<r&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(1<n&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var i=o.allocUnsafe(6+r+n);return i[0]=48,i[1]=i.length-2,i[2]=2,i[3]=e.length,e.copy(i,4),i[4+r]=2,i[5+r]=t.length,t.copy(i,6+r),i}}},{"safe-buffer":436}],291:[function(e,t,r){arguments[4][271][0].apply(r,arguments)},{buffer:21,dup:271}],292:[function(e,t,r){arguments[4][20][0].apply(r,arguments)},{crypto:21,dup:20}],293:[function(e,t,r){arguments[4][22][0].apply(r,arguments)},{dup:22,"safe-buffer":436}],294:[function(e,t,r){arguments[4][23][0].apply(r,arguments)},{"./aes":293,"./ghash":298,"./incr32":299,"buffer-xor":320,"cipher-base":321,dup:23,inherits:404,"safe-buffer":436}],295:[function(e,t,r){arguments[4][24][0].apply(r,arguments)},{"./decrypter":296,"./encrypter":297,"./modes/list.json":307,dup:24}],296:[function(e,t,r){arguments[4][25][0].apply(r,arguments)},{"./aes":293,"./authCipher":294,"./modes":306,"./streamCipher":309,"cipher-base":321,dup:25,evp_bytestokey:389,inherits:404,"safe-buffer":436}],297:[function(e,t,r){arguments[4][26][0].apply(r,arguments)},{"./aes":293,"./authCipher":294,"./modes":306,"./streamCipher":309,"cipher-base":321,dup:26,evp_bytestokey:389,inherits:404,"safe-buffer":436}],298:[function(e,t,r){arguments[4][27][0].apply(r,arguments)},{dup:27,"safe-buffer":436}],299:[function(e,t,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],300:[function(e,t,r){arguments[4][29][0].apply(r,arguments)},{"buffer-xor":320,dup:29}],301:[function(e,t,r){arguments[4][30][0].apply(r,arguments)},{"buffer-xor":320,dup:30,"safe-buffer":436}],302:[function(e,t,r){arguments[4][31][0].apply(r,arguments)},{dup:31,"safe-buffer":436}],303:[function(e,t,r){arguments[4][32][0].apply(r,arguments)},{dup:32,"safe-buffer":436}],304:[function(e,t,r){arguments[4][33][0].apply(r,arguments)},{"../incr32":299,"buffer-xor":320,dup:33,"safe-buffer":436}],305:[function(e,t,r){arguments[4][34][0].apply(r,arguments)},{dup:34}],306:[function(e,t,r){arguments[4][35][0].apply(r,arguments)},{"./cbc":300,"./cfb":301,"./cfb1":302,"./cfb8":303,"./ctr":304,"./ecb":305,"./list.json":307,"./ofb":308,dup:35}],307:[function(e,t,r){arguments[4][36][0].apply(r,arguments)},{dup:36}],308:[function(e,t,r){(function(i){"use strict";var o=e("buffer-xor");r.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,(r=e,r._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),o(t,n)}}).call(this,e("buffer").Buffer)},{buffer:50,"buffer-xor":320}],309:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{"./aes":293,"cipher-base":321,dup:38,inherits:404,"safe-buffer":436}],310:[function(e,t,r){arguments[4][39][0].apply(r,arguments)},{"browserify-aes/browser":295,"browserify-aes/modes":306,"browserify-des":311,"browserify-des/modes":312,dup:39,evp_bytestokey:389}],311:[function(e,t,r){arguments[4][40][0].apply(r,arguments)},{"cipher-base":321,"des.js":328,dup:40,inherits:404,"safe-buffer":436}],312:[function(e,t,r){arguments[4][41][0].apply(r,arguments)},{dup:41}],313:[function(t,r,e){(function(b){"use strict";var y=t("bn.js"),n=t("randombytes");function e(e,t){var r,n,i={blinder:(n=m(r=t)).toRed(y.mont(r.modulus)).redPow(new y(r.publicExponent)).fromRed(),unblinder:n.invm(r.modulus)},o=t.modulus.byteLength(),a=(y.mont(t.modulus),new y(e).mul(i.blinder).umod(t.modulus)),s=a.toRed(y.mont(t.prime1)),u=a.toRed(y.mont(t.prime2)),c=t.coefficient,f=t.prime1,l=t.prime2,h=s.redPow(t.exponent1),d=u.redPow(t.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(c).umod(f);return p.imul(l),d.iadd(p),new b(d.imul(i.unblinder).umod(t.modulus).toArray(!1,o))}function m(e){for(var t=e.modulus.byteLength(),r=new y(n(t));0<=r.cmp(e.modulus)||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new y(n(t));return r}(r.exports=e).getr=m}).call(this,t("buffer").Buffer)},{"bn.js":291,buffer:50,randombytes:432}],314:[function(e,t,r){arguments[4][43][0].apply(r,arguments)},{"./browser/algorithms.json":315,dup:43}],315:[function(e,t,r){arguments[4][44][0].apply(r,arguments)},{dup:44}],316:[function(e,t,r){arguments[4][45][0].apply(r,arguments)},{dup:45}],317:[function(l,h,e){(function(i){"use strict";var r=l("create-hash"),n=l("stream"),e=l("inherits"),o=l("./sign"),a=l("./verify"),s=l("./algorithms.json");function t(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){return new t(e)}function f(e){return new u(e)}Object.keys(s).forEach(function(e){s[e].id=new i(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),e(t,n.Writable),t.prototype._write=function(e,t,r){this._hash.update(e),r()},t.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},t.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=o(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},e(u,n.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},u.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new i(t,r)),this.end();var n=this._hash.digest();return a(t,n,e,this._signType,this._tag)},h.exports={Sign:c,Verify:f,createSign:c,createVerify:f}}).call(this,l("buffer").Buffer)},{"./algorithms.json":315,"./sign":318,"./verify":319,buffer:50,"create-hash":323,inherits:404,stream:162}],318:[function(e,t,r){(function(b){"use strict";var c=e("create-hmac"),f=e("browserify-rsa"),l=e("elliptic").ec,y=e("bn.js"),h=e("parse-asn1"),d=e("./curves.json");function m(e,t,r,n){if((e=new b(e.toArray())).length<t.byteLength()){var i=new b(t.byteLength()-e.length);i.fill(0),e=b.concat([i,e])}var o=r.length,a=function(e,t){e=(e=v(e,t)).mod(t);var r=new b(e.toArray());if(r.length<t.byteLength()){var n=new b(t.byteLength()-r.length);n.fill(0),r=b.concat([n,r])}return r}(r,t),s=new b(o);s.fill(1);var u=new b(o);return u.fill(0),u=c(n,u).update(s).update(new b([0])).update(e).update(a).digest(),s=c(n,u).update(s).digest(),{k:u=c(n,u).update(s).update(new b([1])).update(e).update(a).digest(),v:s=c(n,u).update(s).digest()}}function v(e,t){var r=new y(e),n=(e.length<<3)-t.bitLength();return 0<n&&r.ishrn(n),r}function g(e,t,r){var n,i;do{for(n=new b(0);8*n.length<e.bitLength();)t.v=c(r,t.k).update(t.v).digest(),n=b.concat([n,t.v]);i=v(n,e),t.k=c(r,t.k).update(t.v).update(new b([0])).digest(),t.v=c(r,t.k).update(t.v).digest()}while(-1!==i.cmp(e));return i}t.exports=function(e,t,r,n,i){var o=h(t);if(o.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(e,t){var r=d[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new l(r).keyFromPrivate(t.privateKey).sign(e);return new b(n.toDER())}(e,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong private key type");return function(e,t,r){for(var n,i,o,a,s=t.params.priv_key,u=t.params.p,c=t.params.q,f=t.params.g,l=new y(0),h=v(e,c).mod(c),d=!1,p=m(s,c,e,r);!1===d;)n=g(c,p,r),i=n,o=u,a=c,l=f.toRed(y.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(c).imul(h.add(s.mul(l))).mod(c)).cmpn(0)&&(d=!1,l=new y(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),new b(r)}(l,d)}(e,o,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");e=b.concat([i,e]);for(var a=o.modulus.byteLength(),s=[0,1];e.length+s.length+1<a;)s.push(255);s.push(0);for(var u=-1;++u<e.length;)s.push(e[u]);return f(s,o)},t.exports.getKey=m,t.exports.makeKey=g}).call(this,e("buffer").Buffer)},{"./curves.json":316,"bn.js":291,"browserify-rsa":313,buffer:50,"create-hmac":325,elliptic:338,"parse-asn1":420}],319:[function(e,t,r){(function(h){"use strict";var d=e("bn.js"),p=e("elliptic").ec,b=e("parse-asn1"),y=e("./curves.json");function m(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,n,i){var o=b(r);if("ec"===o.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=y[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new p(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,o=r.data.g,a=r.data.pub_key,s=b.signature.decode(e,"der"),u=s.s,c=s.r;m(u,i),m(c,i);var f=d.mont(n),l=u.invm(i);return 0===o.toRed(f).redPow(new d(t).mul(l).mod(i)).fromRed().mul(a.toRed(f).redPow(c.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(c)}(e,t,o)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");t=h.concat([i,t]);for(var a=o.modulus.byteLength(),s=[1],u=0;t.length+s.length+2<a;)s.push(255),u++;s.push(0);for(var c=-1;++c<t.length;)s.push(t[c]);s=new h(s);var f=d.mont(o.modulus);e=(e=new d(e).toRed(f)).redPow(new d(o.publicExponent)),e=new h(e.fromRed().toArray());var l=u<8?1:0;for(a=Math.min(e.length,s.length),e.length!==s.length&&(l=1),c=-1;++c<a;)l|=e[c]^s[c];return 0===l}}).call(this,e("buffer").Buffer)},{"./curves.json":316,"bn.js":291,buffer:50,elliptic:338,"parse-asn1":420}],320:[function(e,t,r){(function(o){"use strict";t.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new o(r),i=0;i<r;++i)n[i]=e[i]^t[i];return n}}).call(this,e("buffer").Buffer)},{buffer:50}],321:[function(e,t,r){arguments[4][52][0].apply(r,arguments)},{dup:52,inherits:404,"safe-buffer":436,stream:162,string_decoder:182}],322:[function(e,s,t){(function(o){"use strict";var t=e("elliptic"),n=e("bn.js");s.exports=function(e){return new i(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new o(e);if(r&&n.length<r){var i=new o(r-n.length);i.fill(0),n=o.concat([i,n])}return t?n.toString(t):n}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,i.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},i.prototype.computeSecret=function(e,t,r){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},i.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},i.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},i.prototype.setPublicKey=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.keys._importPublic(e),this},i.prototype.setPrivateKey=function(e,t){t=t||"utf8",o.isBuffer(e)||(e=new o(e,t));var r=new n(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":291,buffer:50,elliptic:338}],323:[function(e,t,r){arguments[4][55][0].apply(r,arguments)},{"cipher-base":321,dup:55,inherits:404,"md5.js":412,ripemd160:434,"sha.js":448}],324:[function(e,t,r){arguments[4][56][0].apply(r,arguments)},{dup:56,"md5.js":412}],325:[function(e,t,r){arguments[4][57][0].apply(r,arguments)},{"./legacy":326,"cipher-base":321,"create-hash/md5":324,dup:57,inherits:404,ripemd160:434,"safe-buffer":436,"sha.js":448}],326:[function(e,t,r){arguments[4][58][0].apply(r,arguments)},{"cipher-base":321,dup:58,inherits:404,"safe-buffer":436}],327:[function(e,t,r){arguments[4][59][0].apply(r,arguments)},{"browserify-cipher":310,"browserify-sign":317,"browserify-sign/algos":314,"create-ecdh":322,"create-hash":323,"create-hmac":325,"diffie-hellman":334,dup:59,pbkdf2:421,"public-encrypt":426,randombytes:432,randomfill:433}],328:[function(e,t,r){arguments[4][60][0].apply(r,arguments)},{"./des/cbc":329,"./des/cipher":330,"./des/des":331,"./des/ede":332,"./des/utils":333,dup:60}],329:[function(e,t,r){arguments[4][61][0].apply(r,arguments)},{dup:61,inherits:404,"minimalistic-assert":414}],330:[function(e,t,r){arguments[4][62][0].apply(r,arguments)},{dup:62,"minimalistic-assert":414}],331:[function(e,t,r){"use strict";var a=e("minimalistic-assert"),n=e("inherits"),h=e("./utils"),i=e("./cipher");function o(){this.tmp=new Array(2),this.keys=null}function s(e){i.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}n(s,i),(t.exports=s).create=function(e){return new s(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=new Array(32),a.equal(t.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(t,0),n=h.readUInt32BE(t,4);h.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var o=u[i>>>1];r=h.r28shl(r,o),n=h.r28shl(n,o),h.pc2(r,n,e.keys,i)}},s.prototype._update=function(e,t,r,n){var i=this._desState,o=h.readUInt32BE(e,t),a=h.readUInt32BE(e,t+4);h.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],h.writeUInt32BE(r,o,n),h.writeUInt32BE(r,a,n+4)},s.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},s.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)a.equal(e[r],t);return e.slice(0,e.length-t)},s.prototype._encrypt=function(e,t,r,n,i){for(var o=t,a=r,s=0;s<e.keys.length;s+=2){var u=e.keys[s],c=e.keys[s+1];h.expand(a,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var f=h.substitute(u,c),l=a;a=(o^h.permute(f))>>>0,o=l}h.rip(a,o,n,i)},s.prototype._decrypt=function(e,t,r,n,i){for(var o=r,a=t,s=e.keys.length-2;0<=s;s-=2){var u=e.keys[s],c=e.keys[s+1];h.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var f=h.substitute(u,c),l=o;o=(a^h.permute(f))>>>0,a=l}h.rip(o,a,n,i)}},{"./cipher":330,"./utils":333,inherits:404,"minimalistic-assert":414}],332:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),n=e("inherits"),i=e("./cipher"),a=e("./des");function s(e,t){o.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:n}),a.create({type:"encrypt",key:i})]:[a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:r})]}function u(e){i.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}n(u,i),(t.exports=u).create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},{"./cipher":330,"./des":331,inherits:404,"minimalistic-assert":414}],333:[function(e,t,r){arguments[4][65][0].apply(r,arguments)},{dup:65}],334:[function(e,t,r){(function(o){"use strict";var a=e("./lib/generatePrime"),n=e("./lib/primes.json"),s=e("./lib/dh");var u={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new o(n[e].prime,"hex"),r=new o(n[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,n,i){return o.isBuffer(r)||void 0===u[r]?e(t,"binary",r,n):(r=r||"binary",i=i||"binary",n=n||new o([2]),o.isBuffer(n)||(n=new o(n,i)),"number"==typeof t?new s(a(t,n),n,!0):(o.isBuffer(t)||(t=new o(t,r)),new s(t,n,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":335,"./lib/generatePrime":336,"./lib/primes.json":337,buffer:50}],335:[function(b,y,e){(function(o){"use strict";var a=b("bn.js"),s=new(b("miller-rabin")),u=new a(24),c=new a(11),f=new a(10),l=new a(3),h=new a(7),d=b("./generatePrime"),e=b("randombytes");function n(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this._pub=new a(e),this}function i(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this._priv=new a(e),this}y.exports=t;var p={};function t(e,t,r){this.setGenerator(t),this.__prime=new a(e),this._prime=a.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function r(e,t){var r=new o(e.toArray());return t?r.toString(t):r}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var i,o=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!s.test(e))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(s.test(e.shrn(1))||(o+=2),r){case"02":e.mod(u).cmp(c)&&(o+=8);break;case"05":(i=e.mod(f)).cmp(l)&&i.cmp(h)&&(o+=8);break;default:o+=4}return p[n]=o}(this.__prime,this.__gen)),this._primeCode}}),t.prototype.generateKeys=function(){return this._priv||(this._priv=new a(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},t.prototype.computeSecret=function(e){var t=(e=(e=new a(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new o(t.toArray()),n=this.getPrime();if(r.length<n.length){var i=new o(n.length-r.length);i.fill(0),r=o.concat([i,r])}return r},t.prototype.getPublicKey=function(e){return r(this._pub,e)},t.prototype.getPrivateKey=function(e){return r(this._priv,e)},t.prototype.getPrime=function(e){return r(this.__prime,e)},t.prototype.getGenerator=function(e){return r(this._gen,e)},t.prototype.setGenerator=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.__gen=e,this._gen=new a(e),this}}).call(this,b("buffer").Buffer)},{"./generatePrime":336,"bn.js":291,buffer:50,"miller-rabin":413,randombytes:432}],336:[function(e,t,r){arguments[4][68][0].apply(r,arguments)},{"bn.js":291,dup:68,"miller-rabin":413,randombytes:432}],337:[function(e,t,r){arguments[4][69][0].apply(r,arguments)},{dup:69}],338:[function(e,t,r){arguments[4][70][0].apply(r,arguments)},{"../package.json":353,"./elliptic/curve":341,"./elliptic/curves":344,"./elliptic/ec":345,"./elliptic/eddsa":348,"./elliptic/utils":352,brorand:292,dup:70}],339:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),E=i.getNAF,x=i.getJSF,l=i.assert;function o(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||0<r.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function a(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=o).prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(e,t){l(e.precomputed);var r=e._getDoubles(),n=E(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var o=[],a=0;a<n.length;a+=r.step){var s=0;for(t=a+r.step-1;a<=t;t--)s=(s<<1)+n[t];o.push(s)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;0<f;f--){for(a=0;a<o.length;a++){(s=o[a])===f?c=c.mixedAdd(r.points[a]):s===-f&&(c=c.mixedAdd(r.points[a].neg()))}u=u.add(c)}return u.toP()},o.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=E(t,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;0<=s;s--){for(t=0;0<=s&&0===o[s];s--)t++;if(0<=s&&t++,a=a.dblp(t),s<0)break;var u=o[s];l(0!==u),a="affine"===e.type?0<u?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):0<u?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},o.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,u=0,c=0;c<n;c++){var f=(S=t[c])._getNAFPoints(e);o[c]=f.wnd,a[c]=f.points}for(c=n-1;1<=c;c-=2){var l=c-1,h=c;if(1===o[l]&&1===o[h]){var d=[t[l],null,null,t[h]];0===t[l].y.cmp(t[h].y)?(d[1]=t[l].add(t[h]),d[2]=t[l].toJ().mixedAdd(t[h].neg())):0===t[l].y.cmp(t[h].y.redNeg())?(d[1]=t[l].toJ().mixedAdd(t[h]),d[2]=t[l].add(t[h].neg())):(d[1]=t[l].toJ().mixedAdd(t[h]),d[2]=t[l].toJ().mixedAdd(t[h].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],b=x(r[l],r[h]);u=Math.max(b[0].length,u),s[l]=new Array(u),s[h]=new Array(u);for(var y=0;y<u;y++){var m=0|b[0][y],v=0|b[1][y];s[l][y]=p[3*(m+1)+(v+1)],s[h][y]=0,a[l]=d}}else s[l]=E(r[l],o[l],this._bitLength),s[h]=E(r[h],o[h],this._bitLength),u=Math.max(s[l].length,u),u=Math.max(s[h].length,u)}var g=this.jpoint(null,null,null),w=this._wnafT4;for(c=u;0<=c;c--){for(var _=0;0<=c;){var k=!0;for(y=0;y<n;y++)w[y]=0|s[y][c],0!==w[y]&&(k=!1);if(!k)break;_++,c--}if(0<=c&&_++,g=g.dblp(_),c<0)break;for(y=0;y<n;y++){var S,A=w[y];0!==A&&(0<A?S=a[y][A-1>>1]:A<0&&(S=a[y][-A-1>>1].neg()),g="affine"===S.type?g.mixedAdd(S):g.add(S))}}for(c=0;c<n;c++)a[c]=null;return i?g:g.toP()},(o.BasePoint=a).prototype.eq=function(){throw new Error("Not implemented")},a.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?l(e[e.length-1]%2==0):7===e[0]&&l(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},a.prototype.encodeCompressed=function(e){return this.encode(e,!0)},a.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},a.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},a.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},a.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},a.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":352,"bn.js":291}],340:[function(e,t,r){"use strict";var n=e("../utils"),u=e("bn.js"),i=e("inherits"),o=e("./base"),a=n.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new u(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,i){o.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new u(t,16),this.y=new u(r,16),this.z=n?new u(n,16):this.curve.one,this.t=i&&new u(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(s,o),(t.exports=s).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},s.prototype.pointFromX=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},s.prototype.pointFromY=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},i(c,o.BasePoint),s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},s.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),h=a.redMul(s);return this.curve.point(c,f,h,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return r=this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":352,"./base":339,"bn.js":291,inherits:404}],341:[function(e,t,r){arguments[4][73][0].apply(r,arguments)},{"./base":339,"./edwards":340,"./mont":342,"./short":343,dup:73}],342:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("inherits"),o=e("./base"),a=e("../utils");function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),(t.exports=s).prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;0<=o;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":352,"./base":339,"bn.js":291,inherits:404}],343:[function(e,t,r){"use strict";var n=e("../utils"),_=e("bn.js"),i=e("inherits"),o=e("./base"),a=n.assert;function s(e){o.call(this,"short",e),this.a=new _(e.a,16).toRed(this.red),this.b=new _(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){o.BasePoint.call(this,e,"affine"),this.inf=null===t&&null===r?(this.x=null,!(this.y=null)):(this.x=new _(t,16),this.y=new _(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),!1)}function c(e,t,r,n){o.BasePoint.call(this,e,"jacobian"),this.z=null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,new _(0)):(this.x=new _(t,16),this.y=new _(r,16),new _(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(s,o),(t.exports=s).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new _(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new _(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new _(e.a,16),b:new _(e.b,16)}}):this._getEndoBasis(r)}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:_.mont(e),r=new _(2).toRed(t).redInvm(),n=r.redNeg(),i=new _(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,a,s,u,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),d=new _(1),p=new _(0),b=new _(0),y=new _(1),m=0;0!==l.cmpn(0);){var v=h.div(l);u=h.sub(v.mul(l)),c=b.sub(v.mul(d));var g=y.sub(v.mul(p));if(!n&&u.cmp(f)<0)t=s.neg(),r=d,n=u.neg(),i=c;else if(n&&2==++m)break;h=l,l=s=u,b=d,d=c,y=p,p=g}o=u.neg(),a=c;var w=n.sqr().add(i.sqr());return 0<=o.sqr().add(a.sqr()).cmp(w)&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},s.prototype.pointFromX=function(e,t){(e=new _(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},i(u,o.BasePoint),s.prototype.point=function(e,t,r){return new u(this,e,t,r)},s.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new _(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(c,o.BasePoint),s.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),h=u.redSqr().redIAdd(f).redISub(l).redISub(l),d=u.redMul(l.redISub(h)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),h=s.redMul(f.redISub(l)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<e;r++){var f=o.redSqr(),l=c.redSqr(),h=l.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),b=d.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),m=d.redMul(y);m=m.redIAdd(m).redISub(h);var v=c.redMul(s);r+1<e&&(u=u.redMul(h)),o=b,s=v,c=m}return this.curve.jpoint(o,c.redMul(i),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(f).redISub(h);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=h.redIAdd(h);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),b=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=d.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(l).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,h,d)},c.prototype.mul=function(e,t){return e=new _(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),0<=n.cmp(this.curve.p))return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":352,"./base":339,"bn.js":291,inherits:404}],344:[function(e,t,r){"use strict";var n,i=r,o=e("hash.js"),a=e("./curve"),s=e("./utils").assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,r){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var e=new u(r);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":341,"./precomputed/secp256k1":351,"./utils":352,"hash.js":391}],345:[function(e,t,r){"use strict";function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=e("bn.js"),v=e("hmac-drbg"),n=e("../utils"),i=e("../curves"),o=e("brorand"),d=n.assert,a=e("./key"),g=e("./signature");function s(e){if(!(this instanceof s))return new s(e);"string"==typeof e&&(d(i.hasOwnProperty(e),"Unknown curve "+e),e=i[e]),e instanceof i.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=s).prototype.keyPair=function(e){return new a(this,e)},s.prototype.keyFromPrivate=function(e,t){return a.fromPrivate(this,e,t)},s.prototype.keyFromPublic=function(e,t){return a.fromPublic(this,e,t)},s.prototype.genKeyPair=function(e){e||(e={});for(var t=new v({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new m(2));;){var i=new m(t.generate(r));if(!(0<i.cmp(n)))return i.iaddn(1),this.keyFromPrivate(i)}},s.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},s.prototype.sign=function(e,t,r,n){"object"===y(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new m(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new v({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new m(1)),c=0;;c++){var f=n.k?n.k(c):new m(s.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||0<=f.cmp(u))){var l=this.g.mul(f);if(!l.isInfinity()){var h=l.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=f.invm(this.n).mul(d.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var b=(l.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),b^=1),new g({r:d,s:p,recoveryParam:b})}}}}}},s.prototype.verify=function(e,t,r,n){e=this._truncateToN(new m(e,16)),r=this.keyFromPublic(r,n);var i=(t=new g(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||0<=i.cmp(this.n))return!1;if(o.cmpn(1)<0||0<=o.cmp(this.n))return!1;var a,s=o.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},s.prototype.recoverPubKey=function(e,t,r,n){d((3&r)===r,"The recovery param is more than two bits"),t=new g(t,n);var i=this.n,o=new m(e),a=t.r,s=t.s,u=1&r,c=r>>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var f=t.r.invm(i),l=i.sub(o).mul(f).umod(i),h=s.mul(f).umod(i);return this.g.mulAdd(l,a,h)},s.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new g(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":344,"../utils":352,"./key":346,"./signature":347,"bn.js":291,brorand:292,"hmac-drbg":403}],346:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils").assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=o).fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":352,"bn.js":291}],347:[function(e,t,r){"use strict";var s=e("bn.js"),u=e("../utils"),n=u.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function c(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function a(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=i).prototype._importDER=function(e,t){e=u.toArray(e,t);var r=new c;if(48!==e[r.place++])return!1;if(f(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=f(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=f(e,r);if(e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===a[0]&&128&a[1]&&(a=a.slice(1)),this.r=new s(i),this.s=new s(a),!(this.recoveryParam=null)},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=a(t),r=a(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var i=n.concat(r),o=[48];return l(o,i.length),o=o.concat(i),u.encode(o,e)}},{"../utils":352,"bn.js":291}],348:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../curves"),o=e("../utils"),a=o.assert,u=o.parseBytes,s=e("./key"),c=e("./signature");function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}(t.exports=f).prototype.sign=function(e,t){e=u(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},f.prototype.verify=function(e,t,r){e=u(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":344,"../utils":352,"./key":349,"./signature":350,"hash.js":391}],349:[function(e,t,r){"use strict";var n=e("../utils"),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../utils":352}],350:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("bn.js"),o=e("../utils"),a=o.assert,s=o.cachedProperty,u=o.parseBytes;function c(e,t){this.eddsa=e,"object"!==n(t)&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":352,"bn.js":291}],351:[function(e,t,r){arguments[4][83][0].apply(r,arguments)},{dup:83}],352:[function(e,t,r){"use strict";var n=r,i=e("bn.js"),o=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=(i>>1)-1<u?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;0<e.cmpn(-n)||0<t.cmpn(-i);){var o,a,s,u=e.andln(3)+n&3,c=t.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?u:-u,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":291,"minimalistic-assert":414,"minimalistic-crypto-utils":415}],353:[function(e,t,r){t.exports={_args:[["elliptic@6.5.2","/Users/ryanghods/dev/web3.js/packages/web3-eth-accounts"]],_from:"elliptic@6.5.2",_id:"elliptic@6.5.2",_inBundle:!1,_integrity:"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.5.2",name:"elliptic",escapedName:"elliptic",rawSpec:"6.5.2",saveSpec:null,fetchSpec:"6.5.2"},_requiredBy:["/browserify-sign","/create-ecdh","/eth-lib","/secp256k1"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz",_spec:"6.5.2",_where:"/Users/ryanghods/dev/web3.js/packages/web3-eth-accounts",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.2"}},{}],354:[function(b,y,e){(function(a){"use strict";function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var s=b("./bytes"),i=b("./nat"),e=b("elliptic"),u=(b("./rlp"),new e.ec("secp256k1")),t=b("./hash"),c=t.keccak256,f=t.keccak256s,l=function(e){for(var t=f(e.slice(2)),r="0x",n=0;n<40;n++)r+=7<parseInt(t[n+2],16)?e[n+2].toUpperCase():e[n+2];return r},h=function(e){var t=new a(e.slice(2),"hex"),r="0x"+u.keyFromPrivate(t).getPublic(!1,"hex").slice(2),n=c(r);return{address:l("0x"+n.slice(-40)),privateKey:e}},d=function(e){var t=o(e,3),r=t[0],n=t[1],i=t[2];return s.flatten([n,i,r])},p=function(e){return[s.slice(64,s.length(e),e),s.slice(0,32,e),s.slice(32,64,e)]},r=function(n){return function(e,t){var r=u.keyFromPrivate(new a(t.slice(2),"hex")).sign(new a(e.slice(2),"hex"),{canonical:!0});return d([i.fromString(s.fromNumber(n+r.recoveryParam)),s.pad(32,s.fromNat("0x"+r.r.toString(16))),s.pad(32,s.fromNat("0x"+r.s.toString(16)))])}},n=r(27);y.exports={create:function(e){var t=c(s.concat(s.random(32),e||s.random(32))),r=s.concat(s.concat(s.random(32),t),s.random(32)),n=c(r);return h(n)},toChecksum:l,fromPrivate:h,sign:n,makeSigner:r,recover:function(e,t){var r=p(t),n={v:s.toNumber(r[0]),r:r[1].slice(2),s:r[2].slice(2)},i="0x"+u.recoverPubKey(new a(e.slice(2),"hex"),n,n.v<2?n.v:1-n.v%2).encode("hex",!1).slice(2),o=c(i);return l("0x"+o.slice(-40))},encodeSignature:d,decodeSignature:p}}).call(this,b("buffer").Buffer)},{"./bytes":356,"./hash":357,"./nat":358,"./rlp":359,buffer:50,elliptic:338}],355:[function(e,t,r){"use strict";var n=function(e,t){for(var r=[],n=0;n<e;++n)r.push(t(n));return r};t.exports={generate:n,replicate:function(e,t){return n(e,function(){return t})},concat:function(e,t){return e.concat(t)},flatten:function(e){for(var t=[],r=0,n=e.length;r<n;++r)for(var i=0,o=e[r].length;i<o;++i)t.push(e[r][i]);return t},chunksOf:function(e,t){for(var r=[],n=0,i=t.length;n<i;n+=e)r.push(t.slice(n,n+e));return r}}},{}],356:[function(i,e,t){"use strict";i("./array.js");var o=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},a=function(e){return(e.length-2)/2},r=function(e){for(var t=[],r=2,n=e.length;r<n;r+=2)t.push(parseInt(e.slice(r,r+2),16));return t},n=function(e){for(var t="0x",r=0,n=e.length;r<n;++r){var i=e[r];t+=(i<16?"0":"")+i.toString(16)}return t};e.exports={random:function(e){var t;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)t=window.crypto.getRandomValues(new Uint8Array(e));else{if(void 0===i)throw"Safe random numbers not available.";t=i("crypto").randomBytes(e)}for(var r="0x",n=0;n<e;++n)r+=("00"+t[n].toString(16)).slice(-2);return r},length:a,concat:function(e,t){return e.concat(t.slice(2))},flatten:function(e){return"0x"+e.reduce(function(e,t){return e+t.slice(2)},"")},slice:function(e,t,r){return"0x"+r.slice(2*e+2,2*t+2)},reverse:function(e){for(var t="0x",r=0,n=a(e);r<n;++r)t+=e.slice(2*(n-r),2*(n-r+1));return t},pad:function e(t,r){return r.length===2*t+2?r:e(t,"0x0"+r.slice(2))},padRight:function e(t,r){return r.length===2*t+2?r:e(t,r+"0")},fromAscii:function(e){for(var t="0x",r=0;r<e.length;++r)t+=("00"+e.charCodeAt(r).toString(16)).slice(-2);return t},toAscii:function(e){for(var t="",r=2;r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.slice(r,r+2),16));return t},fromString:function(e){for(var t=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},r="0x",n=0;n!=e.length;n++){var i=e.charCodeAt(n);if(i<128)r+=t(i);else{if(i<2048)r+=t(i>>6|192);else{if(55295<i&&i<56320){if(++n==e.length)return null;var o=e.charCodeAt(n);if(o<56320||57343<o)return null;r+=t((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=t(i>>12&63|128)}else r+=t(i>>12|224);r+=t(i>>6&63|128)}r+=t(63&i|128)}}return r},toString:function(e){for(var t="",r=0,n=a(e);r<n;){var i=o(e,r++);if(127<i){if(191<i&&i<224){if(n<=r)return null;i=(31&i)<<6|63&o(e,r)}else if(223<i&&i<240){if(n<=r+1)return null;i=(15&i)<<12|(63&o(e,r))<<6|63&o(e,++r)}else{if(!(239<i&&i<248))return null;if(n<=r+2)return null;i=(7&i)<<18|(63&o(e,r))<<12|(63&o(e,++r))<<6|63&o(e,++r)}++r}if(i<=65535)t+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(1023&i|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:n,toArray:r,fromUint8Array:function(e){return n([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(r(e))}}},{"./array.js":355}],357:[function(e,t,r){"use strict";var p="0123456789abcdef".split(""),b=[1,256,65536,16777216],y=[0,8,16,24],fe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=function(e){var t,r,n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,v,g,w,_,k,S,A,E,x,M,j,I,O,T,B,C,R,N,U,P,L,F,D,q,z,H,K,V,W,G,Y,X,J,Z,$,Q,ee,te,re,ne,ie,oe,ae,se,ue,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,ee=e[5]<<30|e[4]>>>2,te=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,P=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,A=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,Q=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,D=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&g,e[10]=A^~x&j,e[11]=E^~M&I,e[20]=R^~U&L,e[21]=N^~P&F,e[30]=K^~W&Y,e[31]=V^~G&X,e[40]=ee^~re&ie,e[41]=te^~ne&oe,e[2]=y^~v&w,e[3]=m^~g&_,e[12]=x^~j&O,e[13]=M^~I&T,e[22]=U^~L&D,e[23]=P^~F&q,e[32]=W^~Y&J,e[33]=G^~X&Z,e[42]=re^~ie&ae,e[43]=ne^~oe&se,e[4]=v^~w&k,e[5]=g^~_&S,e[14]=j^~O&B,e[15]=I^~T&C,e[24]=L^~D&z,e[25]=F^~q&H,e[34]=Y^~J&$,e[35]=X^~Z&Q,e[44]=ie^~ae&ue,e[45]=oe^~se&ce,e[6]=w^~k&p,e[7]=_^~S&b,e[16]=O^~B&A,e[17]=T^~C&E,e[26]=D^~z&R,e[27]=q^~H&N,e[36]=J^~$&K,e[37]=Z^~Q&V,e[46]=ae^~ue&ee,e[47]=se^~ce&te,e[8]=k^~p&y,e[9]=S^~b&m,e[18]=B^~A&x,e[19]=C^~E&M,e[28]=z^~R&U,e[29]=H^~N&P,e[38]=$^~K&W,e[39]=Q^~V&G,e[48]=ue^~ee&re,e[49]=ce^~te&ne,e[0]^=fe[n],e[1]^=fe[n+1]},n=function(a){return function(e){var t,r,n;if("0x"===e.slice(0,2)){t=[];for(var i=2,o=e.length;i<o;i+=2)t.push(parseInt(e.slice(i,i+2),16))}else t=e;return function(e,t){for(var r,n=t.length,i=e.blocks,o=e.blockCount<<2,a=e.blockCount,s=e.outputBlocks,u=e.s,c=0;c<n;){if(e.reset)for(e.reset=!1,i[0]=e.block,h=1;h<a+1;++h)i[h]=0;if("string"!=typeof t)for(h=e.start;c<n&&h<o;++c)i[h>>2]|=t[c]<<y[3&h++];else for(h=e.start;c<n&&h<o;++c)(r=t.charCodeAt(c))<128?i[h>>2]|=r<<y[3&h++]:(r<2048?i[h>>2]|=(192|r>>6)<<y[3&h++]:(r<55296||57344<=r?i[h>>2]|=(224|r>>12)<<y[3&h++]:(r=65536+((1023&r)<<10|1023&t.charCodeAt(++c)),i[h>>2]|=(240|r>>18)<<y[3&h++],i[h>>2]|=(128|r>>12&63)<<y[3&h++]),i[h>>2]|=(128|r>>6&63)<<y[3&h++]),i[h>>2]|=(128|63&r)<<y[3&h++]);if(o<=(e.lastByteIndex=h)){for(e.start=h-o,e.block=i[a],h=0;h<a;++h)u[h]^=i[h];m(u),e.reset=!0}else e.start=h}if(i[(h=e.lastByteIndex)>>2]|=b[3&h],e.lastByteIndex===o)for(i[0]=i[a],h=1;h<a+1;++h)i[h]=0;for(i[a-1]|=2147483648,h=0;h<a;++h)u[h]^=i[h];m(u);for(var f,l="",h=0,d=0;d<s;){for(h=0;h<a&&d<s;++h,++d)f=u[h],l+=p[f>>4&15]+p[15&f]+p[f>>12&15]+p[f>>8&15]+p[f>>20&15]+p[f>>16&15]+p[f>>28&15]+p[f>>24&15];d%a==0&&(m(u),h=0)}return"0x"+l}({blocks:[],reset:!0,block:0,start:0,blockCount:1600-((r=a)<<1)>>5,outputBlocks:r>>5,s:(n=[0,0,0,0,0,0,0,0,0,0],[].concat(n,n,n,n,n))},t)}};t.exports={keccak256:n(256),keccak512:n(512),keccak256s:n(256),keccak512s:n(512)}},{}],358:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("./bytes"),o=function(e){return new n(e.slice(2),16)},a=function(e){var t="0x"+("0x"===e.slice(0,2)?new n(e.slice(2),16):new n(e,10)).toString("hex");return"0x0"===t?"0x":t},s=function(e){return"string"==typeof e?/^0x/.test(e)?e:"0x"+e:"0x"+new n(e).toString("hex")},u=function(e){return o(e).toNumber()},c=function(r){return function(e,t){return"0x"+o(e)[r](o(t)).toString("hex")}},f=c("add"),l=c("mul"),h=c("div"),d=c("sub");t.exports={toString:function(e){return o(e).toString(10)},fromString:a,toNumber:u,fromNumber:s,toEther:function(e){return u(h(e,a("10000000000")))/1e8},fromEther:function(e){return l(s(Math.floor(1e8*e)),a("10000000000"))},toUint256:function(e){return i.pad(32,e)},add:f,mul:l,div:h,sub:d}},{"./bytes":356,"bn.js":291}],359:[function(e,t,r){"use strict";t.exports={encode:function(e){var r=function(e){return(t=e.toString(16)).length%2==0?t:"0"+t;var t},i=function(e,t){return e<56?r(t+e):r(t+r(e).length/2+55)+r(e)};return"0x"+function e(t){if("string"==typeof t){var r=t.slice(2);return(2!=r.length||"80"<=r?i(r.length/2,128):"")+r}var n=t.map(e).join("");return i(n.length/2,192)+n}(e)},decode:function(t){var r=2,n=function(){if(r>=t.length)throw"";var e=t.slice(r,r+2);return e<"80"?(r+=2,"0x"+e):e<"c0"?o():a()},i=function(){var e=parseInt(t.slice(r,r+=2),16)%64;return e<56?e:parseInt(t.slice(r,r+=2*(e-55)),16)},o=function(){var e=i();return"0x"+t.slice(r,r+=2*e)},a=function(){for(var e=2*i()+r,t=[];r<e;)t.push(n());return t};try{return n()}catch(e){return[]}}}},{}],360:[function(e,t,r){t.exports={name:"goerli",chainId:5,networkId:5,comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{hash:"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a",timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",stateRoot:"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},hardforks:[{name:"chainstart",block:0,consensus:"poa",finality:null},{name:"homestead",block:0,consensus:"poa",finality:null},{name:"dao",block:0,consensus:"poa",finality:null},{name:"tangerineWhistle",block:0,consensus:"poa",finality:null},{name:"spuriousDragon",block:0,consensus:"poa",finality:null},{name:"byzantium",block:0,consensus:"poa",finality:null},{name:"constantinople",block:0,consensus:"poa",finality:null},{name:"petersburg",block:0,consensus:"poa",finality:null},{name:"istanbul",block:1561651,consensus:"poa",finality:null}],bootstrapNodes:[{ip:"51.141.78.53",port:30303,id:"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a",location:"",comment:"Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt"},{ip:"13.93.54.137",port:30303,id:"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b",location:"",comment:"Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt"},{ip:"94.237.54.114",port:30313,id:"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291",location:"",comment:"Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt"},{ip:"52.64.155.147",port:30303,id:"c1f8b7c2ac4453271fa07d8e9ecf9a2e8285aa0bd0c07df0131f47153306b0736fd3db8924e7a9bf0bed6b1d8d4f87362a71b033dc7c64547728d953e43e59b2",location:"",comment:"Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt"},{ip:"213.186.16.82",port:30303,id:"f4a9c6ee28586009fb5a96c8af13a58ed6d8315a9eee4772212c1d4d9cebe5a8b8a78ea4434f318726317d04a3f531a1ef0420cf9752605a562cfe858c46e263",location:"",comment:"Source: https://github.com/goerli/testnet/blob/master/bootnodes.txt"}]}},{}],361:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.chains={names:{1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",6284:"goerli"},mainnet:e("./mainnet.json"),ropsten:e("./ropsten.json"),rinkeby:e("./rinkeby.json"),kovan:e("./kovan.json"),goerli:e("./goerli.json")}},{"./goerli.json":360,"./kovan.json":362,"./mainnet.json":363,"./rinkeby.json":364,"./ropsten.json":365}],362:[function(e,t,r){t.exports={name:"kovan",chainId:42,networkId:42,comment:"Parity PoA test network",url:"https://kovan-testnet.github.io/website/",genesis:{hash:"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9",timestamp:null,gasLimit:6e6,difficulty:131072,nonce:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",extraData:"0x",stateRoot:"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},hardforks:[{name:"chainstart",block:0,consensus:"poa",finality:null},{name:"homestead",block:0,consensus:"poa",finality:null},{name:"dao",block:0,consensus:"poa",finality:null},{name:"tangerineWhistle",block:0,consensus:"poa",finality:null},{name:"spuriousDragon",block:0,consensus:"poa",finality:null},{name:"byzantium",block:5067e3,consensus:"poa",finality:null},{name:"constantinople",block:92e5,consensus:"poa",finality:null},{name:"petersburg",block:10255201,consensus:"poa",finality:null},{name:"istanbul",block:14111141,consensus:"poa",finality:null}],bootstrapNodes:[{ip:"40.71.221.215",port:30303,id:"56abaf065581a5985b8c5f4f88bd202526482761ba10be9bfdcd14846dd01f652ec33fde0f8c0fd1db19b59a4c04465681fcef50e11380ca88d25996191c52de",location:"",comment:"Parity Bootnode"},{ip:"52.166.117.77",port:30303,id:"d07827483dc47b368eaf88454fb04b41b7452cf454e194e2bd4c14f98a3278fed5d819dbecd0d010407fc7688d941ee1e58d4f9c6354d3da3be92f55c17d7ce3",location:"",comment:"Parity Bootnode"},{ip:"52.165.239.18",port:30303,id:"8fa162563a8e5a05eef3e1cd5abc5828c71344f7277bb788a395cce4a0e30baf2b34b92fe0b2dbbba2313ee40236bae2aab3c9811941b9f5a7e8e90aaa27ecba",location:"",comment:"Parity Bootnode"},{ip:"52.243.47.56",port:30303,id:"7e2e7f00784f516939f94e22bdc6cf96153603ca2b5df1c7cc0f90a38e7a2f218ffb1c05b156835e8b49086d11fdd1b3e2965be16baa55204167aa9bf536a4d9",location:"",comment:"Parity Bootnode"},{ip:"40.68.248.100",port:30303,id:"0518a3d35d4a7b3e8c433e7ffd2355d84a1304ceb5ef349787b556197f0c87fad09daed760635b97d52179d645d3e6d16a37d2cc0a9945c2ddf585684beb39ac",location:"",comment:"Parity Bootnode"}]}},{}],363:[function(e,t,r){t.exports={name:"mainnet",chainId:1,networkId:1,comment:"The Ethereum main chain",url:"https://ethstats.net/",genesis:{hash:"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",timestamp:null,gasLimit:5e3,difficulty:17179869184,nonce:"0x0000000000000042",extraData:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",stateRoot:"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},hardforks:[{name:"chainstart",block:0,consensus:"pow",finality:null},{name:"homestead",block:115e4,consensus:"pow",finality:null},{name:"dao",block:192e4,consensus:"pow",finality:null},{name:"tangerineWhistle",block:2463e3,consensus:"pow",finality:null},{name:"spuriousDragon",block:2675e3,consensus:"pow",finality:null},{name:"byzantium",block:437e4,consensus:"pow",finality:null},{name:"constantinople",block:728e4,consensus:"pow",finality:null},{name:"petersburg",block:728e4,consensus:"pow",finality:null},{name:"istanbul",block:9069e3,consensus:"pow",finality:null},{name:"muirGlacier",block:92e5,consensus:"pow",finality:null}],bootstrapNodes:[{ip:"13.93.211.84",port:30303,id:"3f1d12044546b76342d59d4a05532c14b85aa669704bfe1f864fe079415aa2c02d743e03218e57a33fb94523adb54032871a6c51b2cc5514cb7c7e35b3ed0a99",location:"US-WEST",comment:"Go Bootnode"},{ip:"191.235.84.50",port:30303,id:"78de8a0916848093c73790ead81d1928bec737d565119932b98c6b100d944b7a95e94f847f689fc723399d2e31129d182f7ef3863f2b4c820abbf3ab2722344d",location:"BR",comment:"Go Bootnode"},{ip:"13.75.154.138",port:30303,id:"158f8aab45f6d19c6cbf4a089c2670541a8da11978a2f90dbf6a502a4a3bab80d288afdbeb7ec0ef6d92de563767f3b1ea9e8e334ca711e9f8e2df5a0385e8e6",location:"AU",comment:"Go Bootnode"},{ip:"52.74.57.123",port:30303,id:"1118980bf48b0a3640bdba04e0fe78b1add18e1cd99bf22d53daac1fd9972ad650df52176e7c7d89d1114cfef2bc23a2959aa54998a46afcf7d91809f0855082",location:"SG",comment:"Go Bootnode"}]}},{}],364:[function(e,t,r){t.exports={name:"rinkeby",chainId:4,networkId:4,comment:"PoA test network",url:"https://www.rinkeby.io",genesis:{hash:"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177",timestamp:"0x58ee40ba",gasLimit:47e5,difficulty:1,nonce:"0x0000000000000000",extraData:"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",stateRoot:"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},hardforks:[{name:"chainstart",block:0,consensus:"poa",finality:null},{name:"homestead",block:1,consensus:"poa",finality:null},{name:"dao",block:null,consensus:"poa",finality:null},{name:"tangerineWhistle",block:2,consensus:"poa",finality:null},{name:"spuriousDragon",block:3,consensus:"poa",finality:null},{name:"byzantium",block:1035301,consensus:"poa",finality:null},{name:"constantinople",block:3660663,consensus:"poa",finality:null},{name:"petersburg",block:4321234,consensus:"poa",finality:null},{name:"istanbul",block:5435345,consensus:"poa",finality:null}],bootstrapNodes:[{ip:"52.169.42.101",port:30303,id:"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf",location:"IE",comment:""},{ip:"52.3.158.184",port:30303,id:"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8",location:"",comment:"INFURA"}]}},{}],365:[function(e,t,r){t.exports={name:"ropsten",chainId:3,networkId:3,comment:"PoW test network",url:"https://github.com/ethereum/ropsten",genesis:{hash:"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d",timestamp:null,gasLimit:16777216,difficulty:1048576,nonce:"0x0000000000000042",extraData:"0x3535353535353535353535353535353535353535353535353535353535353535",stateRoot:"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},hardforks:[{name:"chainstart",block:0,consensus:"pow",finality:null},{name:"homestead",block:0,consensus:"pow",finality:null},{name:"dao",block:null,consensus:"pow",finality:null},{name:"tangerineWhistle",block:0,consensus:"pow",finality:null},{name:"spuriousDragon",block:10,consensus:"pow",finality:null},{name:"byzantium",block:17e5,consensus:"pow",finality:null},{name:"constantinople",block:423e4,consensus:"pow",finality:null},{name:"petersburg",block:4939394,consensus:"pow",finality:null},{name:"istanbul",block:6485846,consensus:"pow",finality:null},{name:"muirGlacier",block:7117117,consensus:"pow",finality:null}],bootstrapNodes:[{ip:"52.176.7.10",port:"30303",id:"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606",network:"Ropsten",chainId:3,location:"US",comment:"US-Azure geth"},{ip:"52.176.100.77",port:"30303",id:"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c",network:"Ropsten",chainId:3,location:"US",comment:"US-Azure parity"},{ip:"52.232.243.152",port:"30303",id:"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f",network:"Ropsten",chainId:3,location:"US",comment:"Parity"},{ip:"192.81.208.223",port:"30303",id:"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09",network:"Ropsten",chainId:3,location:"US",comment:"@gpip"}]}},{}],366:[function(e,t,r){t.exports={name:"byzantium",comment:"Hardfork with new precompiles, instructions and other protocol changes",eip:{url:"https://eips.ethereum.org/EIPS/eip-609",status:"Final"},gasConfig:{},gasPrices:{modexpGquaddivisor:{v:20,d:"Gquaddivisor from modexp precompile for gas calculation"},ecAdd:{v:500,d:"Gas costs for curve addition precompile"},ecMul:{v:4e4,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:1e5,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:8e4,d:"Gas costs regarding curve pairing precompile input length"}},vm:{},pow:{minerReward:{v:"3000000000000000000",d:"the amount a miner get rewarded for mining a block"}},casper:{},sharding:{}}},{}],367:[function(e,t,r){t.exports={name:"chainstart",comment:"Start of the Ethereum main chain",eip:{url:"",status:""},status:"",gasConfig:{minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be"},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations"}},gasPrices:{base:{v:2,d:"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},tierStep:{v:[0,2,3,5,8,10,20],d:"Once per operation, for a selection of them"},exp:{v:10,d:"Once per EXP instuction"},expByte:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction"},sha3:{v:30,d:"Once per SHA3 operation"},sha3Word:{v:6,d:"Once per word of the SHA3 operation's data"},sload:{v:50,d:"Once per SLOAD operation"},sstoreSet:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero"},sstoreReset:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero"},sstoreRefund:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero"},jumpdest:{v:1,d:"Refunded gas, once per SSTORE operation if the zeroness changes to zero"},log:{v:375,d:"Per LOG* operation"},logData:{v:8,d:"Per byte in a LOG* operation's data"},logTopic:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},create:{v:32e3,d:"Once per CREATE operation & contract-creation transaction"},call:{v:40,d:"Once per CALL operation & message call transaction"},callStipend:{v:2300,d:"Free gas given at beginning of call"},callValueTransfer:{v:9e3,d:"Paid for CALL when the value transfor is non-zero"},callNewAccount:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior"},selfdestructRefund:{v:24e3,d:"Refunded following a selfdestruct operation"},memory:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation"},createData:{v:200,d:""},tx:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions"},txCreation:{v:32e3,d:"The cost of creating a contract via tx"},txDataZero:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},txDataNonZero:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},copy:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},ecRecover:{v:3e3,d:""},sha256:{v:60,d:""},sha256Word:{v:12,d:""},ripemd160:{v:600,d:""},ripemd160Word:{v:120,d:""},identity:{v:15,d:""},identityWord:{v:3,d:""}},vm:{stackLimit:{v:1024,d:"Maximum size of VM stack allowed"},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack"},maxExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis"}},pow:{minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be"},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations"},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},minerReward:{v:"5000000000000000000",d:"the amount a miner get rewarded for mining a block"}},casper:{},sharding:{}}},{}],368:[function(e,t,r){t.exports={name:"constantinople",comment:"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",eip:{url:"https://eips.ethereum.org/EIPS/eip-1013",status:"Final"},gasConfig:{},gasPrices:{netSstoreNoopGas:{v:200,d:"Once per SSTORE operation if the value doesn't change"},netSstoreInitGas:{v:2e4,d:"Once per SSTORE operation from clean zero"},netSstoreCleanGas:{v:5e3,d:"Once per SSTORE operation from clean non-zero"},netSstoreDirtyGas:{v:200,d:"Once per SSTORE operation from dirty"},netSstoreClearRefund:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},netSstoreResetRefund:{v:4800,d:"Once per SSTORE operation for resetting to the original non-zero value"},netSstoreResetClearRefund:{v:19800,d:"Once per SSTORE operation for resetting to the original zero value"}},vm:{},pow:{minerReward:{v:"2000000000000000000",d:"The amount a miner gets rewarded for mining a block"}},casper:{},sharding:{}}},{}],369:[function(e,t,r){t.exports={name:"dao",comment:"DAO rescue hardfork",eip:{url:"https://eips.ethereum.org/EIPS/eip-779",status:"Final"},gasConfig:{},gasPrices:{},vm:{},pow:{},casper:{},sharding:{}}},{}],370:[function(e,t,r){t.exports={name:"homestead",comment:"Homestead hardfork with protocol and network changes",eip:{url:"https://eips.ethereum.org/EIPS/eip-606",status:"Final"},gasConfig:{},gasPrices:{},vm:{},pow:{},casper:{},sharding:{}}},{}],371:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hardforks=[["chainstart",e("./chainstart.json")],["homestead",e("./homestead.json")],["dao",e("./dao.json")],["tangerineWhistle",e("./tangerineWhistle.json")],["spuriousDragon",e("./spuriousDragon.json")],["byzantium",e("./byzantium.json")],["constantinople",e("./constantinople.json")],["petersburg",e("./petersburg.json")],["istanbul",e("./istanbul.json")],["muirGlacier",e("./muirGlacier.json")]]},{"./byzantium.json":366,"./chainstart.json":367,"./constantinople.json":368,"./dao.json":369,"./homestead.json":370,"./istanbul.json":372,"./muirGlacier.json":373,"./petersburg.json":374,"./spuriousDragon.json":375,"./tangerineWhistle.json":376}],372:[function(e,t,r){t.exports={name:"istanbul",comment:"HF targeted for December 2019 following the Constantinople/Petersburg HF",eip:{url:"https://eips.ethereum.org/EIPS/eip-1679",status:"Draft"},gasConfig:{},gasPrices:{blake2Round:{v:1,d:"Gas cost per round for the Blake2 F precompile"},ecAdd:{v:150,d:"Gas costs for curve addition precompile"},ecMul:{v:6e3,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:45e3,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:34e3,d:"Gas costs regarding curve pairing precompile input length"},txDataNonZero:{v:16,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},sstoreSentryGasEIP2200:{v:2300,d:"Minimum gas required to be present for an SSTORE call, not consumed"},sstoreNoopGasEIP2200:{v:800,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:800,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitGasEIP2200:{v:2e4,d:"Once per SSTORE operation from clean zero to non-zero"},sstoreInitRefundEIP2200:{v:19200,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanGasEIP2200:{v:5e3,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreCleanRefundEIP2200:{v:4200,d:"Once per SSTORE operation for resetting to the original non-zero value"},sstoreClearRefundEIP2200:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"}},vm:{},pow:{},casper:{},sharding:{}}},{}],373:[function(e,t,r){t.exports={name:"muirGlacier",comment:"HF to delay the difficulty bomb",eip:{url:"https://eips.ethereum.org/EIPS/eip-2384",status:"Last Call"},gasConfig:{},gasPrices:{},vm:{},pow:{},casper:{},sharding:{}}},{}],374:[function(e,t,r){t.exports={name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",eip:{url:"https://github.com/ethereum/EIPs/pull/1716",status:"Draft"},gasConfig:{},gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}},vm:{},pow:{},casper:{},sharding:{}}},{}],375:[function(e,t,r){t.exports={name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",eip:{url:"https://eips.ethereum.org/EIPS/eip-607",status:"Final"},gasConfig:{},gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}},pow:{},casper:{},sharding:{}}},{}],376:[function(e,t,r){t.exports={name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",eip:{url:"https://eips.ethereum.org/EIPS/eip-608",status:"Final"},gasConfig:{},gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"}},vm:{},pow:{},casper:{},sharding:{}}},{}],377:[function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0});var n=e("./chains"),s=e("./hardforks"),o=function(){function o(e,t,r){this._chainParams=this.setChain(e),this._hardfork=null,this._supportedHardforks=void 0===r?[]:r,t&&this.setHardfork(t)}return o.forCustomChain=function(e,t,r,n){var i=o._getChainParams(e);return new o(a({},i,t),r,n)},o._getChainParams=function(e){if("number"==typeof e){if(n.chains.names[e])return n.chains[n.chains.names[e]];throw new Error("Chain with ID "+e+" not supported")}if(n.chains[e])return n.chains[e];throw new Error("Chain with name "+e+" not supported")},o.prototype.setChain=function(e){if("number"==typeof e||"string"==typeof e)this._chainParams=o._getChainParams(e);else{if("object"!==i(e))throw new Error("Wrong input format");for(var t=0,r=["networkId","genesis","hardforks","bootstrapNodes"];t<r.length;t++){var n=r[t];if(void 0===e[n])throw new Error("Missing required chain parameter: "+n)}this._chainParams=e}return this._chainParams},o.prototype.setHardfork=function(e){if(!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks");for(var t=!1,r=0,n=s.hardforks;r<n.length;r++){n[r][0]===e&&(this._hardfork=e,t=!0)}if(!t)throw new Error("Hardfork with name "+e+" not supported")},o.prototype._chooseHardfork=function(e,t){if(t=void 0===t||t,e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks")}else{if(!this._hardfork)throw new Error("Method called with neither a hardfork set nor provided by param");e=this._hardfork}return e},o.prototype._getHardfork=function(e){for(var t=0,r=this.hardforks();t<r.length;t++){var n=r[t];if(n.name===e)return n}throw new Error("Hardfork "+e+" not defined for chain "+this.chainName())},o.prototype._isSupportedHardfork=function(e){if(!(0<this._supportedHardforks.length))return!0;for(var t=0,r=this._supportedHardforks;t<r.length;t++){if(e===r[t])return!0}return!1},o.prototype.param=function(e,t,r){var n;r=this._chooseHardfork(r);for(var i=0,o=s.hardforks;i<o.length;i++){var a=o[i];if(!a[1][e])throw new Error("Topic "+e+" not defined");if(void 0!==a[1][e][t]&&(n=a[1][e][t].v),a[0]===r)break}if(void 0===n)throw new Error(e+" value for "+t+" not found");return n},o.prototype.paramByBlock=function(e,t,r){var n=this.activeHardforks(r),i=n[n.length-1].name;return this.param(e,t,i)},o.prototype.hardforkIsActiveOnBlock=function(e,t,r){var n=void 0!==(r=void 0!==r?r:{}).onlySupported&&r.onlySupported;e=this._chooseHardfork(e,n);var i=this.hardforkBlock(e);return null!==i&&i<=t},o.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},o.prototype.hardforkGteHardfork=function(e,t,r){var n=void 0!==(r=void 0!==r?r:{}).onlyActive&&r.onlyActive;e=this._chooseHardfork(e,r.onlySupported);for(var i=-1,o=-1,a=0,s=0,u=n?this.activeHardforks(null,r):this.hardforks();s<u.length;s++){var c=u[s];c.name===e&&(i=a),c.name===t&&(o=a),a+=1}return o<=i},o.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},o.prototype.hardforkIsActiveOnChain=function(e,t){var r=void 0!==(t=void 0!==t?t:{}).onlySupported&&t.onlySupported;e=this._chooseHardfork(e,r);for(var n=0,i=this.hardforks();n<i.length;n++){var o=i[n];if(o.name===e&&null!==o.block)return!0}return!1},o.prototype.activeHardforks=function(e,t){t=void 0!==t?t:{};for(var r=[],n=0,i=this.hardforks();n<i.length;n++){var o=i[n];if(null!==o.block){if(null!=e&&e<o.block)break;t.onlySupported&&!this._isSupportedHardfork(o.name)||r.push(o)}}return r},o.prototype.activeHardfork=function(e,t){t=void 0!==t?t:{};var r=this.activeHardforks(e,t);if(0<r.length)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},o.prototype.hardforkBlock=function(e){return e=this._chooseHardfork(e,!1),this._getHardfork(e).block},o.prototype.isHardforkBlock=function(e,t){return t=this._chooseHardfork(t,!1),this.hardforkBlock(t)===e},o.prototype.consensus=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).consensus},o.prototype.finality=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).finality},o.prototype.genesis=function(){return this._chainParams.genesis},o.prototype.hardforks=function(){return this._chainParams.hardforks},o.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},o.prototype.hardfork=function(){return this._hardfork},o.prototype.chainId=function(){return this._chainParams.chainId},o.prototype.chainName=function(){return n.chains.names[this.chainId()]||this._chainParams.name},o.prototype.networkId=function(){return this._chainParams.networkId},o}();r.default=o},{"./chains":361,"./hardforks":371}],378:[function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var a=e("ethereumjs-util"),s=e("buffer"),i=function(i){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={});var r=i.call(this,e,t)||this;Object.defineProperty(r,"from",{enumerable:!0,configurable:!0,get:function(){return r.getSenderAddress()},set:function(e){e&&(r._from=a.toBuffer(e))}});var n=e;return n.from&&(r.from=a.toBuffer(n.from)),r}return o(e,i),e.prototype.hash=function(e){if(void 0===e&&(e=!0),e&&this._from&&""!==this._from.toString("hex")){var t=s.Buffer.concat([this._from,this._from.slice(0,12)]);this.sign(t)}return i.prototype.hash.call(this,e)},e}(e("./transaction").default);r.default=i},{"./transaction":380,buffer:50,"ethereumjs-util":385}],379:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./transaction");r.Transaction=n.default;var i=e("./fake");r.FakeTransaction=i.default},{"./fake":378,"./transaction":380}],380:[function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0});var o=e("ethereumjs-util"),a=e("ethereumjs-common"),s=e("buffer"),i=new o.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),u=function(){function e(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),t.common){if(t.chain||t.hardfork)throw new Error("Instantiation with both opts.common, and opts.chain and opts.hardfork parameter not allowed!");this._common=t.common}else{var r=t.chain?t.chain:"mainnet",n=t.hardfork?t.hardfork:"petersburg";this._common=new a.default(r,n)}var i=[{name:"nonce",length:32,allowLess:!0,default:new s.Buffer([])},{name:"gasPrice",length:32,allowLess:!0,default:new s.Buffer([])},{name:"gasLimit",alias:"gas",length:32,allowLess:!0,default:new s.Buffer([])},{name:"to",allowZero:!0,length:20,default:new s.Buffer([])},{name:"value",length:32,allowLess:!0,default:new s.Buffer([])},{name:"data",alias:"input",allowZero:!0,default:new s.Buffer([])},{name:"v",allowZero:!0,default:new s.Buffer([])},{name:"r",length:32,allowZero:!0,allowLess:!0,default:new s.Buffer([])},{name:"s",length:32,allowZero:!0,allowLess:!0,default:new s.Buffer([])}];o.defineProperties(this,i,e),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,get:this.getSenderAddress.bind(this)}),this._validateV(this.v),this._overrideVSetterWithValidation()}return e.prototype.toCreationAddress=function(){return""===this.to.toString("hex")},e.prototype.hash=function(e){var t;return void 0===e&&(e=!0),t=e?this.raw:this._implementsEIP155()?this.raw.slice(0,6).concat([o.toBuffer(this.getChainId()),o.stripZeros(o.toBuffer(0)),o.stripZeros(o.toBuffer(0))]):this.raw.slice(0,6),o.rlphash(t)},e.prototype.getChainId=function(){return this._common.chainId()},e.prototype.getSenderAddress=function(){if(this._from)return this._from;var e=this.getSenderPublicKey();return this._from=o.publicToAddress(e),this._from},e.prototype.getSenderPublicKey=function(){if(!this.verifySignature())throw new Error("Invalid Signature");return this._senderPubKey},e.prototype.verifySignature=function(){var e=this.hash(!1);if(this._common.gteHardfork("homestead")&&1===new o.BN(this.s).cmp(i))return!1;try{var t=o.bufferToInt(this.v),r=t>=2*this.getChainId()+35&&this._common.gteHardfork("spuriousDragon");this._senderPubKey=o.ecrecover(e,t,this.r,this.s,r?this.getChainId():void 0)}catch(e){return!1}return!!this._senderPubKey},e.prototype.sign=function(e){this.v=new s.Buffer([]),this.s=new s.Buffer([]),this.r=new s.Buffer([]);var t=this.hash(!1),r=o.ecsign(t,e);this._implementsEIP155()&&(r.v+=2*this.getChainId()+8),Object.assign(this,r)},e.prototype.getDataFee=function(){for(var e=this.raw[5],t=new o.BN(0),r=0;r<e.length;r++)0===e[r]?t.iaddn(this._common.param("gasPrices","txDataZero")):t.iaddn(this._common.param("gasPrices","txDataNonZero"));return t},e.prototype.getBaseFee=function(){var e=this.getDataFee().iaddn(this._common.param("gasPrices","tx"));return this._common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this._common.param("gasPrices","txCreation")),e},e.prototype.getUpfrontCost=function(){return new o.BN(this.gasLimit).imul(new o.BN(this.gasPrice)).iadd(new o.BN(this.value))},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.verifySignature()||t.push("Invalid Signature"),0<this.getBaseFee().cmp(new o.BN(this.gasLimit))&&t.push(["gas limit is too low. Need at least "+this.getBaseFee()]),!1===e?0===t.length:t.join(" ")},e.prototype.serialize=function(){return o.rlp.encode(this.raw)},e.prototype.toJSON=function(e){return void 0===e&&(e=!1),{}},e.prototype._validateV=function(e){if(void 0!==e&&0!==e.length&&this._common.gteHardfork("spuriousDragon")){var t=o.bufferToInt(e);if(27!==t&&28!==t)if(!(t===2*this.getChainId()+35||t===2*this.getChainId()+36))throw new Error("Incompatible EIP155-based V "+t+" and chain id "+this.getChainId()+". See the second parameter of the Transaction constructor to set the chain id.")}},e.prototype._isSigned=function(){return 0<this.v.length&&0<this.r.length&&0<this.s.length},e.prototype._overrideVSetterWithValidation=function(){var t=this,r=Object.getOwnPropertyDescriptor(this,"v");Object.defineProperty(this,"v",n({},r,{set:function(e){void 0!==e&&t._validateV(o.toBuffer(e)),r.set(e)}}))},e.prototype._implementsEIP155=function(){var e=this._common.gteHardfork("spuriousDragon");if(!this._isSigned())return e;var t=o.bufferToInt(this.v);return(t===2*this.getChainId()+35||t===2*this.getChainId()+36)&&e},e}();r.default=u},{buffer:50,"ethereumjs-common":377,"ethereumjs-util":385}],381:[function(e,t,i){(function(a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e("assert"),u=e("ethjs-util"),r=e("secp256k1"),n=e("bn.js"),c=e("./bytes"),f=e("./hash");i.zeroAddress=function(){var e=c.zeros(20);return c.bufferToHex(e)},i.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},i.isZeroAddress=function(e){return i.zeroAddress()===c.addHexPrefix(e)},i.toChecksumAddress=function(e,t){e=u.stripHexPrefix(e).toLowerCase();for(var r=void 0!==t?t.toString()+"0x":"",n=f.keccak(r+e).toString("hex"),i="0x",o=0;o<e.length;o++)8<=parseInt(n[o],16)?i+=e[o].toUpperCase():i+=e[o];return i},i.isValidChecksumAddress=function(e,t){return i.isValidAddress(e)&&i.toChecksumAddress(e,t)===e},i.generateAddress=function(e,t){e=c.toBuffer(e);var r=new n(t);return r.isZero()?f.rlphash([e,null]).slice(-20):f.rlphash([e,a.from(r.toArray())]).slice(-20)},i.generateAddress2=function(e,t,r){var n=c.toBuffer(e),i=c.toBuffer(t),o=c.toBuffer(r);return s(20===n.length),s(32===i.length),f.keccak256(a.concat([a.from("ff","hex"),n,i,f.keccak256(o)])).slice(-20)},i.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&1<=t[0]&&t[0]<=8},i.isValidPrivate=function(e){return r.privateKeyVerify(e)},i.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?r.publicKeyVerify(a.concat([a.from([4]),e])):!!t&&r.publicKeyVerify(e)},i.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=r.publicKeyConvert(e,!1).slice(1)),s(64===e.length),f.keccak(e).slice(-20)},i.publicToAddress=i.pubToAddress,i.privateToAddress=function(e){return i.publicToAddress(i.privateToPublic(e))},i.privateToPublic=function(e){return e=c.toBuffer(e),r.publicKeyCreate(e,!1).slice(1)},i.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=r.publicKeyConvert(e,!1).slice(1)),e}}).call(this,e("buffer").Buffer)},{"./bytes":382,"./hash":384,assert:15,"bn.js":291,buffer:50,"ethjs-util":388,secp256k1:441}],382:[function(e,t,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e("ethjs-util"),t=e("bn.js");i.zeros=function(e){return n.allocUnsafe(e).fill(0)},i.setLengthLeft=function(e,t,r){void 0===r&&(r=!1);var n=i.zeros(t);return e=i.toBuffer(e),r?e.length<t?(e.copy(n),n):e.slice(0,t):e.length<t?(e.copy(n,t-e.length),n):e.slice(-t)},i.setLength=i.setLengthLeft,i.setLengthRight=function(e,t){return i.setLength(e,t,!0)},i.unpad=function(e){for(var t=(e=r.stripHexPrefix(e))[0];0<e.length&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},i.stripZeros=i.unpad,i.toBuffer=function(e){if(!n.isBuffer(e))if(Array.isArray(e))e=n.from(e);else if("string"==typeof e){if(!r.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=n.from(r.padToEven(r.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=r.intToBuffer(e);else if(null==e)e=n.allocUnsafe(0);else if(t.isBN(e))e=e.toArrayLike(n);else{if(!e.toArray)throw new Error("invalid type");e=n.from(e.toArray())}return e},i.bufferToInt=function(e){return new t(i.toBuffer(e)).toNumber()},i.bufferToHex=function(e){return"0x"+(e=i.toBuffer(e)).toString("hex")},i.fromSigned=function(e){return new t(e).fromTwos(256)},i.toUnsigned=function(e){return n.from(e.toTwos(256).toArray())},i.addHexPrefix=function(e){return"string"!=typeof e?e:r.isHexPrefixed(e)?e:"0x"+e},i.baToJSON=function(e){if(n.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var t=[],r=0;r<e.length;r++)t.push(i.baToJSON(e[r]));return t}}}).call(this,e("buffer").Buffer)},{"bn.js":291,buffer:50,"ethjs-util":388}],383:[function(r,e,n){(function(e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=r("bn.js");n.MAX_INTEGER=new t("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),n.TWO_POW256=new t("10000000000000000000000000000000000000000000000000000000000000000",16),n.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",n.KECCAK256_NULL=e.from(n.KECCAK256_NULL_S,"hex"),n.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",n.KECCAK256_RLP_ARRAY=e.from(n.KECCAK256_RLP_ARRAY_S,"hex"),n.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",n.KECCAK256_RLP=e.from(n.KECCAK256_RLP_S,"hex")}).call(this,r("buffer").Buffer)},{"bn.js":291,buffer:50}],384:[function(e,t,s){(function(r){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var n=e("keccak"),i=e("create-hash"),o=e("ethjs-util"),t=e("rlp"),a=e("./bytes");s.keccak=function(e,t){return void 0===t&&(t=256),e="string"!=typeof e||o.isHexString(e)?a.toBuffer(e):r.from(e,"utf8"),t||(t=256),n("keccak"+t).update(e).digest()},s.keccak256=function(e){return s.keccak(e)},s.sha256=function(e){return e=a.toBuffer(e),i("sha256").update(e).digest()},s.ripemd160=function(e,t){e=a.toBuffer(e);var r=i("rmd160").update(e).digest();return!0===t?a.setLength(r,32):r},s.rlphash=function(e){return s.keccak(t.encode(e))}}).call(this,e("buffer").Buffer)},{"./bytes":382,buffer:50,"create-hash":323,"ethjs-util":388,keccak:406,rlp:435}],385:[function(e,t,r){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0});var i=e("secp256k1");r.secp256k1=i;var o=e("ethjs-util"),a=e("bn.js");r.BN=a;var s=e("rlp");r.rlp=s,Object.assign(r,o),n(e("./constants")),n(e("./account")),n(e("./hash")),n(e("./signature")),n(e("./bytes")),n(e("./object"))},{"./account":381,"./bytes":382,"./constants":383,"./hash":384,"./object":386,"./signature":387,"bn.js":291,"ethjs-util":388,rlp:435,secp256k1:441}],386:[function(e,t,r){(function(o){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(r,"__esModule",{value:!0});var a=e("assert"),s=e("ethjs-util"),u=e("rlp"),c=e("./bytes");r.defineProperties=function(i,e,t){if(i.raw=[],i._fields=[],i.toJSON=function(e){if(void 0===e&&(e=!1),e){var t={};return i._fields.forEach(function(e){t[e]="0x"+i[e].toString("hex")}),t}return c.baToJSON(i.raw)},i.serialize=function(){return u.encode(i.raw)},e.forEach(function(t,r){function e(){return i.raw[r]}function n(e){"00"!==(e=c.toBuffer(e)).toString("hex")||t.allowZero||(e=o.allocUnsafe(0)),t.allowLess&&t.length?(e=c.stripZeros(e),a(t.length>=e.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===e.length||!t.length||a(t.length===e.length,"The field "+t.name+" must have byte length of "+t.length),i.raw[r]=e}i._fields.push(t.name),Object.defineProperty(i,t.name,{enumerable:!0,configurable:!0,get:e,set:n}),t.default&&(i[t.name]=t.default),t.alias&&Object.defineProperty(i,t.alias,{enumerable:!1,configurable:!0,set:n,get:e})}),t)if("string"==typeof t&&(t=o.from(s.stripHexPrefix(t),"hex")),o.isBuffer(t)&&(t=u.decode(t)),Array.isArray(t)){if(t.length>i._fields.length)throw new Error("wrong number of fields in data");t.forEach(function(e,t){i[i._fields[t]]=c.toBuffer(e)})}else{if("object"!==n(t))throw new Error("invalid data");var r=Object.keys(t);e.forEach(function(e){-1!==r.indexOf(e.name)&&(i[e.name]=t[e.name]),-1!==r.indexOf(e.alias)&&(i[e.alias]=t[e.alias])})}}}).call(this,e("buffer").Buffer)},{"./bytes":382,assert:15,buffer:50,"ethjs-util":388,rlp:435}],387:[function(e,t,n){(function(u){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var c=e("secp256k1"),f=e("bn.js"),l=e("./bytes"),r=e("./hash");function h(e,t){return t?e-(2*t+35):e-27}function d(e){return 0===e||1===e}n.ecsign=function(e,t,r){var n=c.sign(e,t),i=n.recovery;return{r:n.signature.slice(0,32),s:n.signature.slice(32,64),v:r?i+(2*r+35):i+27}},n.ecrecover=function(e,t,r,n,i){var o=u.concat([l.setLength(r,32),l.setLength(n,32)],64),a=h(t,i);if(!d(a))throw new Error("Invalid signature v value");var s=c.recover(e,o,a);return c.publicKeyConvert(s,!1).slice(1)},n.toRpcSig=function(e,t,r,n){if(!d(h(e,n)))throw new Error("Invalid signature v value");return l.bufferToHex(u.concat([l.setLengthLeft(t,32),l.setLengthLeft(r,32),l.toBuffer(e)]))},n.fromRpcSig=function(e){var t=l.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var r=t[64];return r<27&&(r+=27),{v:r,r:t.slice(0,32),s:t.slice(32,64)}},n.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var o=new f("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),a=new f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!d(h(e,i)))return!1;var s=new f(t),u=new f(r);return!(s.isZero()||s.gt(a)||u.isZero()||u.gt(a))&&(!n||1!==u.cmp(o))},n.hashPersonalMessage=function(e){var t=u.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return r.keccak(u.concat([t,e]))}}).call(this,e("buffer").Buffer)},{"./bytes":382,"./hash":384,"bn.js":291,buffer:50,secp256k1:441}],388:[function(o,s,e){(function(r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=o("is-hex-prefixed"),t=o("strip-hex-prefix");function n(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+a(t)+", while padToEven.");return t.length%2&&(t="0"+t),t}function i(e){return"0x"+e.toString(16)}s.exports={arrayContainsArray:function(t,e,r){if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+a(t)+"'");if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+a(e)+"'");return e[Boolean(r)?"some":"every"](function(e){return 0<=t.indexOf(e)})},intToBuffer:function(e){var t=i(e);return new r(n(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+a(e)+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:e,stripHexPrefix:t,padToEven:n,intToHex:i,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+n(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(n(t(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+a(e)+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+a(t)+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,o("buffer").Buffer)},{buffer:50,"is-hex-prefixed":405,"strip-hex-prefix":455}],389:[function(e,t,r){arguments[4][87][0].apply(r,arguments)},{dup:87,"md5.js":412,"safe-buffer":436}],390:[function(e,t,r){arguments[4][88][0].apply(r,arguments)},{dup:88,inherits:404,"safe-buffer":436,stream:162}],391:[function(e,t,r){arguments[4][89][0].apply(r,arguments)},{"./hash/common":392,"./hash/hmac":393,"./hash/ripemd":394,"./hash/sha":395,"./hash/utils":402,dup:89}],392:[function(e,t,r){arguments[4][90][0].apply(r,arguments)},{"./utils":402,dup:90,"minimalistic-assert":414}],393:[function(e,t,r){arguments[4][91][0].apply(r,arguments)},{"./utils":402,dup:91,"minimalistic-assert":414}],394:[function(e,t,r){arguments[4][92][0].apply(r,arguments)},{"./common":392,"./utils":402,dup:92}],395:[function(e,t,r){arguments[4][93][0].apply(r,arguments)},{"./sha/1":396,"./sha/224":397,"./sha/256":398,"./sha/384":399,"./sha/512":400,dup:93}],396:[function(e,t,r){arguments[4][94][0].apply(r,arguments)},{"../common":392,"../utils":402,"./common":401,dup:94}],397:[function(e,t,r){arguments[4][95][0].apply(r,arguments)},{"../utils":402,"./256":398,dup:95}],398:[function(e,t,r){arguments[4][96][0].apply(r,arguments)},{"../common":392,"../utils":402,"./common":401,dup:96,"minimalistic-assert":414}],399:[function(e,t,r){arguments[4][97][0].apply(r,arguments)},{"../utils":402,"./512":400,dup:97}],400:[function(e,t,r){arguments[4][98][0].apply(r,arguments)},{"../common":392,"../utils":402,dup:98,"minimalistic-assert":414}],401:[function(e,t,r){arguments[4][99][0].apply(r,arguments)},{"../utils":402,dup:99}],402:[function(e,t,r){arguments[4][100][0].apply(r,arguments)},{dup:100,inherits:404,"minimalistic-assert":414}],403:[function(e,t,r){arguments[4][101][0].apply(r,arguments)},{dup:101,"hash.js":391,"minimalistic-assert":414,"minimalistic-crypto-utils":415}],404:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],405:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+n(e)+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},{}],406:[function(e,t,r){"use strict";t.exports=e("./lib/api")(e("./lib/keccak"))},{"./lib/api":407,"./lib/keccak":411}],407:[function(e,t,r){"use strict";var i=e("./keccak"),o=e("./shake");t.exports=function(e){var r=i(e),n=o(e);return function(e,t){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new r(1152,448,null,224,t);case"keccak256":return new r(1088,512,null,256,t);case"keccak384":return new r(832,768,null,384,t);case"keccak512":return new r(576,1024,null,512,t);case"sha3-224":return new r(1152,448,6,224,t);case"sha3-256":return new r(1088,512,6,256,t);case"sha3-384":return new r(832,768,6,384,t);case"sha3-512":return new r(576,1024,6,512,t);case"shake128":return new n(1344,256,31,t);case"shake256":return new n(1088,512,31,t);default:throw new Error("Invald algorithm: "+e)}}}},{"./keccak":408,"./shake":409}],408:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,a=e("stream").Transform,i=e("inherits");t.exports=function(o){function t(e,t,r,n,i){a.call(this,i),this._rate=e,this._capacity=t,this._delimitedSuffix=r,this._hashBitLength=n,this._options=i,this._state=new o,this._state.initialize(e,t),this._finalized=!1}return i(t,a),t.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},t.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},t.prototype.update=function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this},t.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t},t.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},t.prototype._clone=function(){var e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e},t}},{inherits:404,"safe-buffer":436,stream:162}],409:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=e("stream").Transform,a=e("inherits");t.exports=function(i){function t(e,t,r,n){o.call(this,n),this._rate=e,this._capacity=t,this._delimitedSuffix=r,this._options=n,this._state=new i,this._state.initialize(e,t),this._finalized=!1}return a(t,o),t.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},t.prototype._flush=function(){},t.prototype._read=function(e){this.push(this.squeeze(e))},t.prototype.update=function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this},t.prototype.squeeze=function(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r},t.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},t.prototype._clone=function(){var e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e},t}},{inherits:404,"safe-buffer":436,stream:162}],410:[function(e,t,r){"use strict";var at=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(var t=0;t<24;++t){var r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],s=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],c=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],l=e[9]^e[19]^e[29]^e[39]^e[49],h=f^(i<<1|o>>>31),d=l^(o<<1|i>>>31),p=e[0]^h,b=e[1]^d,y=e[10]^h,m=e[11]^d,v=e[20]^h,g=e[21]^d,w=e[30]^h,_=e[31]^d,k=e[40]^h,S=e[41]^d;h=r^(a<<1|s>>>31),d=n^(s<<1|a>>>31);var A=e[2]^h,E=e[3]^d,x=e[12]^h,M=e[13]^d,j=e[22]^h,I=e[23]^d,O=e[32]^h,T=e[33]^d,B=e[42]^h,C=e[43]^d;h=i^(u<<1|c>>>31),d=o^(c<<1|u>>>31);var R=e[4]^h,N=e[5]^d,U=e[14]^h,P=e[15]^d,L=e[24]^h,F=e[25]^d,D=e[34]^h,q=e[35]^d,z=e[44]^h,H=e[45]^d;h=a^(f<<1|l>>>31),d=s^(l<<1|f>>>31);var K=e[6]^h,V=e[7]^d,W=e[16]^h,G=e[17]^d,Y=e[26]^h,X=e[27]^d,J=e[36]^h,Z=e[37]^d,$=e[46]^h,Q=e[47]^d;h=u^(r<<1|n>>>31),d=c^(n<<1|r>>>31);var ee=e[8]^h,te=e[9]^d,re=e[18]^h,ne=e[19]^d,ie=e[28]^h,oe=e[29]^d,ae=e[38]^h,se=e[39]^d,ue=e[48]^h,ce=e[49]^d,fe=p,le=b,he=m<<4|y>>>28,de=y<<4|m>>>28,pe=v<<3|g>>>29,be=g<<3|v>>>29,ye=_<<9|w>>>23,me=w<<9|_>>>23,ve=k<<18|S>>>14,ge=S<<18|k>>>14,we=A<<1|E>>>31,_e=E<<1|A>>>31,ke=M<<12|x>>>20,Se=x<<12|M>>>20,Ae=j<<10|I>>>22,Ee=I<<10|j>>>22,xe=T<<13|O>>>19,Me=O<<13|T>>>19,je=B<<2|C>>>30,Ie=C<<2|B>>>30,Oe=N<<30|R>>>2,Te=R<<30|N>>>2,Be=U<<6|P>>>26,Ce=P<<6|U>>>26,Re=F<<11|L>>>21,Ne=L<<11|F>>>21,Ue=D<<15|q>>>17,Pe=q<<15|D>>>17,Le=H<<29|z>>>3,Fe=z<<29|H>>>3,De=K<<28|V>>>4,qe=V<<28|K>>>4,ze=G<<23|W>>>9,He=W<<23|G>>>9,Ke=Y<<25|X>>>7,Ve=X<<25|Y>>>7,We=J<<21|Z>>>11,Ge=Z<<21|J>>>11,Ye=Q<<24|$>>>8,Xe=$<<24|Q>>>8,Je=ee<<27|te>>>5,Ze=te<<27|ee>>>5,$e=re<<20|ne>>>12,Qe=ne<<20|re>>>12,et=oe<<7|ie>>>25,tt=ie<<7|oe>>>25,rt=ae<<8|se>>>24,nt=se<<8|ae>>>24,it=ue<<14|ce>>>18,ot=ce<<14|ue>>>18;e[0]=fe^~ke&Re,e[1]=le^~Se&Ne,e[10]=De^~$e&pe,e[11]=qe^~Qe&be,e[20]=we^~Be&Ke,e[21]=_e^~Ce&Ve,e[30]=Je^~he&Ae,e[31]=Ze^~de&Ee,e[40]=Oe^~ze&et,e[41]=Te^~He&tt,e[2]=ke^~Re&We,e[3]=Se^~Ne&Ge,e[12]=$e^~pe&xe,e[13]=Qe^~be&Me,e[22]=Be^~Ke&rt,e[23]=Ce^~Ve&nt,e[32]=he^~Ae&Ue,e[33]=de^~Ee&Pe,e[42]=ze^~et&ye,e[43]=He^~tt&me,e[4]=Re^~We&it,e[5]=Ne^~Ge&ot,e[14]=pe^~xe&Le,e[15]=be^~Me&Fe,e[24]=Ke^~rt&ve,e[25]=Ve^~nt&ge,e[34]=Ae^~Ue&Ye,e[35]=Ee^~Pe&Xe,e[44]=et^~ye&je,e[45]=tt^~me&Ie,e[6]=We^~it&fe,e[7]=Ge^~ot&le,e[16]=xe^~Le&De,e[17]=Me^~Fe&qe,e[26]=rt^~ve&we,e[27]=nt^~ge&_e,e[36]=Ue^~Ye&Je,e[37]=Pe^~Xe&Ze,e[46]=ye^~je&Oe,e[47]=me^~Ie&Te,e[8]=it^~fe&ke,e[9]=ot^~le&Se,e[18]=Le^~De&$e,e[19]=Fe^~qe&Qe,e[28]=ve^~we&Be,e[29]=ge^~_e&Ce,e[38]=Ye^~Je&he,e[39]=Xe^~Ze&de,e[48]=je^~Oe&ze,e[49]=Ie^~Te&He,e[0]^=at[2*t],e[1]^=at[2*t+1]}}},{}],411:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("./keccak-state-unroll");function o(){this.state=[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],this.blockSize=null,this.count=0,this.squeezing=!1}o.prototype.initialize=function(e,t){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(e){for(var t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);for(var t=n.alloc(e),r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},o.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=o},{"./keccak-state-unroll":410,"safe-buffer":436}],412:[function(e,t,r){arguments[4][107][0].apply(r,arguments)},{dup:107,"hash-base":390,inherits:404,"safe-buffer":436}],413:[function(e,t,r){arguments[4][108][0].apply(r,arguments)},{"bn.js":291,brorand:292,dup:108}],414:[function(e,t,r){arguments[4][109][0].apply(r,arguments)},{dup:109}],415:[function(e,t,r){arguments[4][110][0].apply(r,arguments)},{dup:110}],416:[function(e,t,r){arguments[4][113][0].apply(r,arguments)},{dup:113}],417:[function(e,t,r){arguments[4][114][0].apply(r,arguments)},{"./certificate":418,"asn1.js":276,dup:114}],418:[function(e,t,r){arguments[4][115][0].apply(r,arguments)},{"asn1.js":276,dup:115}],419:[function(e,t,r){arguments[4][116][0].apply(r,arguments)},{"browserify-aes":295,dup:116,evp_bytestokey:389,"safe-buffer":436}],420:[function(e,t,r){arguments[4][117][0].apply(r,arguments)},{"./aesid.json":416,"./asn1":417,"./fixProc":419,"browserify-aes":295,dup:117,pbkdf2:421,"safe-buffer":436}],421:[function(e,t,r){arguments[4][118][0].apply(r,arguments)},{"./lib/async":422,"./lib/sync":425,dup:118}],422:[function(e,t,r){(function(c,f){"use strict";var l,h=e("./precondition"),d=e("./default-encoding"),p=e("./sync"),b=e("safe-buffer").Buffer,y=f.crypto&&f.crypto.subtle,m={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},v=[];function g(e,t,r,n,i){return y.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return y.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return b.from(e)})}t.exports=function(t,r,n,i,o,a){"function"==typeof o&&(a=o,o=void 0);var e,s,u=m[(o=o||"sha1").toLowerCase()];if(!u||"function"!=typeof f.Promise)return c.nextTick(function(){var e;try{e=p(t,r,n,i,o)}catch(e){return a(e)}a(null,e)});if(h(t,r,n,i),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");b.isBuffer(t)||(t=b.from(t,d)),b.isBuffer(r)||(r=b.from(r,d)),e=function(e){if(f.process&&!f.process.browser)return Promise.resolve(!1);if(!y||!y.importKey||!y.deriveBits)return Promise.resolve(!1);if(void 0!==v[e])return v[e];var t=g(l=l||b.alloc(8),l,10,128,e).then(function(){return!0}).catch(function(){return!1});return v[e]=t}(u).then(function(e){return e?g(t,r,n,i,u):p(t,r,n,i,o)}),s=a,e.then(function(e){c.nextTick(function(){s(null,e)})},function(e){c.nextTick(function(){s(e)})})}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":423,"./precondition":424,"./sync":425,_process:124,"safe-buffer":436}],423:[function(e,r,t){(function(e){"use strict";var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=t}).call(this,e("_process"))},{_process:124}],424:[function(e,t,r){(function(r){"use strict";var i=Math.pow(2,30)-1;function o(e,t){if("string"!=typeof e&&!r.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}t.exports=function(e,t,r,n){if(o(e,"Password"),o(t,"Salt"),"number"!=typeof r)throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||i<n||n!=n)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../../../../node_modules/is-buffer/index.js")})},{"../../../../../node_modules/is-buffer/index.js":105}],425:[function(e,t,r){arguments[4][122][0].apply(r,arguments)},{"./default-encoding":423,"./precondition":424,"create-hash/md5":324,dup:122,ripemd160:434,"safe-buffer":436,"sha.js":448}],426:[function(e,t,r){arguments[4][125][0].apply(r,arguments)},{"./privateDecrypt":428,"./publicEncrypt":429,dup:125}],427:[function(e,t,r){arguments[4][126][0].apply(r,arguments)},{"create-hash":323,dup:126,"safe-buffer":436}],428:[function(e,t,r){arguments[4][127][0].apply(r,arguments)},{"./mgf":427,"./withPublic":430,"./xor":431,"bn.js":291,"browserify-rsa":313,"create-hash":323,dup:127,"parse-asn1":420,"safe-buffer":436}],429:[function(e,t,r){arguments[4][128][0].apply(r,arguments)},{"./mgf":427,"./withPublic":430,"./xor":431,"bn.js":291,"browserify-rsa":313,"create-hash":323,dup:128,"parse-asn1":420,randombytes:432,"safe-buffer":436}],430:[function(e,t,r){arguments[4][129][0].apply(r,arguments)},{"bn.js":291,dup:129,"safe-buffer":436}],431:[function(e,t,r){arguments[4][130][0].apply(r,arguments)},{dup:130}],432:[function(t,r,e){(function(i,e){"use strict";var o=t("safe-buffer").Buffer,a=e.crypto||e.msCrypto;a&&a.getRandomValues?r.exports=function(e,t){if(4294967295<e)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(0<e)if(65536<e)for(var n=0;n<e;n+=65536)a.getRandomValues(r.slice(n,n+65536));else a.getRandomValues(r);return"function"!=typeof t?r:i.nextTick(function(){t(null,r)})}:r.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":436}],433:[function(r,e,d){(function(a,i){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=r("safe-buffer"),s=r("randombytes"),o=t.Buffer,n=t.kMaxLength,u=i.crypto||i.msCrypto,c=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(c<e||e<0)throw new TypeError("offset must be a uint32");if(n<e||t<e)throw new RangeError("offset out of range")}function l(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(c<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||n<e)throw new RangeError("buffer too small")}function h(r,n,e,i){if(a.browser){var t=r.buffer,o=new Uint8Array(t,n,e);return u.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return s(e).copy(r,n),r;s(e,function(e,t){if(e)return i(e);t.copy(r,n),i(null,r)})}u&&u.getRandomValues||!a.browser?(d.randomFill=function(e,t,r,n){if(!(o.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return f(t,e.length),l(r,t,e.length),h(e,t,r,n)},d.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(o.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(t,e.length),void 0===r&&(r=e.length-t);return l(r,t,e.length),h(e,t,r)}):(d.randomFill=e,d.randomFillSync=e)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,randombytes:432,"safe-buffer":436}],434:[function(e,t,r){arguments[4][152][0].apply(r,arguments)},{buffer:50,dup:152,"hash-base":390,inherits:404}],435:[function(e,t,r){(function(f){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("bn.js");function l(e,t){if("00"===e.slice(0,2))throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function a(e,t){if(e<56)return f.from([e+t]);var r=s(e),n=s(t+55+r.length/2);return f.from(n+r,"hex")}function o(e){return"0x"===e.slice(0,2)}function s(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function u(e){if(f.isBuffer(e))return e;var t,r,n;if("string"==typeof e)return o(e)?f.from((r="string"!=typeof(n=e)?n:o(n)?n.slice(2):n).length%2?"0"+r:r,"hex"):f.from(e);if("number"==typeof e)return e?(t=s(e),f.from(t,"hex")):f.from([]);if(null==e)return f.from([]);if(e instanceof Uint8Array)return f.from(e);if(i.isBN(e))return f.from(e.toArray());throw new Error("invalid type")}r.encode=function e(t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++)r.push(e(t[n]));var i=f.concat(r);return f.concat([a(i.length,192),i])}var o=u(t);return 1===o.length&&o[0]<128?o:f.concat([a(o.length,128),o])},r.decode=function(e,t){if(void 0===t&&(t=!1),!e||0===e.length)return f.from([]);var r=function e(t){var r,n,i,o,a,s=[],u=t[0];if(u<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(u<=183){if(r=u-127,i=128===u?f.from([]):t.slice(1,r),2===r&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:t.slice(r)}}if(u<=191){if(n=u-182,r=l(t.slice(1,n).toString("hex"),16),(i=t.slice(n,r+n)).length<r)throw new Error("invalid RLP");return{data:i,remainder:t.slice(r+n)}}if(u<=247){for(r=u-191,o=t.slice(1,r);o.length;)a=e(o),s.push(a.data),o=a.remainder;return{data:s,remainder:t.slice(r)}}n=u-246,r=l(t.slice(1,n).toString("hex"),16);var c=n+r;if(c>t.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(o=t.slice(n,c)).length)throw new Error("invalid rlp, List has a invalid length");for(;o.length;)a=e(o),s.push(a.data),o=a.remainder;return{data:s,remainder:t.slice(c)}}(u(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid remainder");return r.data},r.getLength=function(e){if(!e||0===e.length)return f.from([]);var t=u(e),r=t[0];if(r<=127)return t.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var n=r-246;return n+l(t.slice(1,n).toString("hex"),16)}}).call(this,e("buffer").Buffer)},{"bn.js":291,buffer:50}],436:[function(e,t,r){arguments[4][183][0].apply(r,arguments)},{buffer:50,dup:183}],437:[function(e,t,r){"use strict";var n=e("./scryptSync");n.async=e("./scrypt"),t.exports=n},{"./scrypt":438,"./scryptSync":439}],438:[function(e,t,r){"use strict";function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}var v=e("crypto"),n=e("./utils"),g=n.checkAndInit,w=n.smix;function c(){var s;return s=regeneratorRuntime.mark(function e(t,r,n,i,o,a,s,u){var c,f,l,h,d,p,b,y,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=g(t,r,n,i,o,a,s),f=c.XY,l=c.V,h=c.B32,d=c.x,p=c._X,b=c.B,y=c.tickCallback,m=0;case 2:if(m<o)return e.next=5,w(b,128*m*i,i,n,l,f,p,h,d,y,u);e.next=8;break;case 5:m++,e.next=2;break;case 8:return e.abrupt("return",v.pbkdf2Sync(t,b,1,a,"sha256"));case 9:case"end":return e.stop()}},e)}),(c=function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function i(e){u(n,t,r,i,o,"next",e)}function o(e){u(n,t,r,i,o,"throw",e)}i(void 0)})}).apply(this,arguments)}t.exports=function(e,t,r,n,i,o,a,s){return c.apply(this,arguments)}},{"./utils":440,crypto:59}],439:[function(e,t,r){"use strict";var y=e("crypto"),n=e("./utils"),m=n.checkAndInit,v=n.smixSync;t.exports=function(e,t,r,n,i,o,a){for(var s=m(e,t,r,n,i,o,a),u=s.XY,c=s.V,f=s.B32,l=s.x,h=s._X,d=s.B,p=s.tickCallback,b=0;b<i;b++)v(d,128*b*n,n,r,c,u,h,f,l,p);return y.pbkdf2Sync(e,d,1,o,"sha256")}},{"./utils":440,crypto:59}],440:[function(e,t,r){(function(y,m){"use strict";function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}var v=e("crypto"),g=5e3;function l(){var s;return s=regeneratorRuntime.mark(function e(t,r,n,i,o,a,s,u,c,f,l){var h,d,p,b,y;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:l=l||g,h=0,d=128*n,t.copy(a,h,r,r+d),p=0;case 5:if(!(p<i)){e.next=15;break}if(a.copy(o,p*d,h,h+d),p%l==0)return e.next=10,new Promise(function(e){return m(e)});e.next=10;break;case 10:w(a,h,d,n,s,u,c),f&&f();case 12:p++,e.next=5;break;case 15:p=0;case 16:if(!(p<i)){e.next=28;break}if(b=h+64*(2*n-1),y=a.readUInt32LE(b)&i-1,_(o,y*d,a,h,d),p%l==0)return e.next=23,new Promise(function(e){return m(e)});e.next=23;break;case 23:w(a,h,d,n,s,u,c),f&&f();case 25:p++,e.next=16;break;case 28:a.copy(t,r,h,h+d);case 29:case"end":return e.stop()}},e)}),(l=function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function i(e){u(n,t,r,i,o,"next",e)}function o(e){u(n,t,r,i,o,"throw",e)}i(void 0)})}).apply(this,arguments)}function w(e,t,r,n,i,o,a){var s;for(f(e,t+64*(2*n-1),i,0,64),s=0;s<2*n;s++)_(e,64*s,i,0,64),c(i,o,a),f(i,0,e,r+64*s,64);for(s=0;s<n;s++)f(e,r+2*s*64,e,t+64*s,64);for(s=0;s<n;s++)f(e,r+64*(2*s+1),e,t+64*(s+n),64)}function o(e,t){return e<<t|e>>>32-t}function c(e,t,r){var n;for(n=0;n<16;n++)t[n]=(255&e[4*n+0])<<0,t[n]|=(255&e[4*n+1])<<8,t[n]|=(255&e[4*n+2])<<16,t[n]|=(255&e[4*n+3])<<24;for(f(t,0,r,0,16),n=8;0<n;n-=2)r[4]^=o(r[0]+r[12],7),r[8]^=o(r[4]+r[0],9),r[12]^=o(r[8]+r[4],13),r[0]^=o(r[12]+r[8],18),r[9]^=o(r[5]+r[1],7),r[13]^=o(r[9]+r[5],9),r[1]^=o(r[13]+r[9],13),r[5]^=o(r[1]+r[13],18),r[14]^=o(r[10]+r[6],7),r[2]^=o(r[14]+r[10],9),r[6]^=o(r[2]+r[14],13),r[10]^=o(r[6]+r[2],18),r[3]^=o(r[15]+r[11],7),r[7]^=o(r[3]+r[15],9),r[11]^=o(r[7]+r[3],13),r[15]^=o(r[11]+r[7],18),r[1]^=o(r[0]+r[3],7),r[2]^=o(r[1]+r[0],9),r[3]^=o(r[2]+r[1],13),r[0]^=o(r[3]+r[2],18),r[6]^=o(r[5]+r[4],7),r[7]^=o(r[6]+r[5],9),r[4]^=o(r[7]+r[6],13),r[5]^=o(r[4]+r[7],18),r[11]^=o(r[10]+r[9],7),r[8]^=o(r[11]+r[10],9),r[9]^=o(r[8]+r[11],13),r[10]^=o(r[9]+r[8],18),r[12]^=o(r[15]+r[14],7),r[13]^=o(r[12]+r[15],9),r[14]^=o(r[13]+r[12],13),r[15]^=o(r[14]+r[13],18);for(n=0;n<16;++n)t[n]=r[n]+t[n];for(n=0;n<16;n++){var i=4*n;e[i+0]=t[n]>>0&255,e[i+1]=t[n]>>8&255,e[i+2]=t[n]>>16&255,e[i+3]=t[n]>>24&255}}function _(e,t,r,n,i){for(var o=0;o<i;o++)r[n+o]^=e[t+o]}function f(e,t,r,n,i){if(y.isBuffer(e)&&y.isBuffer(r))e.copy(r,n,t,t+i);else for(;i--;)r[n++]=e[t++]}t.exports={checkAndInit:function(e,t,r,n,i,o,a){if(0===r||0!=(r&r-1))throw Error("N must be > 0 and a power of 2");if(2147483647/128/n<r)throw Error("Parameter N is too large");if(2147483647/128/i<n)throw Error("Parameter r is too large");var s,u=y.alloc(256*n),c=y.alloc(128*n*r),f=new Int32Array(16),l=new Int32Array(16),h=y.alloc(64),d=v.pbkdf2Sync(e,t,1,128*i*n,"sha256");if(a){var p=i*r*2,b=0;s=function(){++b%1e3==0&&a({current:b,total:p,percent:b/p*100})}}return{XY:u,V:c,B32:f,x:l,_X:h,B:d,tickCallback:s}},smix:function(e,t,r,n,i,o,a,s,u,c,f){return l.apply(this,arguments)},smixSync:function(e,t,r,n,i,o,a,s,u,c){var f,l=128*r;for(e.copy(o,0,t,t+l),f=0;f<n;f++)o.copy(i,f*l,0,0+l),w(o,0,l,r,a,s,u),c&&c();for(f=0;f<n;f++){var h=0+64*(2*r-1);_(i,(o.readUInt32LE(h)&n-1)*l,o,0,l),w(o,0,l,r,a,s,u),c&&c()}o.copy(e,t,0,0+l)}}}).call(this,e("buffer").Buffer,e("timers").setImmediate)},{buffer:50,crypto:59,timers:184}],441:[function(e,t,r){"use strict";t.exports=e("./lib")(e("./lib/elliptic"))},{"./lib":445,"./lib/elliptic":444}],442:[function(e,t,i){(function(r){"use strict";var n=Object.prototype.toString;i.isArray=function(e,t){if(!Array.isArray(e))throw TypeError(t)},i.isBoolean=function(e,t){if("[object Boolean]"!==n.call(e))throw TypeError(t)},i.isBuffer=function(e,t){if(!r.isBuffer(e))throw TypeError(t)},i.isFunction=function(e,t){if("[object Function]"!==n.call(e))throw TypeError(t)},i.isNumber=function(e,t){if("[object Number]"!==n.call(e))throw TypeError(t)},i.isObject=function(e,t){if("[object Object]"!==n.call(e))throw TypeError(t)},i.isBufferLength=function(e,t,r){if(e.length!==t)throw RangeError(r)},i.isBufferLength2=function(e,t,r,n){if(e.length!==t&&e.length!==r)throw RangeError(n)},i.isLengthGTZero=function(e,t){if(0===e.length)throw RangeError(t)},i.isNumberInInterval=function(e,t,r,n){if(e<=t||r<=e)throw RangeError(n)}}).call(this,{isBuffer:e("../../../../../node_modules/is-buffer/index.js")})},{"../../../../../node_modules/is-buffer/index.js":105}],443:[function(e,t,r){"use strict";var h=e("safe-buffer").Buffer,s=e("bip66"),i=h.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]),o=h.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]);r.privateKeyExport=function(e,t,r){var n=h.from(r?i:o);return e.copy(n,r?8:9),t.copy(n,r?181:214),n},r.privateKeyImport=function(e){var t=e.length,r=0;if(!(t<r+1||48!==e[r])&&!(t<(r+=1)+1)&&128&e[r]){var n=127&e[r];if(r+=1,!(n<1||2<n||t<r+n)){var i=e[r+n-1]|(1<n?e[r+n-2]<<8:0);if(!(t<(r+=n)+i||t<r+3||2!==e[r]||1!==e[r+1]||1!==e[r+2]||t<(r+=3)+2||4!==e[r]||32<e[r+1]||t<r+2+e[r+1]))return e.slice(r+2,r+2+e[r+1])}}},r.signatureExport=function(e){for(var t=h.concat([h.from([0]),e.r]),r=33,n=0;1<r&&0===t[n]&&!(128&t[n+1]);--r,++n);for(var i=h.concat([h.from([0]),e.s]),o=33,a=0;1<o&&0===i[a]&&!(128&i[a+1]);--o,++a);return s.encode(t.slice(n),i.slice(a))},r.signatureImport=function(e){var t=h.alloc(32,0),r=h.alloc(32,0);try{var n=s.decode(e);if(33===n.r.length&&0===n.r[0]&&(n.r=n.r.slice(1)),32<n.r.length)throw new Error("R length is too long");if(33===n.s.length&&0===n.s[0]&&(n.s=n.s.slice(1)),32<n.s.length)throw new Error("S length is too long")}catch(e){return}return n.r.copy(t,32-n.r.length),n.s.copy(r,32-n.s.length),{r:t,s:r}},r.signatureImportLax=function(e){var t=h.alloc(32,0),r=h.alloc(32,0),n=e.length,i=0;if(48===e[i++]){var o=e[i++];if(!(128&o&&n<(i+=o-128))&&2===e[i++]){var a=e[i++];if(128&a){if(n<i+(o=a-128))return;for(;0<o&&0===e[i];i+=1,o-=1);for(a=0;0<o;i+=1,o-=1)a=(a<<8)+e[i]}if(!(n-i<a)){var s=i;if(i+=a,2===e[i++]){var u=e[i++];if(128&u){if(n<i+(o=u-128))return;for(;0<o&&0===e[i];i+=1,o-=1);for(u=0;0<o;i+=1,o-=1)u=(u<<8)+e[i]}if(!(n-i<u)){var c=i;for(i+=u;0<a&&0===e[s];a-=1,s+=1);if(!(32<a)){var f=e.slice(s,s+a);for(f.copy(t,32-f.length);0<u&&0===e[c];u-=1,c+=1);if(!(32<u)){var l=e.slice(c,c+u);return l.copy(r,32-l.length),{r:t,s:r}}}}}}}}}},{bip66:290,"safe-buffer":436}],444:[function(e,t,n){"use strict";var u=e("safe-buffer").Buffer,i=e("create-hash"),c=e("bn.js"),r=e("elliptic").ec,f=e("../messages.json"),l=new r("secp256k1"),h=l.curve;function s(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new c(t);if(0<=r.cmp(h.p))return null;var n=(r=r.toRed(h.red)).redSqr().redIMul(r).redIAdd(h.b).redSqrt();return 3===e!==n.isOdd()&&(n=n.redNeg()),l.keyPair({pub:{x:r,y:n}})}(t,e.slice(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var n=new c(t),i=new c(r);if(0<=n.cmp(h.p)||0<=i.cmp(h.p))return null;if(n=n.toRed(h.red),i=i.toRed(h.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;var o=n.redSqr().redIMul(n);return i.redSqr().redISub(o.redIAdd(h.b)).isZero()?l.keyPair({pub:{x:n,y:i}}):null}(t,e.slice(1,33),e.slice(33,65));default:return null}}n.privateKeyVerify=function(e){var t=new c(e);return t.cmp(h.n)<0&&!t.isZero()},n.privateKeyExport=function(e,t){var r=new c(e);if(0<=r.cmp(h.n)||r.isZero())throw new Error(f.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return u.from(l.keyFromPrivate(e).getPublic(t,!0))},n.privateKeyNegate=function(e){var t=new c(e);return t.isZero()?u.alloc(32):h.n.sub(t).umod(h.n).toArrayLike(u,"be",32)},n.privateKeyModInverse=function(e){var t=new c(e);if(0<=t.cmp(h.n)||t.isZero())throw new Error(f.EC_PRIVATE_KEY_RANGE_INVALID);return t.invm(h.n).toArrayLike(u,"be",32)},n.privateKeyTweakAdd=function(e,t){var r=new c(t);if(0<=r.cmp(h.n))throw new Error(f.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(r.iadd(new c(e)),0<=r.cmp(h.n)&&r.isub(h.n),r.isZero())throw new Error(f.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return r.toArrayLike(u,"be",32)},n.privateKeyTweakMul=function(e,t){var r=new c(t);if(0<=r.cmp(h.n)||r.isZero())throw new Error(f.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return r.imul(new c(e)),r.cmp(h.n)&&(r=r.umod(h.n)),r.toArrayLike(u,"be",32)},n.publicKeyCreate=function(e,t){var r=new c(e);if(0<=r.cmp(h.n)||r.isZero())throw new Error(f.EC_PUBLIC_KEY_CREATE_FAIL);return u.from(l.keyFromPrivate(e).getPublic(t,!0))},n.publicKeyConvert=function(e,t){var r=s(e);if(null===r)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);return u.from(r.getPublic(t,!0))},n.publicKeyVerify=function(e){return null!==s(e)},n.publicKeyTweakAdd=function(e,t,r){var n=s(e);if(null===n)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);if(0<=(t=new c(t)).cmp(h.n))throw new Error(f.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);var i=h.g.mul(t).add(n.pub);if(i.isInfinity())throw new Error(f.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return u.from(i.encode(!0,r))},n.publicKeyTweakMul=function(e,t,r){var n=s(e);if(null===n)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);if(0<=(t=new c(t)).cmp(h.n)||t.isZero())throw new Error(f.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return u.from(n.pub.mul(t).encode(!0,r))},n.publicKeyCombine=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;++n)if(r[n]=s(e[n]),null===r[n])throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);for(var i=r[0].pub,o=1;o<r.length;++o)i=i.add(r[o].pub);if(i.isInfinity())throw new Error(f.EC_PUBLIC_KEY_COMBINE_FAIL);return u.from(i.encode(!0,t))},n.signatureNormalize=function(e){var t=new c(e.slice(0,32)),r=new c(e.slice(32,64));if(0<=t.cmp(h.n)||0<=r.cmp(h.n))throw new Error(f.ECDSA_SIGNATURE_PARSE_FAIL);var n=u.from(e);return 1===r.cmp(l.nh)&&h.n.sub(r).toArrayLike(u,"be",32).copy(n,32),n},n.signatureExport=function(e){var t=e.slice(0,32),r=e.slice(32,64);if(0<=new c(t).cmp(h.n)||0<=new c(r).cmp(h.n))throw new Error(f.ECDSA_SIGNATURE_PARSE_FAIL);return{r:t,s:r}},n.signatureImport=function(e){var t=new c(e.r);0<=t.cmp(h.n)&&(t=new c(0));var r=new c(e.s);return 0<=r.cmp(h.n)&&(r=new c(0)),u.concat([t.toArrayLike(u,"be",32),r.toArrayLike(u,"be",32)])},n.sign=function(r,n,e,i){if("function"==typeof e){var o=e;e=function(e){var t=o(r,n,null,i,e);if(!u.isBuffer(t)||32!==t.length)throw new Error(f.ECDSA_SIGN_FAIL);return new c(t)}}var t=new c(n);if(0<=t.cmp(h.n)||t.isZero())throw new Error(f.ECDSA_SIGN_FAIL);var a=l.sign(r,n,{canonical:!0,k:e,pers:i});return{signature:u.concat([a.r.toArrayLike(u,"be",32),a.s.toArrayLike(u,"be",32)]),recovery:a.recoveryParam}},n.verify=function(e,t,r){var n={r:t.slice(0,32),s:t.slice(32,64)},i=new c(n.r),o=new c(n.s);if(0<=i.cmp(h.n)||0<=o.cmp(h.n))throw new Error(f.ECDSA_SIGNATURE_PARSE_FAIL);if(1===o.cmp(l.nh)||i.isZero()||o.isZero())return!1;var a=s(r);if(null===a)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);return l.verify(e,n,{x:a.pub.x,y:a.pub.y})},n.recover=function(e,t,r,n){var i={r:t.slice(0,32),s:t.slice(32,64)},o=new c(i.r),a=new c(i.s);if(0<=o.cmp(h.n)||0<=a.cmp(h.n))throw new Error(f.ECDSA_SIGNATURE_PARSE_FAIL);try{if(o.isZero()||a.isZero())throw new Error;var s=l.recoverPubKey(e,i,r);return u.from(s.encode(!0,n))}catch(e){throw new Error(f.ECDSA_RECOVER_FAIL)}},n.ecdh=function(e,t){var r=n.ecdhUnsafe(e,t,!0);return i("sha256").update(r).digest()},n.ecdhUnsafe=function(e,t,r){var n=s(e);if(null===n)throw new Error(f.EC_PUBLIC_KEY_PARSE_FAIL);var i=new c(t);if(0<=i.cmp(h.n)||i.isZero())throw new Error(f.ECDH_FAIL);return u.from(n.pub.mul(i).encode(!0,r))}},{"../messages.json":446,"bn.js":291,"create-hash":323,elliptic:338,"safe-buffer":436}],445:[function(e,t,r){"use strict";var a=e("./assert"),n=e("./der"),s=e("./messages.json");function i(e,t){return void 0===e?t:(a.isBoolean(e,s.COMPRESSED_TYPE_INVALID),e)}t.exports=function(o){return{privateKeyVerify:function(e){return a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),32===e.length&&o.privateKeyVerify(e)},privateKeyExport:function(e,t){a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),t=i(t,!0);var r=o.privateKeyExport(e,t);return n.privateKeyExport(e,r,t)},privateKeyImport:function(e){if(a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),(e=n.privateKeyImport(e))&&32===e.length&&o.privateKeyVerify(e))return e;throw new Error(s.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(e){return a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),o.privateKeyNegate(e)},privateKeyModInverse:function(e){return a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),o.privateKeyModInverse(e)},privateKeyTweakAdd:function(e,t){return a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),a.isBuffer(t,s.TWEAK_TYPE_INVALID),a.isBufferLength(t,32,s.TWEAK_LENGTH_INVALID),o.privateKeyTweakAdd(e,t)},privateKeyTweakMul:function(e,t){return a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),a.isBuffer(t,s.TWEAK_TYPE_INVALID),a.isBufferLength(t,32,s.TWEAK_LENGTH_INVALID),o.privateKeyTweakMul(e,t)},publicKeyCreate:function(e,t){return a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),t=i(t,!0),o.publicKeyCreate(e,t)},publicKeyConvert:function(e,t){return a.isBuffer(e,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(e,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),t=i(t,!0),o.publicKeyConvert(e,t)},publicKeyVerify:function(e){return a.isBuffer(e,s.EC_PUBLIC_KEY_TYPE_INVALID),o.publicKeyVerify(e)},publicKeyTweakAdd:function(e,t,r){return a.isBuffer(e,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(e,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(t,s.TWEAK_TYPE_INVALID),a.isBufferLength(t,32,s.TWEAK_LENGTH_INVALID),r=i(r,!0),o.publicKeyTweakAdd(e,t,r)},publicKeyTweakMul:function(e,t,r){return a.isBuffer(e,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(e,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(t,s.TWEAK_TYPE_INVALID),a.isBufferLength(t,32,s.TWEAK_LENGTH_INVALID),r=i(r,!0),o.publicKeyTweakMul(e,t,r)},publicKeyCombine:function(e,t){a.isArray(e,s.EC_PUBLIC_KEYS_TYPE_INVALID),a.isLengthGTZero(e,s.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var r=0;r<e.length;++r)a.isBuffer(e[r],s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(e[r],33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID);return t=i(t,!0),o.publicKeyCombine(e,t)},signatureNormalize:function(e){return a.isBuffer(e,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(e,64,s.ECDSA_SIGNATURE_LENGTH_INVALID),o.signatureNormalize(e)},signatureExport:function(e){a.isBuffer(e,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(e,64,s.ECDSA_SIGNATURE_LENGTH_INVALID);var t=o.signatureExport(e);return n.signatureExport(t)},signatureImport:function(e){a.isBuffer(e,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isLengthGTZero(e,s.ECDSA_SIGNATURE_LENGTH_INVALID);var t=n.signatureImport(e);if(t)return o.signatureImport(t);throw new Error(s.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(e){a.isBuffer(e,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isLengthGTZero(e,s.ECDSA_SIGNATURE_LENGTH_INVALID);var t=n.signatureImportLax(e);if(t)return o.signatureImport(t);throw new Error(s.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(e,t,r){a.isBuffer(e,s.MSG32_TYPE_INVALID),a.isBufferLength(e,32,s.MSG32_LENGTH_INVALID),a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID);var n=null,i=null;return void 0!==r&&(a.isObject(r,s.OPTIONS_TYPE_INVALID),void 0!==r.data&&(a.isBuffer(r.data,s.OPTIONS_DATA_TYPE_INVALID),a.isBufferLength(r.data,32,s.OPTIONS_DATA_LENGTH_INVALID),n=r.data),void 0!==r.noncefn&&(a.isFunction(r.noncefn,s.OPTIONS_NONCEFN_TYPE_INVALID),i=r.noncefn)),o.sign(e,t,i,n)},verify:function(e,t,r){return a.isBuffer(e,s.MSG32_TYPE_INVALID),a.isBufferLength(e,32,s.MSG32_LENGTH_INVALID),a.isBuffer(t,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(t,64,s.ECDSA_SIGNATURE_LENGTH_INVALID),a.isBuffer(r,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(r,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),o.verify(e,t,r)},recover:function(e,t,r,n){return a.isBuffer(e,s.MSG32_TYPE_INVALID),a.isBufferLength(e,32,s.MSG32_LENGTH_INVALID),a.isBuffer(t,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(t,64,s.ECDSA_SIGNATURE_LENGTH_INVALID),a.isNumber(r,s.RECOVERY_ID_TYPE_INVALID),a.isNumberInInterval(r,-1,4,s.RECOVERY_ID_VALUE_INVALID),n=i(n,!0),o.recover(e,t,r,n)},ecdh:function(e,t){return a.isBuffer(e,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(e,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),o.ecdh(e,t)},ecdhUnsafe:function(e,t,r){return a.isBuffer(e,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(e,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),r=i(r,!0),o.ecdhUnsafe(e,t,r)}}}},{"./assert":442,"./der":443,"./messages.json":446}],446:[function(e,t,r){t.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_RANGE_INVALID:"private key range 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"}},{}],447:[function(e,t,r){arguments[4][154][0].apply(r,arguments)},{dup:154,"safe-buffer":436}],448:[function(e,t,r){arguments[4][155][0].apply(r,arguments)},{"./sha":449,"./sha1":450,"./sha224":451,"./sha256":452,"./sha384":453,"./sha512":454,dup:155}],449:[function(e,t,r){arguments[4][156][0].apply(r,arguments)},{"./hash":447,dup:156,inherits:404,"safe-buffer":436}],450:[function(e,t,r){arguments[4][157][0].apply(r,arguments)},{"./hash":447,dup:157,inherits:404,"safe-buffer":436}],451:[function(e,t,r){arguments[4][158][0].apply(r,arguments)},{"./hash":447,"./sha256":452,dup:158,inherits:404,"safe-buffer":436}],452:[function(e,t,r){arguments[4][159][0].apply(r,arguments)},{"./hash":447,dup:159,inherits:404,"safe-buffer":436}],453:[function(e,t,r){arguments[4][160][0].apply(r,arguments)},{"./hash":447,"./sha512":454,dup:160,inherits:404,"safe-buffer":436}],454:[function(e,t,r){arguments[4][161][0].apply(r,arguments)},{"./hash":447,dup:161,inherits:404,"safe-buffer":436}],455:[function(e,t,r){"use strict";var n=e("is-hex-prefixed");t.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},{"is-hex-prefixed":405}],456:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],457:[function(e,t,r){"use strict";var n=e("./v1"),i=e("./v4"),o=i;o.v1=n,o.v4=i,t.exports=o},{"./v1":460,"./v4":461}],458:[function(e,t,r){"use strict";for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(e,t){var r=t||0,n=i;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},{}],459:[function(e,t,r){"use strict";var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var o=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},{}],460:[function(e,t,r){"use strict";var p,b,y=e("./lib/rng"),m=e("./lib/bytesToUuid"),v=0,g=0;t.exports=function(e,t,r){var n=t&&r||0,i=t||[],o=(e=e||{}).node||p,a=void 0!==e.clockseq?e.clockseq:b;if(null==o||null==a){var s=y();null==o&&(o=p=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=b=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:g+1,f=u-v+(c-g)/1e4;if(f<0&&void 0===e.clockseq&&(a=a+1&16383),(f<0||v<u)&&void 0===e.nsecs&&(c=0),1e4<=c)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=u,b=a;var l=(1e4*(268435455&(u+=122192928e5))+(g=c))%4294967296;i[n++]=l>>>24&255,i[n++]=l>>>16&255,i[n++]=l>>>8&255,i[n++]=255&l;var h=u/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=255&h,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(var d=0;d<6;++d)i[n+d]=o[d];return t||m(i)}},{"./lib/bytesToUuid":458,"./lib/rng":459}],461:[function(e,t,r){"use strict";var a=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[n+o]=i[o];return t||s(i)}},{"./lib/bytesToUuid":458,"./lib/rng":459}],462:[function(a,l,e){(function(e,h){"use strict";var d=a("underscore"),r=a("web3-core"),n=a("web3-core-method"),s=a("eth-lib/lib/account"),u=a("eth-lib/lib/hash"),c=a("eth-lib/lib/rlp"),f=a("eth-lib/lib/bytes"),p=a(void 0===e?"crypto-browserify":"crypto"),b=a("@web3-js/scrypt-shim"),y=a("uuid"),m=a("web3-utils"),v=a("web3-core-helpers"),g=a("ethereumjs-tx").Transaction,w=a("ethereumjs-common").default,i=function(e){return d.isUndefined(e)||d.isNull(e)},t=function(){var t=this;r.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var e=[new n({name:"getNetworkId",call:"net_version",params:0,outputFormatter:parseInt}),new n({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:m.hexToNumber}),new n({name:"getGasPrice",call:"eth_gasPrice",params:0}),new n({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(e){if(m.isAddress(e))return e;throw new Error("Address "+e+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]})];this._ethereumCall={},d.each(e,function(e){e.attachToObject(t._ethereumCall),e.setRequestManager(t._requestManager)}),this.wallet=new o(this)};function o(e){this._accounts=e,this.length=0,this.defaultKeyName="web3js_wallet"}t.prototype._addAccountFunctions=function(r){var n=this;return r.signTransaction=function(e,t){return n.signTransaction(e,r.privateKey,t)},r.sign=function(e){return n.sign(e,r.privateKey)},r.encrypt=function(e,t){return n.encrypt(r.privateKey,e,t)},r},t.prototype.create=function(e){return this._addAccountFunctions(s.create(e||m.randomHex(32)))},t.prototype.privateKeyToAccount=function(e,t){if(e.startsWith("0x")||(e="0x"+e),!t&&66!==e.length)throw new Error("Private key must be 32 bytes long");return this._addAccountFunctions(s.fromPrivate(e))},t.prototype.signTransaction=function(t,s,u){var c=!1,f={},l=!(!t||!(t.chain&&t.hardfork||t.common));if(u=u||function(){},!t)return c=new Error("No transaction object given!"),u(c),Promise.reject(c);function r(e){if(e.common&&e.chain&&e.hardfork&&(c=new Error("Please provide the ethereumjs-common object or the chain and hardfork property but not all together.")),(e.chain&&!e.hardfork||e.hardfork&&!e.chain)&&(c=new Error('When specifying chain and hardfork, both values must be defined. Received "chain": '+e.chain+', "hardfork": '+e.hardfork)),e.gas||e.gasLimit||(c=new Error('"gas" is missing')),(e.nonce<0||e.gas<0||e.gasPrice<0||e.chainId<0)&&(c=new Error("Gas, gasPrice, nonce or chainId is lower than 0")),c)return u(c),Promise.reject(c);try{var t=v.formatters.inputCallFormatter(d.clone(e));t.to=t.to||"0x",t.data=t.data||"0x",t.value=t.value||"0x",t.chainId=m.numberToHex(t.chainId),l?(t.common&&(f.common=w.forCustomChain(t.common.baseChain||"mainnet",{name:t.common.customChain.name||"custom-network",networkId:t.common.customChain.networkId,chainId:t.common.customChain.chainId},t.common.hardfork||"petersburg"),delete t.common),t.chain&&(f.chain=t.chain,delete t.chain),t.hardfork&&(f.hardfork=t.hardfork,delete t.hardfork)):(f.common=w.forCustomChain("mainnet",{name:"custom-network",networkId:t.networkId,chainId:t.chainId},"petersburg"),delete t.networkId),s.startsWith("0x")&&(s=s.substring(2));var r=new g(t,f);r.sign(h.from(s,"hex"));var n=r.validate(!0);if(""!==n)throw new Error("Signer Error: "+n);var i="0x"+r.serialize().toString("hex"),o=m.keccak256(i),a={messageHash:"0x"+h.from(r.hash(!1)).toString("hex"),v:"0x"+h.from(r.v).toString("hex"),r:"0x"+h.from(r.r).toString("hex"),s:"0x"+h.from(r.s).toString("hex"),rawTransaction:i,transactionHash:o};return u(null,a),a}catch(e){return u(e),Promise.reject(e)}}return void 0!==t.nonce&&void 0!==t.chainId&&void 0!==t.gasPrice&&l?Promise.resolve(r(t)):Promise.all([i(t.chainId)?this._ethereumCall.getChainId():t.chainId,i(t.gasPrice)?this._ethereumCall.getGasPrice():t.gasPrice,i(t.nonce)?this._ethereumCall.getTransactionCount(this.privateKeyToAccount(s).address):t.nonce,i(l)?this._ethereumCall.getNetworkId():1]).then(function(e){if(i(e[0])||i(e[1])||i(e[2])||i(e[3]))throw new Error('One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return r(d.extend(t,{chainId:e[0],gasPrice:e[1],nonce:e[2],networkId:e[3]}))})},t.prototype.recoverTransaction=function(e){var t=c.decode(e),r=s.encodeSignature(t.slice(6,9)),n=f.toNumber(t[6]),i=n<35?[]:[f.fromNumber(n-35>>1),"0x","0x"],o=t.slice(0,6).concat(i),a=c.encode(o);return s.recover(u.keccak256(a),r)},t.prototype.hashMessage=function(e){var t=m.isHexStrict(e)?m.hexToBytes(e):e,r=h.from(t),n="Ethereum Signed Message:\n"+t.length,i=h.from(n),o=h.concat([i,r]);return u.keccak256s(o)},t.prototype.sign=function(e,t){if(t.startsWith("0x")||(t="0x"+t),66!==t.length)throw new Error("Private key must be 32 bytes long");var r=this.hashMessage(e),n=s.sign(r,t),i=s.decodeSignature(n);return{message:e,messageHash:r,v:i[0],r:i[1],s:i[2],signature:n}},t.prototype.recover=function(e,t,r){var n=[].slice.apply(arguments);return d.isObject(e)?this.recover(e.messageHash,s.encodeSignature([e.v,e.r,e.s]),!0):(r||(e=this.hashMessage(e)),4<=n.length?(r=n.slice(-1)[0],r=!!d.isBoolean(r)&&!!r,this.recover(e,s.encodeSignature(n.slice(1,4)),r)):s.recover(e,t))},t.prototype.decrypt=function(e,t,r){if(!d.isString(t))throw new Error("No password given.");var n,i,o=d.isObject(e)?e:JSON.parse(r?e.toLowerCase():e);if(3!==o.version)throw new Error("Not a valid V3 wallet");if("scrypt"===o.crypto.kdf)i=o.crypto.kdfparams,n=b(h.from(t),h.from(i.salt,"hex"),i.n,i.r,i.p,i.dklen);else{if("pbkdf2"!==o.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(i=o.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");n=p.pbkdf2Sync(h.from(t),h.from(i.salt,"hex"),i.c,i.dklen,"sha256")}var a=h.from(o.crypto.ciphertext,"hex");if(m.sha3(h.concat([n.slice(16,32),a])).replace("0x","")!==o.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var s=p.createDecipheriv(o.crypto.cipher,n.slice(0,16),h.from(o.crypto.cipherparams.iv,"hex")),u="0x"+h.concat([s.update(a),s.final()]).toString("hex");return this.privateKeyToAccount(u,!0)},t.prototype.encrypt=function(e,t,r){var n,i=this.privateKeyToAccount(e,!0),o=(r=r||{}).salt||p.randomBytes(32),a=r.iv||p.randomBytes(16),s=r.kdf||"scrypt",u={dklen:r.dklen||32,salt:o.toString("hex")};if("pbkdf2"===s)u.c=r.c||262144,u.prf="hmac-sha256",n=p.pbkdf2Sync(h.from(t),h.from(u.salt,"hex"),u.c,u.dklen,"sha256");else{if("scrypt"!==s)throw new Error("Unsupported kdf");u.n=r.n||8192,u.r=r.r||8,u.p=r.p||1,n=b(h.from(t),h.from(u.salt,"hex"),u.n,u.r,u.p,u.dklen)}var c=p.createCipheriv(r.cipher||"aes-128-ctr",n.slice(0,16),a);if(!c)throw new Error("Unsupported cipher");var f=h.concat([c.update(h.from(i.privateKey.replace("0x",""),"hex")),c.final()]),l=m.sha3(h.concat([n.slice(16,32),h.from(f,"hex")])).replace("0x","");return{version:3,id:y.v4({random:r.uuid||p.randomBytes(16)}),address:i.address.toLowerCase().replace("0x",""),crypto:{ciphertext:f.toString("hex"),cipherparams:{iv:a.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:s,kdfparams:u,mac:l.toString("hex")}}},o.prototype._findSafeIndex=function(e){return e=e||0,d.has(this,e)?this._findSafeIndex(e+1):e},o.prototype._currentIndexes=function(){return Object.keys(this).map(function(e){return parseInt(e)}).filter(function(e){return e<9e20})},o.prototype.create=function(e,t){for(var r=0;r<e;++r)this.add(this._accounts.create(t).privateKey);return this},o.prototype.add=function(e){return d.isString(e)&&(e=this._accounts.privateKeyToAccount(e)),this[e.address]?this[e.address]:((e=this._accounts.privateKeyToAccount(e.privateKey)).index=this._findSafeIndex(),this[e.index]=e,this[e.address]=e,this[e.address.toLowerCase()]=e,this.length++,e)},o.prototype.remove=function(e){var t=this[e];return!(!t||!t.address)&&(this[t.address].privateKey=null,delete this[t.address],this[t.address.toLowerCase()].privateKey=null,delete this[t.address.toLowerCase()],this[t.index].privateKey=null,delete this[t.index],this.length--,!0)},o.prototype.clear=function(){var t=this;return this._currentIndexes().forEach(function(e){t.remove(e)}),this},o.prototype.encrypt=function(t,r){var n=this;return this._currentIndexes().map(function(e){return n[e].encrypt(t,r)})},o.prototype.decrypt=function(e,r){var n=this;return e.forEach(function(e){var t=n._accounts.decrypt(e,r);if(!t)throw new Error("Couldn't decrypt accounts. Password wrong?");n.add(t)}),this},o.prototype.save=function(e,t){return localStorage.setItem(t||this.defaultKeyName,JSON.stringify(this.encrypt(e))),!0},o.prototype.load=function(e,t){var r=localStorage.getItem(t||this.defaultKeyName);if(r)try{r=JSON.parse(r)}catch(e){}return this.decrypt(r||[],e)},function(e){var t;try{t=window[e];var r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(e){return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}}("localStorage")||(delete o.prototype.save,delete o.prototype.load),l.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"@web3-js/scrypt-shim":275,buffer:50,crypto:59,"crypto-browserify":327,"eth-lib/lib/account":354,"eth-lib/lib/bytes":356,"eth-lib/lib/hash":357,"eth-lib/lib/rlp":359,"ethereumjs-common":377,"ethereumjs-tx":379,underscore:456,uuid:457,"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-utils":559}],463:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],464:[function(e,t,r){"use strict";var c=e("underscore"),f=e("web3-core"),a=e("web3-core-method"),l=e("web3-utils"),n=e("web3-core-subscriptions").subscription,h=e("web3-core-helpers").formatters,i=e("web3-core-helpers").errors,s=e("web3-core-promievent"),d=e("web3-eth-abi"),o=function e(t,r,n){var o=this,i=Array.prototype.slice.call(arguments);if(!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){f.packageInit(o,arguments),o.clearSubscriptions=o._requestManager.clearSubscriptions},f.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!t||!Array.isArray(t))throw new Error("You must provide the json interface of the contract when instantiating a contract object.");this.options={};var a=i[i.length-1];c.isObject(a)&&!c.isArray(a)&&(n=a,this.options=c.extend(this.options,this._getOrSetDefaultOptions(n)),c.isObject(r)&&(r=null)),Object.defineProperty(this.options,"address",{set:function(e){e&&(o._address=l.toChecksumAddress(h.inputAddressFormatter(e)))},get:function(){return o._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(e){return o.methods={},o.events={},o._jsonInterface=e.map(function(e){var t,r;if(e.constant="view"===e.stateMutability||"pure"===e.stateMutability||e.constant,e.payable="payable"===e.stateMutability||e.payable,e.name&&(r=l._jsonInterfaceMethodToString(e)),"function"===e.type){if(e.signature=d.encodeFunctionSignature(r),t=o._createTxObject.bind({method:e,parent:o}),o.methods[e.name]){var n=o._createTxObject.bind({method:e,parent:o,nextMethod:o.methods[e.name]});o.methods[e.name]=n}else o.methods[e.name]=t;o.methods[e.signature]=t,o.methods[r]=t}else if("event"===e.type){e.signature=d.encodeEventSignature(r);var i=o._on.bind(o,e.signature);o.events[e.name]&&"bound "!==o.events[e.name].name||(o.events[e.name]=i),o.events[e.signature]=i,o.events[r]=i}return e}),o.events.allEvents=o._on.bind(o,"allevents"),o._jsonInterface},get:function(){return o._jsonInterface},enumerable:!0});var s=this.constructor.defaultAccount,u=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"handleRevert",{get:function(){return!1===o.options.handleRevert||!0===o.options.handleRevert?o.options.handleRevert:this.constructor.handleRevert},set:function(e){o.options.handleRevert=e},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return o.options.common||this.constructor.defaultCommon},set:function(e){o.options.common=e},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return o.options.hardfork||this.constructor.defaultHardfork},set:function(e){o.options.hardfork=e},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return o.options.chain||this.constructor.defaultChain},set:function(e){o.options.chain=e},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return 0===o.options.transactionPollingTimeout?o.options.transactionPollingTimeout:o.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(e){o.options.transactionPollingTimeout=e},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return 0===o.options.transactionConfirmationBlocks?o.options.transactionConfirmationBlocks:o.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(e){o.options.transactionConfirmationBlocks=e},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return 0===o.options.transactionBlockTimeout?o.options.transactionBlockTimeout:o.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(e){o.options.transactionBlockTimeout=e},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return s},set:function(e){return e&&(s=l.toChecksumAddress(h.inputAddressFormatter(e))),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return u},set:function(e){return u=e},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=r,this.options.jsonInterface=t};o.setProvider=function(e,t){f.packageInit(this,[e]),this._ethAccounts=t},o.prototype._getCallback=function(e){if(e&&c.isFunction(e[e.length-1]))return e.pop()},o.prototype._checkListener=function(e,t){if(t===e)throw new Error('The event "'+e+"\" is a reserved event name, you can't use it.")},o.prototype._getOrSetDefaultOptions=function(e){var t=e.gasPrice?String(e.gasPrice):null,r=e.from?l.toChecksumAddress(h.inputAddressFormatter(e.from)):null;return e.data=e.data||this.options.data,e.from=r||this.options.from,e.gasPrice=t||this.options.gasPrice,e.gas=e.gas||e.gasLimit||this.options.gas,delete e.gasLimit,e},o.prototype._encodeEventABI=function(e,t){var r=(t=t||{}).filter||{},n={};if(["fromBlock","toBlock"].filter(function(e){return void 0!==t[e]}).forEach(function(e){n[e]=h.inputBlockNumberFormatter(t[e])}),c.isArray(t.topics))n.topics=t.topics;else{if(n.topics=[],e&&!e.anonymous&&"ALLEVENTS"!==e.name&&n.topics.push(e.signature),"ALLEVENTS"!==e.name){var i=e.inputs.filter(function(e){return!0===e.indexed}).map(function(t){var e=r[t.name];return e?c.isArray(e)?e.map(function(e){return d.encodeParameter(t.type,e)}):d.encodeParameter(t.type,e):null});n.topics=n.topics.concat(i)}n.topics.length||delete n.topics}return this.options.address&&(n.address=this.options.address.toLowerCase()),n},o.prototype._decodeEventABI=function(t){var e=this;t.data=t.data||"",t.topics=t.topics||[];var r=h.outputLogFormatter(t);if("ALLEVENTS"===e.name&&(e=e.jsonInterface.find(function(e){return e.signature===t.topics[0]})||{anonymous:!0}),e.inputs=e.inputs||[],!e.anonymous){var n=0;e.inputs.forEach(function(e){return e.indexed?n++:null}),0<n&&t.topics.length!==n+1&&(e={anonymous:!0,inputs:[]})}var i=e.anonymous?t.topics:t.topics.slice(1);return r.returnValues=d.decodeLog(e.inputs,t.data,i),delete r.returnValues.__length__,r.event=e.name,r.signature=e.anonymous||!t.topics[0]?null:t.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},o.prototype._encodeMethodABI=function(){var t=this._method.signature,r=this.arguments||[],n=!1,e=this._parent.options.jsonInterface.filter(function(e){return"constructor"===t&&e.type===t||(e.signature===t||e.signature===t.replace("0x","")||e.name===t)&&"function"===e.type}).map(function(e){var t=c.isArray(e.inputs)?e.inputs.length:0;if(t!==r.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+t+" arguments.");return"function"===e.type&&(n=e.signature),c.isArray(e.inputs)?e.inputs:[]}).map(function(e){return d.encodeParameters(e,r).replace("0x","")})[0]||"";if("constructor"===t){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData+e}var i=n?n+e:e;if(!i)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return i},o.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=2<=t.length?t.slice(2):t;var r=d.decodeParameters(e,t);return 1===r.__length__?r[0]:(delete r.__length__,r)},o.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data)return l._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,t);var r=c.find(this.options.jsonInterface,function(e){return"constructor"===e.type})||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},o.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),r=c.isObject(e[e.length-1])?e.pop():{},n=c.isString(e[0])?e[0]:"allevents",i="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(e){return"event"===e.type&&(e.name===n||e.signature==="0x"+n.replace("0x",""))});if(!i)throw new Error('Event "'+n+"\" doesn't exist in this contract.");if(!l.isAddress(this.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return{params:this._encodeEventABI(i,r),event:i,callback:t}},o.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},o.prototype.once=function(e,t,n){var r=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(r)))throw new Error("Once requires a callback as the second parameter.");t&&delete t.fromBlock,this._on(e,t,function(e,t,r){r.unsubscribe(),c.isFunction(n)&&n(e,t,r)})},o.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new n({subscription:{params:1,inputFormatter:[h.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),c.isFunction(this.callback)&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},o.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new a({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[h.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var r=t.buildCall();return t=null,r(e.params,e.callback)},o.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw i.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},o.prototype._processExecuteArguments=function(e,t){var r={};if(r.type=e.shift(),r.callback=this._parent._getCallback(e),"call"===r.type&&!0!==e[e.length-1]&&(c.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(r.defaultBlock=e.pop()),r.options=c.isObject(e[e.length-1])?e.pop():{},r.generateRequest=!0===e[e.length-1]&&e.pop(),r.options=this._parent._getOrSetDefaultOptions(r.options),r.options.data=this.encodeABI(),!this._deployData&&!l.isAddress(this._parent.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return this._deployData||(r.options.to=this._parent.options.address),r.options.data?r:l._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,r.callback)},o.prototype._executeMethod=function(){var n=this,e=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),t),t=s("send"!==e.type),r=n.constructor._ethAccounts||n._ethAccounts;if(e.generateRequest){var i={params:[h.inputCallFormatter.call(this._parent,e.options)],callback:e.callback};return"call"===e.type?(i.params.push(h.inputDefaultBlockNumberFormatter.call(this._parent,e.defaultBlock)),i.method="eth_call",i.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):i.method="eth_sendTransaction",i}switch(e.type){case"estimate":return new a({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[h.inputCallFormatter],outputFormatter:l.hexToNumber,requestManager:n._parent._requestManager,accounts:r,defaultAccount:n._parent.defaultAccount,defaultBlock:n._parent.defaultBlock}).createFunction()(e.options,e.callback);case"call":return new a({name:"call",call:"eth_call",params:2,inputFormatter:[h.inputCallFormatter,h.inputDefaultBlockNumberFormatter],outputFormatter:function(e){return n._parent._decodeMethodReturn(n._method.outputs,e)},requestManager:n._parent._requestManager,accounts:r,defaultAccount:n._parent.defaultAccount,defaultBlock:n._parent.defaultBlock,handleRevert:n._parent.handleRevert,abiCoder:d}).createFunction()(e.options,e.defaultBlock,e.callback);case"send":if(!l.isAddress(e.options.from))return l._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),t.eventEmitter,t.reject,e.callback);if(c.isBoolean(this._method.payable)&&!this._method.payable&&e.options.value&&0<e.options.value)return l._fireError(new Error("Can not send value to non-payable contract method or constructor"),t.eventEmitter,t.reject,e.callback);var o={receiptFormatter:function(t){if(c.isArray(t.logs)){var e=c.map(t.logs,function(e){return n._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:n._parent.options.jsonInterface},e)});t.events={};var r=0;e.forEach(function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[r]=e,r++)}),delete t.logs}return t},contractDeployFormatter:function(e){var t=n._parent.clone();return t.options.address=e.contractAddress,t}};return new a({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[h.inputTransactionFormatter],requestManager:n._parent._requestManager,accounts:n.constructor._ethAccounts||n._ethAccounts,defaultAccount:n._parent.defaultAccount,defaultBlock:n._parent.defaultBlock,transactionBlockTimeout:n._parent.transactionBlockTimeout,transactionConfirmationBlocks:n._parent.transactionConfirmationBlocks,transactionPollingTimeout:n._parent.transactionPollingTimeout,defaultCommon:n._parent.defaultCommon,defaultChain:n._parent.defaultChain,defaultHardfork:n._parent.defaultHardfork,handleRevert:n._parent.handleRevert,extraFormatters:o,abiCoder:d}).createFunction()(e.options,e.callback);default:throw new Error('Method "'+e.type+'" not implemented.')}},t.exports=o},{underscore:463,"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-core-promievent":220,"web3-core-subscriptions":228,"web3-eth-abi":274,"web3-utils":559}],465:[function(e,t,r){"use strict";var v=e("safe-buffer").Buffer;t.exports=function(h){if(255<=h.length)throw new TypeError("Alphabet too long");for(var d=new Uint8Array(256),e=0;e<d.length;e++)d[e]=255;for(var t=0;t<h.length;t++){var r=h.charAt(t),n=r.charCodeAt(0);if(255!==d[n])throw new TypeError(r+" is ambiguous");d[n]=t}var p=h.length,b=h.charAt(0),y=Math.log(p)/Math.log(256),m=Math.log(256)/Math.log(p);function i(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return v.alloc(0);var t=0;if(" "!==e[t]){for(var r=0,n=0;e[t]===b;)r++,t++;for(var i=(e.length-t)*y+1>>>0,o=new Uint8Array(i);e[t];){var a=d[e.charCodeAt(t)];if(255===a)return;for(var s=0,u=i-1;(0!==a||s<n)&&-1!==u;u--,s++)a+=p*o[u]>>>0,o[u]=a%256>>>0,a=a/256>>>0;if(0!==a)throw new Error("Non-zero carry");n=s,t++}if(" "!==e[t]){for(var c=i-n;c!==i&&0===o[c];)c++;var f=v.allocUnsafe(r+(i-c));f.fill(0,0,r);for(var l=r;c!==i;)f[l++]=o[c++];return f}}}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=v.from(e)),!v.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var t=0,r=0,n=0,i=e.length;n!==i&&0===e[n];)n++,t++;for(var o=(i-n)*m+1>>>0,a=new Uint8Array(o);n!==i;){for(var s=e[n],u=0,c=o-1;(0!==s||u<r)&&-1!==c;c--,u++)s+=256*a[c]>>>0,a[c]=s%p>>>0,s=s/p>>>0;if(0!==s)throw new Error("Non-zero carry");r=u,n++}for(var f=o-r;f!==o&&0===a[f];)f++;for(var l=b.repeat(t);f<o;++f)l+=h.charAt(a[f]);return l},decodeUnsafe:i,decode:function(e){var t=i(e);if(t)return t;throw new Error("Non-base"+p+" character")}}}},{"safe-buffer":504}],466:[function(e,t,r){t.exports={identity:0,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,x11:4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}},{}],467:[function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}for(var i=e("./base-table.json"),o={},a=0,s=Object.entries(i);a<s.length;a++){var u=n(s[a],2),c=u[0],f=u[1];o[c.toUpperCase().replace(/-/g,"_")]=f}t.exports=Object.freeze(o)},{"./base-table.json":466}],468:[function(e,t,r){"use strict";var n=e("buffer").Buffer,i=e("varint"),o=e("./int-table"),a=e("./varint-table"),s=e("./util");(r=t.exports).addPrefix=function(e,t){var r;if(n.isBuffer(e))r=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");r=a[e]}return n.concat([r,t])},r.rmPrefix=function(e){return i.decode(e),e.slice(i.decode.bytes)},r.getCodec=function(e){var t=i.decode(e),r=o.get(t);if(void 0===r)throw new Error("Code ".concat(t," not found"));return r},r.getName=function(e){return o.get(e)},r.getNumber=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},r.getCode=function(e){return i.decode(e)},r.getCodeVarint=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},r.getVarint=function(e){return i.encode(e)};var u=e("./constants");Object.assign(r,u),r.print=e("./print")},{"./constants":467,"./int-table":469,"./print":470,"./util":471,"./varint-table":472,buffer:50,varint:508}],469:[function(e,t,r){"use strict";var n=e("./base-table.json"),i=new Map;for(var o in n){var a=n[o];i.set(a,o)}t.exports=Object.freeze(i)},{"./base-table.json":466}],470:[function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}for(var i=e("./base-table.json"),o={},a=0,s=Object.entries(i);a<s.length;a++){var u=n(s[a],2),c=u[0],f=u[1];void 0===o[f]&&(o[f]=c)}t.exports=Object.freeze(o)},{"./base-table.json":466}],471:[function(e,t,r){"use strict";var n=e("varint"),i=e("buffer").Buffer;function o(e){return parseInt(e.toString("hex"),16)}function a(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),i.from(t,"hex")}t.exports={numberToBuffer:a,bufferToNumber:o,varintBufferEncode:function(e){return i.from(n.encode(o(e)))},varintBufferDecode:function(e){return a(n.decode(e))},varintEncode:function(e){return i.from(n.encode(e))}}},{buffer:50,varint:508}],472:[function(e,t,r){"use strict";var n=e("./base-table.json"),i=e("./util").varintEncode,o={};for(var a in n){var s=n[a];o[a]=i(s)}t.exports=Object.freeze(o)},{"./base-table.json":466,"./util":471}],473:[function(e,t,r){"use strict";var n=e("multihashes"),i=e("buffer").Buffer,o={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!i.isBuffer(e.multihash))return"multihash must be a Buffer";try{n.validate(e.multihash)}catch(e){var t=e.message;return t||(t="Multihash validation failed"),t}}};t.exports=o},{buffer:50,multihashes:503}],474:[function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=e("buffer").Buffer,h=e("multihashes"),d=e("multibase"),p=e("multicodec"),i=e("multicodec/src/base-table.json"),o=e("./cid-util"),b=e("class-is")(function(){function f(e,t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),b.isCID(e)){var i=e;return this.version=i.version,this.codec=i.codec,this.multihash=l.from(i.multihash),void(this.multibaseName=i.multibaseName||(0===i.version?"base58btc":"base32"))}if("string"==typeof e){var o=d.isEncoded(e);if(o){var a=d.decode(e);this.version=parseInt(a.slice(0,1).toString("hex"),16),this.codec=p.getCodec(a.slice(1)),this.multihash=p.rmPrefix(a.slice(1)),this.multibaseName=o}else this.version=0,this.codec="dag-pb",this.multihash=h.fromB58String(e),this.multibaseName="base58btc";return f.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(l.isBuffer(e)){var s=e.slice(0,1),u=parseInt(s.toString("hex"),16);if(1===u){var c=e;this.version=u,this.codec=p.getCodec(c.slice(1)),this.multihash=p.rmPrefix(c.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";f.validateCID(this)}else this.version=e,this.codec=t,this.multihash=r,this.multibaseName=n||(0===e?"base58btc":"base32"),f.validateCID(this)}var e,t,r;return e=f,t=[{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var e=h.decode(this.multihash),t=e.name,r=e.length;if("sha2-256"!==t)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==r)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new b(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new b(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&e===this.multibaseName)return this.string;var t=null;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=h.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=d.encode(e,this.buffer).toString()}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}},{key:Symbol.for("nodejs.util.inspect.custom"),value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}},{key:"buffer",get:function(){var e=this._buffer;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");e=l.concat([l.from("01","hex"),p.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:e})}return e}},{key:"prefix",get:function(){return l.concat([l.from("0".concat(this.version),"hex"),p.getCodeVarint(this.codec),h.prefix(this.multihash)])}}],r=[{key:"validateCID",value:function(e){var t=o.checkCIDComponents(e);if(t)throw new Error(t)}}],t&&n(e.prototype,t),r&&n(e,r),f}(),{className:"CID",symbolName:"@ipld/js-cid/CID"});b.codecs=i,t.exports=b},{"./cid-util":473,buffer:50,"class-is":475,multibase:488,multicodec:468,"multicodec/src/base-table.json":466,multihashes:503}],475:[function(e,t,r){"use strict";function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r){return(u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&h(i,r.prototype),i}).apply(null,arguments)}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.exports=function(i,e){var o=e.className,t=e.symbolName,u=Symbol.for(t),r=n({},o,function(e){function s(){var e,t,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=this,t=!(n=(e=f(s)).call.apply(e,[this].concat(o)))||"object"!==c(n)&&"function"!=typeof n?l(r):n,Object.defineProperty(l(t),u,{value:!0}),t}var t,r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,i),t=s,r=[{key:Symbol.toStringTag,get:function(){return o}}],a(t.prototype,r),n&&a(t,n),s}())[o];return r["is".concat(o)]=function(e){return!(!e||!e[u])},r},t.exports.proto=function(i,e){var t=e.className,r=e.symbolName,o=e.withoutNew,a=Symbol.for(r),s=n({},t,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(o&&!(this instanceof s))return u(s,t);var n=i.call.apply(i,[this].concat(t))||this;return n&&!n[a]&&Object.defineProperty(n,a,{value:!0}),n})[t];return s.prototype=Object.create(i.prototype),s.prototype.constructor=s,Object.defineProperty(s.prototype,Symbol.toStringTag,{get:function(){return t}}),s["is".concat(t)]=function(e){return!(!e||!e[a])},s}},{}],476:[function(e,t,r){"use strict";var n=e("cids");r.cidV0ToV1Base32=function(e){var t=new n(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")}},{cids:474}],477:[function(e,t,r){"use strict";var o=e("multicodec"),n=e("./profiles"),a=n.hexStringToBuffer,s=n.profiles,i=e("./helpers").cidV0ToV1Base32;t.exports={helpers:{cidV0ToV1Base32:i},decode:function(e){var t=a(e),r=o.getCodec(t),n=o.rmPrefix(t),i=s[r];return i||(i=s.default),i.decode(n)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},encode:function(e,t){var r=s[e];r||(r=s.default);var n=r.encode(t);return o.addPrefix(e,n).toString("hex")},getCodec:function(e){var t=a(e);return o.getCodec(t)}}},{"./helpers":476,"./profiles":478,multicodec:491}],478:[function(s,e,u){(function(t){"use strict";var r=s("cids"),i=s("multihashes"),n=function(e){var t=e.slice(0,2),r=e.slice(2),n="";return n="0x"===t?r:e,i.fromHexString(n)},e={swarm:function(e){var t=i.encode(n(e),"keccak-256");return new r(1,"swarm-manifest",t).buffer},ipfs:function(e){var t=i.fromB58String(e);return new r(1,"dag-pb",t).buffer},utf8:function(e){return t.from(e,"utf8")}},o={hexMultiHash:function(e){var t=new r(e);return i.decode(t.multihash).digest.toString("hex")},b58MultiHash:function(e){var t=new r(e);return i.toB58String(t.multihash)},utf8:function(e){return e.toString("utf8")}},a={"swarm-ns":{encode:e.swarm,decode:o.hexMultiHash},"ipfs-ns":{encode:e.ipfs,decode:o.b58MultiHash},"ipns-ns":{encode:e.ipfs,decode:o.b58MultiHash},default:{encode:e.utf8,decode:o.utf8}};u.hexStringToBuffer=n,u.profiles=a}).call(this,s("buffer").Buffer)},{buffer:50,cids:474,multihashes:503}],479:[function(e,t,r){(function(o){"use strict";var a=e("js-sha3").keccak_256,t=e("idna-uts46-hx");function s(e){return e?t.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}r.hash=function(e){for(var t="",r=0;r<32;r++)t+="00";if(name=s(e),name){var n=name.split(".");for(r=n.length-1;0<=r;r--){var i=a(n[r]);t=a(new o(t+i,"hex"))}}return"0x"+t},r.normalize=s}).call(this,e("buffer").Buffer)},{buffer:50,"idna-uts46-hx":481,"js-sha3":482}],480:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){var t=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],r=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]);return{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀",mapChar:function(e){return 196608<=e?917760<=e&&e<=917999?18874368:0:t[r[e>>4]][15&e]}}},"function"==typeof define&&define.amd?define([],function(){return i()}):"object"===(void 0===r?"undefined":n(r))?t.exports=i():(void 0).uts46_map=i()},{}],481:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(p,b){function i(e,t,r){for(var n=[],i=p.ucs2.decode(e),o=0;o<i.length;o++){var a=i[o],s=p.ucs2.encode([i[o]]),u=b.mapChar(a),c=u>>23,f=u>>21&3,l=u>>5&65535,h=31&u,d=b.mapStr.substr(l,h);if(0===f||t&&1&c)throw new Error("Illegal char "+s);1===f?n.push(d):2===f?n.push(r?d:s):3===f&&n.push(s)}return n.join("").normalize("NFC")}function c(e,t,r){void 0===r&&(r=!1);var n=i(e,r,t).split(".");return(n=n.map(function(e){return e.startsWith("xn--")?o(e=p.decode(e.substring(4)),r,!1):o(e,r,t),e})).join(".")}function o(e,t,r){if("-"===e[2]&&"-"===e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(i(e,t,r)!==e)throw new Error("Failed to validate "+e);var n=e.codePointAt(0);if(b.mapChar(n)&2<<23)throw new Error("Label contains illegal character: "+n)}return{toUnicode:function(e,t){return void 0===t&&(t={}),c(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)},toAscii:function(e,t){void 0===t&&(t={});var r,n=!("transitional"in t)||t.transitional,i="useStd3ASCII"in t&&t.useStd3ASCII,o="verifyDnsLength"in t&&t.verifyDnsLength,a=c(e,n,i).split(".").map(p.toASCII),s=a.join(".");if(o){if(s.length<1||253<s.length)throw new Error("DNS name has wrong length: "+s);for(r=0;r<a.length;r++){var u=a[r];if(u.length<1||63<u.length)throw new Error("DNS label has wrong length: "+u)}}return s}}},"function"==typeof define&&define.amd?define(["punycode","./idna-map"],function(e,t){return i(e,t)}):"object"===(void 0===r?"undefined":n(r))?t.exports=i(e("punycode"),e("./idna-map")):(void 0).uts46=i((void 0).punycode,(void 0).idna_map)},{"./idna-map":480,punycode:131}],482:[function(e,k,t){(function(g,w){"use strict";function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":_(window))?window:{};!e.JS_SHA3_NO_NODE_JS&&"object"===(void 0===g?"undefined":_(g))&&g.versions&&g.versions.node&&(e=w);for(var t=!e.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===k?"undefined":_(k))&&k.exports,u="0123456789abcdef".split(""),f=[0,8,16,24],fe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],r=[224,256,384,512],o=["hex","buffer","arrayBuffer","array"],a=function(t,r,n){return function(e){return new m(t,r,t).update(e)[n]()}},s=function(r,n,i){return function(e,t){return new m(r,n,t).update(e)[i]()}},n=function(e,t){var r=a(e,t,"hex");r.create=function(){return new m(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<o.length;++n){var i=o[n];r[i]=a(e,t,i)}return r},i=[{name:"keccak",padding:[1,256,65536,16777216],bits:r,createMethod:n},{name:"sha3",padding:[6,1536,393216,100663296],bits:r,createMethod:n},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(t,r){var n=s(t,r,"hex");n.create=function(e){return new m(t,r,e)},n.update=function(e,t){return n.create(t).update(e)};for(var e=0;e<o.length;++e){var i=o[e];n[i]=s(t,r,i)}return n}}],c={},l=[],h=0;h<i.length;++h)for(var d=i[h],p=d.bits,b=0;b<p.length;++b){var y=d.name+"_"+p[b];l.push(y),c[y]=d.createMethod(p[b],d.padding)}function m(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}m.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=e.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,c=this.s;u<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<s+1;++r)o[r]=0;if(t)for(r=this.start;u<i&&r<a;++u)o[r>>2]|=e[u]<<f[3&r++];else for(r=this.start;u<i&&r<a;++u)(n=e.charCodeAt(u))<128?o[r>>2]|=n<<f[3&r++]:(n<2048?o[r>>2]|=(192|n>>6)<<f[3&r++]:(n<55296||57344<=n?o[r>>2]|=(224|n>>12)<<f[3&r++]:(n=65536+((1023&n)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<f[3&r++],o[r>>2]|=(128|n>>12&63)<<f[3&r++]),o[r>>2]|=(128|n>>6&63)<<f[3&r++]),o[r>>2]|=(128|63&n)<<f[3&r++]);if(a<=(this.lastByteIndex=r)){for(this.start=r-a,this.block=o[s],r=0;r<s;++r)c[r]^=o[r];v(c),this.reset=!0}else this.start=r}return this},m.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];v(n)},m.prototype.toString=m.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=u[e>>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];a%t==0&&(v(r),o=0)}return i&&(e=r[o],0<i&&(s+=u[e>>4&15]+u[15&e]),1<i&&(s+=u[e>>12&15]+u[e>>8&15]),2<i&&(s+=u[e>>20&15]+u[e>>16&15])),s},m.prototype.buffer=m.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&v(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},m.prototype.digest=m.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&v(n)}return o&&(e=s<<2,t=n[a],0<o&&(u[e]=255&t),1<o&&(u[e+1]=t>>8&255),2<o&&(u[e+2]=t>>16&255)),u};var v=function(e){var t,r,n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,v,g,w,_,k,S,A,E,x,M,j,I,O,T,B,C,R,N,U,P,L,F,D,q,z,H,K,V,W,G,Y,X,J,Z,$,Q,ee,te,re,ne,ie,oe,ae,se,ue,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,ee=e[5]<<30|e[4]>>>2,te=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,P=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,A=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,Q=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,D=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&g,e[10]=A^~x&j,e[11]=E^~M&I,e[20]=R^~U&L,e[21]=N^~P&F,e[30]=K^~W&Y,e[31]=V^~G&X,e[40]=ee^~re&ie,e[41]=te^~ne&oe,e[2]=y^~v&w,e[3]=m^~g&_,e[12]=x^~j&O,e[13]=M^~I&T,e[22]=U^~L&D,e[23]=P^~F&q,e[32]=W^~Y&J,e[33]=G^~X&Z,e[42]=re^~ie&ae,e[43]=ne^~oe&se,e[4]=v^~w&k,e[5]=g^~_&S,e[14]=j^~O&B,e[15]=I^~T&C,e[24]=L^~D&z,e[25]=F^~q&H,e[34]=Y^~J&$,e[35]=X^~Z&Q,e[44]=ie^~ae&ue,e[45]=oe^~se&ce,e[6]=w^~k&p,e[7]=_^~S&b,e[16]=O^~B&A,e[17]=T^~C&E,e[26]=D^~z&R,e[27]=q^~H&N,e[36]=J^~$&K,e[37]=Z^~Q&V,e[46]=ae^~ue&ee,e[47]=se^~ce&te,e[8]=k^~p&y,e[9]=S^~b&m,e[18]=B^~A&x,e[19]=C^~E&M,e[28]=z^~R&U,e[29]=H^~N&P,e[38]=$^~K&W,e[39]=Q^~V&G,e[48]=ue^~ee&re,e[49]=ce^~te&ne,e[0]^=fe[n],e[1]^=fe[n+1]};if(t)k.exports=c;else for(h=0;h<l.length;++h)e[l[h]]=c[l[h]]}()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124}],483:[function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function i(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.name=e,this.code=t,this.alphabet=n,r&&n&&(this.engine=r(n))}var e,t,r;return e=i,(t=[{key:"encode",value:function(e){return this.engine.encode(e)}},{key:"decode",value:function(e){return this.engine.decode(e)}},{key:"isImplemented",value:function(){return this.engine}}])&&n(e.prototype,t),r&&n(e,r),i}();t.exports=i},{}],484:[function(e,t,r){"use strict";var u=e("buffer").Buffer;t.exports=function(s){return{encode:function(e){return"string"==typeof e?u.from(e).toString("hex"):e.toString("hex")},decode:function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(s.indexOf(a)<0)throw new Error("invalid base16 character")}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return u.from(e,"hex")}}}},{buffer:50}],485:[function(e,t,r){"use strict";function n(e,t){var r=e.byteLength,n=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-1));for(var o=0,a=0,s="",u=0;u<r;u++)for(a=a<<8|n[u],o+=8;5<=o;)s+=t[a>>>o-5&31],o-=5;if(0<o&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}t.exports=function(s){return{encode:function(e){return n("string"==typeof e?Uint8Array.from(e):e,s)},decode:function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(s.indexOf(a)<0)throw new Error("invalid base32 character")}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return function(e,t){for(var r=(e=e.replace(new RegExp("=","g"),"")).length,n=0,i=0,o=0,a=new Uint8Array(5*r/8|0),s=0;s<r;s++)i=i<<5|t.indexOf(e[s]),8<=(n+=5)&&(a[o++]=i>>>n-8&255,n-=8);return a.buffer}(e,s)}}}},{}],486:[function(e,t,r){"use strict";var u=e("buffer").Buffer;t.exports=function(s){var n=-1<s.indexOf("="),i=-1<s.indexOf("-")&&-1<s.indexOf("_");return{encode:function(e){var t="";t="string"==typeof e?u.from(e).toString("base64"):e.toString("base64"),i&&(t=t.replace(/\+/g,"-").replace(/\//g,"_"));var r=t.indexOf("=");return 0<r&&!n&&(t=t.substring(0,r)),t},decode:function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(s.indexOf(a)<0)throw new Error("invalid base64 character")}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return u.from(e,"base64")}}}},{buffer:50}],487:[function(e,t,r){"use strict";var n=e("./base.js"),i=e("base-x"),o=e("./base16"),a=e("./base32"),s=e("./base64"),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=u.reduce(function(e,t){return e[t[0]]=new n(t[0],t[1],t[2],t[3]),e},{}),f=u.reduce(function(e,t){return e[t[1]]=c[t[0]],e},{});t.exports={names:c,codes:f}},{"./base.js":483,"./base16":484,"./base32":485,"./base64":486,"base-x":465}],488:[function(e,t,r){"use strict";var a=e("buffer").Buffer,n=e("./constants");(r=t.exports=o).encode=function(e,t){var r=s(e);return o(r.name,a.from(r.encode(t)))},r.decode=function(e){a.isBuffer(e)&&(e=e.toString());var t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=a.from(e));var r=s(t);return a.from(r.decode(e.toString()))},r.isEncoded=function(e){a.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;var t=e.substring(0,1);try{var r=s(t);return r.name}catch(e){return!1}},r.names=Object.freeze(Object.keys(n.names)),r.codes=Object.freeze(Object.keys(n.codes));var i=new Error("Unsupported encoding");function o(e,t){if(!t)throw new Error("requires an encoded buffer");var r,n=s(e),i=a.from(n.code),o=n.name;return r=t,s(o).decode(r.toString()),a.concat([i,t])}function s(e){var t;if(n.names[e])t=n.names[e];else{if(!n.codes[e])throw i;t=n.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}},{"./constants":487,buffer:50}],489:[function(e,t,r){arguments[4][466][0].apply(r,arguments)},{dup:466}],490:[function(e,t,r){arguments[4][467][0].apply(r,arguments)},{"./base-table.json":489,dup:467}],491:[function(t,r,u){(function(n){"use strict";var i=t("varint"),o=t("./int-table"),a=t("./varint-table"),s=t("./util");(u=r.exports).addPrefix=function(e,t){var r;if(n.isBuffer(e))r=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");r=a[e]}return n.concat([r,t])},u.rmPrefix=function(e){return i.decode(e),e.slice(i.decode.bytes)},u.getCodec=function(e){var t=i.decode(e),r=o.get(t);if(void 0===r)throw new Error("Code ".concat(t," not found"));return r},u.getName=function(e){return o.get(e)},u.getNumber=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},u.getCode=function(e){return i.decode(e)},u.getCodeVarint=function(e){var t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},u.getVarint=function(e){return i.encode(e)};var e=t("./constants");Object.assign(u,e),u.print=t("./print")}).call(this,t("buffer").Buffer)},{"./constants":490,"./int-table":492,"./print":493,"./util":494,"./varint-table":495,buffer:50,varint:508}],492:[function(e,t,r){arguments[4][469][0].apply(r,arguments)},{"./base-table.json":489,dup:469}],493:[function(e,t,r){arguments[4][470][0].apply(r,arguments)},{"./base-table.json":489,dup:470}],494:[function(e,o,t){(function(r){"use strict";var t=e("varint");function n(e){return parseInt(e.toString("hex"),16)}function i(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),r.from(t,"hex")}o.exports={numberToBuffer:i,bufferToNumber:n,varintBufferEncode:function(e){return r.from(t.encode(n(e)))},varintBufferDecode:function(e){return i(t.decode(e))},varintEncode:function(e){return r.from(t.encode(e))}}}).call(this,e("buffer").Buffer)},{buffer:50,varint:508}],495:[function(e,t,r){arguments[4][472][0].apply(r,arguments)},{"./base-table.json":489,"./util":494,dup:472}],496:[function(e,t,r){arguments[4][483][0].apply(r,arguments)},{dup:483}],497:[function(e,t,r){arguments[4][484][0].apply(r,arguments)},{buffer:50,dup:484}],498:[function(e,t,r){arguments[4][485][0].apply(r,arguments)},{dup:485}],499:[function(e,t,r){arguments[4][486][0].apply(r,arguments)},{buffer:50,dup:486}],500:[function(e,t,r){arguments[4][487][0].apply(r,arguments)},{"./base.js":496,"./base16":497,"./base32":498,"./base64":499,"base-x":465,dup:487}],501:[function(e,t,r){"use strict";var a=e("buffer").Buffer,n=e("./constants");function i(e,t){if(!t)throw new Error("requires an encoded buffer");var r,n=s(e),i=a.from(n.code),o=n.name;return r=t,s(o).decode(r.toString()),a.concat([i,t])}function s(e){var t;if(n.names[e])t=n.names[e];else{if(!n.codes[e])throw new Error("Unsupported encoding");t=n.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}(r=t.exports=i).encode=function(e,t){var r=s(e);return i(r.name,a.from(r.encode(t)))},r.decode=function(e){a.isBuffer(e)&&(e=e.toString());var t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=a.from(e));var r=s(t);return a.from(r.decode(e.toString()))},r.isEncoded=function(e){a.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;var t=e.substring(0,1);try{var r=s(t);return r.name}catch(e){return!1}},r.names=Object.freeze(Object.keys(n.names)),r.codes=Object.freeze(Object.keys(n.codes))},{"./constants":500,buffer:50}],502:[function(e,t,r){"use strict";r.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,md4:212,md5:213,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),r.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",212:"md4",213:"md5",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),r.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},{}],503:[function(e,t,i){"use strict";var o=e("buffer").Buffer,r=e("multibase"),a=e("varint"),n=e("./constants");function s(e){i.decode(e)}i.names=n.names,i.codes=n.codes,i.defaultLengths=n.defaultLengths,i.toHexString=function(e){if(!o.isBuffer(e))throw new Error("must be passed a buffer");return e.toString("hex")},i.fromHexString=function(e){return o.from(e,"hex")},i.toB58String=function(e){if(!o.isBuffer(e))throw new Error("must be passed a buffer");return r.encode("base58btc",e).toString().slice(1)},i.fromB58String=function(e){var t=e;return o.isBuffer(e)&&(t=e.toString()),r.decode("z"+t)},i.decode=function(e){if(!o.isBuffer(e))throw new Error("multihash must be a Buffer");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");var t=a.decode(e);if(!i.isValidCode(t))throw new Error("multihash unknown function code: 0x".concat(t.toString(16)));e=e.slice(a.decode.bytes);var r=a.decode(e);if(r<0)throw new Error("multihash invalid length: ".concat(r));if((e=e.slice(a.decode.bytes)).length!==r)throw new Error("multihash length inconsistent: 0x".concat(e.toString("hex")));return{code:t,name:n.codes[t],length:r,digest:e}},i.encode=function(e,t,r){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");var n=i.coerceCode(t);if(!o.isBuffer(e))throw new Error("digest should be a Buffer");if(null==r&&(r=e.length),r&&e.length!==r)throw new Error("digest length should be equal to specified length.");return o.concat([o.from(a.encode(n)),o.from(a.encode(r)),e])},i.coerceCode=function(e){var t=e;if("string"==typeof e){if(void 0===n.names[e])throw new Error("Unrecognized hash function named: ".concat(e));t=n.names[e]}if("number"!=typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t));if(void 0===n.codes[t]&&!i.isAppCode(t))throw new Error("Unrecognized function code: ".concat(t));return t},i.isAppCode=function(e){return 0<e&&e<16},i.isValidCode=function(e){return!!i.isAppCode(e)||!!n.codes[e]},i.validate=s,i.prefix=function(e){return s(e),e.slice(0,2)}},{"./constants":502,buffer:50,multibase:501,varint:508}],504:[function(e,t,r){arguments[4][183][0].apply(r,arguments)},{buffer:50,dup:183}],505:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],506:[function(e,t,r){"use strict";t.exports=function e(t,r){var n,i=0,r=r||0,o=0,a=r,s=t.length;do{if(s<=a)throw e.bytes=0,new RangeError("Could not decode varint");n=t[a++],i+=o<28?(n&c)<<o:(n&c)*Math.pow(2,o),o+=7}while(u<=n);e.bytes=a-r;return i};var u=128,c=127},{}],507:[function(e,t,r){"use strict";t.exports=function e(t,r,n){r=r||[];n=n||0;var i=n;for(;s<=t;)r[n++]=255&t|o,t/=128;for(;t&a;)r[n++]=255&t|o,t>>>=7;r[n]=0|t;e.bytes=n-i+1;return r};var o=128,a=-128,s=Math.pow(2,31)},{}],508:[function(e,t,r){"use strict";t.exports={encode:e("./encode.js"),decode:e("./decode.js"),encodingLength:e("./length.js")}},{"./decode.js":506,"./encode.js":507,"./length.js":509}],509:[function(e,t,r){"use strict";var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),a=Math.pow(2,28),s=Math.pow(2,35),u=Math.pow(2,42),c=Math.pow(2,49),f=Math.pow(2,56),l=Math.pow(2,63);t.exports=function(e){return e<n?1:e<i?2:e<o?3:e<a?4:e<s?5:e<u?6:e<c?7:e<f?8:e<l?9:10}},{}],510:[function(e,t,r){"use strict";function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function n(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function i(e){u(n,t,r,i,o,"next",e)}function o(e){u(n,t,r,i,o,"throw",e)}i(void 0)})}}var a=e("underscore"),s=e("./config"),i=e("web3-core-helpers").formatters,o=e("web3-utils"),c=e("./contracts/Registry"),f=e("./lib/ResolverMethodHandler"),l=e("./lib/contentHash");function h(e){this.eth=e;var t=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new c(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new f(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return t},set:function(e){t=null!==e?i.inputAddressFormatter(e):e},enumerable:!0})}h.prototype.supportsInterface=function(e,t,r){return this.getResolver(e).then(function(e){return o.isHexStrict(t)||(t=o.sha3(t).slice(0,10)),e.methods.supportsInterface(t).call(r)}).catch(function(e){if(!a.isFunction(r))throw e;r(e,null)})},h.prototype.resolver=function(e,t){return this.registry.resolver(e,t)},h.prototype.getResolver=function(e,t){return this.registry.getResolver(e,t)},h.prototype.setResolver=function(e,t,r,n){return this.registry.setResolver(e,t,r,n)},h.prototype.setRecord=function(e,t,r,n,i,o){return this.registry.setRecord(e,t,r,n,i,o)},h.prototype.setSubnodeRecord=function(e,t,r,n,i,o,a){return this.registry.setSubnodeRecord(e,t,r,n,i,o,a)},h.prototype.setApprovalForAll=function(e,t,r,n){return this.registry.setApprovalForAll(e,t,r,n)},h.prototype.isApprovedForAll=function(e,t,r){return this.registry.isApprovedForAll(e,t,r)},h.prototype.recordExists=function(e,t){return this.registry.recordExists(e,t)},h.prototype.setSubnodeOwner=function(e,t,r,n,i){return this.registry.setSubnodeOwner(e,t,r,n,i)},h.prototype.getTTL=function(e,t){return this.registry.getTTL(e,t)},h.prototype.setTTL=function(e,t,r,n){return this.registry.setTTL(e,t,r,n)},h.prototype.getOwner=function(e,t){return this.registry.getOwner(e,t)},h.prototype.setOwner=function(e,t,r,n){return this.registry.setOwner(e,t,r,n)},h.prototype.getAddress=function(e,t){return this.resolverMethodHandler.method(e,"addr",[]).call(t)},h.prototype.setAddress=function(e,t,r,n){return this.resolverMethodHandler.method(e,"setAddr",[t]).send(r,n)},h.prototype.getPubkey=function(e,t){return this.resolverMethodHandler.method(e,"pubkey",[],null,t).call(t)},h.prototype.setPubkey=function(e,t,r,n,i){return this.resolverMethodHandler.method(e,"setPubkey",[t,r]).send(n,i)},h.prototype.getContent=function(e,t){return this.resolverMethodHandler.method(e,"content",[]).call(t)},h.prototype.setContent=function(e,t,r,n){return this.resolverMethodHandler.method(e,"setContent",[t]).send(r,n)},h.prototype.getContenthash=function(e,t){return this.resolverMethodHandler.method(e,"contenthash",[],l.decode).call(t)},h.prototype.setContenthash=function(e,t,r,n){var i;try{i=l.encode(t)}catch(e){var o=new Error("Could not encode "+t+". See docs for supported hash protocols.");if(a.isFunction(n))return void n(o,null);throw o}return this.resolverMethodHandler.method(e,"setContenthash",[i]).send(r,n)},h.prototype.getMultihash=function(e,t){return this.resolverMethodHandler.method(e,"multihash",[]).call(t)},h.prototype.setMultihash=function(e,t,r,n){return this.resolverMethodHandler.method(e,"multihash",[t]).send(r,n)},h.prototype.checkNetwork=n(regeneratorRuntime.mark(function e(){var t,r,n,i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=new Date/1e3,!this._lastSyncCheck||3600<t-this._lastSyncCheck)return e.next=4,this.eth.getBlock("latest");e.next=9;break;case 4:if(r=e.sent,3600<(n=t-r.timestamp))throw new Error("Network not synced; last block was "+n+" seconds ago");e.next=8;break;case 8:this._lastSyncCheck=t;case 9:if(this.registryAddress)return e.abrupt("return",this.registryAddress);e.next=11;break;case 11:if(this._detectedAddress){e.next=20;break}return e.next=14,this.eth.net.getNetworkType();case 14:if(i=e.sent,void 0===(o=s.addresses[i]))throw new Error("ENS is not supported on network "+i);e.next=18;break;case 18:return this._detectedAddress=o,e.abrupt("return",this._detectedAddress);case 20:return e.abrupt("return",this._detectedAddress);case 21:case"end":return e.stop()}},e,this)})),t.exports=h},{"./config":511,"./contracts/Registry":512,"./lib/ResolverMethodHandler":514,"./lib/contentHash":515,underscore:505,"web3-core-helpers":216,"web3-utils":559}],511:[function(e,t,r){"use strict";t.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}}},{}],512:[function(e,t,r){"use strict";var c=e("underscore"),i=e("web3-eth-contract"),f=e("eth-ens-namehash"),l=e("web3-core-promievent"),h=e("web3-core-helpers").formatters,d=e("web3-utils"),n=e("../ressources/ABI/Registry"),o=e("../ressources/ABI/Resolver");function a(e){var r=this;this.ens=e,this.contract=e.checkNetwork().then(function(e){var t=new i(n,e);return t.setProvider(r.ens.eth.currentProvider),t})}a.prototype.owner=function(e,t){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(e,t)},a.prototype.getOwner=function(t,r){var n=new l(!0);return this.contract.then(function(e){return e.methods.owner(f.hash(t)).call()}).then(function(e){c.isFunction(r)?r(e,e):n.resolve(e)}).catch(function(e){c.isFunction(r)?r(e,null):n.reject(e)}),n.eventEmitter},a.prototype.setOwner=function(t,r,n,i){var o=new l(!0);return this.contract.then(function(e){return e.methods.setOwner(f.hash(t),h.inputAddressFormatter(r)).send(n)}).then(function(e){c.isFunction(i)?i(e,e):o.resolve(e)}).catch(function(e){c.isFunction(i)?i(e,null):o.reject(e)}),o.eventEmitter},a.prototype.getTTL=function(t,r){var n=new l(!0);return this.contract.then(function(e){return e.methods.ttl(f.hash(t)).call()}).then(function(e){c.isFunction(r)?r(e,e):n.resolve(e)}).catch(function(e){c.isFunction(r)?r(e,null):n.reject(e)}),n.eventEmitter},a.prototype.setTTL=function(t,r,n,i){var o=new l(!0);return this.contract.then(function(e){return e.methods.setTTL(f.hash(t),r).send(n)}).then(function(e){c.isFunction(i)?i(e,e):o.resolve(e)}).catch(function(e){c.isFunction(i)?i(e,null):o.reject(e)}),o.eventEmitter},a.prototype.setSubnodeOwner=function(t,r,n,i,o){var a=new l(!0);return d.isHexStrict(r)||(r=d.sha3(r)),this.contract.then(function(e){return e.methods.setSubnodeOwner(f.hash(t),r,h.inputAddressFormatter(n)).send(i)}).then(function(e){c.isFunction(o)?o(e,e):a.resolve(e)}).catch(function(e){c.isFunction(o)?o(e,null):a.reject(e)}),a.eventEmitter},a.prototype.setRecord=function(t,r,n,i,o,a){var s=new l(!0);return this.contract.then(function(e){return e.methods.setRecord(f.hash(t),h.inputAddressFormatter(r),h.inputAddressFormatter(n),i).send(o)}).then(function(e){c.isFunction(a)?a(e,e):s.resolve(e)}).catch(function(e){c.isFunction(a)?a(e,null):s.reject(e)}),s.eventEmitter},a.prototype.setSubnodeRecord=function(t,r,n,i,o,a,s){var u=new l(!0);return d.isHexStrict(r)||(r=d.sha3(r)),this.contract.then(function(e){return e.methods.setSubnodeRecord(f.hash(t),r,h.inputAddressFormatter(n),h.inputAddressFormatter(i),o).send(a)}).then(function(e){c.isFunction(s)?s(e,e):u.resolve(e)}).catch(function(e){c.isFunction(s)?s(e,null):u.reject(e)}),u.eventEmitter},a.prototype.setApprovalForAll=function(t,r,n,i){var o=new l(!0);return this.contract.then(function(e){return e.methods.setApprovalForAll(h.inputAddressFormatter(t),r).send(n)}).then(function(e){c.isFunction(i)?i(e,e):o.resolve(e)}).catch(function(e){c.isFunction(i)?i(e,null):o.reject(e)}),o.eventEmitter},a.prototype.isApprovedForAll=function(t,r,n){var i=new l(!0);return this.contract.then(function(e){return e.methods.isApprovedForAll(h.inputAddressFormatter(t),h.inputAddressFormatter(r)).call()}).then(function(e){c.isFunction(n)?n(e,e):i.resolve(e)}).catch(function(e){c.isFunction(n)?n(e,null):i.reject(e)}),i.eventEmitter},a.prototype.recordExists=function(t,r){var n=new l(!0);return this.contract.then(function(e){return e.methods.recordExists(f.hash(t)).call()}).then(function(e){c.isFunction(r)?r(e,e):n.resolve(e)}).catch(function(e){c.isFunction(r)?r(e,null):n.reject(e)}),n.eventEmitter},a.prototype.resolver=function(e,t){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(e,t)},a.prototype.getResolver=function(t,r){var n=this;return this.contract.then(function(e){return e.methods.resolver(f.hash(t)).call()}).then(function(e){var t=new i(o,e);if(t.setProvider(n.ens.eth.currentProvider),!c.isFunction(r))return t;r(t,t)}).catch(function(e){if(!c.isFunction(r))throw e;r(e,null)})},a.prototype.setResolver=function(t,r,n,i){var o=new l(!0);return this.contract.then(function(e){return e.methods.setResolver(f.hash(t),h.inputAddressFormatter(r)).send(n)}).then(function(e){c.isFunction(i)?i(e,e):o.resolve(e)}).catch(function(e){c.isFunction(i)?i(e,null):o.reject(e)}),o.eventEmitter},t.exports=a},{"../ressources/ABI/Registry":516,"../ressources/ABI/Resolver":517,"eth-ens-namehash":479,underscore:505,"web3-core-helpers":216,"web3-core-promievent":220,"web3-eth-contract":464,"web3-utils":559}],513:[function(e,t,r){"use strict";var n=e("./ENS");t.exports=n},{"./ENS":510}],514:[function(e,t,r){"use strict";function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=s.apply(e,a);function i(e){u(n,t,r,i,o,"next",e)}function o(e){u(n,t,r,i,o,"throw",e)}i(void 0)})}}var c=e("web3-core-promievent"),n=e("eth-ens-namehash"),i=e("web3-core-helpers").errors,f=e("underscore"),o=e("../config").interfaceIds;function a(e){this.registry=e}a.prototype.method=function(e,t,r,n,i){return{call:this.call.bind({ensName:e,methodName:t,methodArguments:r,callback:i,parent:this,outputFormatter:n}),send:this.send.bind({ensName:e,methodName:t,methodArguments:r,callback:i,parent:this})}},a.prototype.call=function(r){var n=this,i=new c,o=this.parent.prepareArguments(this.ensName,this.methodArguments),a=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then(function(){var t=s(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.parent.checkInterfaceSupport(t,n.methodName);case 2:n.parent.handleCall(i,t.methods[n.methodName],o,a,r);case 3:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()).catch(function(e){f.isFunction(r)?r(e,null):i.reject(e)}),i.eventEmitter},a.prototype.send=function(r,n){var i=this,o=new c,a=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(function(){var t=s(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.parent.checkInterfaceSupport(t,i.methodName);case 2:i.parent.handleSend(o,t.methods[i.methodName],a,r,n);case 3:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()).catch(function(e){f.isFunction(n)?n(e,null):o.reject(e)}),o.eventEmitter},a.prototype.handleCall=function(t,e,r,n,i){return e.apply(this,r).call().then(function(e){n&&(e=n(e)),f.isFunction(i)?i(e,e):t.resolve(e)}).catch(function(e){f.isFunction(i)?i(e,null):t.reject(e)}),t},a.prototype.handleSend=function(r,e,t,n,i){return e.apply(this,t).send(n).on("transactionHash",function(e){r.eventEmitter.emit("transactionHash",e)}).on("confirmation",function(e,t){r.eventEmitter.emit("confirmation",e,t)}).on("receipt",function(e){r.eventEmitter.emit("receipt",e),r.resolve(e),f.isFunction(i)&&i(e,e)}).on("error",function(e){r.eventEmitter.emit("error",e),f.isFunction(i)?i(e,null):r.reject(e)}),r},a.prototype.prepareArguments=function(e,t){var r=n.hash(e);return 0<t.length?(t.unshift(r),t):[r]},a.prototype.checkInterfaceSupport=function(){var r=s(regeneratorRuntime.mark(function e(t,r){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o[r]){e.next=2;break}return e.abrupt("return");case 2:return n=!1,e.prev=3,e.next=6,t.methods.supportsInterface(o[r]).call();case 6:n=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.warn('Could not verify interface of resolver contract at "'+t.options.address+'". ');case 12:if(n){e.next=14;break}throw i.ResolverMethodMissingError(t.options.address,r);case 14:case"end":return e.stop()}},e,null,[[3,9]])}));return function(e,t){return r.apply(this,arguments)}}(),t.exports=a},{"../config":511,"eth-ens-namehash":479,underscore:505,"web3-core-helpers":216,"web3-core-promievent":220}],515:[function(e,t,r){"use strict";var o=e("content-hash");t.exports={decode:function(e){var t=null,r=null,n=null;if(e&&e.error)return{protocolType:null,decoded:e.error};if(e)try{t=o.decode(e);var i=o.getCodec(e);"ipfs-ns"===i?r="ipfs":"swarm-ns"===i?r="bzz":"onion"===i?r="onion":"onion3"===i?r="onion3":t=e}catch(e){n=e.message}return{protocolType:r,decoded:t,error:n}},encode:function(e){var t,r,n=!1;if(e){var i=e.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||e.match(/\/(ipfs)\/(.*)/);i&&(r=i[1],t=i[2]);try{if("ipfs"===r)4<=t.length&&(n="0x"+o.fromIpfs(t));else if("bzz"===r)4<=t.length&&(n="0x"+o.fromSwarm(t));else if("onion"===r)16===t.length&&(n="0x"+o.encode("onion",t));else{if("onion3"!==r)throw new Error("Could not encode content hash: unsupported content type");56===t.length&&(n="0x"+o.encode("onion3",t))}}catch(e){throw e}}return n}}},{"content-hash":477}],516:[function(e,t,r){"use strict";t.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"recordExists",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"label",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setSubnodeRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},{}],517:[function(e,t,r){"use strict";t.exports=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setMultihash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"multihash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"ret",type:"bytes32"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"ret",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"ret",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes32"}],name:"ContentChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},{}],518:[function(e,t,r){arguments[4][271][0].apply(r,arguments)},{buffer:21,dup:271}],519:[function(e,t,r){"use strict";var n=e("web3-utils"),i=e("bn.js"),o=function(e){var r="A".charCodeAt(0),n="Z".charCodeAt(0);return(e=(e=e.toUpperCase()).substr(4)+e.substr(0,4)).split("").map(function(e){var t=e.charCodeAt(0);return r<=t&&t<=n?t-r+10:e}).join("")},a=function(e){for(var t,r=e;2<r.length;)t=r.slice(0,9),r=parseInt(t,10)%97+r.slice(t.length);return parseInt(r,10)%97},s=function(e){this._iban=e};s.toAddress=function(e){if(!(e=new s(e)).isDirect())throw new Error("IBAN is indirect and can't be converted");return e.toAddress()},s.toIban=function(e){return s.fromAddress(e).toString()},s.fromAddress=function(e){if(!n.isAddress(e))throw new Error("Provided address is not a valid address: "+e);e=e.replace("0x","").replace("0X","");var t=function(e,t){for(var r=e;r.length<2*t;)r="0"+r;return r}(new i(e,16).toString(36),15);return s.fromBban(t.toUpperCase())},s.fromBban=function(e){var t=("0"+(98-a(o("XE00"+e)))).slice(-2);return new s("XE"+t+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(o(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.toAddress=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new i(e,36);return n.toChecksumAddress(t.toString(16,20))}return""},s.prototype.toString=function(){return this._iban},t.exports=s},{"bn.js":518,"web3-utils":559}],520:[function(e,t,r){"use strict";var o=e("web3-core"),a=e("web3-core-method"),s=e("web3-utils"),u=e("web3-net"),c=e("web3-core-helpers").formatters,n=function(){var t=this;o.packageInit(this,arguments),this.net=new u(this);var r=null,n="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return r},set:function(e){return e&&(r=s.toChecksumAddress(c.inputAddressFormatter(e))),i.forEach(function(e){e.defaultAccount=r}),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return n},set:function(e){return n=e,i.forEach(function(e){e.defaultBlock=n}),e},enumerable:!0});var i=[new a({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:s.toChecksumAddress}),new a({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:s.toChecksumAddress}),new a({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[c.inputAddressFormatter,null,null]}),new a({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[c.inputAddressFormatter]}),new a({name:"importRawKey",call:"personal_importRawKey",params:2}),new a({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[c.inputTransactionFormatter,null]}),new a({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[c.inputTransactionFormatter,null]}),new a({name:"sign",call:"personal_sign",params:3,inputFormatter:[c.inputSignFormatter,c.inputAddressFormatter,null]}),new a({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[c.inputSignFormatter,null]})];i.forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount})};o.addProviders(n),t.exports=n},{"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-net":524,"web3-utils":559}],521:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],522:[function(e,t,r){"use strict";var i=e("underscore");t.exports=function(r){var n,t=this;return this.net.getId().then(function(e){return n=e,t.getBlock(0)}).then(function(e){var t="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===e.hash&&1===n&&(t="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===e.hash&&2===n&&(t="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===e.hash&&3===n&&(t="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===e.hash&&4===n&&(t="rinkeby"),"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"===e.hash&&5===n&&(t="goerli"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===e.hash&&42===n&&(t="kovan"),i.isFunction(r)&&r(null,t),t}).catch(function(e){if(!i.isFunction(r))throw e;r(e)})}},{underscore:521}],523:[function(e,t,r){"use strict";var b=e("underscore"),y=e("web3-core"),n=e("web3-core-helpers"),m=e("web3-core-subscriptions").subscriptions,v=e("web3-core-method"),g=e("web3-utils"),w=e("web3-net"),_=e("web3-eth-ens"),k=e("web3-eth-personal"),S=e("web3-eth-contract"),A=e("web3-eth-iban"),E=e("web3-eth-accounts"),x=e("web3-eth-abi"),M=e("./getNetworkType.js"),j=n.formatters,I=function(e){return b.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},O=function(e){return b.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},T=function(e){return b.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},B=function(e){return b.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},C=function(e){return b.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},i=function(){var t=this;y.packageInit(this,arguments);var r=this.setRequestManager;this.setRequestManager=function(e){return r(e),t.net.setRequestManager(e),t.personal.setRequestManager(e),t.accounts.setRequestManager(e),t.Contract._requestManager=t._requestManager,t.Contract.currentProvider=t._provider,!0};var n,i,o,e=this.setProvider,a=!(this.setProvider=function(){e.apply(t,arguments),t.setRequestManager(t._requestManager),t.ens._detectedAddress=null,t.ens._lastSyncCheck=null}),s=null,u="latest",c=50,f=24,l=750;Object.defineProperty(this,"handleRevert",{get:function(){return a},set:function(e){a=e,t.Contract.handleRevert=a,p.forEach(function(e){e.handleRevert=a})},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return o},set:function(e){o=e,t.Contract.defaultCommon=o,p.forEach(function(e){e.defaultCommon=o})},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return i},set:function(e){i=e,t.Contract.defaultHardfork=i,p.forEach(function(e){e.defaultHardfork=i})},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return n},set:function(e){n=e,t.Contract.defaultChain=n,p.forEach(function(e){e.defaultChain=n})},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return l},set:function(e){l=e,t.Contract.transactionPollingTimeout=l,p.forEach(function(e){e.transactionPollingTimeout=l})},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return f},set:function(e){f=e,t.Contract.transactionConfirmationBlocks=f,p.forEach(function(e){e.transactionConfirmationBlocks=f})},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return c},set:function(e){c=e,t.Contract.transactionBlockTimeout=c,p.forEach(function(e){e.transactionBlockTimeout=c})},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return s},set:function(e){return e&&(s=g.toChecksumAddress(j.inputAddressFormatter(e))),t.Contract.defaultAccount=s,t.personal.defaultAccount=s,p.forEach(function(e){e.defaultAccount=s}),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return u},set:function(e){return u=e,t.Contract.defaultBlock=u,t.personal.defaultBlock=u,p.forEach(function(e){e.defaultBlock=u}),e},enumerable:!0}),this.clearSubscriptions=t._requestManager.clearSubscriptions,this.net=new w(this),this.net.getNetworkType=M.bind(this),this.accounts=new E(this),this.personal=new k(this),this.personal.defaultAccount=this.defaultAccount;var h=this,d=function(){S.apply(this,arguments);var e=this,t=h.setProvider;h.setProvider=function(){t.apply(h,arguments),y.packageInit(e,[h])}};d.setProvider=function(){S.setProvider.apply(this,arguments)},(d.prototype=Object.create(S.prototype)).constructor=d,this.Contract=d,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.transactionBlockTimeout=this.transactionBlockTimeout,this.Contract.transactionConfirmationBlocks=this.transactionConfirmationBlocks,this.Contract.transactionPollingTimeout=this.transactionPollingTimeout,this.Contract.handleRevert=this.handleRevert,this.Contract._requestManager=this._requestManager,this.Contract._ethAccounts=this.accounts,this.Contract.currentProvider=this._requestManager.provider,this.Iban=A,this.abi=x,this.ens=new _(this);var p=[new v({name:"getNodeInfo",call:"web3_clientVersion"}),new v({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new v({name:"getCoinbase",call:"eth_coinbase",params:0}),new v({name:"isMining",call:"eth_mining",params:0}),new v({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:g.hexToNumber}),new v({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:j.outputSyncingFormatter}),new v({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:j.outputBigNumberFormatter}),new v({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:g.toChecksumAddress}),new v({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:g.hexToNumber}),new v({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[j.inputAddressFormatter,j.inputDefaultBlockNumberFormatter],outputFormatter:j.outputBigNumberFormatter}),new v({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[j.inputAddressFormatter,g.numberToHex,j.inputDefaultBlockNumberFormatter]}),new v({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[j.inputAddressFormatter,j.inputDefaultBlockNumberFormatter]}),new v({name:"getBlock",call:I,params:2,inputFormatter:[j.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:j.outputBlockFormatter}),new v({name:"getUncle",call:T,params:2,inputFormatter:[j.inputBlockNumberFormatter,g.numberToHex],outputFormatter:j.outputBlockFormatter}),new v({name:"getBlockTransactionCount",call:B,params:1,inputFormatter:[j.inputBlockNumberFormatter],outputFormatter:g.hexToNumber}),new v({name:"getBlockUncleCount",call:C,params:1,inputFormatter:[j.inputBlockNumberFormatter],outputFormatter:g.hexToNumber}),new v({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:j.outputTransactionFormatter}),new v({name:"getTransactionFromBlock",call:O,params:2,inputFormatter:[j.inputBlockNumberFormatter,g.numberToHex],outputFormatter:j.outputTransactionFormatter}),new v({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:j.outputTransactionReceiptFormatter}),new v({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[j.inputAddressFormatter,j.inputDefaultBlockNumberFormatter],outputFormatter:g.hexToNumber}),new v({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null],abiCoder:x}),new v({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[j.inputTransactionFormatter]}),new v({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[j.inputTransactionFormatter],abiCoder:x}),new v({name:"sign",call:"eth_sign",params:2,inputFormatter:[j.inputSignFormatter,j.inputAddressFormatter],transformPayload:function(e){return e.params.reverse(),e}}),new v({name:"call",call:"eth_call",params:2,inputFormatter:[j.inputCallFormatter,j.inputDefaultBlockNumberFormatter],abiCoder:x}),new v({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[j.inputCallFormatter],outputFormatter:g.hexToNumber}),new v({name:"submitWork",call:"eth_submitWork",params:3}),new v({name:"getWork",call:"eth_getWork",params:0}),new v({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[j.inputLogFormatter],outputFormatter:j.outputLogFormatter}),new v({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:g.hexToNumber}),new v({name:"requestAccounts",call:"eth_requestAccounts",params:0,outputFormatter:g.toChecksumAddress}),new v({name:"getProof",call:"eth_getProof",params:3,inputFormatter:[j.inputAddressFormatter,j.inputStorageKeysFormatter,j.inputDefaultBlockNumberFormatter],outputFormatter:j.outputProofFormatter}),new v({name:"getPendingTransactions",call:"eth_pendingTransactions",params:0,outputFormatter:j.outputTransactionFormatter}),new m({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:j.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[j.inputLogFormatter],outputFormatter:j.outputLogFormatter,subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),b.isFunction(this.callback)&&this.callback(null,e,this)}},syncing:{params:0,outputFormatter:j.outputSyncingFormatter,subscriptionHandler:function(e){var t=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),b.isFunction(this.callback)&&this.callback(null,t._isSyncing,this),setTimeout(function(){t.emit("data",e),b.isFunction(t.callback)&&t.callback(null,e,t)},0)):(this.emit("data",e),b.isFunction(t.callback)&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),b.isFunction(t.callback)&&t.callback(null,t._isSyncing,t))},500))}}}})];p.forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t.accounts),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount,e.transactionBlockTimeout=t.transactionBlockTimeout,e.transactionConfirmationBlocks=t.transactionConfirmationBlocks,e.transactionPollingTimeout=t.transactionPollingTimeout,e.handleRevert=t.handleRevert})};y.addProviders(i),t.exports=i},{"./getNetworkType.js":522,underscore:521,"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-core-subscriptions":228,"web3-eth-abi":274,"web3-eth-accounts":462,"web3-eth-contract":464,"web3-eth-ens":513,"web3-eth-iban":519,"web3-eth-personal":520,"web3-net":524,"web3-utils":559}],524:[function(e,t,r){"use strict";var n=e("web3-core"),i=e("web3-core-method"),o=e("web3-utils"),a=function(){var t=this;n.packageInit(this,arguments),[new i({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})].forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};n.addProviders(a),t.exports=a},{"web3-core":231,"web3-core-method":218,"web3-utils":559}],525:[function(e,t,r){"use strict";!function(){function i(e,t,r,n){return this instanceof i?(this.domain=e||void 0,this.path=t||"/",this.secure=!!r,this.script=!!n,this):new i(e,t,r,n)}function u(e,t,r){return e instanceof u?e:this instanceof u?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(r||"/"),this.explicit_path=!1,this.domain=t||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,t,r),this):new u(e,t,r)}i.All=Object.freeze(Object.create(null)),r.CookieAccessInfo=i,(r.Cookie=u).prototype.toString=function(){var e=[this.name+"="+this.value];return this.expiration_date!==1/0&&e.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&e.push("domain="+this.domain),this.path&&e.push("path="+this.path),this.secure&&e.push("secure"),this.noscript&&e.push("httponly"),e.join("; ")},u.prototype.toValueString=function(){return this.name+"="+this.value};var a=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function e(){var o,a;return this instanceof e?(o=Object.create(null),this.setCookie=function(e,t,r){var n,i;if(n=(e=new u(e,t,r)).expiration_date<=Date.now(),void 0===o[e.name])return!n&&(o[e.name]=[e],o[e.name]);for(a=o[e.name],i=0;i<a.length;i+=1)if(a[i].collidesWith(e))return n?(a.splice(i,1),0===a.length&&delete o[e.name],!1):a[i]=e;return!n&&(a.push(e),e)},this.getCookie=function(e,t){var r,n;if(a=o[e])for(n=0;n<a.length;n+=1)if((r=a[n]).expiration_date<=Date.now())0===a.length&&delete o[r.name];else if(r.matches(t))return r},this.getCookies=function(e){var t,r,n=[];for(t in o)(r=this.getCookie(t,e))&&n.push(r);return n.toString=function(){return n.join(":")},n.toValueString=function(){return n.map(function(e){return e.toValueString()}).join(";")},n},this):new e}u.prototype.parse=function(e,t,r){if(this instanceof u){var n,i=e.split(";").filter(function(e){return!!e}),o=i[0].match(/([^=]+)=([\s\S]*)/);if(!o)return void console.warn("Invalid cookie header encountered. Header: '"+e+"'");var a=o[1],s=o[2];if("string"!=typeof a||0===a.length||"string"!=typeof s)return void console.warn("Unable to extract values from cookie header. Cookie: '"+e+"'");for(this.name=a,this.value=s,n=1;n<i.length;n+=1)switch(a=(o=i[n].match(/([^=]+)(?:=([\s\S]*))?/))[1].trim().toLowerCase(),s=o[2],a){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=s?Number(Date.parse(s)):1/0;break;case"path":this.path=s?s.trim():"",this.explicit_path=!0;break;case"domain":this.domain=s?s.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0}return this.explicit_path||(this.path=r||"/"),this.explicit_domain||(this.domain=t),this}return(new u).parse(e,t,r)},u.prototype.matches=function(e){return e===i.All||!(this.noscript&&e.script||this.secure&&!e.secure||!this.collidesWith(e))},u.prototype.collidesWith=function(e){if(this.path&&!e.path||this.domain&&!e.domain)return!1;if(this.path&&0!==e.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==e.path.indexOf(this.path))return!1;var t=e.domain&&e.domain.replace(/^[\.]/,""),r=this.domain&&this.domain.replace(/^[\.]/,"");if(r===t)return!0;if(r){if(!this.explicit_domain)return!1;var n=t.indexOf(r);return-1!==n&&n===t.length-r.length}return!0},(r.CookieJar=e).prototype.setCookies=function(e,t,r){var n,i,o=[];for(e=(e=Array.isArray(e)?e:e.split(a)).map(function(e){return new u(e,t,r)}),n=0;n<e.length;n+=1)i=e[n],this.setCookie(i,t,r)&&o.push(i);return o}}()},{}],526:[function(e,t,r){"use strict";var n,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.SecurityError=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.InvalidStateError=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.NetworkError=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.SyntaxError=u},{}],527:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("./xml-http-request"));var n=e("./xml-http-request-event-target");r.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},{"./xml-http-request":531,"./xml-http-request-event-target":529}],528:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){this.type=e,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0};r.ProgressEvent=n},{}],529:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){e=e.toLowerCase(),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t.handleEvent||t)},e.prototype.removeEventListener=function(e,t){if(e=e.toLowerCase(),this.listeners[e]){var r=this.listeners[e].indexOf(t.handleEvent||t);r<0||this.listeners[e].splice(r,1)}},e.prototype.dispatchEvent=function(e){var t=e.type.toLowerCase();if((e.target=this).listeners[t])for(var r=0,n=this.listeners[t];r<n.length;r++){n[r].call(this,e)}var i=this["on"+t];return i&&i.call(this,e),!0},e}();r.XMLHttpRequestEventTarget=n},{}],530:[function(t,e,i){(function(o){"use strict";var n,r=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(i,"__esModule",{value:!0});var e=function(t){function e(){var e=t.call(this)||this;return e._contentType=null,e._body=null,e._reset(),e}return r(e,t),e.prototype._reset=function(){this._contentType=null,this._body=null},e.prototype._setData=function(e){if(null!=e)if("string"==typeof e)0!==e.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new o(e,"utf-8");else if(o.isBuffer(e))this._body=e;else if(e instanceof ArrayBuffer){for(var t=new o(e.byteLength),r=new Uint8Array(e),n=0;n<e.byteLength;n++)t[n]=r[n];this._body=t}else{if(!(e.buffer&&e.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+e);t=new o(e.byteLength);var i=e.byteOffset;for(r=new Uint8Array(e.buffer),n=0;n<e.byteLength;n++)t[n]=r[n+i];this._body=t}},e.prototype._finalizeHeaders=function(e,t){this._contentType&&!t["content-type"]&&(e["Content-Type"]=this._contentType),this._body&&(e["Content-Length"]=this._body.length.toString())},e.prototype._startUpload=function(e){this._body&&e.write(this._body),e.end()},e}(t("./xml-http-request-event-target").XMLHttpRequestEventTarget);i.XMLHttpRequestUpload=e}).call(this,t("buffer").Buffer)},{"./xml-http-request-event-target":529,buffer:50}],531:[function(b,e,y){(function(n,i){"use strict";var o,e=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(y,"__esModule",{value:!0});var s=b("http"),u=b("https"),c=b("os"),f=b("url"),l=b("./progress-event"),h=b("./errors"),r=b("./xml-http-request-event-target"),d=b("./xml-http-request-upload"),p=b("cookiejar"),a=function(r){function a(e){void 0===e&&(e={});var t=r.call(this)||this;return t.UNSENT=a.UNSENT,t.OPENED=a.OPENED,t.HEADERS_RECEIVED=a.HEADERS_RECEIVED,t.LOADING=a.LOADING,t.DONE=a.DONE,t.onreadystatechange=null,t.readyState=a.UNSENT,t.response=null,t.responseText="",t.responseType="",t.status=0,t.statusText="",t.timeout=0,t.upload=new d.XMLHttpRequestUpload,t.responseUrl="",t.withCredentials=!1,t._method=null,t._url=null,t._sync=!1,t._headers={},t._loweredHeaders={},t._mimeOverride=null,t._request=null,t._response=null,t._responseParts=null,t._responseHeaders=null,t._aborting=null,t._error=null,t._loadedBytes=0,t._totalBytes=0,t._lengthComputable=!1,t._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},t._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},t._privateHeaders={"set-cookie":!0,"set-cookie2":!0},t._userAgent="Mozilla/5.0 ("+c.type()+" "+c.arch()+") node.js/"+n.versions.node+" v8/"+n.versions.v8,t._anonymous=e.anon||!1,t}return e(a,r),a.prototype.open=function(e,t,r,n,i){if(void 0===r&&(r=!0),e=e.toUpperCase(),this._restrictedMethods[e])throw new a.SecurityError("HTTP method "+e+" is not allowed in XHR");var o=this._parseUrl(t,n,i);this.readyState===a.HEADERS_RECEIVED||this.readyState,this._method=e,this._url=o,this._sync=!r,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(a.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},a.prototype.setRequestHeader=function(e,t){if(this.readyState!==a.OPENED)throw new a.InvalidStateError("XHR readyState must be OPENED");var r=e.toLowerCase();this._restrictedHeaders[r]||/^sec-/.test(r)||/^proxy-/.test(r)?console.warn('Refused to set unsafe header "'+e+'"'):(t=t.toString(),null!=this._loweredHeaders[r]?(e=this._loweredHeaders[r],this._headers[e]=this._headers[e]+", "+t):(this._loweredHeaders[r]=e,this._headers[e]=t))},a.prototype.send=function(e){if(this.readyState!==a.OPENED)throw new a.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new a.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(e);case"http:":case"https:":return this._sendHttp(e);default:throw new a.NetworkError("Unsupported protocol "+this._url.protocol)}},a.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},a.prototype.getResponseHeader=function(e){if(null==this._responseHeaders||null==e)return null;var t=e.toLowerCase();return this._responseHeaders.hasOwnProperty(t)?this._responseHeaders[e.toLowerCase()]:null},a.prototype.getAllResponseHeaders=function(){var t=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map(function(e){return e+": "+t._responseHeaders[e]}).join("\r\n")},a.prototype.overrideMimeType=function(e){if(this.readyState===a.LOADING||this.readyState===a.DONE)throw new a.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=e.toLowerCase()},a.prototype.nodejsSet=function(e){if(this.nodejsHttpAgent=e.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=e.httpsAgent||this.nodejsHttpsAgent,e.hasOwnProperty("baseUrl")){if(null!=e.baseUrl)if(!f.parse(e.baseUrl,!1,!0).protocol)throw new a.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=e.baseUrl}},a.nodejsSet=function(e){a.prototype.nodejsSet(e)},a.prototype._setReadyState=function(e){this.readyState=e,this.dispatchEvent(new l.ProgressEvent("readystatechange"))},a.prototype._sendFile=function(e){throw new Error("Protocol file: not implemented")},a.prototype._sendHttp=function(e){if(this._sync)throw new Error("Synchronous XHR processing not implemented");e=!e||"GET"!==this._method&&"HEAD"!==this._method?e||"":(console.warn("Discarding entity body for "+this._method+" requests"),null),this.upload._setData(e),this._finalizeHeaders(),this._sendHxxpRequest()},a.prototype._sendHxxpRequest=function(){var t=this;if(this.withCredentials){var e=a.cookieJar.getCookies(p.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=e}var r="http:"===this._url.protocol?[s,this.nodejsHttpAgent]:[u,this.nodejsHttpsAgent],n=r[0],i=r[1],o=n.request.bind(n)({hostname:this._url.hostname,port:+this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:i});this._request=o,this.timeout&&o.setTimeout(this.timeout,function(){return t._onHttpTimeout(o)}),o.on("response",function(e){return t._onHttpResponse(o,e)}),o.on("error",function(e){return t._onHttpRequestError(o,e)}),this.upload._startUpload(o),this._request===o&&this._dispatchProgress("loadstart")},a.prototype._finalizeHeaders=function(){this._headers=t({},this._headers,{Connection:"keep-alive",Host:this._url.host,"User-Agent":this._userAgent},this._anonymous?{Referer:"about:blank"}:{}),this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},a.prototype._onHttpResponse=function(e,t){var r=this;if(this._request===e){if(this.withCredentials&&(t.headers["set-cookie"]||t.headers["set-cookie2"])&&a.cookieJar.setCookies(t.headers["set-cookie"]||t.headers["set-cookie2"]),0<=[301,302,303,307,308].indexOf(t.statusCode))return this._url=this._parseUrl(t.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=t,this._response.on("data",function(e){return r._onHttpResponseData(t,e)}),this._response.on("end",function(){return r._onHttpResponseEnd(t)}),this._response.on("close",function(){return r._onHttpResponseClose(t)}),this.responseUrl=this._url.href.split("#")[0],this.status=t.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(t);var n=this._responseHeaders["content-length"]||"";this._totalBytes=+n,this._lengthComputable=!!n,this._setReadyState(a.HEADERS_RECEIVED)}},a.prototype._onHttpResponseData=function(e,t){this._response===e&&(this._responseParts.push(new i(t)),this._loadedBytes+=t.length,this.readyState!==a.LOADING&&this._setReadyState(a.LOADING),this._dispatchProgress("progress"))},a.prototype._onHttpResponseEnd=function(e){this._response===e&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(a.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},a.prototype._onHttpResponseClose=function(e){if(this._response===e){var t=this._request;this._setError(),t.abort(),this._setReadyState(a.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},a.prototype._onHttpTimeout=function(e){this._request===e&&(this._setError(),e.abort(),this._setReadyState(a.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},a.prototype._onHttpRequestError=function(e,t){this._request===e&&(this._setError(),e.abort(),this._setReadyState(a.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},a.prototype._dispatchProgress=function(e){var t=new a.ProgressEvent(e);t.lengthComputable=this._lengthComputable,t.loaded=this._loadedBytes,t.total=this._totalBytes,this.dispatchEvent(t)},a.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},a.prototype._parseUrl=function(e,t,r){var n=null==this.nodejsBaseUrl?e:f.resolve(this.nodejsBaseUrl,e),i=f.parse(n,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||t||r)&&(i.auth=(t||a||"")+":"+(r||s||"")),i},a.prototype._parseResponseHeaders=function(e){for(var t in this._responseHeaders={},e.headers){var r=t.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=e.headers[t])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},a.prototype._parseResponse=function(){var t=i.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(t.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=t);case"arraybuffer":this.responseText=null;for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n<t.length;n++)r[n]=t[n];return void(this.response=e);case"text":default:try{this.responseText=t.toString(this._parseResponseEncoding())}catch(e){this.responseText=t.toString("binary")}this.response=this.responseText}},a.prototype._parseResponseEncoding=function(){return/;\s*charset=(.*)$/.exec(this._responseHeaders["content-type"]||"")[1]||"utf-8"},a.ProgressEvent=l.ProgressEvent,a.InvalidStateError=h.InvalidStateError,a.NetworkError=h.NetworkError,a.SecurityError=h.SecurityError,a.SyntaxError=h.SyntaxError,a.XMLHttpRequestUpload=d.XMLHttpRequestUpload,a.UNSENT=0,a.OPENED=1,a.HEADERS_RECEIVED=2,a.LOADING=3,a.DONE=4,a.cookieJar=p.CookieJar(),a}(r.XMLHttpRequestEventTarget);(y.XMLHttpRequest=a).prototype.nodejsHttpAgent=s.globalAgent,a.prototype.nodejsHttpsAgent=u.globalAgent,a.prototype.nodejsBaseUrl=null}).call(this,b("_process"),b("buffer").Buffer)},{"./errors":526,"./progress-event":528,"./xml-http-request-event-target":529,"./xml-http-request-upload":530,_process:124,buffer:50,cookiejar:525,http:163,https:102,os:112,url:185}],532:[function(e,t,r){"use strict";var o=e("web3-core-helpers").errors,n=e("xhr2-cookies").XMLHttpRequest,i=e("http"),a=e("https"),s=function(e,t){t=t||{},this.withCredentials=t.withCredentials||!1,this.timeout=t.timeout||0,this.headers=t.headers,this.agent=t.agent;var r=(this.connected=!1)!==t.keepAlive;this.host=e||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new a.Agent({keepAlive:r}):this.httpAgent=new i.Agent({keepAlive:r}))};s.prototype._prepareRequest=function(){var t;if("undefined"!=typeof XMLHttpRequest)t=new XMLHttpRequest;else{t=new n;var e={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(e.httpsAgent=this.agent.https,e.httpAgent=this.agent.http,e.baseUrl=this.agent.baseUrl),t.nodejsSet(e)}return t.open("POST",this.host,!0),t.setRequestHeader("Content-Type","application/json"),t.timeout=this.timeout,t.withCredentials=this.withCredentials,this.headers&&this.headers.forEach(function(e){t.setRequestHeader(e.name,e.value)}),t},s.prototype.send=function(e,r){var n=this,i=this._prepareRequest();i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var e=i.responseText,t=null;try{e=JSON.parse(e)}catch(e){t=o.InvalidResponse(i.responseText)}n.connected=!0,r(t,e)}},i.ontimeout=function(){n.connected=!1,r(o.ConnectionTimeout(this.timeout))};try{i.send(JSON.stringify(e))}catch(e){this.connected=!1,r(o.InvalidConnection(this.host))}},s.prototype.disconnect=function(){},s.prototype.supportsSubscriptions=function(){return!1},t.exports=s},{http:163,https:102,"web3-core-helpers":216,"xhr2-cookies":527}],533:[function(e,ve,ge){"use strict";function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(p,r,l,Y,u,X){var b=d(function(r,n){var i=n.length;return d(function(e){for(var t=0;t<e.length;t++)n[i+t]=e[t];return n.length=i+e.length,r.apply(this,n)})});d(function(e){var t=I(e);function r(e,t){return[h(e,t)]}return d(function(e){return T(r,e,t)[0]})});function y(e,t){return function(){return e.call(this,t.apply(this,arguments))}}function n(t){return function(e){return e[t]}}var m=d(function(n){return d(function(e){for(var t,r=0;r<k(n);r++)if(t=h(e,n[r]))return t})});function h(e,t){return t.apply(X,e)}function d(t){var r=t.length-1,n=l.prototype.slice;if(0==r)return function(){return t.call(this,n.call(arguments))};if(1==r)return function(){return t.call(this,arguments[0],n.call(arguments,1))};var i=l(t.length);return function(){for(var e=0;e<r;e++)i[e]=arguments[e];return i[r]=n.call(arguments,r),t.apply(this,i)}}function v(t,r){return function(e){return t(e)&&r(e)}}function g(){}function w(){return!0}function _(e,t){return t&&t.constructor===e}var k=n("length"),S=b(_,String);function A(e){return e!==X}function E(e,t){return t instanceof r&&function e(t,r){return!r||t(M(r))&&e(t,j(r))}(function(e){return e in t},e)}function x(e,t){return[e,t]}var i=null,M=n(0),j=n(1);function I(e){return B(e.reduce((r=x,function(e,t){return r(t,e)}),i));var r}var O=d(I);function s(e){return T(function(e,t){return e.unshift(t),e},[],e)}function c(e,t){return t?x(e(M(t)),c(e,j(t))):i}function T(e,t,r){return r?e(T(e,t,j(r)),M(r)):t}function f(e,n,t){return function e(t,r){return t?n(M(t))?(r(M(t)),j(t)):x(M(t),e(j(t),r)):i}(e,t||g)}function B(e){return function e(t,r){return t?e(j(t),x(M(t),r)):r}(e,i)}function a(e){var o,a,s,u=e(ce).emit,c=e(fe).emit,f=e(le).emit,t=e(re).emit,l=65536,h=/[\\"\n]/g,r=0,d=r++,p=r++,b=r++,y=r++,m=r++,v=r++,g=r++,w=r++,_=r++,k=r++,S=r++,A=r++,E=r++,x=r++,M=r++,j=r++,I=r++,O=r++,T=r++,B=r++,C=l,R=X,N="",U=!1,P=!1,L=d,F=[],D=null,q=0,z=0,H=0,K=0,V=1;function W(e){R!==X&&(c(R),f(),R=X),o=Y(e+"\nLn: "+V+"\nCol: "+K+"\nChr: "+a),t(he(X,X,o))}function G(e){return"\r"==e||"\n"==e||" "==e||"\t"==e}e(ae).on(function(e){if(o)return;if(P)return W("Cannot write after close");var t=0;a=e[0];for(;a&&(0<t&&(s=a),a=e[t++]);)switch(H++,"\n"==a?(V++,K=0):K++,L){case d:if("{"===a)L=b;else if("["===a)L=m;else if(!G(a))return W("Non-whitespace before {[.");continue;case w:case b:if(G(a))continue;if(L===w)F.push(_);else{if("}"===a){c({}),f(),L=F.pop()||p;continue}F.push(y)}if('"'!==a)return W('Malformed object key should start with " ');L=g;continue;case _:case y:if(G(a))continue;if(":"===a)L===y?(F.push(y),R!==X&&(c({}),u(R),R=X),z++):R!==X&&(u(R),R=X),L=p;else if("}"===a)R!==X&&(c(R),f(),R=X),f(),z--,L=F.pop()||p;else{if(","!==a)return W("Bad object");L===y&&F.push(y),R!==X&&(c(R),f(),R=X),L=w}continue;case m:case p:if(G(a))continue;if(L===m){if(c([]),z++,L=p,"]"===a){f(),z--,L=F.pop()||p;continue}F.push(v)}if('"'===a)L=g;else if("{"===a)L=b;else if("["===a)L=m;else if("t"===a)L=k;else if("f"===a)L=E;else if("n"===a)L=I;else if("-"===a)N+=a;else if("0"===a)N+=a,L=20;else{if(-1==="123456789".indexOf(a))return W("Bad value");N+=a,L=20}continue;case v:if(","===a)F.push(v),R!==X&&(c(R),f(),R=X),L=p;else{if("]"!==a){if(G(a))continue;return W("Bad array")}R!==X&&(c(R),f(),R=X),f(),z--,L=F.pop()||p}continue;case g:R===X&&(R="");var r=t-1;e:for(;;){for(;0<q;)if(D+=a,a=e.charAt(t++),4===q?(R+=String.fromCharCode(parseInt(D,16)),q=0,r=t-1):q++,!a)break e;if('"'===a&&!U){L=F.pop()||p,R+=e.substring(r,t-1);break}if(!("\\"!==a||U||(U=!0,R+=e.substring(r,t-1),a=e.charAt(t++))))break;if(U){if(U=!1,"n"===a?R+="\n":"r"===a?R+="\r":"t"===a?R+="\t":"f"===a?R+="\f":"b"===a?R+="\b":"u"===a?(q=1,D=""):R+=a,a=e.charAt(t++),r=t-1,a)continue;break}h.lastIndex=t;var n=h.exec(e);if(!n){t=e.length+1,R+=e.substring(r,t-1);break}if(t=n.index+1,!(a=e.charAt(n.index))){R+=e.substring(r,t-1);break}}continue;case k:if(!a)continue;if("r"!==a)return W("Invalid true started with t"+a);L=S;continue;case S:if(!a)continue;if("u"!==a)return W("Invalid true started with tr"+a);L=A;continue;case A:if(!a)continue;if("e"!==a)return W("Invalid true started with tru"+a);c(!0),f(),L=F.pop()||p;continue;case E:if(!a)continue;if("a"!==a)return W("Invalid false started with f"+a);L=x;continue;case x:if(!a)continue;if("l"!==a)return W("Invalid false started with fa"+a);L=M;continue;case M:if(!a)continue;if("s"!==a)return W("Invalid false started with fal"+a);L=j;continue;case j:if(!a)continue;if("e"!==a)return W("Invalid false started with fals"+a);c(!1),f(),L=F.pop()||p;continue;case I:if(!a)continue;if("u"!==a)return W("Invalid null started with n"+a);L=O;continue;case O:if(!a)continue;if("l"!==a)return W("Invalid null started with nu"+a);L=T;continue;case T:if(!a)continue;if("l"!==a)return W("Invalid null started with nul"+a);c(null),f(),L=F.pop()||p;continue;case B:if("."!==a)return W("Leading zero not followed by .");N+=a,L=20;continue;case 20:if(-1!=="0123456789".indexOf(a))N+=a;else if("."===a){if(-1!==N.indexOf("."))return W("Invalid number has two dots");N+=a}else if("e"===a||"E"===a){if(-1!==N.indexOf("e")||-1!==N.indexOf("E"))return W("Invalid number has two exponential");N+=a}else if("+"===a||"-"===a){if("e"!==s&&"E"!==s)return W("Invalid symbol in number");N+=a}else N&&(c(parseFloat(N)),f(),N=""),t--,L=F.pop()||p;continue;default:return W("Unknown state: "+L)}C<=H&&(i=0,R!==X&&R.length>l&&(W("Max buffer length exceeded: textNode"),i=Math.max(i,R.length)),N.length>l&&(W("Max buffer length exceeded: numberNode"),i=Math.max(i,N.length)),C=l-i+H);var i}),e(se).on(function(){if(L==d)return c({}),f(),void(P=!0);L===p&&0===z||W("Unexpected end");R!==X&&(c(R),f(),R=X);P=!0})}var e,t,o,C,R,N,U,P,L,F,D,q=(e=d(function(e){return e.unshift(/^/),(t=RegExp(e.map(n("source")).join(""))).exec.bind(t);var t}),C=e(t=/(\$?)/,/([\w-_]+|\*)/,o=/(?:{([\w ]*?)})?/),R=e(t,/\["([^"]+)"\]/,o),N=e(t,/\[(\d+|\*)\]/,o),U=e(t,/()/,/{([\w ]*?)}/),P=e(/\.\./),L=e(/\./),F=e(t,/!/),D=e(/$/),function(e){return e(m(C,R,N,U),P,L,F,D)});function z(e,t){return{key:e,node:t}}var H=n("key"),K=n("node"),V={};function W(e){var i=e($).emit,t=e(Q).emit,u=e(ie).emit,r=e(ne).emit;function c(e,t,r){K(M(e))[t]=r}function f(e,t,r){e&&c(e,t,r);var n=x(z(t,r),e);return i(n),n}var n={};return n[fe]=function(e,t){if(!e)return u(t),f(e,V,t);var r,n,i,o=(n=t,i=K(M(r=e)),_(l,i)?f(r,k(i),n):r),a=j(o),s=H(M(o));return c(a,s,t),x(z(s,t),a)},n[le]=function(e){return t(e),j(e)||r(K(M(e)))},n[ce]=f,n}var G=q(function(e,t,r,n,i){var o=y(H,M),a=y(K,M);function s(e,t){return!!t[1]?v(e,M):e}function u(e){if(e==w)return w;return v(function(e){return o(e)!=V},y(e,j))}function c(){return function(e){return o(e)==V}}function f(e,t,r,n,i){var o,a=e(r);if(a){var s=(o=a,T(function(e,t){return t(e,o)},n,t));return i(r.substr(k(a[0])),s)}}function l(e,t){return b(f,e,t)}var h=m(l(e,O(s,function(e,t){var r=t[3];return r?v(y(b(E,I(r.split(/\W+/))),a),e):e},function(e,t){var r=t[2];return v(r&&"*"!=r?function(e){return o(e)==r}:w,e)},u)),l(t,O(function(e){if(e==w)return w;var t=c(),r=e,n=u(function(e){return i(e)}),i=m(t,r,n);return i})),l(r,O()),l(n,O(s,c)),l(i,O(function(r){return function(e){var t=r(e);return!0===t?M(e):t}})),function(e){throw Y('"'+e+'" could not be tokenised')});function d(e,t){return t}function p(e,t){return h(e,t,e?p:d)}return function(t){try{return p(t,w)}catch(e){throw Y('Could not compile "'+t+'" because '+e.message)}}});function J(n,i,r){var o,a;function s(t){return function(e){return e.id==t}}return{on:function(e,t){var r={listener:e,id:t||e};return i&&i.emit(n,e,r.id),o=x(r,o),a=x(e,a),this},emit:function(){!function e(t,r){t&&(M(t).apply(null,r),e(j(t),r))}(a,arguments)},un:function(e){var t;o=f(o,s(e),function(e){t=e}),t&&(a=f(a,function(e){return e==t.listener}),r&&r.emit(n,t.listener,t.id))},listeners:function(){return a},hasListener:function(e){return A(function e(t,r){return r&&(t(M(r))?M(r):e(t,j(r)))}(e?s(e):w,o))}}}var Z=1,$=Z++,Q=Z++,ee=Z++,te=Z++,re="fail",ne=Z++,ie=Z++,oe="start",ae="data",se="end",ue=Z++,ce=Z++,fe=Z++,le=Z++;function he(e,t,r){try{var n=u.parse(t)}catch(e){}return{statusCode:e,body:t,jsonBody:n,thrown:r}}function de(n,i){var o={node:n(Q),path:n($)};function a(t,r,o){var a=n(t).emit;r.on(function(e){var t,r,n,i=o(e);!1!==i&&(t=a,r=K(i),n=B(e),t(r,s(j(c(H,n))),s(c(K,n))))},t),n("removeListener").on(function(e){e==t&&(n(e).listeners()||r.un(t))})}n("newListener").on(function(e){var t=/(node|path):(.*)/.exec(e);if(t){var r=o[t[1]];r.hasListener(e)||a(e,r,i(t[2]))}})}function pe(o,e){var i,a=/^(node|path):./,s=o(ne),u=o(te).emit,c=o(ee).emit,t=d(function(e,t){if(i[e])h(t,i[e]);else{var r=o(e),n=t[0];a.test(e)?f(r,n):r.on(n)}return i});function f(t,e,r){r=r||e;var n=l(e);return t.on(function(){var e=!1;i.forget=function(){e=!0},h(arguments,n),delete i.forget,e&&t.un(r)},r),i}function l(e){return function(){try{return e.apply(i,arguments)}catch(e){setTimeout(function(){throw new Y(e.message)})}}}function n(e,t,r){var n,i;n="node"==e?(i=r,function(){var e=i.apply(this,arguments);A(e)&&(e==me.drop?u():c(e))}):r,f(o(e+":"+t),n,r)}function r(e,t,r){return S(t)?n(e,t,r):function(e,t){for(var r in t)n(e,r,t[r])}(e,t),i}return o(ie).on(function(e){var t;i.root=(t=e,function(){return t})}),o(oe).on(function(e,t){i.header=function(e){return e?t[e]:t}}),i={on:t,addListener:t,removeListener:function(e,t,r){if("done"==e)s.un(t);else if("node"==e||"path"==e)o.un(e+":"+t,r);else{var n=t;o(e).un(n)}return i},emit:o.emit,node:b(r,"node"),path:b(r,"path"),done:b(f,s),start:b(function(e,t){return o(e).on(l(t),t),i},oe),fail:o(re).on,abort:o(ue).emit,header:g,root:g,source:e}}function be(e,t,r,n,i){var o=function(){var t={},r=i("newListener"),n=i("removeListener");function i(e){return t[e]=J(e,r,n)}function o(e){return t[e]||i(e)}return["emit","on","un"].forEach(function(r){o[r]=d(function(e,t){h(t,o(e)[r])})}),o}();return t&&function(t,n,e,r,i,o,a){var s,u=t(ae).emit,c=t(re).emit,f=0,l=!0;function h(){var e=n.responseText,t=e.substr(f);t&&u(t),f=k(e)}t(ue).on(function(){n.onreadystatechange=null,n.abort()}),"onprogress"in n&&(n.onprogress=h),n.onreadystatechange=function(){function e(){try{l&&t(oe).emit(n.status,(e=n.getAllResponseHeaders(),r={},e&&e.split("\r\n").forEach(function(e){var t=e.indexOf(": ");r[e.substring(0,t)]=e.substring(t+2)}),r)),l=!1}catch(e){}var e,r}switch(n.readyState){case 2:case 3:return e();case 4:e(),2==String(n.status)[0]?(h(),t(se).emit()):c(he(n.status,n.responseText))}};try{for(var d in n.open(e,r,!0),o)n.setRequestHeader(d,o[d]);(function(t,e){function r(e){return e.port||{"http:":80,"https:":443}[e.protocol||t.protocol]}return!!(e.protocol&&e.protocol!=t.protocol||e.host&&e.host!=t.host||e.host&&r(e)!=r(t))})(p.location,{protocol:(s=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[])[1]||"",host:s[2]||"",port:s[3]||""})||n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.withCredentials=a,n.send(i)}catch(e){p.setTimeout(b(c,he(X,X,e)),0)}}(o,new XMLHttpRequest,e,t,r,n,i),a(o),function(t,r){var i,n={};function e(t){return function(e){i=t(i,e)}}for(var o in r)t(o).on(e(r[o]),n);t(ee).on(function(e){var t=M(i),r=H(t),n=j(i);n&&(K(M(n))[r]=e)}),t(te).on(function(){var e=M(i),t=H(e),r=j(i);r&&delete K(M(r))[t]}),t(ue).on(function(){for(var e in r)t(e).un(n)})}(o,W(o)),de(o,G),pe(o,t)}function ye(e,t,r,n,i,o,a){return i=i?u.parse(u.stringify(i)):{},n?(S(n)||(n=u.stringify(n),i["Content-Type"]=i["Content-Type"]||"application/json"),i["Content-Length"]=i["Content-Length"]||n.length):n=null,e(r||"GET",(s=t,!1===a&&(-1==s.indexOf("?")?s+="?":s+="&",s+="_="+(new Date).getTime()),s),n,i,o||!1);var s}function me(e){var t=O("resume","pause","pipe"),r=b(E,t);return e?r(e)||S(e)?ye(be,e):ye(be,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):be()}me.drop=function(){return me.drop},"function"==typeof define&&define.amd?define("oboe",[],function(){return me}):"object"===(void 0===ge?"undefined":we(ge))?ve.exports=me:p.oboe=me}(function(){try{return window}catch(e){return self}}(),Object,Array,Error,JSON)},{}],534:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],535:[function(e,t,r){"use strict";var i=e("underscore"),o=e("web3-core-helpers").errors,a=e("oboe"),n=function(e,t){var n=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connected=!1,this.connection=t.connect({path:this.path}),this.addDefaultEvents();var r=function(t){var r=null;i.isArray(t)?t.forEach(function(e){n.responseCallbacks[e.id]&&(r=e.id)}):r=t.id,r||-1===t.method.indexOf("_subscription")?n.responseCallbacks[r]&&(n.responseCallbacks[r](null,t),delete n.responseCallbacks[r]):n.notificationCallbacks.forEach(function(e){i.isFunction(e)&&e(t)})};"Socket"===t.constructor.name?a(this.connection).done(r):this.connection.on("data",function(e){n._parseResponse(e.toString()).forEach(r)})};n.prototype.addDefaultEvents=function(){var e=this;this.connection.on("connect",function(){e.connected=!0}),this.connection.on("close",function(){e.connected=!1}),this.connection.on("error",function(){e._timeout()}),this.connection.on("end",function(){e._timeout()}),this.connection.on("timeout",function(){e._timeout()})},n.prototype._parseResponse=function(e){var r=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(t){r.lastChunk&&(t=r.lastChunk+t);var e=null;try{e=JSON.parse(t)}catch(e){return r.lastChunk=t,clearTimeout(r.lastChunkTimeout),void(r.lastChunkTimeout=setTimeout(function(){throw r._timeout(),o.InvalidResponse(t)},15e3))}clearTimeout(r.lastChunkTimeout),r.lastChunk=null,e&&n.push(e)}),n},n.prototype._addResponseCallback=function(e,t){var r=e.id||e[0].id,n=e.method||e[0].method;this.responseCallbacks[r]=t,this.responseCallbacks[r].method=n},n.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](o.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},n.prototype.reconnect=function(){this.connection.connect({path:this.path})},n.prototype.send=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},n.prototype.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.notificationCallbacks.push(t);break;default:this.connection.on(e,t)}},n.prototype.once=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");this.connection.once(e,t)},n.prototype.removeListener=function(e,r){var n=this;switch(e){case"data":this.notificationCallbacks.forEach(function(e,t){e===r&&n.notificationCallbacks.splice(t,1)});break;default:this.connection.removeListener(e,r)}},n.prototype.removeAllListeners=function(e){switch(e){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(e)}},n.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},n.prototype.supportsSubscriptions=function(){return!0},t.exports=n},{oboe:533,underscore:534,"web3-core-helpers":216}],536:[function(e,t,r){"use strict";var n;try{n=e("es5-ext/global")}catch(e){}finally{if(n||"undefined"==typeof window||(n=window),!n)throw new Error("Could not determine global this")}var i=n.WebSocket||n.MozWebSocket,o=e("./version");function a(e,t){return t?new i(e,t):new i(e)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(a,e,{get:function(){return i[e]}})}),t.exports={w3cwebsocket:i?a:null,version:o}},{"./version":537,"es5-ext/global":539}],537:[function(e,t,r){"use strict";t.exports=e("../package.json").version},{"../package.json":538}],538:[function(e,t,r){t.exports={_args:[["@web3-js/websocket@1.0.30","/Users/ryanghods/dev/web3.js/packages/web3-providers-ws"]],_from:"@web3-js/websocket@1.0.30",_id:"@web3-js/websocket@1.0.30",_inBundle:!1,_integrity:"sha512-fDwrD47MiDrzcJdSeTLF75aCcxVVt8B1N74rA+vh2XCAvFy4tEWJjtnUtj2QG7/zlQ6g9cQ88bZFBxwd9/FmtA==",_location:"/@web3-js/websocket",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@web3-js/websocket@1.0.30",name:"@web3-js/websocket",escapedName:"@web3-js%2fwebsocket",scope:"@web3-js",rawSpec:"1.0.30",saveSpec:null,fetchSpec:"1.0.30"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/@web3-js/websocket/-/websocket-1.0.30.tgz",_spec:"1.0.30",_where:"/Users/ryanghods/dev/web3.js/packages/web3-providers-ws",author:{name:"Brian McKelvey",email:"theturtle32@gmail.com",url:"https://github.com/theturtle32"},browser:"lib/browser.js",bugs:{url:"https://github.com/web3-js/WebSocket-Node/issues"},config:{verbose:!1},contributors:[{name:"Iñaki Baz Castillo",email:"ibc@aliax.net",url:"http://dev.sipdoc.net"}],dependencies:{debug:"^2.2.0","es5-ext":"^0.10.50",nan:"^2.14.0","typedarray-to-buffer":"^3.1.5",yaeti:"^0.0.6"},description:"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.",devDependencies:{"buffer-equal":"^1.0.0",faucet:"^0.0.1",gulp:"^4.0.2","gulp-jshint":"^2.0.4",jshint:"^2.0.0","jshint-stylish":"^2.2.1",tape:"^4.9.1"},directories:{lib:"./lib"},engines:{node:">=0.10.0"},homepage:"https://github.com/web3-js/WebSocket-Node",keywords:["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],license:"Apache-2.0",main:"index",name:"@web3-js/websocket",repository:{type:"git",url:"git+https://github.com/web3-js/WebSocket-Node.git"},scripts:{gulp:"gulp",install:"(node-gyp rebuild 2> builderror.log) || (exit 0)",test:"faucet test/unit"},version:"1.0.30"}},{}],539:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(){if("object"===("undefined"==typeof self?"undefined":n(self))&&self)return self;if("object"===("undefined"==typeof window?"undefined":n(window))&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;if("object"===("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return i()}try{return __global__||i()}finally{delete Object.prototype.__global__}}()},{}],540:[function(e,t,r){arguments[4][219][0].apply(r,arguments)},{dup:219}],541:[function(a,s,e){(function(e,t){"use strict";var r=null,n=null;if("[object process]"===Object.prototype.toString.call(void 0!==e?e:0)){r=function(e){return t.from(e).toString("base64")};var i=a("url");if(i.URL){var o=i.URL;n=function(e){return new o(e)}}else n=a("url").parse}else r=btoa.bind(window),n=function(e){return new URL(e)};s.exports={parseURL:n,btoa:r}}).call(this,a("_process"),a("buffer").Buffer)},{_process:124,buffer:50,url:185}],542:[function(e,t,r){"use strict";var n=e("eventemitter3"),i=e("./helpers.js"),o=e("web3-core-helpers").errors,a=e("@web3-js/websocket").w3cwebsocket,s=function(e,t){n.call(this),t=t||{},this.url=e,this._customTimeout=t.timeout||15e3,this.headers=t.headers||{},this.protocol=t.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},t.reconnect),this.clientConfig=t.clientConfig||void 0,this.requestOptions=t.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1;var r=i.parseURL(e);r.username&&r.password&&(this.headers.authorization="Basic "+i.btoa(r.username+":"+r.password)),r.auth&&(this.headers.authorization="Basic "+i.btoa(r.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};((s.prototype=Object.create(n.prototype)).constructor=s).prototype.connect=function(){this.connection=new a(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},s.prototype._onMessage=function(e){var r=this;this._parseResponse("string"==typeof e.data?e.data:"").forEach(function(e){if(e.method&&-1!==e.method.indexOf("_subscription"))r.emit(r.DATA,e);else{var t=e.id;Array.isArray(e)&&(t=e[0].id),r.responseQueue.has(t)&&(r.responseQueue.get(t).callback(!1,e),r.responseQueue.delete(t))}})},s.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,0<this.requestQueue.size){var r=this;this.requestQueue.forEach(function(e,t){r.send(e.payload,e.callback),r.requestQueue.delete(t)})}},s.prototype._onClose=function(r){var n=this;!this.reconnectOptions.auto||[1e3,1001].includes(r.code)&&!1!==r.wasClean?(this.emit(this.CLOSE,r),0<this.requestQueue.size&&this.requestQueue.forEach(function(e,t){e.callback(o.ConnectionNotOpenError(r)),n.requestQueue.delete(t)}),0<this.responseQueue.size&&this.responseQueue.forEach(function(e,t){e.callback(o.InvalidConnection("on WS",r)),n.responseQueue.delete(t)}),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},s.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},s.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},s.prototype._parseResponse=function(e){var r=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(t){r.lastChunk&&(t=r.lastChunk+t);var e=null;try{e=JSON.parse(t)}catch(e){return r.lastChunk=t,clearTimeout(r.lastChunkTimeout),void(r.lastChunkTimeout=setTimeout(function(){r.reconnectOptions.auto&&r.reconnectOptions.onTimeout?r.reconnect():(r.emit(r.ERROR,o.ConnectionTimeout(r._customTimeout)),0<r.requestQueue.size&&r.requestQueue.forEach(function(e,t){e.callback(o.ConnectionTimeout(r._customTimeout)),r.requestQueue.delete(t)}))},r._customTimeout))}clearTimeout(r.lastChunkTimeout),r.lastChunk=null,e&&n.push(e)}),n},s.prototype.send=function(e,t){var r=this,n=e.id,i={payload:e,callback:t};if(Array.isArray(e)&&(n=e[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(n,i);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(n),this.emit(this.ERROR,o.ConnectionNotOpenError()),void i.callback(o.ConnectionNotOpenError());this.responseQueue.set(n,i),this.requestQueue.delete(n);try{this.connection.send(JSON.stringify(i.payload))}catch(e){i.callback(e),r.responseQueue.delete(n)}}},s.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},s.prototype.disconnect=function(e,t){this._removeSocketListeners(),this.connection.close(e||1e3,t)},s.prototype.supportsSubscriptions=function(){return!0},s.prototype.reconnect=function(){var r=this;this.reconnecting=!0,0<this.responseQueue.size&&this.responseQueue.forEach(function(e,t){e.callback(o.PendingRequestsOnReconnectingError()),r.responseQueue.delete(t)}),!this.reconnectOptions.maxAttempts||this.reconnectAttempts<this.reconnectOptions.maxAttempts?setTimeout(function(){r.reconnectAttempts++,r._removeSocketListeners(),r.emit(r.RECONNECT,r.reconnectAttempts),r.connect()},this.reconnectOptions.delay):(this.emit(this.ERROR,o.MaxAttemptsReachedOnReconnectingError()),this.reconnecting=!1,0<this.requestQueue.size&&this.requestQueue.forEach(function(e,t){e.callback(o.MaxAttemptsReachedOnReconnectingError()),r.requestQueue.delete(t)}))},t.exports=s},{"./helpers.js":541,"@web3-js/websocket":536,eventemitter3:540,"web3-core-helpers":216}],543:[function(e,t,r){"use strict";var n=e("web3-core"),i=e("web3-core-subscriptions").subscriptions,o=e("web3-core-method"),a=e("web3-net"),s=function(){var t=this;n.packageInit(this,arguments);var r=this.setRequestManager;this.setRequestManager=function(e){return r(e),t.net.setRequestManager(e),!0};var e=this.setProvider;this.setProvider=function(){e.apply(t,arguments),t.setRequestManager(t._requestManager)},this.net=new a(this),[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]}),new o({name:"unsubscribe",call:"shh_unsubscribe",params:1})].forEach(function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})};s.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},n.addProviders(s),t.exports=s},{"web3-core":231,"web3-core-method":218,"web3-core-subscriptions":228,"web3-net":524}],544:[function(e,t,r){arguments[4][271][0].apply(r,arguments)},{buffer:21,dup:271}],545:[function(e,t,r){arguments[4][193][0].apply(r,arguments)},{dup:193}],546:[function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(r,"__esModule",{value:!0});var s=e("./utils");function n(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e)))}function i(e,t){"object"===a(t)&&t.constructor===Uint8Array&&(t=s.bytesToHex(t));for(var r=s.keccak256(t).replace("0x",""),n=0;n<12;n+=4){var i=(parseInt(r.substr(n,2),16)<<8)+parseInt(r.substr(n+2,2),16)&2047,o=1<<i%4;if((u(e.charCodeAt(e.length-1-Math.floor(i/4)))&o)!==o)return!1}return!0}function u(e){if(48<=e&&e<=57)return e-48;if(65<=e&&e<=70)return e-55;if(97<=e&&e<=102)return e-87;throw new Error("invalid bloom")}function o(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e)))}function c(e){return"string"==typeof e&&(!!e.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}r.isBloom=n,r.isInBloom=i,r.isUserEthereumAddressInBloom=function(e,t){if(!n(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"'));return i(e,s.padLeft(t,64))},r.isContractAddressInBloom=function(e,t){if(!n(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error('Invalid contract address given: "'.concat(t,'"'));return i(e,t)},r.isTopicInBloom=function(e,t){if(!n(e))throw new Error("Invalid bloom given");if(!o(t))throw new Error("Invalid topic");return i(e,t)},r.isTopic=o,r.isAddress=c},{"./utils":547}],547:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("js-sha3");function i(e){if(null==e)throw new Error("cannot convert null value to array");if("string"==typeof e){var t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);for(var r=[],n=0;n<e.length;n+=2)r.push(parseInt(e.substr(n,2),16));return o(new Uint8Array(r))}if(function(e){if(!e||parseInt(String(e.length))!=e.length||"string"==typeof e)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(r<0||256<=r||parseInt(String(r))!=r)return!1}return!0}(e))return o(new Uint8Array(e));throw new Error("invalid arrayify value")}function o(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}r.keccak256=function(e){return"0x"+n.keccak_256(i(e))},r.padLeft=function(e,t){var r=/^0x/i.test(e)||"number"==typeof e,n=0<=t-(e=e.toString().replace(/^0x/i,"")).length+1?t-e.length+1:0;return(r?"0x":"")+new Array(n).join("0")+e},r.bytesToHex=function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x".concat(t.join("").replace(/^0+/,""))},r.toByteArray=i},{"js-sha3":551}],548:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f=e("bn.js"),l=e("number-to-bn"),h=new f(0),d=new f(-1),p={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function b(e){var t=e?e.toLowerCase():"ether",r=p[t];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(p,null,2));return new f(r,10)}function y(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"===n(e)&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+n(e)+".")}t.exports={unitMap:p,numberToString:y,getValueOfUnit:b,fromWei:function(e,t,r){var n=l(e),i=n.lt(h),o=b(t),a=p[t].length-1||1,s=r||{};i&&(n=n.mul(d));for(var u=n.mod(o).toString(10);u.length<a;)u="0"+u;s.pad||(u=u.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var c=n.div(o).toString(10);s.commify&&(c=c.replace(/\B(?=(\d{3})+(?!\d))/g,","));var f=c+("0"==u?"":"."+u);return i&&(f="-"+f),f},toWei:function(e,t){var r=y(e),n=b(t),i=p[t].length-1||1,o="-"===r.substring(0,1);if(o&&(r=r.substring(1)),"."===r)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var a=r.split(".");if(2<a.length)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var s=a[0],u=a[1];if(s||(s="0"),u||(u="0"),u.length>i)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;u.length<i;)u+="0";s=new f(s),u=new f(u);var c=s.mul(n).add(u);return o&&(c=c.mul(d)),new f(c.toString(10),10)}}},{"bn.js":549,"number-to-bn":553}],549:[function(S,e,t){"use strict";function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){function y(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function m(e,t,r){if(m.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var n;"object"===A(e)?e.exports=m:(void 0).BN=m,(m.BN=m).wordSize=26;try{n=S("buffer").Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=49<=a&&a<=54?a-49+10:17<=a&&a<=22?a-17+10:15&a}return n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}m.isBN=function(e){return e instanceof m||null!==e&&"object"===A(e)&&e.constructor.wordSize===m.wordSize&&Array.isArray(e.words)},m.max=function(e,t){return 0<e.cmp(t)?e:t},m.min=function(e,t){return e.cmp(t)<0?e:t},m.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"===A(e))return this._initArray(e,t,r);"hex"===t&&(t=16),y(t===(0|t)&&2<=t&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},m.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),this.length=e<67108864?(this.words=[67108863&e],1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],2):(y(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],3),"le"===r&&this._initArray(this.toArray(),t,r)},m.prototype._initArray=function(e,t,r){if(y("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,a=0;if("be"===r)for(n=e.length-1,i=0;0<=n;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);else if("le"===r)for(i=n=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);return this.strip()},m.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;t<=r;r-=6)i=a(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,26<=(o+=24)&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},m.prototype._parseBase=function(e,t,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c<s;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=l(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},m.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},m.prototype.clone=function(){var e=new m(null);return this.copy(e),e},m.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},m.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},m.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},m.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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"],d=[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],p=[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];function i(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;n=(r.length=n)-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[d])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}m.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<n|i)).toString(16);r=0!==(i=a>>>24-n&16777215)||o!==this.length-1?h[6-s.length]+s+r:s+r,26<=(n+=2)&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var u=d[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(c).toString(e);r=(f=f.idivn(c)).isZero()?l+r:h[u-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}y(!1,"Base should be between 2 and 36")},m.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},m.prototype.toJSON=function(){return this.toString(16)},m.prototype.toBuffer=function(e,t){return y(void 0!==n),this.toArrayLike(n,e,t)},m.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},m.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);y(n<=i,"byte array longer than desired length"),y(0<i,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,u=new e(i),c=this.clone();if(s){for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[a]=o;for(;a<i;a++)u[a]=0}else{for(a=0;a<i-n;a++)u[a]=0;for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[i-a-1]=o}return u},m.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,r=0;return 4096<=t&&(r+=13,t>>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},m.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},m.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},m.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},m.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},m.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},m.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},m.prototype.isNeg=function(){return 0!==this.negative},m.prototype.neg=function(){return this.clone().ineg()},m.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},m.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},m.prototype.ior=function(e){return y(0==(this.negative|e.negative)),this.iuor(e)},m.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},m.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},m.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},m.prototype.iand=function(e){return y(0==(this.negative|e.negative)),this.iuand(e)},m.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},m.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},m.prototype.iuxor=function(e){var t,r;r=this.length>e.length?(t=this,e):(t=e,this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},m.prototype.ixor=function(e){return y(0==(this.negative|e.negative)),this.iuxor(e)},m.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},m.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},m.prototype.inotn=function(e){y("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0<r&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return 0<r&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},m.prototype.notn=function(e){return this.clone().inotn(e)},m.prototype.setn=function(e,t){y("number"==typeof e&&0<=e);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},m.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();n=this.length>e.length?(r=this,e):(r=e,this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},m.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},m.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;n=0<i?(r=this,e):(r=e,this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},m.prototype.sub=function(e){return this.clone().isub(e)};var o=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,h=f>>>13,d=0|a[1],p=8191&d,b=d>>>13,y=0|a[2],m=8191&y,v=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],S=8191&k,A=k>>>13,E=0|a[5],x=8191&E,M=E>>>13,j=0|a[6],I=8191&j,O=j>>>13,T=0|a[7],B=8191&T,C=T>>>13,R=0|a[8],N=8191&R,U=R>>>13,P=0|a[9],L=8191&P,F=P>>>13,D=0|s[0],q=8191&D,z=D>>>13,H=0|s[1],K=8191&H,V=H>>>13,W=0|s[2],G=8191&W,Y=W>>>13,X=0|s[3],J=8191&X,Z=X>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,he=fe>>>13,de=0|s[9],pe=8191&de,be=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(l,q))|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(h,q)|0))<<13)|0;c=((o=Math.imul(h,z))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(b,q)|0,o=Math.imul(b,z);var me=(c+(n=n+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(h,K)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,z))+Math.imul(v,q)|0,o=Math.imul(v,z),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0;var ve=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),n=n+Math.imul(m,K)|0,i=(i=i+Math.imul(m,V)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0;var ge=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(A,q)|0,o=Math.imul(A,z),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0;var we=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(M,q)|0,o=Math.imul(M,z),n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Z)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(I,q),i=(i=Math.imul(I,z))+Math.imul(O,q)|0,o=Math.imul(O,z),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var ke=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,z))+Math.imul(C,q)|0,o=Math.imul(C,z),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var Se=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,z))+Math.imul(U,q)|0,o=Math.imul(U,z),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(x,J)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var Ae=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(F,q)|0,o=Math.imul(F,z),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(U,K)|0,o=o+Math.imul(U,V)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,Y)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Ee=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,be)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,V))+Math.imul(F,K)|0,o=Math.imul(F,V),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(U,G)|0,o=o+Math.imul(U,Y)|0,n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(m,le)|0,i=(i=i+Math.imul(m,he)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,he)|0;var xe=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,Y))+Math.imul(F,G)|0,o=Math.imul(F,Y),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(U,J)|0,o=o+Math.imul(U,Z)|0,n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,he)|0;var Me=(c+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(U,Q)|0,o=o+Math.imul(U,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,he)|0;var je=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(U,re)|0,o=o+Math.imul(U,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,he)|0;var Ie=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,be)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(U,oe)|0,o=o+Math.imul(U,ae)|0,n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,he)|0;var Oe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(U,ue)|0,o=o+Math.imul(U,ce)|0,n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,he)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,he)|0;var Te=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,be)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,le)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(U,le)|0,o=o+Math.imul(U,he)|0;var Be=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,he))+Math.imul(F,le)|0,o=Math.imul(F,he);var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,be)|0)+Math.imul(U,pe)|0))<<13)|0;c=((o=o+Math.imul(U,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var Re=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,be))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,be))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,u[0]=ye,u[1]=me,u[2]=ve,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=Se,u[8]=Ae,u[9]=Ee,u[10]=xe,u[11]=Me,u[12]=je,u[13]=Ie,u[14]=Oe,u[15]=Te,u[16]=Be,u[17]=Ce,u[18]=Re,0!==c&&(u[19]=c,r.length++),r};function s(e,t,r){return(new u).mulp(e,t,r)}function u(e,t){this.x=e,this.y=t}Math.imul||(o=i),m.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?o(this,e,t):r<63?i(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),h=67108863&l;s=67108863&(h=h+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):s(this,e,t)},u.prototype.makeRBT=function(e){for(var t=new Array(e),r=m.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},u.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},u.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},u.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,h=c,d=0;d<a;d++){var p=r[f+d],b=n[f+d],y=r[f+d+a],m=n[f+d+a],v=l*y-h*m;m=l*m+h*y,y=v,r[f+d]=p+y,n[f+d]=b+m,r[f+d+a]=p-y,n[f+d+a]=b-m,d!==s&&(v=u*l-c*h,h=u*h+c*l,l=v)}},u.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},u.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},u.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},u.prototype.convert13b=function(e,t,r,n){for(var i=0,o=0;o<t;o++)i+=0|e[o],r[2*o]=8191&i,i>>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<n;++o)r[o]=0;y(0===i),y(0==(-8192&i))},u.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},u.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var d=0;d<n;d++){var p=s[d]*f[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},m.prototype.mul=function(e){var t=new m(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},m.prototype.mulf=function(e){var t=new m(null);return t.words=new Array(this.length+e.length),s(this,e,t)},m.prototype.imul=function(e){return this.clone().mulTo(e,this)},m.prototype.imuln=function(e){y("number"==typeof e),y(e<67108864);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,i=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},m.prototype.muln=function(e){return this.clone().imuln(e)},m.prototype.sqr=function(){return this.mul(this)},m.prototype.isqr=function(){return this.imul(this.clone())},m.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new m(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},m.prototype.iushln=function(e){y("number"==typeof e&&0<=e);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,s=(0|this.words[t])-a<<r;this.words[t]=s|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;0<=t;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},m.prototype.ishln=function(e){return y(0===this.negative),this.iushln(e)},m.prototype.iushrn=function(e,t,r){var n;y("number"==typeof e&&0<=e),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,s=r;if(n-=o,n=Math.max(0,n),s){for(var u=0;u<o;u++)s.words[u]=this.words[u];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;0<=u&&(0!==c||n<=u);u--){var f=0|this.words[u];this.words[u]=c<<26-i|f>>>i,c=f&a}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},m.prototype.ishrn=function(e,t,r){return y(0===this.negative),this.iushrn(e,t,r)},m.prototype.shln=function(e){return this.clone().ishln(e)},m.prototype.ushln=function(e){return this.clone().iushln(e)},m.prototype.shrn=function(e){return this.clone().ishrn(e)},m.prototype.ushrn=function(e){return this.clone().iushrn(e)},m.prototype.testn=function(e){y("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},m.prototype.imaskn=function(e){y("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26;if(y(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},m.prototype.maskn=function(e){return this.clone().imaskn(e)},m.prototype.iaddn=function(e){return y("number"==typeof e),y(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},m.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},m.prototype.isubn=function(e){if(y("number"==typeof e),y(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},m.prototype.addn=function(e){return this.clone().iaddn(e)},m.prototype.subn=function(e){return this.clone().isubn(e)},m.prototype.iabs=function(){return this.negative=0,this},m.prototype.abs=function(){return this.clone().iabs()},m.prototype._ishlnsubmul=function(e,t,r){var n,i,o=e.length+r;this._expand(o);var a=0;for(n=0;n<e.length;n++){i=(0|this.words[n+r])+a;var s=(0|e.words[n])*t;a=((i-=67108863&s)>>26)-(s/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)a=(i=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&i;if(0===a)return this.strip();for(y(-1===a),n=a=0;n<this.length;n++)a=(i=-(0|this.words[n])+a)>>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},m.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,s=n.length-i.length;if("mod"!==t){(a=new m(null)).length=s+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,a&&(a.words[s]=1));for(var f=s-1;0<=f;f--){var l=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,f);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);a&&(a.words[f]=l)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},m.prototype.divmod=function(e,t,r){return y(!e.isZero()),this.isZero()?{div:new m(0),mod:new m(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new m(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new m(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new m(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},m.prototype.div=function(e){return this.divmod(e,"div",!1).div},m.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},m.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},m.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},m.prototype.modn=function(e){y(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;0<=n;n--)r=(t*r+(0|this.words[n]))%e;return r},m.prototype.idivn=function(e){y(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},m.prototype.divn=function(e){return this.clone().idivn(e)},m.prototype.egcd=function(e){y(0===e.negative),y(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new m(1),i=new m(0),o=new m(0),a=new m(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),c=t.clone();!t.isZero();){for(var f=0,l=1;0==(t.words[0]&l)&&f<26;++f,l<<=1);if(0<f)for(t.iushrn(f);0<f--;)(n.isOdd()||i.isOdd())&&(n.iadd(u),i.isub(c)),n.iushrn(1),i.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(0<h)for(r.iushrn(h);0<h--;)(o.isOdd()||a.isOdd())&&(o.iadd(u),a.isub(c)),o.iushrn(1),a.iushrn(1);0<=t.cmp(r)?(t.isub(r),n.isub(o),i.isub(a)):(r.isub(t),o.isub(n),a.isub(i))}return{a:o,b:a,gcd:r.iushln(s)}},m.prototype._invmp=function(e){y(0===e.negative),y(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new m(1),o=new m(0),a=r.clone();0<t.cmpn(1)&&0<r.cmpn(1);){for(var s=0,u=1;0==(t.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(t.iushrn(s);0<s--;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var c=0,f=1;0==(r.words[0]&f)&&c<26;++c,f<<=1);if(0<c)for(r.iushrn(c);0<c--;)o.isOdd()&&o.iadd(a),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(o)):(r.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},m.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var n=r.negative=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},m.prototype.invm=function(e){return this.egcd(e).a.umod(e)},m.prototype.isEven=function(){return 0==(1&this.words[0])},m.prototype.isOdd=function(){return 1==(1&this.words[0])},m.prototype.andln=function(e){return this.words[0]&e},m.prototype.bincn=function(e){y("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var i=n,o=r;0!==i&&o<this.length;o++){var a=0|this.words[o];i=(a+=i)>>>26,a&=67108863,this.words[o]=a}return 0!==i&&(this.words[o]=i,this.length++),this},m.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},m.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)t=1;else{r&&(e=-e),y(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},m.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},m.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:i<n&&(t=1);break}}return t},m.prototype.gtn=function(e){return 1===this.cmpn(e)},m.prototype.gt=function(e){return 1===this.cmp(e)},m.prototype.gten=function(e){return 0<=this.cmpn(e)},m.prototype.gte=function(e){return 0<=this.cmp(e)},m.prototype.ltn=function(e){return-1===this.cmpn(e)},m.prototype.lt=function(e){return-1===this.cmp(e)},m.prototype.lten=function(e){return this.cmpn(e)<=0},m.prototype.lte=function(e){return this.cmp(e)<=0},m.prototype.eqn=function(e){return 0===this.cmpn(e)},m.prototype.eq=function(e){return 0===this.cmp(e)},m.red=function(e){return new _(e)},m.prototype.toRed=function(e){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},m.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},m.prototype._forceRed=function(e){return this.red=e,this},m.prototype.forceRed=function(e){return y(!this.red,"Already a number in reduction context"),this._forceRed(e)},m.prototype.redAdd=function(e){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},m.prototype.redIAdd=function(e){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},m.prototype.redSub=function(e){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},m.prototype.redISub=function(e){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},m.prototype.redShl=function(e){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},m.prototype.redMul=function(e){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},m.prototype.redIMul=function(e){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},m.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},m.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},m.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},m.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},m.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},m.prototype.redPow=function(e){return y(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function f(e,t){this.name=e,this.p=new m(t,16),this.n=this.p.bitLength(),this.k=new m(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=m._prime(e);this.m=t.p,this.prime=t}else y(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new m(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)}f.prototype._tmp=function(){var e=new m(null);return e.words=new Array(Math.ceil(this.n/13)),e},f.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):0<n?r.isub(this.p):r.strip(),r},f.prototype.split=function(e,t){e.iushrn(this.n,0,t)},f.prototype.imulK=function(e){return e.imul(this.k)},r(b,f),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,0===(e.words[n-10]=i)&&10<e.length?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(v,f),r(g,f),r(w,f),w.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},m._prime=function(e){if(c[e])return c[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return c[e]=t},_.prototype._verify1=function(e){y(0===e.negative,"red works only with positives"),y(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){y(0==(e.negative|t.negative),"red works only with positives"),y(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},_.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(y(t%2==1),3===t){var r=this.m.add(new m(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);y(!n.isZero());var o=new m(1).toRed(this),a=o.redNeg(),s=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new m(2*u*u).toRed(this);0!==this.pow(u,s).cmp(a);)u.redIAdd(a);for(var c=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(o);){for(var d=l,p=0;0!==d.cmp(o);p++)d=d.redSqr();y(p<h);var b=this.pow(c,new m(1).iushln(h-p-1));f=f.redMul(b),c=b.redSqr(),l=l.redMul(c),h=p}return f},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new m(1);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new m(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;0<=n;n--){for(var u=t.words[n],c=s-1;0<=c;c--){var f=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[o]),o=a=0)):a=0}s=26}return i},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},m.mont=function(e){return new k(e)},r(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new m(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e)},{}],550:[function(e,t,r){arguments[4][405][0].apply(r,arguments)},{dup:405}],551:[function(e,N,t){(function(B,C){"use strict";function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var l="input is invalid type",e="object"===("undefined"==typeof window?"undefined":R(window)),t=e?window:{};t.JS_SHA3_NO_WINDOW&&(e=!1);var r=!e&&"object"===("undefined"==typeof self?"undefined":R(self));!t.JS_SHA3_NO_NODE_JS&&"object"===(void 0===B?"undefined":R(B))&&B.versions&&B.versions.node?t=C:r&&(t=self);var n=!t.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===N?"undefined":R(N))&&N.exports,i="function"==typeof define&&define.amd,h=!t.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),o=[4,1024,262144,67108864],d=[0,8,16,24],fe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=[224,256,384,512],s=[128,256],c=["hex","buffer","arrayBuffer","array","digest"],f={128:168,256:136};!t.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!t.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===R(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var p=function(t,r,n){return function(e){return new I(t,r,t).update(e)[n]()}},b=function(r,n,i){return function(e,t){return new I(r,n,t).update(e)[i]()}},y=function(i,e,o){return function(e,t,r,n){return _["cshake"+i].update(e,t,r,n)[o]()}},m=function(i,e,o){return function(e,t,r,n){return _["kmac"+i].update(e,t,r,n)[o]()}},v=function(e,t,r,n){for(var i=0;i<c.length;++i){var o=c[i];e[o]=t(r,n,o)}return e},g=function(e,t){var r=p(e,t,"hex");return r.create=function(){return new I(e,t,e)},r.update=function(e){return r.create().update(e)},v(r,p,e,t)},w=[{name:"keccak",padding:[1,256,65536,16777216],bits:a,createMethod:g},{name:"sha3",padding:[6,1536,393216,100663296],bits:a,createMethod:g},{name:"shake",padding:[31,7936,2031616,520093696],bits:s,createMethod:function(t,r){var n=b(t,r,"hex");return n.create=function(e){return new I(t,r,e)},n.update=function(e,t){return n.create(t).update(e)},v(n,b,t,r)}},{name:"cshake",padding:o,bits:s,createMethod:function(n,i){var o=f[n],a=y(n,0,"hex");return a.create=function(e,t,r){return t||r?new I(n,i,e).bytepad([t,r],o):_["shake"+n].create(e)},a.update=function(e,t,r,n){return a.create(t,r,n).update(e)},v(a,y,n,i)}},{name:"kmac",padding:o,bits:s,createMethod:function(n,i){var o=f[n],a=m(n,0,"hex");return a.create=function(e,t,r){return new O(n,i,t).bytepad(["KMAC",r],o).bytepad([e],o)},a.update=function(e,t,r,n){return a.create(e,r,n).update(t)},v(a,m,n,i)}}],_={},k=[],S=0;S<w.length;++S)for(var A=w[S],E=A.bits,x=0;x<E.length;++x){var M=A.name+"_"+E[x];if(k.push(M),_[M]=A.createMethod(E[x],A.padding),"sha3"!==A.name){var j=A.name+E[x];k.push(j),_[j]=_[M]}}function I(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function O(e,t,r){I.call(this,e,t,r)}I.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=R(e);if("string"!==r){if("object"!==r)throw new Error(l);if(null===e)throw new Error(l);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(l);t=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=e.length,u=this.blockCount,c=0,f=this.s;c<s;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<u+1;++n)o[n]=0;if(t)for(n=this.start;c<s&&n<a;++c)o[n>>2]|=e[c]<<d[3&n++];else for(n=this.start;c<s&&n<a;++c)(i=e.charCodeAt(c))<128?o[n>>2]|=i<<d[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<d[3&n++]:(i<55296||57344<=i?o[n>>2]|=(224|i>>12)<<d[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++c)),o[n>>2]|=(240|i>>18)<<d[3&n++],o[n>>2]|=(128|i>>12&63)<<d[3&n++]),o[n>>2]|=(128|i>>6&63)<<d[3&n++]),o[n>>2]|=(128|63&i)<<d[3&n++]);if(a<=(this.lastByteIndex=n)){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)f[n]^=o[n];T(f),this.reset=!0}else this.start=n}return this},I.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);0<r;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},I.prototype.encodeString=function(e){var t,r=R(e);if("string"!==r){if("object"!==r)throw new Error(l);if(null===e)throw new Error(l);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(l);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||57344<=a?n+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},I.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];T(n)}},I.prototype.toString=I.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=u[e>>4&15]+u[15&e]+u[e>>12&15]+u[e>>8&15]+u[e>>20&15]+u[e>>16&15]+u[e>>28&15]+u[e>>24&15];a%t==0&&(T(r),o=0)}return i&&(e=r[o],s+=u[e>>4&15]+u[15&e],1<i&&(s+=u[e>>12&15]+u[e>>8&15]),2<i&&(s+=u[e>>20&15]+u[e>>16&15])),s},I.prototype.buffer=I.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t==0&&T(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},I.prototype.digest=I.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&T(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,1<o&&(u[e+1]=t>>8&255),2<o&&(u[e+2]=t>>16&255)),u},(O.prototype=new I).finalize=function(){return this.encode(this.outputBits,!0),I.prototype.finalize.call(this)};var T=function(e){var t,r,n,i,o,a,s,u,c,f,l,h,d,p,b,y,m,v,g,w,_,k,S,A,E,x,M,j,I,O,T,B,C,R,N,U,P,L,F,D,q,z,H,K,V,W,G,Y,X,J,Z,$,Q,ee,te,re,ne,ie,oe,ae,se,ue,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|l>>>31),r=s^(l<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=l^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,m=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,ee=e[5]<<30|e[4]>>>2,te=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,P=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,A=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,Q=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,x=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,D=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=b^~m&g,e[10]=A^~x&j,e[11]=E^~M&I,e[20]=R^~U&L,e[21]=N^~P&F,e[30]=K^~W&Y,e[31]=V^~G&X,e[40]=ee^~re&ie,e[41]=te^~ne&oe,e[2]=y^~v&w,e[3]=m^~g&_,e[12]=x^~j&O,e[13]=M^~I&T,e[22]=U^~L&D,e[23]=P^~F&q,e[32]=W^~Y&J,e[33]=G^~X&Z,e[42]=re^~ie&ae,e[43]=ne^~oe&se,e[4]=v^~w&k,e[5]=g^~_&S,e[14]=j^~O&B,e[15]=I^~T&C,e[24]=L^~D&z,e[25]=F^~q&H,e[34]=Y^~J&$,e[35]=X^~Z&Q,e[44]=ie^~ae&ue,e[45]=oe^~se&ce,e[6]=w^~k&p,e[7]=_^~S&b,e[16]=O^~B&A,e[17]=T^~C&E,e[26]=D^~z&R,e[27]=q^~H&N,e[36]=J^~$&K,e[37]=Z^~Q&V,e[46]=ae^~ue&ee,e[47]=se^~ce&te,e[8]=k^~p&y,e[9]=S^~b&m,e[18]=B^~A&x,e[19]=C^~E&M,e[28]=z^~R&U,e[29]=H^~N&P,e[38]=$^~K&W,e[39]=Q^~V&G,e[48]=ue^~ee&re,e[49]=ce^~te&ne,e[0]^=fe[n],e[1]^=fe[n+1]};if(n)N.exports=_;else{for(S=0;S<k.length;++S)t[k[S]]=_[k[S]];i&&define(function(){return _})}}()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124}],552:[function(e,t,r){arguments[4][549][0].apply(r,arguments)},{dup:549}],553:[function(e,t,r){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=e("bn.js"),s=e("strip-hex-prefix");t.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new a(1),r=String(e).toLowerCase().trim(),n="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),i=s(r);if("-"===i.substr(0,1)&&(i=s(i.slice(1)),t=new a(-1,10)),!(i=""===i?"0":i).match(/^-?[0-9]+$/)&&i.match(/^[0-9A-Fa-f]+$/)||i.match(/^[a-fA-F]+$/)||!0===n&&i.match(/^[0-9A-Fa-f]+$/))return new a(i,16).mul(t);if((i.match(/^-?[0-9]+$/)||""===i)&&!1===n)return new a(i,10).mul(t)}else if("object"===o(e)&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new a(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},{"bn.js":552,"strip-hex-prefix":556}],554:[function(t,r,e){(function(i,e){"use strict";var o=t("safe-buffer").Buffer,a=e.crypto||e.msCrypto;a&&a.getRandomValues?r.exports=function(e,t){if(4294967295<e)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(0<e)if(65536<e)for(var n=0;n<e;n+=65536)a.getRandomValues(r.slice(n,n+65536));else a.getRandomValues(r);return"function"!=typeof t?r:i.nextTick(function(){t(null,r)})}:r.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":555}],555:[function(e,t,r){arguments[4][183][0].apply(r,arguments)},{buffer:50,dup:183}],556:[function(e,t,r){arguments[4][455][0].apply(r,arguments)},{dup:455,"is-hex-prefixed":550}],557:[function(e,Z,$){(function(X){"use strict";function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},t=e._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,u=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,s=Object.keys,c=Object.create,f=function(){},d=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0===$||$.nodeType?e._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,b=function(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,r){return i.call(o,e,t,r)};case 4:return function(e,t,r,n){return i.call(o,e,t,r,n)}}return function(){return i.apply(o,arguments)}},y=function(e,t,r){return d.iteratee!==p?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?b(e,t,r):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)};d.iteratee=p=function(e,t){return y(e,t,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),r=0;r<e;r++)t[r]=arguments[r+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=t,i.apply(this,n)}},v=function(e){if(!d.isObject(e))return{};if(c)return c(e);f.prototype=e;var t=new f;return f.prototype=null,t},g=function(t){return function(e){return null==e?void 0:e[t]}},w=function(e,t){return null!=e&&o.call(e,t)},_=function(e,t){for(var r=t.length,n=0;n<r;n++){if(null==e)return;e=e[t[n]]}return r?e:void 0},k=Math.pow(2,53)-1,S=g("length"),A=function(e){var t=S(e);return"number"==typeof t&&0<=t&&t<=k};d.each=d.forEach=function(e,t,r){var n,i;if(t=b(t,r),A(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=d.keys(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e},d.map=d.collect=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o};var E=function(u){return function(e,t,r,n){var i=3<=arguments.length;return function(e,t,r,n){var i=!A(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(n||(r=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=t(r,e[s],s,e)}return r}(e,b(t,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(e,t,r){var n=(A(e)?d.findIndex:d.findKey)(e,t,r);if(void 0!==n&&-1!==n)return e[n]},d.filter=d.select=function(e,n,t){var i=[];return n=y(n,t),d.each(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i},d.reject=function(e,t,r){return d.filter(e,d.negate(y(t)),r)},d.every=d.all=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,r){t=y(t,r);for(var n=!A(e)&&d.keys(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,r,n){return A(e)||(e=d.values(e)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(e,t,r)},d.invoke=m(function(e,r,n){var i,o;return d.isFunction(r)?o=r:d.isArray(r)&&(i=r.slice(0,-1),r=r[r.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=_(e,i)),null==e)return;t=e[r]}return null==t?t:t.apply(e,n)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,n,t){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&o<r&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){i=n(e,t,r),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,n,t){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(e[0])&&null!=e)for(var s=0,u=(e=A(e)?e:d.values(e)).length;s<u;s++)null!=(r=e[s])&&r<o&&(o=r);else n=y(n,t),d.each(e,function(e,t,r){((i=n(e,t,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,r){if(null==t||r)return A(e)||(e=d.values(e)),e[d.random(e.length-1)];var n=A(e)?d.clone(e):d.values(e),i=S(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,t)},d.sortBy=function(e,n,t){var i=0;return n=y(n,t),d.pluck(d.map(e,function(e,t,r){return{value:e,index:i++,criteria:n(e,t,r)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var x=function(a,t){return function(n,i,e){var o=t?[[],[]]:{};return i=y(i,e),d.each(n,function(e,t){var r=i(e,t,n);a(o,e,r)}),o}};d.groupBy=x(function(e,t,r){w(e,r)?e[r].push(t):e[r]=[t]}),d.indexBy=x(function(e,t,r){e[r]=t}),d.countBy=x(function(e,t,r){w(e,r)?e[r]++:e[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(M):A(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:A(e)?e.length:d.keys(e).length},d.partition=x(function(e,t,r){e[r?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,r){return u.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},d.last=function(e,t,r){return null==e||e.length<1?null==t?void 0:[]:null==t||r?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,r){return u.call(e,null==t||r?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var j=function e(t,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(t);a<s;a++){var u=t[a];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var c=0,f=u.length;c<f;)i[o++]=u[c++];else e(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(e,t){return j(e,t,!1)},d.without=m(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,r,n){d.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=y(r,n));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var u=e[a],c=r?r(u,a,e):u;t&&!r?(a&&o===c||i.push(u),o=c):r?d.contains(o,c)||(o.push(c),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(e){return d.uniq(j(e,!0,!0))}),d.intersection=function(e){for(var t=[],r=arguments.length,n=0,i=S(e);n<i;n++){var o=e[n];if(!d.contains(t,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&t.push(o)}}return t},d.difference=m(function(e,t){return t=j(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.zip=m(d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,r=Array(t),n=0;n<t;n++)r[n]=d.pluck(e,n);return r}),d.object=function(e,t){for(var r={},n=0,i=S(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r};var I=function(o){return function(e,t,r){t=y(t,r);for(var n=S(e),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(t(e[i],i,e))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var O=function(o,a,s){return function(e,t,r){var n=0,i=S(e);if("number"==typeof r)0<o?n=0<=r?r:Math.max(r+i,n):i=0<=r?Math.min(r+1,i):r+i+1;else if(s&&r&&i)return e[r=s(e,t)]===t?r:-1;if(t!=t)return 0<=(r=a(u.call(e,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(e[r]===t)return r;return-1}};d.indexOf=O(1,d.findIndex,d.sortedIndex=function(e,t,r,n){for(var i=(r=y(r,n,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(u.call(e,n,n+=t));return r};var T=function(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=v(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(t,r,n){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(e){return T(t,i,r,this,n.concat(e))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function e(){for(var t=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return T(o,e,this,this,n)}})).placeholder=d).bindAll=m(function(e,t){var r=(t=j(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=d.bind(e[n],e)}}),d.memoize=function(i,o){var e=function e(t){var r=e.cache,n=""+(o?o.apply(this,arguments):t);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return e.cache={},e},d.delay=m(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},e=function(){var e=d.now();c||!1!==i.leading||(c=e);var t=n-(e-c);return a=this,s=arguments,t<=0||n<t?(o&&(clearTimeout(o),o=null),c=e,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(f,t)),u};return e.cancel=function(){clearTimeout(o),c=0,o=a=s=null},e},d.debounce=function(r,n,i){var o,a,s=function(e,t){o=null,t&&(a=r.apply(e,t))},e=m(function(e){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(s,n),t&&(a=r.apply(this,e))}else o=d.delay(s,n,this,e);return a});return e.cancel=function(){clearTimeout(o),o=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var e=n,t=r[n].apply(this,arguments);e--;)t=r[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.once=d.partial(d.before=function(e,t){var r;return function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},2),d.restArguments=m;var B=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var r=C.length,n=e.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(e,o)&&!d.contains(t,o)&&t.push(o);r--;)(o=C[r])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(e){if(!d.isObject(e))return[];if(s)return s(e);var t=[];for(var r in e)w(e,r)&&t.push(r);return B&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var r in e)t.push(r);return B&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n},d.mapObject=function(e,t,r){t=y(t,r);for(var n=d.keys(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n},d.invert=function(e){for(var t={},r=d.keys(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t},d.functions=d.methods=function(e){var t=[];for(var r in e)d.isFunction(e[r])&&t.push(r);return t.sort()};var N=function(u,c){return function(e){var t=arguments.length;if(c&&(e=Object(e)),t<2||null==e)return e;for(var r=1;r<t;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];c&&void 0!==e[s]||(e[s]=n[s])}return e}};d.extend=N(d.allKeys),d.extendOwn=d.assign=N(d.keys),d.findKey=function(e,t,r){t=y(t,r);for(var n,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[n=i[o]],n,e))return n};var U,P,L=function(e,t,r){return t in r};d.pick=m(function(e,t){var r={},n=t[0];if(null==e)return r;d.isFunction(n)?(1<t.length&&(n=b(n,t[1])),t=d.allKeys(e)):(n=L,t=j(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),d.omit=m(function(e,r){var t,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(t=r[1])):(r=d.map(j(r,!1,!1),String),n=function(e,t){return!d.contains(r,t)}),d.pick(e,n,t)}),d.defaults=N(d.allKeys,!0),d.create=function(e,t){var r=v(e);return t&&d.extendOwn(r,t),r},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var r=d.keys(t),n=r.length;if(null==e)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=J(e);return("function"===i||"object"===i||"object"==J(t))&&P(e,t,r,n)},P=function(e,t,r,n){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=J(e)||"object"!=J(t))return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return n[u]===t;if(r.push(e),n.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!U(e[u],t[u],r,n))return!1}else{var c,f=d.keys(e);if(u=f.length,d.keys(t).length!==u)return!1;for(;u--;)if(c=f[u],!w(t,c)||!U(e[c],t[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(e,t){return U(e,t)},d.isEmpty=function(e){return null==e||(A(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=r||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=J(e);return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return w(e,"callee")});var F=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return w(e,t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!r},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return _(e,t)}:g(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?_(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,r){var n=Array(Math.max(0,e));t=b(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},q=d.invert(D),z=function(t){var r=function(e){return t[e]},e="(?:"+d.keys(t).join("|")+")",n=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(i,r):e}};d.escape=z(D),d.unescape=z(q),d.result=function(e,t,r){d.isArray(t)||(t=[t]);var n=t.length;if(!n)return d.isFunction(r)?r.call(e):r;for(var i=0;i<n;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=r,i=n),e=d.isFunction(o)?o.call(e):o}return e};var H=0;d.uniqueId=function(e){var t=++H+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+V[e]};d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var r,n=RegExp([(e.escape||K).source,(e.interpolate||K).source,(e.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(e,t,r,n,i){return s+=o.slice(a,i).replace(W,G),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var i=function(e){return r.call(this,e,d)},u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};var Y=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(r){return d.each(d.functions(r),function(e){var t=d[e]=r[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=n[t];d.prototype[t]=function(){var e=this._wrapped;return r.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.valueOf=d.prototype.toJSON=d.prototype.value=function(){return this._wrapped},d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],558:[function(e,t,r){"use strict";!function(e){var n,i,o,a=String.fromCharCode;function s(e){for(var t,r,n=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function r(e){if(55296<=e&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function u(e,t){return a(e>>t&63|128)}function c(e){if(0==(4294967168&e))return a(e);var t="";return 0==(4294965248&e)?t=a(e>>6&31|192):0==(4294901760&e)?(r(e),t=a(e>>12&15|224),t+=u(e,6)):0==(4292870144&e)&&(t=a(e>>18&7|240),t+=u(e,12),t+=u(e,6)),t+=a(63&e|128)}function f(){if(i<=o)throw Error("Invalid byte index");var e=255&n[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(){var e,t;if(i<o)throw Error("Invalid byte index");if(o==i)return!1;if(e=255&n[o],o++,0==(128&e))return e;if(192==(224&e)){if(128<=(t=(31&e)<<6|f()))return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if(2048<=(t=(15&e)<<12|f()<<6|f()))return r(t),t;throw Error("Invalid continuation byte")}if(240==(248&e)&&65536<=(t=(7&e)<<18|f()<<12|f()<<6|f())&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=s(e),r=t.length,n=-1,i="";++n<r;)i+=c(t[n]);return i},e.decode=function(e){n=s(e),i=n.length,o=0;for(var t,r=[];!1!==(t=l());)r.push(t);return function(e){for(var t,r=e.length,n=-1,i="";++n<r;)65535<(t=e[n])&&(i+=a((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=a(t);return i}(r)}}(void 0===r?(void 0).utf8={}:r)},{}],559:[function(e,t,r){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=e("underscore"),n=e("ethjs-unit"),o=e("./utils.js"),i=e("./soliditySha3.js"),a=e("randombytes"),c=function i(o,e){var a=[];return e.forEach(function(e){if("object"===s(e.components)){if("tuple"!==e.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var t="",r=e.type.indexOf("[");0<=r&&(t=e.type.substring(r));var n=i(o,e.components);u.isArray(n)&&o?a.push("tuple("+n.join(",")+")"+t):o?a.push("("+n+")"):a.push("("+n.join(",")+")"+t)}else a.push(e.type)}),a},f=function(e){if(!o.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},l=function(e){if(!e)return"0x00";for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},h=function(e){if(e=e?e.toLowerCase():"ether",!n.unitMap[e])throw new Error('This unit "'+e+"\" doesn't exist, please use the one of the following units"+JSON.stringify(n.unitMap,null,2));return e};t.exports={_fireError:function(e,t,r,n,i){return!u.isObject(e)||e instanceof Error||!e.data||((u.isObject(e.data)||u.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=e.message+"\n"+e.data),u.isString(e)&&(e=new Error(e)),u.isFunction(n)&&n(e,i),u.isFunction(r)&&((t&&u.isFunction(t.listeners)&&t.listeners("error").length||u.isFunction(n))&&t.catch(function(){}),setTimeout(function(){r(e)},1)),t&&u.isFunction(t.emit)&&setTimeout(function(){t.emit("error",e,i),t.removeAllListeners()},1),t},_jsonInterfaceMethodToString:function(e){return u.isObject(e)&&e.name&&-1!==e.name.indexOf("(")?e.name:e.name+"("+c(!1,e.inputs).join(",")+")"},_flattenTypes:c,randomHex:function(e){return"0x"+a(e).toString("hex")},_:u,BN:o.BN,isBN:o.isBN,isBigNumber:o.isBigNumber,isHex:o.isHex,isHexStrict:o.isHexStrict,sha3:o.sha3,sha3Raw:o.sha3Raw,keccak256:o.sha3,soliditySha3:i.soliditySha3,soliditySha3Raw:i.soliditySha3Raw,isAddress:o.isAddress,checkAddressChecksum:o.checkAddressChecksum,toChecksumAddress:function(e){if(void 0===e)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error('Given address "'+e+'" is not a valid Ethereum address.');e=e.toLowerCase().replace(/^0x/i,"");for(var t=o.sha3(e).replace(/^0x/i,""),r="0x",n=0;n<e.length;n++)7<parseInt(t[n],16)?r+=e[n].toUpperCase():r+=e[n];return r},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:f,toAscii:f,asciiToHex:l,fromAscii:l,unitMap:n.unitMap,toWei:function(e,t){if(t=h(t),!o.isBN(e)&&!u.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?n.toWei(e,t):n.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=h(t),!o.isBN(e)&&!u.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?n.fromWei(e,t):n.fromWei(e,t).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement,isBloom:o.isBloom,isUserEthereumAddressInBloom:o.isUserEthereumAddressInBloom,isContractAddressInBloom:o.isContractAddressInBloom,isTopic:o.isTopic,isTopicInBloom:o.isTopicInBloom,isInBloom:o.isInBloom}},{"./soliditySha3.js":560,"./utils.js":561,"ethjs-unit":548,randombytes:554,underscore:557}],560:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("underscore"),s=e("bn.js"),u=e("./utils.js"),c=function(e){var t=n(e);if("string"===t)return u.isHexStrict(e)?new s(e.replace(/0x/i,""),16):new s(e,10);if("number"===t)return new s(e);if(u.isBigNumber(e))return new s(e.toString(10));if(u.isBN(e))return e;throw new Error(e+" is not a number")},a=function(e,t,r){var n,i,o,a;if("bytes"===(e=(o=e).startsWith("int[")?"int256"+o.slice(3):"int"===o?"int256":o.startsWith("uint[")?"uint256"+o.slice(4):"uint"===o?"uint256":o.startsWith("fixed[")?"fixed128x128"+o.slice(5):"fixed"===o?"fixed128x128":o.startsWith("ufixed[")?"ufixed128x128"+o.slice(6):"ufixed"===o?"ufixed128x128":o)){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return u.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(n=r?64:40,!u.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return u.leftPad(t.toLowerCase(),n)}if(n=(a=/^\D+(\d+).*$/.exec(e))?parseInt(a[1],10):null,e.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity");if(r&&(n=32),n<1||32<n||n<t.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+n+" for "+t);return u.rightPad(t,2*n)}if(e.startsWith("uint")){if(n%8||n<8||256<n)throw new Error("Invalid uint"+n+" size");if((i=c(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+i.bitLength());if(i.lt(new s(0)))throw new Error("Supplied uint "+i.toString()+" is negative");return n?u.leftPad(i.toString("hex"),n/8*2):i}if(e.startsWith("int")){if(n%8||n<8||256<n)throw new Error("Invalid int"+n+" size");if((i=c(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+i.bitLength());return i.lt(new s(0))?i.toTwos(n).toString("hex"):n?u.leftPad(i.toString("hex"),n/8*2):i}throw new Error("Unsupported or invalid type: "+e)},i=function(e){if(o.isArray(e))throw new Error("Autodetection of array types is not supported.");var t,r,n,i="";if(o.isObject(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,i=e.hasOwnProperty("v")?e.v:e.value):(t=u.toHex(e,!0),i=u.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof i||/^(-)?0x/i.test(i)||(i=new s(i)),o.isArray(i)){if(n=/^\D+\d*\[(\d+)\]$/.exec(t),(r=n?parseInt(n[1],10):null)&&i.length!==r)throw new Error(t+" is not matching the given array "+JSON.stringify(i));r=i.length}return o.isArray(i)?i.map(function(e){return a(t,e,r).toString("hex").replace("0x","")}).join(""):a(t,i,r).toString("hex").replace("0x","")};t.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments),t=o.map(e,i);return u.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return u.sha3Raw("0x"+o.map(Array.prototype.slice.call(arguments),i).join(""))}}},{"./utils.js":561,"bn.js":544,underscore:557}],561:[function(v,g,e){(function(r){"use strict";var n=v("underscore"),i=v("bn.js"),e=v("number-to-bn"),o=v("utf8"),a=v("eth-lib/lib/hash"),s=v("ethereum-bloom-filters"),u=function(e){return i.isBN(e)},c=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},f=function(t){try{return e.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},l=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||t(e))},t=function(e){e=e.replace(/^0x/i,"");for(var t=m(e.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(7<parseInt(t[r],16)&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},h=function(e){var t="";e=(e=(e=(e=(e=o.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},d=function(e){if(n.isNull(e)||n.isUndefined(e))return e;if(!isFinite(e)&&!b(e))throw new Error('Given input "'+e+'" is not a number.');var t=f(e),r=t.toString(16);return t.lt(new i(0))?"-0x"+r.substr(1):"0x"+r},p=function(e){if(e=e.toString(16),!b(e))throw new Error('Given value "'+e+'" is not a valid hex string.');e=e.replace(/^0x/i,"");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},b=function(e){return(n.isString(e)||n.isNumber(e))&&/^(-)?0x[0-9a-f]*$/i.test(e)},y="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",m=function(e){u(e)&&(e=e.toString()),b(e)&&/^0x/i.test(e.toString())&&(e=p(e));var t=a.keccak256(e);return t===y?null:t};m._Hash=a;g.exports={BN:i,isBN:u,isBigNumber:c,toBN:f,isAddress:l,isBloom:function(e){return s.isBloom(e)},isUserEthereumAddressInBloom:function(e,t){return s.isUserEthereumAddressInBloom(e,t)},isContractAddressInBloom:function(e,t){return s.isContractAddressInBloom(e,t)},isTopic:function(e){return s.isTopic(e)},isTopicInBloom:function(e,t){return s.isTopicInBloom(e,t)},isInBloom:function(e,t){return s.isInBloom(e,t)},checkAddressChecksum:t,utf8ToHex:h,hexToUtf8:function(e){if(!b(e))throw new Error('The parameter "'+e+'" must be a valid HEX string.');for(var t="",r=0,n=(e=(e=(e=(e=(e=e.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,i=0;i<n;i+=2)r=parseInt(e.substr(i,2),16),t+=String.fromCharCode(r);return o.decode(t)},hexToNumber:function(e){if(!e)return e;if(n.isString(e)&&!b(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return f(e).toNumber()},hexToNumberString:function(e){if(!e)return e;if(n.isString(e)&&!b(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return f(e).toString(10)},numberToHex:d,toHex:function(e,t){if(l(e))return t?"address":"0x"+e.toLowerCase().replace(/^0x/i,"");if(n.isBoolean(e))return t?"bool":e?"0x01":"0x00";if(r.isBuffer(e))return"0x"+e.toString("hex");if(n.isObject(e)&&!c(e)&&!u(e))return t?"string":h(JSON.stringify(e));if(n.isString(e)){if(0===e.indexOf("-0x")||0===e.indexOf("-0X"))return t?"int256":d(e);if(0===e.indexOf("0x")||0===e.indexOf("0X"))return t?"bytes":e;if(!isFinite(e))return t?"string":h(e)}return t?e<0?"int256":"uint256":d(e)},hexToBytes:p,bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x"+t.join("")},isHex:function(e){return(n.isString(e)||n.isNumber(e))&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},isHexStrict:b,leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=0<=t-(e=e.toString(16).replace(/^0x/i,"")).length+1?t-e.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=0<=t-(e=e.toString(16).replace(/^0x/i,"")).length+1?t-e.length+1:0;return(n?"0x":"")+e+new Array(i).join(r||"0")},toTwosComplement:function(e){return"0x"+f(e).toTwos(256).toString(16,64)},sha3:m,sha3Raw:function(e){return null===(e=m(e))?y:e}}}).call(this,{isBuffer:v("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":105,"bn.js":544,"eth-lib/lib/hash":545,"ethereum-bloom-filters":546,"number-to-bn":553,underscore:557,utf8:558}],562:[function(e,t,r){t.exports={name:"web3",version:"1.2.8",description:"Ethereum JavaScript API",repository:"https://github.com/ethereum/web3.js",license:"LGPL-3.0",engines:{node:">=8.0.0"},main:"src/index.js",bugs:{url:"https://github.com/ethereum/web3.js/issues"},keywords:["Ethereum","JavaScript","API"],author:"ethereum.org",types:"types/index.d.ts",scripts:{dtslint:"dtslint --localTs node_modules/typescript/lib types",postinstall:"node angular-patch.js"},authors:[{name:"Fabian Vogelsteller",email:"fabian@ethereum.org",homepage:"http://frozeman.de"},{name:"Marek Kotewicz",email:"marek@parity.io",url:"https://github.com/debris"},{name:"Marian Oancea",url:"https://github.com/cubedro"},{name:"Gav Wood",email:"g@parity.io",homepage:"http://gavwood.com"},{name:"Jeffery Wilcke",email:"jeffrey.wilcke@ethereum.org",url:"https://github.com/obscuren"}],dependencies:{"web3-bzz":"1.2.8","web3-core":"1.2.8","web3-eth":"1.2.8","web3-eth-personal":"1.2.8","web3-net":"1.2.8","web3-shh":"1.2.8","web3-utils":"1.2.8"},devDependencies:{"@types/node":"^12.12.34",dtslint:"^3.4.1",typescript:"latest"}}},{}],BN:[function(e,t,r){arguments[4][271][0].apply(r,arguments)},{buffer:21,dup:271}],Web3:[function(e,t,r){"use strict";var i=e("../package.json").version,o=e("web3-core"),a=e("web3-eth"),n=e("web3-net"),s=e("web3-eth-personal"),u=e("web3-shh"),c=e("web3-bzz"),f=e("web3-utils"),l=function(){var r=this;o.packageInit(this,arguments),this.version=i,this.utils=f,this.eth=new a(this),this.shh=new u(this),this.bzz=new c(this);var n=this.setProvider;this.setProvider=function(e,t){return n.apply(r,arguments),r.eth.setRequestManager(r._requestManager),r.shh.setRequestManager(r._requestManager),r.bzz.setProvider(e),!0}};l.version=i,l.utils=f,l.modules={Eth:a,Net:n,Personal:s,Shh:u,Bzz:c},o.addProviders(l),t.exports=l},{"../package.json":562,"web3-bzz":212,"web3-core":231,"web3-eth":523,"web3-eth-personal":520,"web3-net":524,"web3-shh":543,"web3-utils":559}]},{},[151,"Web3"])("Web3")}); +\ No newline at end of file diff --git a/worker.js b/worker.js @@ -0,0 +1,64 @@ +let window = self; + +importScripts('moolb.js'); +importScripts('sync.js'); +importScripts('web3.min.js'); + +let s = undefined; + +// TODO: as worker has its own scope we don't need the object +function Driver(messager, provider, lo, filters, syncer) { + this.w3 = new Web3(provider); + this.lo = lo; + this.hi = lo; + this.filters = filters; + this.syncer = syncer; + this.messager = messager; + console.log('m', this.messager); +} + +Driver.prototype.start = function(hi) { + let self = this; + if (hi !== undefined) { + console.log('have hi ' + hi); + self.sync(hi); + return; + } + s.w3.eth.getBlockNumber().then(function(n) { + self.sync(n); + }); +}; + +Driver.prototype.sync = function(n) { + this.hi = n; + console.log(this, n); + this.syncer(this, this.lo, this.hi, this.filters[0], this.filters[1], this.getCount, this.process); +}; + + +Driver.prototype.process = function(b, t) { + s.w3.eth.getTransactionFromBlock(b, t).then(function(e, t) { + this.postMessage([t]); + }).catch(function(e) { + this.postMessage(['would have called getTransactionFromBlock(' + b + ', ' + t + ')']); + }); +} + +Driver.prototype.getCount = async function (b) { + console.log('getcount', this); + n = s.w3.eth.getBlockTransactionCount(b); + return n; +}; + +onmessage = function(o) { + filters = [ + bloomFromBytes(o.data.filters[0], o.data.filter_rounds), + bloomFromBytes(o.data.filters[1], o.data.filter_rounds), + ]; + s = new Driver(postMessage, o.data.w3_provider, o.data.lo, filters, sync_by_filter); + let hi = undefined; + if (o.data.hi > 0) { + hi = o.data.hi; + } + s.start(hi); +};