|
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Web3=t()}}(function(){var define,module,exports;return function o(a,s,u){function f(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(c)return c(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return f(a[e][1][t]||t)},i,i.exports,o,a,s,u)}return s[e].exports}for(var c="function"==typeof require&&require,t=0;t<u.length;t++)f(u[t]);return f}({1:[function(t,e,r){"use strict";var n=r;n.bignum=t("bn.js"),n.define=t("./asn1/api").define,n.base=t("./asn1/base"),n.constants=t("./asn1/constants"),n.decoders=t("./asn1/decoders"),n.encoders=t("./asn1/encoders")},{"./asn1/api":2,"./asn1/base":4,"./asn1/constants":8,"./asn1/decoders":10,"./asn1/encoders":13,"bn.js":"BN"}],2:[function(t,e,r){"use strict";var n=t("../asn1"),i=t("inherits");function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}r.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(e){var r;try{r=t("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){r=function(t){this._initNamed(t)}}return i(r,e),r.prototype._initNamed=function(t){e.call(this,t)},new r(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},{"../asn1":1,inherits:104,vm:188}],3:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("inherits"),o=t("../base").Reporter,a=t("buffer").Buffer;function s(t,e){o.call(this,e),a.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function u(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof u||(t=new u(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=a.byteLength(t);else{if(!a.isBuffer(t))return e.error("Unsupported type: "+n(t));this.value=t,this.length=t.length}}i(s,o),(r.DecoderBuffer=s).prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},s.prototype.restore=function(t){var e=new s(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},s.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},s.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},(r.EncoderBuffer=u).prototype.join=function(e,r){return e||(e=new a(this.length)),r||(r=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(t){t.join(e,r),r+=t.length}):("number"==typeof this.value?e[r]=this.value:"string"==typeof this.value?e.write(this.value,r):a.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}},{"../base":4,buffer:50,inherits:104}],4:[function(t,e,r){"use strict";var n=r;n.Reporter=t("./reporter").Reporter,n.DecoderBuffer=t("./buffer").DecoderBuffer,n.EncoderBuffer=t("./buffer").EncoderBuffer,n.Node=t("./node")},{"./buffer":3,"./node":5,"./reporter":6}],5:[function(t,e,r){"use strict";function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=t("../base").Reporter,n=t("../base").EncoderBuffer,d=t("../base").DecoderBuffer,i=t("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(t,e){var r={};(this._baseState=r).enc=t,r.parent=e||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())}e.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 e=this._baseState,r={};u.forEach(function(t){r[t]=e[t]});var t=new this.constructor(r.parent);return t._baseState=r,t},s.prototype._wrap=function(){var r=this._baseState;a.forEach(function(e){this[e]=function(){var t=new this.constructor(this);return r.children.push(t),t[e].apply(t,arguments)}},this)},s.prototype._init=function(t){var e=this._baseState;i(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),i.equal(e.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(t){var e=this._baseState,r=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==r.length&&(i(null===e.children),(e.children=r).forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(i(null===e.args),e.args=t,e.reverseArgs=t.map(function(r){if("object"!==c(r)||r.constructor!==Object)return r;var n={};return Object.keys(r).forEach(function(t){t==(0|t)&&(t|=0);var e=r[t];n[e]=t}),n}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){s.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(r){s.prototype[r]=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return i(null===t.tag),t.tag=r,this._useArgs(e),this}}),s.prototype.use=function(t){i(t);var e=this._baseState;return i(null===e.use),e.use=t,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(t){var e=this._baseState;return i(null===e.default),e.default=t,e.optional=!0,this},s.prototype.explicit=function(t){var e=this._baseState;return i(null===e.explicit&&null===e.implicit),e.explicit=t,this},s.prototype.implicit=function(t){var e=this._baseState;return i(null===e.explicit&&null===e.implicit),e.implicit=t,this},s.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},s.prototype.key=function(t){var e=this._baseState;return i(null===e.key),e.key=t,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(e){var t=this._baseState;return i(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},s.prototype.contains=function(t){var e=this._baseState;return i(null===e.use),e.contains=t,this},s.prototype._decode=function(e,r){var t=this._baseState;if(null===t.parent)return e.wrapResult(t.children[0]._decode(e,r));var n,i=t.default,o=!0,a=null;if(null!==t.key&&(a=e.enterKey(t.key)),t.optional){var s=null;if(null!==t.explicit?s=t.explicit:null!==t.implicit?s=t.implicit:null!==t.tag&&(s=t.tag),null!==s||t.any){if(o=this._peekTag(e,s,t.any),e.isError(o))return o}else{var u=e.save();try{null===t.choice?this._decodeGeneric(t.tag,e,r):this._decodeChoice(e,r),o=!0}catch(t){o=!1}e.restore(u)}}if(t.obj&&o&&(n=e.enterObject()),o){if(null!==t.explicit){var f=this._decodeTag(e,t.explicit);if(e.isError(f))return f;e=f}var c=e.offset;if(null===t.use&&null===t.choice){if(t.any)u=e.save();var l=this._decodeTag(e,null!==t.implicit?t.implicit:t.tag,t.any);if(e.isError(l))return l;t.any?i=e.raw(u):e=l}if(r&&r.track&&null!==t.tag&&r.track(e.path(),c,e.length,"tagged"),r&&r.track&&null!==t.tag&&r.track(e.path(),e.offset,e.length,"content"),i=t.any?i:null===t.choice?this._decodeGeneric(t.tag,e,r):this._decodeChoice(e,r),e.isError(i))return i;if(t.any||null!==t.choice||null===t.children||t.children.forEach(function(t){t._decode(e,r)}),t.contains&&("octstr"===t.tag||"bitstr"===t.tag)){var h=new d(i);i=this._getUse(t.contains,e._reporterState.obj)._decode(h,r)}}return t.obj&&o&&(i=e.leaveObject(n)),null===t.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,t.key,i),i},s.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},s.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),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(t){var e=i.save(),r=a.choice[t];try{var n=r._decode(i,o);if(i.isError(n))return!1;s={type:t,value:n},u=!0}catch(t){return i.restore(e),!1}return!0},this),u?s:i.error("Choice not matched")},s.prototype._createEncoderBuffer=function(t){return new n(t,this.reporter)},s.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},s.prototype._encodeValue=function(n,i,t){var e=this._baseState;if(null===e.parent)return e.children[0]._encode(n,i||new l);var r=null;if(this.reporter=i,e.optional&&void 0===n){if(null===e.default)return;n=e.default}var o=null,a=!1;if(e.any)r=this._createEncoderBuffer(n);else if(e.choice)r=this._encodeChoice(n,i);else if(e.contains)o=this._getUse(e.contains,t)._encode(n,i),a=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,i,n);if(null===t._baseState.key)return i.error("Child should have a key");var e=i.enterKey(t._baseState.key);if("object"!==c(n))return i.error("Child expected, but input is not object");var r=t._encode(n[t._baseState.key],i,n);return i.leaveKey(e),r},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return i.error("Too many args for : "+e.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(t){var e=this._baseState;return this._getUse(e.args[0],n)._encode(t,i)},s))}else null!==e.use?r=this._getUse(e.use,t)._encode(n,i):(o=this._encodePrimitive(e.tag,n),a=!0);if(!e.any&&null===e.choice){var u=null!==e.implicit?e.implicit:e.tag,f=null===e.implicit?"universal":"context";null===u?null===e.use&&i.error("Tag could be omitted only for .use()"):null===e.use&&(r=this._encodeComposite(u,a,f,o))}return null!==e.explicit&&(r=this._encodeComposite(e.explicit,!1,"context",r)),r},s.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||i(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},s.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},s.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},s.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},{"../base":4,"minimalistic-assert":109}],6:[function(t,e,r){"use strict";var n=t("inherits");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(r.Reporter=i).prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:104}],7:[function(t,e,r){"use strict";var n=t("../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(t,e,r){"use strict";var n=r;n._reverse=function(r){var n={};return Object.keys(r).forEach(function(t){(0|t)==t&&(t|=0);var e=r[t];n[e]=t}),n},n.der=t("./der")},{"./der":7}],9:[function(t,e,r){"use strict";var n=t("inherits"),i=t("../../asn1"),o=i.base,a=i.bignum,s=i.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new f,this.tree._init(t.body)}function f(t){o.Node.call(this,"der",t)}function c(t,e){var r=t.readUInt8(e);if(t.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=t.readUInt8(e),t.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(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(4<i)return t.error("length octect is too long");for(var o=n=0;o<i;o++){n<<=8;var a=t.readUInt8(r);if(t.isError(a))return a;n|=a}return n}(e.exports=u).prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},n(f,o.Node),f.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=c(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},f.prototype._decodeTag=function(t,e,r){var n=c(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;var i=l(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},f.prototype._skipUntilEnd=function(t,e){for(;;){var r=c(t,e);if(t.isError(r))return r;var n,i=l(t,r.primitive,e);if(t.isError(i))return i;if(n=r.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(n))return n;if("end"===r.tagStr)break}},f.prototype._decodeList=function(t,e,r,n){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=r.decode(t,"der",n);if(t.isError(a)&&o)break;i.push(a)}return i},f.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var n=t.raw();if(n.length%2==1)return t.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"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"!==e)return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported");var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")},f.prototype._decodeObjid=function(t,e,r){for(var n,i=[],o=0;!t.isEmpty();){var a=t.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)),e){var f=e[n.join(" ")];void 0===f&&(f=e[n.join(".")]),void 0!==f&&(n=f)}return n},f.prototype._decodeTime=function(t,e){var r=t.raw().toString();if("gentime"===e)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"!==e)return t.error("Decoding "+e+" 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)},f.prototype._decodeNull=function(t){return null},f.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},f.prototype._decodeInt=function(t,e){var r=t.raw(),n=new a(r);return e&&(n=e[n.toString(10)]||n),n},f.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},{"../../asn1":1,inherits:104}],10:[function(t,e,r){"use strict";var n=r;n.der=t("./der"),n.pem=t("./pem")},{"./der":9,"./pem":11}],11:[function(t,e,r){"use strict";var n=t("inherits"),l=t("buffer").Buffer,h=t("./der");function i(t){h.call(this,t),this.enc="pem"}n(i,h),(e.exports=i).prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.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 f=r.slice(o+1,a).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var c=new l(f,"base64");return h.prototype.decode.call(this,c,e)}},{"./der":9,buffer:50,inherits:104}],12:[function(t,e,r){"use strict";var n=t("inherits"),f=t("buffer").Buffer,i=t("../../asn1"),o=i.base,c=i.constants.der;function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new s,this.tree._init(t.body)}function s(t){o.Node.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(e.exports=a).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(s,o.Node),s.prototype._encodeComposite=function(t,e,r,n){var i,o=function(t,e,r,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(c.tagByName.hasOwnProperty(t))i=c.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(31<=i)return n.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=c.tagClassByName[r||"universal"]<<6}(t,e,r,this.reporter);if(n.length<128)return(i=new f(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 f(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(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"!==e)return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):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(e)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported");for(var r=new f(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)},s.prototype._encodeObjid=function(t,e,r){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(40<=t[1])return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var i=0;for(n=0;n<t.length;n++){var o=t[n];for(i++;128<=o;o>>=7)i++}var a=new f(i),s=a.length-1;for(n=t.length-1;0<=n;n--){o=t[n];for(a[s--]=127&o;0<(o>>=7);)a[s--]=128|127&o}return this._createEncoderBuffer(a)},s.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?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 "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!f.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new f(r)}if(f.isBuffer(t)){var n=t.length;0===t.length&&n++;var i=new f(n);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);n=1;for(var o=t;256<=o;o>>=8)n++;for(o=(i=new Array(n)).length-1;0<=o;o--)i[o]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new f(i))},s.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},s.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},s.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,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(t,e,r){"use strict";var n=r;n.der=t("./der"),n.pem=t("./pem")},{"./der":12,"./pem":14}],14:[function(t,e,r){"use strict";var n=t("inherits"),o=t("./der");function i(t){o.call(this,t),this.enc="pem"}n(i,o),(e.exports=i).prototype.encode=function(t,e){for(var r=o.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],i=0;i<r.length;i+=64)n.push(r.slice(i,i+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},{"./der":12,inherits:104}],15:[function(S,x,t){(function(e){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var t=S("object-assign");function a(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function s(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var c=S("util/"),n=Object.prototype.hasOwnProperty,l=Array.prototype.slice,r="foo"===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!s(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var h=x.exports=m,i=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(c.isFunction(t)){if(r)return t.name;var e=t.toString().match(i);return e&&e[1]}}function p(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function y(t){if(r||!c.isFunction(t))return c.inspect(t);var e=d(t);return"[Function"+(e?": "+e:"")+"]"}function b(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function m(t,e){t||b(t,!0,e,"==",h.ok)}function v(t,e,r,n){if(t===e)return!0;if(s(t)&&s(e))return 0===a(t,e);if(c.isDate(t)&&c.isDate(e))return t.getTime()===e.getTime();if(c.isRegExp(t)&&c.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"===o(t)||null!==e&&"object"===o(e)){if(f(t)&&f(e)&&u(t)===u(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===a(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(s(t)!==s(e))return!1;var i=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(c.isPrimitive(t)||c.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=g(t),o=g(e);if(i&&!o||!i&&o)return!1;if(i)return t=l.call(t),e=l.call(e),v(t,e,r);var a,s,u=A(t),f=A(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),s=u.length-1;0<=s;s--)if(u[s]!==f[s])return!1;for(s=u.length-1;0<=s;s--)if(a=u[s],!v(t[a],e[a],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function g(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function _(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&b(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&i&&!r;if((!t&&c.isError(i)&&o&&w(i,r)||a)&&b(i,r,"Got unwanted exception"+n),t&&i&&r&&!w(i,r)||!t&&i)throw i}h.AssertionError=function(t){var e;this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=p(y((e=this).actual),128)+" "+e.operator+" "+p(y(e.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||b;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}}},c.inherits(h.AssertionError,Error),h.fail=b,h.ok=m,h.equal=function(t,e,r){t!=e&&b(t,e,r,"==",h.equal)},h.notEqual=function(t,e,r){t==e&&b(t,e,r,"!=",h.notEqual)},h.deepEqual=function(t,e,r){v(t,e,!1)||b(t,e,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,r){v(t,e,!0)||b(t,e,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){v(t,e,!1)&&b(t,e,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&b(e,r,n,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,r){t!==e&&b(t,e,r,"===",h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&&b(t,e,r,"!==",h.notStrictEqual)},h.throws=function(t,e,r){_(!0,t,e,r)},h.doesNotThrow=function(t,e,r){_(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=t(function t(e,r){e||b(e,!0,r,"==",t)},h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var A=Object.keys||function(t){var e=[];for(var r in t)n.call(t,r)&&e.push(r);return e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":111,"util/":18}],16:[function(t,e,r){"use strict";"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],17:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t){return t&&"object"===n(t)&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],18:[function(M,t,j){(function(n,i){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=/%[sdj%]/g;j.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(s,function(t){if("%%"===t)return"%";if(i<=r)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])v(a)||!c(a)?o+=" "+a:o+=" "+u(a);return o},j.deprecate=function(t,e){if(_(i.process))return function(){return j.deprecate(t,e).apply(this,arguments)};if(!0===n.noDeprecation)return t;var r=!1;return function(){if(!r){if(n.throwDeprecation)throw new Error(e);n.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}};var t,o={};function u(t,e){var r={seen:[],stylize:f};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),m(e)?r.showHidden=e:e&&j._extend(r,e),_(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,t,r.depth)}function a(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function f(t,e){return t}function d(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==j.inspect&&(!r.constructor||r.constructor.prototype!==r)){var t=r.inspect(n,e);return w(t)||(t=d(e,t,n)),t}var i=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(m(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(e,r);if(i)return i;var o,a=Object.keys(r),s=(o={},a.forEach(function(t,e){o[t]=!0}),o);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),x(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 e.stylize("[Function"+u+"]","special")}if(A(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return p(r)}var f,c="",l=!1,h=["{","}"];(b(r)&&(l=!0,h=["[","]"]),E(r))&&(c=" [Function"+(r.name?": "+r.name:"")+"]");return A(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),x(r)&&(c=" "+p(r)),0!==a.length||l&&0!=r.length?n<0?A(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=l?function(e,r,n,i,t){for(var o=[],a=0,s=r.length;a<s;++a)k(r,String(a))?o.push(y(e,r,n,i,String(a),!0)):o.push("");return t.forEach(function(t){t.match(/^\d+$/)||o.push(y(e,r,n,i,t,!0))}),o}(e,r,n,s,a):a.map(function(t){return y(e,r,n,s,t,l)}),e.seen.pop(),function(t,e,r){if(60<t.reduce(function(t,e){return 0,0<=e.indexOf("\n")&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(f,c,h)):h[0]+c+h[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function y(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),k(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?-1<(s=v(r)?d(t,u.value,null):d(t,u.value,r-1)).indexOf("\n")&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n")):s=t.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),t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),t.stylize(a,"string"))}return a+": "+s}function b(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function v(t){return null===t}function g(t){return"number"==typeof t}function w(t){return"string"==typeof t}function _(t){return void 0===t}function A(t){return c(t)&&"[object RegExp]"===r(t)}function c(t){return"object"===e(t)&&null!==t}function S(t){return c(t)&&"[object Date]"===r(t)}function x(t){return c(t)&&("[object Error]"===r(t)||t instanceof Error)}function E(t){return"function"==typeof t}function r(t){return Object.prototype.toString.call(t)}function l(t){return t<10?"0"+t.toString(10):t.toString(10)}j.debuglog=function(e){if(_(t)&&(t=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(t)){var r=n.pid;o[e]=function(){var t=j.format.apply(j,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},(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=b,j.isBoolean=m,j.isNull=v,j.isNullOrUndefined=function(t){return null==t},j.isNumber=g,j.isString=w,j.isSymbol=function(t){return"symbol"===e(t)},j.isUndefined=_,j.isRegExp=A,j.isObject=c,j.isDate=S,j.isError=x,j.isFunction=E,j.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===e(t)||void 0===t},j.isBuffer=M("./support/isBuffer");var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}j.log=function(){var t,e;console.log("%s - %s",(t=new Date,e=[l(t.getHours()),l(t.getMinutes()),l(t.getSeconds())].join(":"),[t.getDate(),h[t.getMonth()],e].join(" ")),j.format.apply(j,arguments))},j.inherits=M("inherits"),j._extend=function(t,e){if(!e||!c(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).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(t,e,r){"use strict";r.byteLength=function(t){var e=d(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){for(var e,r=d(t),n=r[0],i=r[1],o=new h((f=n,c=i,3*(f+c)/4-c)),a=0,s=0<i?n-4:n,u=0;u<s;u+=4)e=l[t.charCodeAt(u)]<<18|l[t.charCodeAt(u+1)]<<12|l[t.charCodeAt(u+2)]<<6|l[t.charCodeAt(u+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=255&e;var f,c;2===i&&(e=l[t.charCodeAt(u)]<<2|l[t.charCodeAt(u+1)]>>4,o[a++]=255&e);1===i&&(e=l[t.charCodeAt(u)]<<10|l[t.charCodeAt(u+1)]<<4|l[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(u(t,o,a<o+16383?a:o+16383));1===n?(e=t[r-1],i.push(s[e>>2]+s[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(s[e>>10]+s[e>>4&63]+s[e<<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(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[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(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;function o(t){this.rand=t}if(e.exports=function(t){return i||(i=new o(null)),i.generate(t)},(e.exports.Rand=o).prototype.generate=function(t){return this._rand(t)},o.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"===("undefined"==typeof self?"undefined":n(self)))self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===("undefined"==typeof window?"undefined":n(window))&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=t("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");o.prototype._rand=function(t){return a.randomBytes(t)}}catch(t){}},{crypto:21}],21:[function(t,e,r){},{}],22:[function(t,e,r){"use strict";var i=t("safe-buffer").Buffer;function o(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,r=new Array(e),n=0;n<e;n++)r[n]=t.readUInt32BE(4*n);return r}function n(t){for(;0<t.length;t++)t[0]=0}function a(t,e,r,n,i){for(var o,a,s,u,f=r[0],c=r[1],l=r[2],h=r[3],d=t[0]^e[0],p=t[1]^e[1],y=t[2]^e[2],b=t[3]^e[3],m=4,v=1;v<i;v++)o=f[d>>>24]^c[p>>>16&255]^l[y>>>8&255]^h[255&b]^e[m++],a=f[p>>>24]^c[y>>>16&255]^l[b>>>8&255]^h[255&d]^e[m++],s=f[y>>>24]^c[b>>>16&255]^l[d>>>8&255]^h[255&p]^e[m++],u=f[b>>>24]^c[d>>>16&255]^l[p>>>8&255]^h[255&y]^e[m++],d=o,p=a,y=s,b=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[y>>>8&255]<<8|n[255&b])^e[m++],a=(n[p>>>24]<<24|n[y>>>16&255]<<16|n[b>>>8&255]<<8|n[255&d])^e[m++],s=(n[y>>>24]<<24|n[b>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[m++],u=(n[b>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&y])^e[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 t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99;var c=t[n[r[a]=f]=a],l=t[c],h=t[l],d=257*t[f]^16843008*f;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*c^16843008*a,o[0][f]=d<<24|d>>>8,o[1][f]=d<<16|d>>>16,o[2][f]=d<<8|d>>>24,o[3][f]=d,0===a?a=s=1:(a=c^t[t[t[h^c]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function s(t){this._key=o(t),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var a=i[o-1];o%e==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/e|0]<<24):6<e&&o%e==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-e]^a}for(var s=[],u=0;u<n;u++){var f=n-u,c=i[f-(u%4?0:4)];s[u]=u<4||f<=4?c:h.INV_SUB_MIX[0][h.SBOX[c>>>24]]^h.INV_SUB_MIX[1][h.SBOX[c>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[c>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&c]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(t){return a(t=o(t),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},s.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=i.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},s.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var r=a(t,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)},e.exports.AES=s},{"safe-buffer":153}],23:[function(t,e,r){"use strict";var a=t("./aes"),f=t("safe-buffer").Buffer,s=t("cipher-base"),n=t("inherits"),c=t("./ghash"),i=t("buffer-xor"),l=t("./incr32");function o(t,e,r,n){s.call(this);var i=f.alloc(4,0);this._cipher=new a.AES(e);var o=this._cipher.encryptBlock(i);this._ghash=new c(o),r=function(t,e,r){if(12===e.length)return t._finID=f.concat([e,f.from([0,0,0,1])]),f.concat([e,f.from([0,0,0,2])]);var n=new c(r),i=e.length,o=i%16;n.update(e),o&&(o=16-o,n.update(f.alloc(o,0))),n.update(f.alloc(8,0));var a=8*i,s=f.alloc(8);s.writeUIntBE(a,0,8),n.update(s),t._finID=n.state;var u=f.from(t._finID);return l(u),u}(this,r,o),this._prev=f.from(r),this._cache=f.allocUnsafe(0),this._secCache=f.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}n(o,s),o.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=f.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!f.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},o.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},e.exports=o},{"./aes":22,"./ghash":27,"./incr32":28,"buffer-xor":49,"cipher-base":52,inherits:104,"safe-buffer":153}],24:[function(t,e,r){"use strict";var n=t("./encrypter"),i=t("./decrypter"),o=t("./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(t,e,r){"use strict";var i=t("./authCipher"),o=t("safe-buffer").Buffer,a=t("./modes"),s=t("./streamCipher"),n=t("cipher-base"),u=t("./aes"),f=t("evp_bytestokey");function c(t,e,r){n.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}function l(){this.cache=o.allocUnsafe(0)}function h(t,e,r){var n=a[t.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 e&&(e=o.from(e)),e.length!==n.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===n.type?new s(n.module,e,r,!0):"auth"===n.type?new i(n.module,e,r,!0):new c(n.module,e,r)}t("inherits")(c,n),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return o.concat(n)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16<e)throw new Error("unable to decrypt data");var r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=o.concat([this.cache,t])},l.prototype.get=function(t){var e;if(t){if(16<this.cache.length)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(16<=this.cache.length)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(t,e){var r=a[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(e,!1,r.key,r.iv);return h(t,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(t,e,r){"use strict";var i=t("./modes"),o=t("./authCipher"),a=t("safe-buffer").Buffer,s=t("./streamCipher"),n=t("cipher-base"),u=t("./aes"),f=t("evp_bytestokey");function c(t,e,r){n.call(this),this._cache=new h,this._cipher=new u.AES(e),this._prev=a.from(r),this._mode=t,this._autopadding=!0}t("inherits")(c,n),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return a.concat(n)};var l=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(t,e,r){var n=i[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=a.from(e)),e.length!==n.key/8)throw new TypeError("invalid key length "+e.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,e,r):"auth"===n.type?new o(n.module,e,r):new c(n.module,e,r)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=a.concat([this.cache,t])},h.prototype.get=function(){if(15<this.cache.length){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},h.prototype.flush=function(){for(var t=16-this.cache.length,e=a.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return a.concat([this.cache,e])},r.createCipheriv=d,r.createCipher=function(t,e){var r=i[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(e,!1,r.key,r.iv);return d(t,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(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.alloc(16,0);function a(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},o.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.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]),e=3;0<e;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=a(i)},o.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,t,0,e])),this.state},e.exports=o},{"safe-buffer":153}],28:[function(t,e,r){"use strict";e.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},{}],29:[function(t,e,r){"use strict";var i=t("buffer-xor");r.encrypt=function(t,e){var r=i(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},r.decrypt=function(t,e){var r=t._prev;t._prev=e;var n=t._cipher.decryptBlock(e);return i(n,r)}},{"buffer-xor":49}],30:[function(t,e,r){"use strict";var o=t("safe-buffer").Buffer,a=t("buffer-xor");function s(t,e,r){var n=e.length,i=a(e,t._cache);return t._cache=t._cache.slice(n),t._prev=o.concat([t._prev,r?e:i]),i}r.encrypt=function(t,e,r){for(var n,i=o.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=o.allocUnsafe(0)),!(t._cache.length<=e.length)){i=o.concat([i,s(t,e,r)]);break}n=t._cache.length,i=o.concat([i,s(t,e.slice(0,n),r)]),e=e.slice(n)}return i}},{"buffer-xor":49,"safe-buffer":153}],31:[function(t,e,r){"use strict";var a=t("safe-buffer").Buffer;function s(t,e,r){for(var n,i,o=-1,a=0;++o<8;)n=e&1<<7-o?128:0,a+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>o%8,t._prev=u(t._prev,r?n:i);return a}function u(t,e){var r=t.length,n=-1,i=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++n<r;)i[n]=t[n]<<1|t[n+1]>>7;return i}r.encrypt=function(t,e,r){for(var n=e.length,i=a.allocUnsafe(n),o=-1;++o<n;)i[o]=s(t,e[o],r);return i}},{"safe-buffer":153}],32:[function(t,e,r){"use strict";var c=t("safe-buffer").Buffer;r.encrypt=function(t,e,r){for(var n,i,o,a,s=e.length,u=c.allocUnsafe(s),f=-1;++f<s;)u[f]=(n=t,i=e[f],o=r,void 0,a=n._cipher.encryptBlock(n._prev)[0]^i,n._prev=c.concat([n._prev.slice(1),c.from([o?i:a])]),a);return u}},{"safe-buffer":153}],33:[function(t,e,r){"use strict";var c=t("buffer-xor"),l=t("safe-buffer").Buffer,h=t("../incr32");r.encrypt=function(t,e){var r,n,i=Math.ceil(e.length/16),o=t._cache.length;t._cache=l.concat([t._cache,l.allocUnsafe(16*i)]);for(var a=0;a<i;a++){var s=(void 0,n=(r=t)._cipher.encryptBlockRaw(r._prev),h(r._prev),n),u=o+16*a;t._cache.writeUInt32BE(s[0],u+0),t._cache.writeUInt32BE(s[1],u+4),t._cache.writeUInt32BE(s[2],u+8),t._cache.writeUInt32BE(s[3],u+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),c(e,f)}},{"../incr32":28,"buffer-xor":49,"safe-buffer":153}],34:[function(t,e,r){"use strict";r.encrypt=function(t,e){return t._cipher.encryptBlock(e)},r.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},{}],35:[function(t,e,r){"use strict";var n={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},i=t("./list.json");for(var o in i)i[o].module=n[i[o].mode];e.exports=i},{"./cbc":29,"./cfb":30,"./cfb1":31,"./cfb8":32,"./ctr":33,"./ecb":34,"./list.json":36,"./ofb":37}],36:[function(t,e,r){e.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(t,e,r){(function(i){"use strict";var o=t("buffer-xor");r.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=i.concat([t._cache,(r=t,r._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,n=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),o(e,n)}}).call(this,t("buffer").Buffer)},{buffer:50,"buffer-xor":49}],38:[function(t,e,r){"use strict";var i=t("./aes"),o=t("safe-buffer").Buffer,a=t("cipher-base");function n(t,e,r,n){a.call(this),this._cipher=new i.AES(e),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=n,this._mode=t}t("inherits")(n,a),n.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},e.exports=n},{"./aes":22,"cipher-base":52,inherits:104,"safe-buffer":153}],39:[function(t,e,r){"use strict";var n=t("browserify-des"),i=t("browserify-aes/browser"),o=t("browserify-aes/modes"),a=t("browserify-des/modes"),s=t("evp_bytestokey");function u(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function f(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return u(t,i.key,i.iv)},r.createCipheriv=r.Cipheriv=u,r.createDecipher=r.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return f(t,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=f,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(t,e,r){"use strict";var a=t("cipher-base"),n=t("des.js"),i=t("inherits"),s=t("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(t){a.call(this);var e,r=t.mode.toLowerCase(),n=u[r];e=t.decrypt?"decrypt":"encrypt";var i=t.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=t.iv;s.isBuffer(o)||(o=s.from(o)),this._des=n.create({key:i,iv:o,type:e})}u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],i(e.exports=o,a),o.prototype._update=function(t){return s.from(this._des.update(t))},o.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":52,"des.js":60,inherits:104,"safe-buffer":153}],41:[function(t,e,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(e,r,t){(function(y){"use strict";var b=e("bn.js"),n=e("randombytes");function t(t,e){var r,n,i={blinder:(n=m(r=e)).toRed(b.mont(r.modulus)).redPow(new b(r.publicExponent)).fromRed(),unblinder:n.invm(r.modulus)},o=e.modulus.byteLength(),a=(b.mont(e.modulus),new b(t).mul(i.blinder).umod(e.modulus)),s=a.toRed(b.mont(e.prime1)),u=a.toRed(b.mont(e.prime2)),f=e.coefficient,c=e.prime1,l=e.prime2,h=s.redPow(e.exponent1),d=u.redPow(e.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(f).umod(c);return p.imul(l),d.iadd(p),new y(d.imul(i.unblinder).umod(e.modulus).toArray(!1,o))}function m(t){for(var e=t.modulus.byteLength(),r=new b(n(e));0<=r.cmp(t.modulus)||!r.umod(t.prime1)||!r.umod(t.prime2);)r=new b(n(e));return r}(r.exports=t).getr=m}).call(this,e("buffer").Buffer)},{"bn.js":"BN",buffer:50,randombytes:135}],43:[function(t,e,r){"use strict";e.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":44}],44:[function(t,e,r){e.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(t,e,r){e.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,t){(function(i){"use strict";var r=l("create-hash"),n=l("stream"),t=l("inherits"),o=l("./sign"),a=l("./verify"),s=l("./algorithms.json");function e(t){n.Writable.call(this);var e=s[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){n.Writable.call(this);var e=s[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){return new e(t)}function c(t){return new u(t)}Object.keys(s).forEach(function(t){s[t].id=new i(s[t].id,"hex"),s[t.toLowerCase()]=s[t]}),t(e,n.Writable),e.prototype._write=function(t,e,r){this._hash.update(t),r()},e.prototype.update=function(t,e){return"string"==typeof t&&(t=new i(t,e)),this._hash.update(t),this},e.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=o(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},t(u,n.Writable),u.prototype._write=function(t,e,r){this._hash.update(t),r()},u.prototype.update=function(t,e){return"string"==typeof t&&(t=new i(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,r){"string"==typeof e&&(e=new i(e,r)),this.end();var n=this._hash.digest();return a(e,n,t,this._signType,this._tag)},h.exports={Sign:f,Verify:c,createSign:f,createVerify:c}}).call(this,l("buffer").Buffer)},{"./algorithms.json":44,"./sign":47,"./verify":48,buffer:50,"create-hash":55,inherits:104,stream:162}],47:[function(t,e,r){(function(y){"use strict";var f=t("create-hmac"),c=t("browserify-rsa"),l=t("elliptic").ec,b=t("bn.js"),h=t("parse-asn1"),d=t("./curves.json");function m(t,e,r,n){if((t=new y(t.toArray())).length<e.byteLength()){var i=new y(e.byteLength()-t.length);i.fill(0),t=y.concat([i,t])}var o=r.length,a=function(t,e){t=(t=v(t,e)).mod(e);var r=new y(t.toArray());if(r.length<e.byteLength()){var n=new y(e.byteLength()-r.length);n.fill(0),r=y.concat([n,r])}return r}(r,e),s=new y(o);s.fill(1);var u=new y(o);return u.fill(0),u=f(n,u).update(s).update(new y([0])).update(t).update(a).digest(),s=f(n,u).update(s).digest(),{k:u=f(n,u).update(s).update(new y([1])).update(t).update(a).digest(),v:s=f(n,u).update(s).digest()}}function v(t,e){var r=new b(t),n=(t.length<<3)-e.bitLength();return 0<n&&r.ishrn(n),r}function g(t,e,r){var n,i;do{for(n=new y(0);8*n.length<t.bitLength();)e.v=f(r,e.k).update(e.v).digest(),n=y.concat([n,e.v]);i=v(n,t),e.k=f(r,e.k).update(e.v).update(new y([0])).digest(),e.v=f(r,e.k).update(e.v).digest()}while(-1!==i.cmp(t));return i}e.exports=function(t,e,r,n,i){var o=h(e);if(o.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(t,e){var r=d[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var n=new l(r).keyFromPrivate(e.privateKey).sign(t);return new y(n.toDER())}(t,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong private key type");return function(t,e,r){for(var n,i,o,a,s=e.params.priv_key,u=e.params.p,f=e.params.q,c=e.params.g,l=new b(0),h=v(t,f).mod(f),d=!1,p=m(s,f,t,r);!1===d;)n=g(f,p,r),i=n,o=u,a=f,l=c.toRed(b.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(f).imul(h.add(s.mul(l))).mod(f)).cmpn(0)&&(d=!1,l=new b(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),new y(r)}(l,d)}(t,o,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");t=y.concat([i,t]);for(var a=o.modulus.byteLength(),s=[0,1];t.length+s.length+1<a;)s.push(255);s.push(0);for(var u=-1;++u<t.length;)s.push(t[u]);return c(s,o)},e.exports.getKey=m,e.exports.makeKey=g}).call(this,t("buffer").Buffer)},{"./curves.json":45,"bn.js":"BN","browserify-rsa":42,buffer:50,"create-hmac":57,elliptic:70,"parse-asn1":117}],48:[function(t,e,r){(function(h){"use strict";var d=t("bn.js"),p=t("elliptic").ec,y=t("parse-asn1"),b=t("./curves.json");function m(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}e.exports=function(t,e,r,n,i){var o=y(r);if("ec"===o.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(t,e,r){var n=b[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(e,t,o)}(t,e,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,i=r.data.q,o=r.data.g,a=r.data.pub_key,s=y.signature.decode(t,"der"),u=s.s,f=s.r;m(u,i),m(f,i);var c=d.mont(n),l=u.invm(i);return 0===o.toRed(c).redPow(new d(e).mul(l).mod(i)).fromRed().mul(a.toRed(c).redPow(f.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(f)}(t,e,o)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");e=h.concat([i,e]);for(var a=o.modulus.byteLength(),s=[1],u=0;e.length+s.length+2<a;)s.push(255),u++;s.push(0);for(var f=-1;++f<e.length;)s.push(e[f]);s=new h(s);var c=d.mont(o.modulus);t=(t=new d(t).toRed(c)).redPow(new d(o.publicExponent)),t=new h(t.fromRed().toArray());var l=u<8?1:0;for(a=Math.min(t.length,s.length),t.length!==s.length&&(l=1),f=-1;++f<a;)l|=t[f]^s[f];return 0===l}}).call(this,t("buffer").Buffer)},{"./curves.json":45,"bn.js":"BN",buffer:50,elliptic:70,"parse-asn1":117}],49:[function(t,e,r){(function(o){"use strict";e.exports=function(t,e){for(var r=Math.min(t.length,e.length),n=new o(r),i=0;i<r;++i)n[i]=t[i]^e[i];return n}}).call(this,t("buffer").Buffer)},{buffer:50}],50:[function(t,e,P){(function(l){"use strict";function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=t("base64-js"),o=t("ieee754");P.Buffer=l,P.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},P.INSPECT_MAX_BYTES=50;var r=2147483647;function a(t){if(r<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=l.prototype,e}function l(t,e,r){if("number"!=typeof t)return i(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}function i(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=a(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(t));if(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=l.prototype,n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return l.from(n,e,r);var i=function(t){if(l.isBuffer(t)){var e=0|c(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||N(t.length)?a(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+h(t))}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return s(t),a(t<0?0:0|c(t))}function f(t){for(var e=t.length<0?0:0|c(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function c(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+h(t));var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(i)return n?-1:O(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),N(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=a=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(s<r+u&&(r=s-u),o=r;0<=o;o--){for(var l=!0,h=0;h<u;h++)if(f(t,o+h)!==f(e,h)){l=!1;break}if(l)return o}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?i<(n=Number(n))&&(n=i):n=i;var o=e.length;o/2<n&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(N(s))return a;t[r+a]=s}return a}function v(t,e,r,n){return U(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function g(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function w(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,f=t[i],c=null,l=239<f?4:223<f?3:191<f?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&127<(u=(31&f)<<6|63&o)&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&f)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(c=u)}null===c?(c=65533,l=1):65535<c&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=_));return r}(n)}P.kMaxLength=r,(l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){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(t,e,r){return i(t,e,r)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,l.alloc=function(t,e,r){return i=e,o=r,s(n=t),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(t){return u(t)},l.allocUnsafeSlow=function(t){return u(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(C(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),C(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var n=l.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(C(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 t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?w(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,r);case"utf8":case"utf-8":return w(this,e,r);case"ascii":return A(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return g(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",e=P.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},l.prototype.compare=function(t,e,r,n,i){if(C(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+h(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),c=0;c<s;++c)if(u[c]!==f[c]){o=u[c],a=f[c];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},l.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||i<r)&&(r=i),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,f,c,l,h,d,p=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return h=e,d=r,U(O(t,(l=this).length-h),l,h,d);case"ascii":return v(this,t,e,r);case"latin1":case"binary":return v(this,t,e,r);case"base64":return u=this,f=e,c=r,U(B(t),u,f,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=e,s=r,U(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,(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 A(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function S(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function x(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=e;o<r;++o)i+=R(t[o]);return i}function E(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function k(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<e||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function j(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,e,r,n,i){return e=+e,r>>>=0,i||j(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function T(t,e,r,n,i){return e=+e,r>>>=0,i||j(t,0,r,8),o.write(t,e,r,n,52,8),r+8}l.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=l.prototype,n},l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||k(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||k(t,e,this.length);for(var n=this[t+--e],i=1;0<e&&(i*=256);)n+=this[t+--e]*i;return n},l.prototype.readUInt8=function(t,e){return t>>>=0,e||k(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||k(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||k(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||k(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||k(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0<n&&(i*=256);)o+=this[t+--n]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||k(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||k(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||k(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||k(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||k(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||k(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||M(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},l.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||M(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;0<=--o&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return T(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),0<n&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;0<=o;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},l.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),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===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=l.isBuffer(t)?t:l.from(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var e=/[^+/0-9A-Za-z-_]/g;function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function O(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if(55295<(r=t.charCodeAt(a))&&r<57344){if(!i){if(56319<r){-1<(e-=3)&&o.push(239,191,189);continue}if(a+1===n){-1<(e-=3)&&o.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(e-=3)&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(e-=3)&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function C(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function N(t){return t!=t}}).call(this,t("buffer").Buffer)},{"base64-js":19,buffer:50,ieee754:103}],51:[function(t,e,r){"use strict";e.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(t,e,r){"use strict";var i=t("safe-buffer").Buffer,n=t("stream").Transform,o=t("string_decoder").StringDecoder;function a(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(a,n),a.prototype.update=function(t,e,r){"string"==typeof t&&(t=i.from(t,e));var n=this._update(t);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(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},e.exports=a},{inherits:104,"safe-buffer":153,stream:162,string_decoder:182}],53:[function(t,e,n){(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return Object.prototype.toString.call(t)}n.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},n.isBoolean=function(t){return"boolean"==typeof t},n.isNull=function(t){return null===t},n.isNullOrUndefined=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isString=function(t){return"string"==typeof t},n.isSymbol=function(t){return"symbol"===e(t)},n.isUndefined=function(t){return void 0===t},n.isRegExp=function(t){return"[object RegExp]"===r(t)},n.isObject=function(t){return"object"===e(t)&&null!==t},n.isDate=function(t){return"[object Date]"===r(t)},n.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},n.isFunction=function(t){return"function"==typeof t},n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===e(t)||void 0===t},n.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":105}],54:[function(t,s,e){(function(o){"use strict";var e=t("elliptic"),n=t("bn.js");s.exports=function(t){return new i(t)};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(t){this.curveType=r[t],this.curveType||(this.curveType={name:t}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function a(t,e,r){Array.isArray(t)||(t=t.toArray());var n=new o(t);if(r&&n.length<r){var i=new o(r-n.length);i.fill(0),n=o.concat([i,n])}return e?n.toString(e):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(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},i.prototype.computeSecret=function(t,e,r){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),a(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},i.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,t)},i.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},i.prototype.setPublicKey=function(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this.keys._importPublic(t),this},i.prototype.setPrivateKey=function(t,e){e=e||"utf8",o.isBuffer(t)||(t=new o(t,e));var r=new n(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,t("buffer").Buffer)},{"bn.js":"BN",buffer:50,elliptic:70}],55:[function(t,e,r){"use strict";var n=t("inherits"),i=t("md5.js"),o=t("ripemd160"),a=t("sha.js"),s=t("cipher-base");function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},{"cipher-base":52,inherits:104,"md5.js":107,ripemd160:152,"sha.js":155}],56:[function(t,e,r){"use strict";var n=t("md5.js");e.exports=function(t){return(new n).update(t).digest()}},{"md5.js":107}],57:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./legacy"),a=t("cipher-base"),s=t("safe-buffer").Buffer,o=t("create-hash/md5"),u=t("ripemd160"),f=t("sha.js"),c=s.alloc(128);function l(t,e){a.call(this,"digest"),"string"==typeof e&&(e=s.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,(this._key=e).length>r)?e=("rmd160"===t?new u:f(t)).update(e).digest():e.length<r&&(e=s.concat([e,c],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),o=0;o<r;o++)n[o]=54^e[o],i[o]=92^e[o];this._hash="rmd160"===t?new u:f(t),this._hash.update(n)}n(l,a),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:f(this._alg)).update(this._opad).update(t).digest()},e.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new l("rmd160",e):"md5"===t?new i(o,e):new l(t,e)}},{"./legacy":58,"cipher-base":52,"create-hash/md5":56,inherits:104,ripemd160:152,"safe-buffer":153,"sha.js":155}],58:[function(t,e,r){"use strict";var n=t("inherits"),o=t("safe-buffer").Buffer,a=t("cipher-base"),s=o.alloc(128);function i(t,e){a.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,64<(this._key=e).length?e=t(e):e.length<64&&(e=o.concat([e,s],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),i=0;i<64;i++)r[i]=54^e[i],n[i]=92^e[i];this._hash=[r]}n(i,a),i.prototype._update=function(t){this._hash.push(t)},i.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},e.exports=i},{"cipher-base":52,inherits:104,"safe-buffer":153}],59:[function(t,e,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=t("randombytes"),r.createHash=r.Hash=t("create-hash"),r.createHmac=r.Hmac=t("create-hmac");var n=t("browserify-sign/algos"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return o};var a=t("pbkdf2");r.pbkdf2=a.pbkdf2,r.pbkdf2Sync=a.pbkdf2Sync;var s=t("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=t("diffie-hellman");r.DiffieHellmanGroup=u.DiffieHellmanGroup,r.createDiffieHellmanGroup=u.createDiffieHellmanGroup,r.getDiffieHellman=u.getDiffieHellman,r.createDiffieHellman=u.createDiffieHellman,r.DiffieHellman=u.DiffieHellman;var f=t("browserify-sign");r.createSign=f.createSign,r.Sign=f.Sign,r.createVerify=f.createVerify,r.Verify=f.Verify,r.createECDH=t("create-ecdh");var c=t("public-encrypt");r.publicEncrypt=c.publicEncrypt,r.privateEncrypt=c.privateEncrypt,r.publicDecrypt=c.publicDecrypt,r.privateDecrypt=c.privateDecrypt;var l=t("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(t,e,r){"use strict";r.utils=t("./des/utils"),r.Cipher=t("./des/cipher"),r.DES=t("./des/des"),r.CBC=t("./des/cbc"),r.EDE=t("./des/ede")},{"./des/cbc":61,"./des/cipher":62,"./des/des":63,"./des/ede":64,"./des/utils":65}],61:[function(t,e,r){"use strict";var n=t("minimalistic-assert"),o=t("inherits"),a={};function i(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}r.instantiate=function(e){function r(t){e.call(this,t),this._cbcInit()}o(r,e);for(var t=Object.keys(a),n=0;n<t.length;n++){var i=t[n];r.prototype[i]=a[i]}return r.create=function(t){return new r(t)},r},a._cbcInit=function(){var t=new i(this.options.iv);this._cbcState=t},a._update=function(t,e,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]^=t[e+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,t,e,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},{inherits:104,"minimalistic-assert":109}],62:[function(t,e,r){"use strict";var n=t("minimalistic-assert");function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}(e.exports=i).prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);0<n;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},{"minimalistic-assert":109}],63:[function(t,e,r){"use strict";var a=t("minimalistic-assert"),n=t("inherits"),i=t("../des"),h=i.utils,o=i.Cipher;function s(){this.tmp=new Array(2),this.keys=null}function u(t){o.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}n(u,o),(e.exports=u).create=function(t){return new u(t)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),a.equal(e.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(e,0),n=h.readUInt32BE(e,4);h.pc1(r,n,t.tmp,0),r=t.tmp[0],n=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var o=f[i>>>1];r=h.r28shl(r,o),n=h.r28shl(n,o),h.pc2(r,n,t.keys,i)}},u.prototype._update=function(t,e,r,n){var i=this._desState,o=h.readUInt32BE(t,e),a=h.readUInt32BE(t,e+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(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)a.equal(t[r],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,r,n,i){for(var o=e,a=r,s=0;s<t.keys.length;s+=2){var u=t.keys[s],f=t.keys[s+1];h.expand(a,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var c=h.substitute(u,f),l=a;a=(o^h.permute(c))>>>0,o=l}h.rip(a,o,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var o=r,a=e,s=t.keys.length-2;0<=s;s-=2){var u=t.keys[s],f=t.keys[s+1];h.expand(o,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var c=h.substitute(u,f),l=o;o=(a^h.permute(c))>>>0,a=l}h.rip(o,a,n,i)}},{"../des":60,inherits:104,"minimalistic-assert":109}],64:[function(t,e,r){"use strict";var o=t("minimalistic-assert"),n=t("inherits"),i=t("../des"),a=i.Cipher,s=i.DES;function u(t,e){o.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),n=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[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 f(t){a.call(this,t);var e=new u(this.type,this.options.key);this._edeState=e}n(f,a),(e.exports=f).create=function(t){return new f(t)},f.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},f.prototype._pad=s.prototype._pad,f.prototype._unpad=s.prototype._unpad},{"../des":60,inherits:104,"minimalistic-assert":109}],65:[function(t,e,r){"use strict";r.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},r.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},r.ip=function(t,e,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|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;0<=a;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;0<=s;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;0<=s;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;5<=a;a--){for(var 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(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};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(t,e,r,n){for(var i=0,o=0,a=u.length>>>1,s=0;s<a;s++)i<<=1,i|=t>>>u[s]&1;for(s=a;s<u.length;s++)o<<=1,o|=e>>>u[s]&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;15<=o;o-=4)n<<=6,n|=t>>>o&63;for(o=11;3<=o;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[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(t,e){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(e>>>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(t){for(var e=0,r=0;r<n.length;r++)e<<=1,e|=t>>>n[r]&1;return e>>>0},r.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var i=[],o=0;o<e;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},{}],66:[function(t,e,r){(function(o){"use strict";var a=t("./lib/generatePrime"),n=t("./lib/primes.json"),s=t("./lib/dh");var u={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(t){var e=new o(n[t].prime,"hex"),r=new o(n[t].gen,"hex");return new s(e,r)},r.createDiffieHellman=r.DiffieHellman=function t(e,r,n,i){return o.isBuffer(r)||void 0===u[r]?t(e,"binary",r,n):(r=r||"binary",i=i||"binary",n=n||new o([2]),o.isBuffer(n)||(n=new o(n,i)),"number"==typeof e?new s(a(e,n),n,!0):(o.isBuffer(e)||(e=new o(e,r)),new s(e,n,!0)))}}).call(this,t("buffer").Buffer)},{"./lib/dh":67,"./lib/generatePrime":68,"./lib/primes.json":69,buffer:50}],67:[function(y,b,t){(function(o){"use strict";var a=y("bn.js"),s=new(y("miller-rabin")),u=new a(24),f=new a(11),c=new a(10),l=new a(3),h=new a(7),d=y("./generatePrime"),t=y("randombytes");function n(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this._pub=new a(t),this}function i(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this._priv=new a(t),this}b.exports=e;var p={};function e(t,e,r){this.setGenerator(e),this.__prime=new a(t),this._prime=a.mont(this.__prime),this._primeLen=t.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(t,e){var r=new o(t.toArray());return e?r.toString(e):r}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var i,o=0;if(t.isEven()||!d.simpleSieve||!d.fermatTest(t)||!s.test(t))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(s.test(t.shrn(1))||(o+=2),r){case"02":t.mod(u).cmp(f)&&(o+=8);break;case"05":(i=t.mod(c)).cmp(l)&&i.cmp(h)&&(o+=8);break;default:o+=4}return p[n]=o}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new a(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new a(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new o(e.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},e.prototype.getPublicKey=function(t){return r(this._pub,t)},e.prototype.getPrivateKey=function(t){return r(this._priv,t)},e.prototype.getPrime=function(t){return r(this.__prime,t)},e.prototype.getGenerator=function(t){return r(this._gen,t)},e.prototype.setGenerator=function(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this.__gen=t,this._gen=new a(t),this}}).call(this,y("buffer").Buffer)},{"./generatePrime":68,"bn.js":"BN",buffer:50,"miller-rabin":108,randombytes:135}],68:[function(t,e,r){"use strict";var i=t("randombytes");(e.exports=n).simpleSieve=b,n.fermatTest=m;var o=t("bn.js"),a=new o(24),s=new(t("miller-rabin")),u=new o(1),f=new o(2),c=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),y=(new o(12),null);function b(t){for(var e=function(){if(null!==y)return y;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<e&&t[i]<=n&&r%t[i]!=0;i++);e!==i&&t[i]<=n||(t[e++]=r)}return y=t}(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function m(t){var e=o.mont(t);return 0===f.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function n(t,e){if(t<16)return new o(2===e||5===e?[140,123]:[140,39]);var r,n;for(e=new o(e);;){for(r=new o(i(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(f),e.cmp(f)){if(!e.cmp(c))for(;r.mod(l).cmp(h);)r.iadd(p)}else for(;r.mod(a).cmp(d);)r.iadd(p);if(b(n=r.shrn(1))&&b(r)&&m(n)&&m(r)&&s.test(n)&&s.test(r))return r}}},{"bn.js":"BN","miller-rabin":108,randombytes:135}],69:[function(t,e,r){e.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(t,e,r){"use strict";var n=r;n.version=t("../package.json").version,n.utils=t("./elliptic/utils"),n.rand=t("brorand"),n.curve=t("./elliptic/curve"),n.curves=t("./elliptic/curves"),n.ec=t("./elliptic/ec"),n.eddsa=t("./elliptic/eddsa")},{"../package.json":85,"./elliptic/curve":73,"./elliptic/curves":76,"./elliptic/ec":77,"./elliptic/eddsa":80,"./elliptic/utils":84,brorand:20}],71:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("../../elliptic").utils,E=i.getNAF,k=i.getJSF,l=i.assert;function o(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.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=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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(t,e){this.curve=t,this.type=e,this.precomputed=null}(e.exports=o).prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(t,e){l(t.precomputed);var r=t._getDoubles(),n=E(e,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(e=a+r.step-1;a<=e;e--)s=(s<<1)+n[e];o.push(s)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),c=i;0<c;c--){for(a=0;a<o.length;a++){(s=o[a])===c?f=f.mixedAdd(r.points[a]):s===-c&&(f=f.mixedAdd(r.points[a].neg()))}u=u.add(f)}return u.toP()},o.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=E(e,r),a=this.jpoint(null,null,null),s=o.length-1;0<=s;s--){for(e=0;0<=s&&0===o[s];s--)e++;if(0<=s&&e++,a=a.dblp(e),s<0)break;var u=o[s];l(0!==u),a="affine"===t.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"===t.type?a.toP():a},o.prototype._wnafMulAdd=function(t,e,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,u=0,f=0;f<n;f++){var c=(S=e[f])._getNAFPoints(t);o[f]=c.wnd,a[f]=c.points}for(f=n-1;1<=f;f-=2){var l=f-1,h=f;if(1===o[l]&&1===o[h]){var d=[e[l],null,null,e[h]];0===e[l].y.cmp(e[h].y)?(d[1]=e[l].add(e[h]),d[2]=e[l].toJ().mixedAdd(e[h].neg())):0===e[l].y.cmp(e[h].y.redNeg())?(d[1]=e[l].toJ().mixedAdd(e[h]),d[2]=e[l].add(e[h].neg())):(d[1]=e[l].toJ().mixedAdd(e[h]),d[2]=e[l].toJ().mixedAdd(e[h].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],y=k(r[l],r[h]);u=Math.max(y[0].length,u),s[l]=new Array(u),s[h]=new Array(u);for(var b=0;b<u;b++){var m=0|y[0][b],v=0|y[1][b];s[l][b]=p[3*(m+1)+(v+1)],s[h][b]=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(f=u;0<=f;f--){for(var _=0;0<=f;){var A=!0;for(b=0;b<n;b++)w[b]=0|s[b][f],0!==w[b]&&(A=!1);if(!A)break;_++,f--}if(0<=f&&_++,g=g.dblp(_),f<0)break;for(b=0;b<n;b++){var S,x=w[b];0!==x&&(0<x?S=a[b][x-1>>1]:x<0&&(S=a[b][-x-1>>1].neg()),g="affine"===S.type?g.mixedAdd(S):g.add(S))}}for(f=0;f<n;f++)a[f]=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(t,e){t=i.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?l(t[t.length-1]%2==0):7===t[0]&&l(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},a.prototype.encodeCompressed=function(t){return this.encode(t,!0)},a.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},a.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},a.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},a.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},a.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},a.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},{"../../elliptic":70,"bn.js":"BN"}],72:[function(t,e,r){"use strict";var n=t("../curve"),i=t("../../elliptic"),u=t("bn.js"),o=t("inherits"),a=n.base,s=i.utils.assert;function f(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new u(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(t.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|t.c)}function c(t,e,r,n,i){a.BasePoint.call(this,t,"projective"),null===e&&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(e,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(f,a),(e.exports=f).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},f.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},f.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},f.prototype.pointFromX=function(t,e){(t=new u(t,16)).red||(t=t.toRed(this.red));var r=t.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(e&&!s||!e&&s)&&(a=a.redNeg()),this.point(t,a)},f.prototype.pointFromY=function(t,e){(t=new u(t,16)).red||(t=t.toRed(this.red));var r=t.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(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},f.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),f.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},f.prototype.point=function(t,e,r,n){return new c(this,t,e,r,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[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 t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),l=a.redMul(o);return this.curve.point(u,f,l,c)},c.prototype._projDbl=function(){var t,e,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);t=n.redSub(i).redISub(o).redMul(u),e=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);t=this.curve._mulC(n.redISub(f)).redMul(u),e=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(t,e,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),f=o.redMul(a),c=s.redMul(u),l=o.redMul(u),h=a.redMul(s);return this.curve.point(f,c,h,l)},c.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(c);return r=this.curve.twisted?(e=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),u.redMul(f)):(e=n.redMul(f).redMul(a.redSub(o)),this.curve._mulC(u).redMul(f)),this.curve.point(l,e,r)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},c.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),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(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../../elliptic":70,"../curve":73,"bn.js":"BN",inherits:104}],73:[function(t,e,r){"use strict";var n=r;n.base=t("./base"),n.short=t("./short"),n.mont=t("./mont"),n.edwards=t("./edwards")},{"./base":71,"./edwards":72,"./mont":74,"./short":75}],74:[function(t,e,r){"use strict";var n=t("../curve"),i=t("bn.js"),o=t("inherits"),a=n.base,s=t("../../elliptic").utils;function u(t){a.call(this,"mont",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.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 f(t,e,r){a.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(e,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),(e.exports=u).prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},o(f,a.BasePoint),u.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},u.prototype.point=function(t,e){return new f(this,t,e)},u.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(t,e){return new f(t,e[0],e[1]||t.one)},f.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)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},f.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.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},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":70,"../curve":73,"bn.js":"BN",inherits:104}],75:[function(t,e,r){"use strict";var n=t("../curve"),i=t("../../elliptic"),_=t("bn.js"),o=t("inherits"),a=n.base,s=i.utils.assert;function u(t){a.call(this,"short",t),this.a=new _(t.a,16).toRed(this.red),this.b=new _(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(t,e,r,n){a.BasePoint.call(this,t,"affine"),this.inf=null===e&&null===r?(this.x=null,!(this.y=null)):(this.x=new _(e,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(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),this.z=null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,new _(0)):(this.x=new _(e,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),(e.exports=u).prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new _(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new _(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map(function(t){return{a:new _(t.a,16),b:new _(t.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:_.mont(t),r=new _(2).toRed(e).redInvm(),n=r.redNeg(),i=new _(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,a,s,u,f,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,h=this.n.clone(),d=new _(1),p=new _(0),y=new _(0),b=new _(1),m=0;0!==l.cmpn(0);){var v=h.div(l);u=h.sub(v.mul(l)),f=y.sub(v.mul(d));var g=b.sub(v.mul(p));if(!n&&u.cmp(c)<0)e=s.neg(),r=d,n=u.neg(),i=f;else if(n&&2==++m)break;h=l,l=s=u,y=d,d=f,b=p,p=g}o=u.neg(),a=f;var w=n.sqr().add(i.sqr());return 0<=o.sqr().add(a.sqr()).cmp(w)&&(o=e,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(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(f).neg()}},u.prototype.pointFromX=function(t,e){(t=new _(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.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(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[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 f=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return f},o(f,a.BasePoint),u.prototype.point=function(t,e,r){return new f(this,t,e,r)},u.prototype.pointFromJSON=function(t,e){return f.fromJSON(this,t,e)},f.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};(t.beta=e).precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[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},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).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)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(t){return t=new _(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},f.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.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 e},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new c(this,t,e,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);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(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.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 f=s.redSqr(),c=f.redMul(s),l=n.redMul(f),h=u.redSqr().redIAdd(c).redISub(l).redISub(l),d=u.redMul(l.redISub(h)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,d,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).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(),f=u.redMul(a),c=r.redMul(u),l=s.redSqr().redIAdd(f).redISub(c).redISub(c),h=s.redMul(c.redISub(l)).redISub(i.redMul(f)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),f=a.redAdd(a);for(r=0;r<t;r++){var c=o.redSqr(),l=f.redSqr(),h=l.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),p=o.redMul(l),y=d.redSqr().redISub(p.redAdd(p)),b=p.redISub(y),m=d.redMul(b);m=m.redIAdd(m).redISub(h);var v=f.redMul(s);r+1<t&&(u=u.redMul(h)),o=y,s=v,f=m}return this.curve.jpoint(o,f.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 t,e,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),f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),t=u,e=s.redMul(a.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(c).redISub(h);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),y=p.redSqr(),b=h.redIAdd(h);b=(b=b.redIAdd(b)).redIAdd(b),t=y.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},c.prototype._threeDbl=function(){var t,e,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);t=u;var f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),e=s.redMul(a.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),y=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(y),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(c);var b=l.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),e=d.redMul(p.redISub(t)).redISub(b)}return this.curve.jpoint(t,e,r)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),f=(u=u.redIAdd(u)).redMul(a),c=s.redSqr().redISub(f.redAdd(f)),l=f.redISub(c),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(c,d,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).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 f=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),c=e.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var l=this.x.redMul(s).redISub(c);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(f.redMul(u.redISub(f)).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(t,e){return t=new _(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){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)}},{"../../elliptic":70,"../curve":73,"bn.js":"BN",inherits:104}],76:[function(t,e,r){"use strict";var n,i=r,o=t("hash.js"),a=t("../elliptic"),s=a.utils.assert;function u(t){"short"===t.type?this.curve=new a.curve.short(t):"edwards"===t.type?this.curve=new a.curve.edwards(t):this.curve=new a.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,r){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var t=new u(r);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:t}),t}})}i.PresetCurve=u,f("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"]}),f("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"]}),f("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"]}),f("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"]}),f("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"]}),f("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"]}),f("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=t("./precomputed/secp256k1")}catch(t){n=void 0}f("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(t,e,r){"use strict";function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=t("bn.js"),v=t("hmac-drbg"),o=t("../../elliptic"),d=o.utils.assert,n=t("./key"),g=t("./signature");function i(t){if(!(this instanceof i))return new i(t);"string"==typeof t&&(d(o.curves.hasOwnProperty(t),"Unknown curve "+t),t=o.curves[t]),t instanceof o.curves.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}(e.exports=i).prototype.keyPair=function(t){return new n(this,t)},i.prototype.keyFromPrivate=function(t,e){return n.fromPrivate(this,t,e)},i.prototype.keyFromPublic=function(t,e){return n.fromPublic(this,t,e)},i.prototype.genKeyPair=function(t){t||(t={});for(var e=new v({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||o.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new m(2));;){var i=new m(e.generate(r));if(!(0<i.cmp(n)))return i.iaddn(1),this.keyFromPrivate(i)}},i.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return 0<r&&(t=t.ushrn(r)),!e&&0<=t.cmp(this.n)?t.sub(this.n):t},i.prototype.sign=function(t,e,r,n){"object"===b(r)&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new m(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.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)),f=0;;f++){var c=n.k?n.k(f):new m(s.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||0<=c.cmp(u))){var l=this.g.mul(c);if(!l.isInfinity()){var h=l.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=c.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var y=(l.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),y^=1),new g({r:d,s:p,recoveryParam:y})}}}}}},i.prototype.verify=function(t,e,r,n){t=this._truncateToN(new m(t,16)),r=this.keyFromPublic(r,n);var i=(e=new g(e,"hex")).r,o=e.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(t).umod(this.n),f=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},i.prototype.recoverPubKey=function(t,e,r,n){d((3&r)===r,"The recovery param is more than two bits"),e=new g(e,n);var i=this.n,o=new m(t),a=e.r,s=e.s,u=1&r,f=r>>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&f)throw new Error("Unable to find sencond key candinate");a=f?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var c=e.r.invm(i),l=i.sub(o).mul(c).umod(i),h=s.mul(c).umod(i);return this.g.mulAdd(l,a,h)},i.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new g(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){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(t,e,r){"use strict";var n=t("bn.js"),i=t("../../elliptic").utils.assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}(e.exports=o).fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,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(t,e,r){"use strict";var s=t("bn.js"),u=t("../../elliptic").utils,n=u.assert;function i(t,e){if(t instanceof i)return t;this._importDER(t,e)||(n(t.r&&t.s,"Signature without r or s"),this.r=new s(t.r,16),this.s=new s(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function f(){this.place=0}function c(t,e){var r=t[e.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a];return e.place=a,i}function a(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}(e.exports=i).prototype._importDER=function(t,e){t=u.toArray(t,e);var r=new f;if(48!==t[r.place++])return!1;if(c(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var n=c(t,r),i=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var o=c(t,r);if(t.length!==o+r.place)return!1;var a=t.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(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=a(e),r=a(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,e.length),(n=n.concat(e)).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,t)}},{"../../elliptic":70,"bn.js":"BN"}],80:[function(t,e,r){"use strict";var n=t("hash.js"),i=t("../../elliptic"),o=i.utils,a=o.assert,u=o.parseBytes,s=t("./key"),f=t("./signature");function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i.curves[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}(e.exports=c).prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},c.prototype.verify=function(t,e,r){t=u(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return s.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return s.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return o.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},{"../../elliptic":70,"./key":81,"./signature":82,"hash.js":89}],81:[function(t,e,r){"use strict";var n=t("../../elliptic").utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},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 t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.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(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},s.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},e.exports=s},{"../../elliptic":70}],82:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("bn.js"),o=t("../../elliptic").utils,a=o.assert,s=o.cachedProperty,u=o.parseBytes;function f(t,e){this.eddsa=t,"object"!==n(e)&&(e=u(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),a(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},{"../../elliptic":70,"bn.js":"BN"}],83:[function(t,e,r){"use strict";e.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(t,e,r){"use strict";var n=r,i=t("bn.js"),o=t("minimalistic-assert"),a=t("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(t,e){for(var r=[],n=1<<e+1,i=t.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)?e+1:1,u=1;u<s;u++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;0<t.cmpn(-n)||0<e.cmpn(-i);){var o,a,s,u=t.andln(3)+n&3,f=e.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},{"bn.js":"BN","minimalistic-assert":109,"minimalistic-crypto-utils":110}],85:[function(t,e,r){e.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-eth-accounts/eth-lib","/web3-utils/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(t,e,r){"use strict";function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=Object.create||function(t){var e=function(){};return e.prototype=t,new e},a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},o=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=f(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((e.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0;var i,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),i=0===c.x}catch(t){i=!1}function l(t){return void 0===t._maxListeners?n.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]):(o=t._events=f(null),t._eventsCount=0),a){if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=l(t))&&0<i&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,"object"===("undefined"==typeof console?"undefined":u(console))&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[e]=r,++t._eventsCount;return t}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 t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=o.call(d,n);return i.listener=r,n.wrapFn=i}function y(t,e,r){var n=t._events;if(!n)return[];var i=n[e];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length):[]}function b(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}i?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');s=t}}):n.defaultMaxListeners=s,n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},n.prototype.getMaxListeners=function(){return l(this)},n.prototype.emit=function(t){var e,r,n,i,o,a,s="error"===t;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(1<arguments.length&&(e=arguments[1]),e instanceof Error)throw e;var u=new Error('Unhandled "error" event. ('+e+")");throw u.context=e,u}if(!(r=a[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=m(t,n),o=0;o<n;++o)i[o].call(r)}(r,f,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=m(t,i),a=0;a<i;++a)o[a].call(r,n)}(r,f,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=m(t,o),s=0;s<o;++s)a[s].call(r,n,i)}(r,f,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,s=m(t,a),u=0;u<a;++u)s[u].call(r,n,i,o)}(r,f,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(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=m(t,i),a=0;a<i;++a)o[a].apply(r,n)}(r,f,this,i)}return!0},n.prototype.on=n.prototype.addListener=function(t,e){return h(this,t,e,!1)},n.prototype.prependListener=function(t,e){return h(this,t,e,!0)},n.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,p(this,t,e)),this},n.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,p(this,t,e)),this},n.prototype.removeListener=function(t,e){var r,n,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=f(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;0<=o;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),n.removeListener&&this.emit("removeListener",t,a||e)}return this},n.prototype.removeAllListeners=function(t){var e,r,n;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=f(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=f(null):delete r[t]),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=f(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(n=e.length-1;0<=n;n--)this.removeListener(t,e[n]);return this},n.prototype.listeners=function(t){return y(this,t,!0)},n.prototype.rawListeners=function(t){return y(this,t,!1)},n.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},n.prototype.listenerCount=b,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],87:[function(t,e,r){"use strict";var d=t("safe-buffer").Buffer,p=t("md5.js");e.exports=function(t,e,r,n){if(d.isBuffer(t)||(t=d.from(t,"binary")),e&&(d.isBuffer(e)||(e=d.from(e,"binary")),8!==e.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(t),e&&u.update(e),s=u.digest();var f=0;if(0<i){var c=o.length-i;f=Math.min(i,s.length),s.copy(o,c,0,f),i-=f}if(f<s.length&&0<n){var l=a.length-n,h=Math.min(n,s.length-f);s.copy(a,l,f,f+h),n-=h}}return s.fill(0),{key:o,iv:a}}},{"md5.js":107,"safe-buffer":153}],88:[function(t,e,r){"use strict";var s=t("safe-buffer").Buffer,n=t("stream").Transform;function i(t){n.call(this),this._block=s.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(i,n),i.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},i.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,e){if(function(t,e){if(!s.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(t)||(t=s.from(t,e));for(var r=this._block,n=0;this._blockOffset+t.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=t[n++];this._update(),this._blockOffset=0}for(;n<t.length;)r[this._blockOffset++]=t[n++];for(var o=0,a=8*t.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(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},{inherits:104,"safe-buffer":153,stream:162}],89:[function(t,e,r){"use strict";var n=r;n.utils=t("./hash/utils"),n.common=t("./hash/common"),n.sha=t("./hash/sha"),n.ripemd=t("./hash/ripemd"),n.hmac=t("./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(t,e,r){"use strict";var i=t("./utils"),n=t("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(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),n(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},{"./utils":100,"minimalistic-assert":109}],91:[function(t,e,r){"use strict";var n=t("./utils"),i=t("minimalistic-assert");function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}(e.exports=o).prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},{"./utils":100,"minimalistic-assert":109}],92:[function(t,e,r){"use strict";var n=t("./utils"),i=t("./common"),p=n.rotl32,y=n.sum32,b=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(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function g(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function w(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=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(t,e){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,f=i,c=o,l=a,h=0;h<80;h++){var d=y(p(m(r,v(h,n,i,o),t[_[h]+e],g(h)),S[h]),a);r=a,a=o,o=p(i,10),i=n,n=d,d=y(p(m(s,v(79-h,u,f,c),t[A[h]+e],w(h)),x[h]),l),s=l,l=c,c=p(f,10),f=u,u=d}d=b(this.h[1],i,c),this.h[1]=b(this.h[2],o,l),this.h[2]=b(this.h[3],a,s),this.h[3]=b(this.h[4],r,u),this.h[4]=b(this.h[0],n,f),this.h[0]=d},a.prototype._digest=function(t){return"hex"===t?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],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],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],x=[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(t,e,r){"use strict";r.sha1=t("./sha/1"),r.sha224=t("./sha/224"),r.sha256=t("./sha/256"),r.sha384=t("./sha/384"),r.sha512=t("./sha/512")},{"./sha/1":94,"./sha/224":95,"./sha/256":96,"./sha/384":97,"./sha/512":98}],94:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../common"),o=t("./common"),l=n.rotl32,h=n.sum32,d=n.sum32_5,p=o.ft_1,a=i.BlockHash,y=[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),(e.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=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 f=~~(n/20),c=d(l(i,5),p(f,o,a,s),u,r[n],y[f]);u=s,s=a,a=l(o,30),o=i,i=c}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(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":90,"../utils":100,"./common":99}],95:[function(t,e,r){"use strict";var n=t("../utils"),i=t("./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),(e.exports=o).blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":100,"./256":96}],96:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../common"),o=t("./common"),p=t("minimalistic-assert"),y=n.sum32,b=n.sum32_4,m=n.sum32_5,v=o.ch32,g=o.maj32,w=o.s0_256,_=o.s1_256,A=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),(e.exports=u).blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=b(S(r[n-2]),r[n-7],A(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],f=this.h[5],c=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,f,c),this.k[n],r[n]),d=y(w(i),g(i,o,a));l=c,c=f,f=u,u=y(s,h),s=a,a=o,o=i,i=y(h,d)}this.h[0]=y(this.h[0],i),this.h[1]=y(this.h[1],o),this.h[2]=y(this.h[2],a),this.h[3]=y(this.h[3],s),this.h[4]=y(this.h[4],u),this.h[5]=y(this.h[5],f),this.h[6]=y(this.h[6],c),this.h[7]=y(this.h[7],l)},u.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":90,"../utils":100,"./common":99,"minimalistic-assert":109}],97:[function(t,e,r){"use strict";var n=t("../utils"),i=t("./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),(e.exports=o).blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":100,"./512":98}],98:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../common"),U=t("minimalistic-assert"),o=n.rotr64_hi,a=n.rotr64_lo,s=n.shr64_hi,u=n.shr64_lo,C=n.sum64,N=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,f=i.BlockHash,c=[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;f.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=c,this.W=new Array(160)}function D(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function q(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function z(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function H(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function K(t,e){var r=o(t,e,28)^o(e,t,2)^o(e,t,7);return r<0&&(r+=4294967296),r}function V(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function G(t,e){var r=o(t,e,14)^o(t,e,18)^o(e,t,9);return r<0&&(r+=4294967296),r}function W(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function p(t,e){var r=o(t,e,1)^o(t,e,8)^s(t,e,7);return r<0&&(r+=4294967296),r}function y(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function b(t,e){var r=o(t,e,19)^o(e,t,29)^s(t,e,6);return r<0&&(r+=4294967296),r}function m(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(l,f),(e.exports=l).blockSize=1024,l.outSize=512,l.hmacStrength=192,l.padLength=128,l.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=b(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]),f=y(r[n-30],r[n-29]),c=r[n-32],l=r[n-31];r[n]=h(i,o,a,s,u,f,c,l),r[n+1]=d(i,o,a,s,u,f,c,l)}},l.prototype._update=function(t,e){this._prepareBlock(t,e);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],f=this.h[6],c=this.h[7],l=this.h[8],h=this.h[9],d=this.h[10],p=this.h[11],y=this.h[12],b=this.h[13],m=this.h[14],v=this.h[15];U(this.k.length===r.length);for(var g=0;g<r.length;g+=2){var w=m,_=v,A=G(l,h),S=W(l,h),x=D(l,h,d,p,y),E=q(l,h,d,p,y,b),k=this.k[g],M=this.k[g+1],j=r[g],I=r[g+1],T=L(w,_,A,S,x,E,k,M,j,I),R=F(w,_,A,S,x,E,k,M,j,I);w=K(n,i),_=V(n,i),A=z(n,i,o,a,s),S=H(n,i,o,a,s,u);var O=N(w,_,A,S),B=P(w,_,A,S);m=y,v=b,y=d,b=p,d=l,p=h,l=N(f,c,T,R),h=P(c,c,T,R),f=s,c=u,s=o,u=a,o=n,a=i,n=N(T,R,O,B),i=P(T,R,O,B)}C(this.h,0,n,i),C(this.h,2,o,a),C(this.h,4,s,u),C(this.h,6,f,c),C(this.h,8,l,h),C(this.h,10,d,p),C(this.h,12,y,b),C(this.h,14,m,v)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":90,"../utils":100,"minimalistic-assert":109}],99:[function(t,e,r){"use strict";var n=t("../utils").rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}r.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0},r.ch32=i,r.maj32=o,r.p32=a,r.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},r.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},r.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},r.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},{"../utils":100}],100:[function(t,e,r){"use strict";var f=t("minimalistic-assert"),n=t("inherits");function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function i(t){return 1===t.length?"0"+t:t}function a(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}r.inherits=n,r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r,n,i=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),a=0;a<t.length;a+=2)i.push(parseInt(t[a]+t[a+1],16))}else for(var o=0,a=0;a<t.length;a++){var s=t.charCodeAt(a);i[o++]=s<128?s:(i[o++]=s<2048?s>>6|192:(n=a,55296!=(64512&(r=t).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&t.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<t.length;a++)i[a]=0|t[a];return i},r.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e},r.htonl=o,r.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=o(i)),r+=a(i.toString(16))}return r},r.zero2=i,r.zero8=a,r.join32=function(t,e,r,n){var i=r-e;f(i%4==0);for(var o=new Array(i/4),a=0,s=e;a<o.length;a++,s+=4){var u;u="big"===n?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],o[a]=u>>>0}return o},r.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},r.rotr32=function(t,e){return t>>>e|t<<32-e},r.rotl32=function(t,e){return t<<e|t>>>32-e},r.sum32=function(t,e){return t+e>>>0},r.sum32_3=function(t,e,r){return t+e+r>>>0},r.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},r.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},r.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=o},r.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},r.sum64_lo=function(t,e,r,n){return e+n>>>0},r.sum64_4_hi=function(t,e,r,n,i,o,a,s){var u=0,f=e;return u+=(f=f+n>>>0)<e?1:0,u+=(f=f+o>>>0)<o?1:0,t+r+i+a+(u+=(f=f+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(t,e,r,n,i,o,a,s){return e+n+o+s>>>0},r.sum64_5_hi=function(t,e,r,n,i,o,a,s,u,f){var c=0,l=e;return c+=(l=l+n>>>0)<e?1:0,c+=(l=l+o>>>0)<o?1:0,c+=(l=l+s>>>0)<s?1:0,t+r+i+a+u+(c+=(l=l+f>>>0)<f?1:0)>>>0},r.sum64_5_lo=function(t,e,r,n,i,o,a,s,u,f){return e+n+o+s+f>>>0},r.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},r.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},r.shr64_hi=function(t,e,r){return t>>>r},r.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},{inherits:104,"minimalistic-assert":109}],101:[function(t,e,r){"use strict";var n=t("hash.js"),a=t("minimalistic-crypto-utils"),i=t("minimalistic-assert");function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=a.toArray(t.entropy,t.entropyEnc||"hex"),r=a.toArray(t.nonce,t.nonceEnc||"hex"),n=a.toArray(t.pers,t.persEnc||"hex");i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}(e.exports=o).prototype._init=function(t,e,r){var n=t.concat(e).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(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=a.toArray(t,e),r=a.toArray(r,n),i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},o.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,a.encode(o,e)}},{"hash.js":89,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],102:[function(t,e,r){"use strict";var n=t("http"),i=t("url"),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=s(t),n.request.call(this,t,e)},o.get=function(t,e){return t=s(t),n.get.call(this,t,e)}},{http:163,url:185}],103:[function(t,e,r){"use strict";r.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?i-1:0,h=r?-1:1,d=t[e+l];for(l+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;0<c;o=256*o+t[e+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;0<c;a=256*a+t[e+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(e+=1<=a+l?h/u:h*Math.pow(2,1-l))*u&&(a++,u/=2),c<=a+l?(s=0,a=c):1<=a+l?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,f+=i;0<f;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*y}},{}],104:[function(t,e,r){arguments[4][16][0].apply(r,arguments)},{dup:16}],105:[function(t,e,r){"use strict";function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(n(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))||!!t._isBuffer);var e}},{}],106:[function(t,e,r){"use strict";var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],107:[function(t,e,r){"use strict";var n=t("inherits"),i=t("hash-base"),o=t("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(t,e){return t<<e|t>>>32-e}function f(t,e,r,n,i,o,a){return u(t+(e&r|~e&n)+i+o|0,a)+e|0}function c(t,e,r,n,i,o,a){return u(t+(e&n|r&~n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return u(t+(e^r^n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return u(t+(r^(e|~n))+i+o|0,a)+e|0}n(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);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=c(n=c(n=c(n=c(n=f(n=f(n=f(n=f(n,i=f(i,o=f(o,r=f(r,n,i,o,t[0],3614090360,7),n,i,t[1],3905402710,12),r,n,t[2],606105819,17),o,r,t[3],3250441966,22),i=f(i,o=f(o,r=f(r,n,i,o,t[4],4118548399,7),n,i,t[5],1200080426,12),r,n,t[6],2821735955,17),o,r,t[7],4249261313,22),i=f(i,o=f(o,r=f(r,n,i,o,t[8],1770035416,7),n,i,t[9],2336552879,12),r,n,t[10],4294925233,17),o,r,t[11],2304563134,22),i=f(i,o=f(o,r=f(r,n,i,o,t[12],1804603682,7),n,i,t[13],4254626195,12),r,n,t[14],2792965006,17),o,r,t[15],1236535329,22),i=c(i,o=c(o,r=c(r,n,i,o,t[1],4129170786,5),n,i,t[6],3225465664,9),r,n,t[11],643717713,14),o,r,t[0],3921069994,20),i=c(i,o=c(o,r=c(r,n,i,o,t[5],3593408605,5),n,i,t[10],38016083,9),r,n,t[15],3634488961,14),o,r,t[4],3889429448,20),i=c(i,o=c(o,r=c(r,n,i,o,t[9],568446438,5),n,i,t[14],3275163606,9),r,n,t[3],4107603335,14),o,r,t[8],1163531501,20),i=c(i,o=c(o,r=c(r,n,i,o,t[13],2850285829,5),n,i,t[2],4243563512,9),r,n,t[7],1735328473,14),o,r,t[12],2368359562,20),i=l(i,o=l(o,r=l(r,n,i,o,t[5],4294588738,4),n,i,t[8],2272392833,11),r,n,t[11],1839030562,16),o,r,t[14],4259657740,23),i=l(i,o=l(o,r=l(r,n,i,o,t[1],2763975236,4),n,i,t[4],1272893353,11),r,n,t[7],4139469664,16),o,r,t[10],3200236656,23),i=l(i,o=l(o,r=l(r,n,i,o,t[13],681279174,4),n,i,t[0],3936430074,11),r,n,t[3],3572445317,16),o,r,t[6],76029189,23),i=l(i,o=l(o,r=l(r,n,i,o,t[9],3654602809,4),n,i,t[12],3873151461,11),r,n,t[15],530742520,16),o,r,t[2],3299628645,23),i=h(i,o=h(o,r=h(r,n,i,o,t[0],4096336452,6),n,i,t[7],1126891415,10),r,n,t[14],2878612391,15),o,r,t[5],4237533241,21),i=h(i,o=h(o,r=h(r,n,i,o,t[12],1700485571,6),n,i,t[3],2399980690,10),r,n,t[10],4293915773,15),o,r,t[1],2240044497,21),i=h(i,o=h(o,r=h(r,n,i,o,t[8],1873313359,6),n,i,t[15],4264355552,10),r,n,t[6],2734768916,15),o,r,t[13],1309151649,21),i=h(i,o=h(o,r=h(r,n,i,o,t[4],4149444226,6),n,i,t[11],3174756917,10),r,n,t[2],718787259,15),o,r,t[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 t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},e.exports=s},{"hash-base":88,inherits:104,"safe-buffer":153}],108:[function(t,e,r){"use strict";var d=t("bn.js"),n=t("brorand");function i(t){this.rand=t||new n.Rand}(e.exports=i).create=function(t){return new i(t)},i.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var n=new d(this.rand.generate(r))}while(0<=n.cmp(t));return n},i.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},i.prototype.test=function(t,e,r){var n=t.bitLength(),i=d.mont(t),o=new d(1).toRed(i);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),f=a.toRed(i);0<e;e--){var c=this._randrange(new d(2),a);r&&r(c);var l=c.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(f)){for(var h=1;h<s;h++){if(0===(l=l.redSqr()).cmp(o))return!1;if(0===l.cmp(f))break}if(h===s)return!1}}return!0},i.prototype.getDivisor=function(t,e){var r=t.bitLength(),n=d.mont(t),i=new d(1).toRed(n);e||(e=Math.max(1,r/48|0));for(var o=t.subn(1),a=0;!o.testn(a);a++);for(var s=t.shrn(a),u=o.toRed(n);0<e;e--){var f=this._randrange(new d(2),o),c=t.gcd(f);if(0!==c.cmpn(1))return c;var l=f.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(t);if(0===l.cmp(u))break}if(h===a)return(l=l.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},{"bn.js":"BN",brorand:20}],109:[function(t,e,r){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}(e.exports=n).equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},{}],110:[function(t,e,r){"use strict";var n=r;function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=i(t[r].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16));else for(n=0;n<t.length;n++){var i=t.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(t,e){return"hex"===e?o(t):t}},{}],111:[function(t,e,r){"use strict";var u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var a in r=Object(arguments[o]))f.call(r,a)&&(i[a]=r[a]);if(u){n=u(r);for(var s=0;s<n.length;s++)c.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i}},{}],112:[function(t,e,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(t,e,r){e.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(t,e,r){"use strict";var n=t("asn1.js");r.certificate=t("./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 f=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=f;var c=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=c,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(t,e,r){"use strict";var n=t("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)}),f=n.define("RDNSequence",function(){this.seqof(u)}),c=n.define("Name",function(){this.choice({rdnSequence:this.use(f)})}),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(c),this.key("validity").use(l),this.key("subject").use(c),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())});e.exports=p},{"asn1.js":1}],116:[function(t,e,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,y=t("evp_bytestokey"),b=t("browserify-aes"),m=t("safe-buffer").Buffer;e.exports=function(t,e){var r,n=t.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=y(e,a.slice(0,8),parseInt(i[1],10)).key,f=[],c=b.createDecipheriv(o,u,a);f.push(c.update(s)),f.push(c.final()),r=m.concat(f)}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(t,e,r){"use strict";function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=t("./asn1"),w=t("./aesid.json"),_=t("./fixProc"),A=t("browserify-aes"),S=t("pbkdf2"),x=t("safe-buffer").Buffer;function n(t){var e;"object"!==v(t)||x.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=x.from(t));var r,n,i,o,a,s,u,f,c,l,h,d,p,y=_(t,e),b=y.tag,m=y.data;switch(b){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 "+b);case"ENCRYPTED PRIVATE KEY":m=g.EncryptedPrivateKey.decode(m,"der"),o=e,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(".")],f=i.algorithm.decrypt.cipher.iv,c=i.subjectPrivateKey,l=parseInt(u.split("-")[1],10)/8,h=S.pbkdf2Sync(o,a,s,l,"sha1"),d=A.createDecipheriv(u,h,f),(p=[]).push(d.update(c)),p.push(d.final()),m=x.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 "+b);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 "+b)}}(e.exports=n).signature=g.signature},{"./aesid.json":113,"./asn1":114,"./fixProc":116,"browserify-aes":24,pbkdf2:118,"safe-buffer":153}],118:[function(t,e,r){"use strict";r.pbkdf2=t("./lib/async"),r.pbkdf2Sync=t("./lib/sync")},{"./lib/async":119,"./lib/sync":122}],119:[function(t,e,r){(function(f,c){"use strict";var l,h=t("./precondition"),d=t("./default-encoding"),p=t("./sync"),y=t("safe-buffer").Buffer,b=c.crypto&&c.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(t,e,r,n,i){return b.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return b.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)}).then(function(t){return y.from(t)})}e.exports=function(e,r,n,i,o,a){"function"==typeof o&&(a=o,o=void 0);var t,s,u=m[(o=o||"sha1").toLowerCase()];if(!u||"function"!=typeof c.Promise)return f.nextTick(function(){var t;try{t=p(e,r,n,i,o)}catch(t){return a(t)}a(null,t)});if(h(e,r,n,i),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");y.isBuffer(e)||(e=y.from(e,d)),y.isBuffer(r)||(r=y.from(r,d)),t=function(t){if(c.process&&!c.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(void 0!==v[t])return v[t];var e=g(l=l||y.alloc(8),l,10,128,t).then(function(){return!0}).catch(function(){return!1});return v[t]=e}(u).then(function(t){return t?g(e,r,n,i,u):p(e,r,n,i,o)}),s=a,t.then(function(t){f.nextTick(function(){s(null,t)})},function(t){f.nextTick(function(){s(t)})})}}).call(this,t("_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(t,r,e){(function(t){"use strict";var e;t.browser?e="utf-8":e=6<=parseInt(t.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=e}).call(this,t("_process"))},{_process:124}],121:[function(t,e,r){(function(r){"use strict";var i=Math.pow(2,30)-1;function o(t,e){if("string"!=typeof t&&!r.isBuffer(t))throw new TypeError(e+" must be a buffer or string")}e.exports=function(t,e,r,n){if(o(t,"Password"),o(e,"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:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":105}],122:[function(t,e,r){"use strict";var c=t("create-hash/md5"),l=t("ripemd160"),h=t("sha.js"),b=t("./precondition"),m=t("./default-encoding"),v=t("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(t,e,r){var n,i="rmd160"===(n=t)||"ripemd160"===n?function(t){return(new l).update(t).digest()}:"md5"===n?c:function(t){return h(n).update(t).digest()},o="sha512"===t||"sha384"===t?128:64;e.length>o?e=i(e):e.length<o&&(e=v.concat([e,d],o));for(var a=v.allocUnsafe(o+g[t]),s=v.allocUnsafe(o+g[t]),u=0;u<o;u++)a[u]=54^e[u],s[u]=92^e[u];var f=v.allocUnsafe(o+r+4);a.copy(f,0,0,o),this.ipad1=f,this.ipad2=a,this.opad=s,this.alg=t,this.blocksize=o,this.hash=i,this.size=g[t]}w.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(t,e,r,n,i){b(t,e,r,n),v.isBuffer(t)||(t=v.from(t,m)),v.isBuffer(e)||(e=v.from(e,m));var o=new w(i=i||"sha1",t,e.length),a=v.allocUnsafe(n),s=v.allocUnsafe(e.length+4);e.copy(s,0,0,e.length);for(var u=0,f=g[i],c=Math.ceil(n/f),l=1;l<=c;l++){s.writeUInt32BE(l,e.length);for(var h=o.run(s,o.ipad1),d=h,p=1;p<r;p++){d=o.run(d,o.ipad2);for(var y=0;y<f;y++)h[y]^=d[y]}h.copy(a,u),u+=f}return a}},{"./default-encoding":120,"./precondition":121,"create-hash/md5":56,ripemd160:152,"safe-buffer":153,"sha.js":155}],123:[function(t,e,r){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(t);case 2:return s.nextTick(function(){t.call(null,e)});case 3:return s.nextTick(function(){t.call(null,e,r)});case 4:return s.nextTick(function(){t.call(null,e,r,n)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){t.apply(null,i)})}}}:e.exports=s}).call(this,t("_process"))},{_process:124}],124:[function(t,e,r){"use strict";var n,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var f,c=[],l=!1,h=-1;function d(){l&&f&&(l=!1,f.length?c=f.concat(c):h=-1,c.length&&p())}function p(){if(!l){var t=u(d);l=!0;for(var e=c.length;e;){for(f=c,c=[];++h<e;)f&&f[h].run();h=-1,e=c.length}f=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new y(t,e)),1!==c.length||l||u(p)},y.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=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],125:[function(t,e,r){"use strict";r.publicEncrypt=t("./publicEncrypt"),r.privateDecrypt=t("./privateDecrypt"),r.privateEncrypt=function(t,e){return r.publicEncrypt(t,e,!0)},r.publicDecrypt=function(t,e){return r.privateDecrypt(t,e,!0)}},{"./privateDecrypt":127,"./publicEncrypt":128}],126:[function(t,e,r){"use strict";var o=t("create-hash"),a=t("safe-buffer").Buffer;function s(t){var e=a.allocUnsafe(4);return e.writeUInt32BE(t,0),e}e.exports=function(t,e){for(var r,n=a.alloc(0),i=0;n.length<e;)r=s(i++),n=a.concat([n,o("sha1").update(t).update(r).digest()]);return n.slice(0,e)}},{"create-hash":55,"safe-buffer":153}],127:[function(t,e,r){"use strict";var u=t("parse-asn1"),c=t("./mgf"),l=t("./xor"),f=t("bn.js"),h=t("browserify-rsa"),d=t("create-hash"),p=t("./withPublic"),y=t("safe-buffer").Buffer;e.exports=function(t,e,r){var n;n=t.padding?t.padding:r?1:4;var i,o=u(t),a=o.modulus.byteLength();if(e.length>a||0<=new f(e).cmp(o.modulus))throw new Error("decryption error");i=r?p(new f(e),o):h(e,o);var s=y.alloc(a-i.length);if(i=y.concat([s,i],a),4===n)return function(t,e){var r=t.modulus.byteLength(),n=d("sha1").update(y.alloc(0)).digest(),i=n.length;if(0!==e[0])throw new Error("decryption error");var o=e.slice(1,i+1),a=e.slice(i+1),s=l(o,c(a,i)),u=l(a,c(s,r-i-1));if(function(t,e){t=y.from(t),e=y.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(n,u.slice(0,i)))throw new Error("decryption error");var f=i;for(;0===u[f];)f++;if(1===u[f++])return u.slice(f);throw new Error("decryption error")}(o,i);if(1===n)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.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 e.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(t,e,r){"use strict";var a=t("parse-asn1"),h=t("randombytes"),d=t("create-hash"),p=t("./mgf"),y=t("./xor"),b=t("bn.js"),s=t("./withPublic"),u=t("browserify-rsa"),m=t("safe-buffer").Buffer;e.exports=function(t,e,r){var n;n=t.padding?t.padding:r?1:4;var i,o=a(t);if(4===n)i=function(t,e){var r=t.modulus.byteLength(),n=e.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,f=h(o),c=y(m.concat([i,s,m.alloc(1,1),e],u),p(f,u)),l=y(f,p(c,o));return new b(m.concat([m.alloc(1),l,c],r))}(o,e);else if(1===n)i=function(t,e,r){var n,i=e.length,o=t.modulus.byteLength();if(o-11<i)throw new Error("message too long");n=r?m.alloc(o-i-3,255):function(t){var e,r=m.allocUnsafe(t),n=0,i=h(2*t),o=0;for(;n<t;)o===i.length&&(i=h(2*t),o=0),(e=i[o++])&&(r[n++]=e);return r}(o-i-3);return new b(m.concat([m.from([0,r?1:2]),n,m.alloc(1),e],o))}(o,e,r);else{if(3!==n)throw new Error("unknown padding");if(0<=(i=new b(e)).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(t,e,r){"use strict";var n=t("bn.js"),i=t("safe-buffer").Buffer;e.exports=function(t,e){return i.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},{"bn.js":"BN","safe-buffer":153}],130:[function(t,e,r){"use strict";e.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},{}],131:[function(t,B,U){(function(R){"use strict";function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var e="object"==(void 0===U?"undefined":O(U))&&U&&!U.nodeType&&U,r="object"==(void 0===B?"undefined":O(B))&&B&&!B.nodeType&&B,n="object"==(void 0===R?"undefined":O(R))&&R;n.global!==n&&n.window!==n&&n.self!==n||(t=n);var i,o,m=2147483647,v=36,g=1,w=26,a=38,s=700,_=72,A=128,S="-",u=/^xn--/,f=/[^\x20-\x7E]/,c=/[\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,x=Math.floor,E=String.fromCharCode;function k(t){throw new RangeError(l[t])}function d(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function p(t,e){var r=t.split("@"),n="";return 1<r.length&&(n=r[0]+"@",t=r[1]),n+d((t=t.replace(c,".")).split("."),e).join(".")}function M(t){for(var e,r,n=[],i=0,o=t.length;i<o;)55296<=(e=t.charCodeAt(i++))&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function j(t){return d(t,function(t){var e="";return 65535<t&&(e+=E((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=E(t)}).join("")}function I(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function T(t,e,r){var n=0;for(t=r?x(t/s):t>>1,t+=x(t/e);h*w>>1<t;n+=v)t=x(t/h);return x(n+(h+1)*t/(t+a))}function y(t){var e,r,n,i,o,a,s,u,f,c,l,h=[],d=t.length,p=0,y=A,b=_;for((r=t.lastIndexOf(S))<0&&(r=0),n=0;n<r;++n)128<=t.charCodeAt(n)&&k("not-basic"),h.push(t.charCodeAt(n));for(i=0<r?r+1:0;i<d;){for(o=p,a=1,s=v;d<=i&&k("invalid-input"),l=t.charCodeAt(i++),(v<=(u=l-48<10?l-22:l-65<26?l-65:l-97<26?l-97:v)||u>x((m-p)/a))&&k("overflow"),p+=u*a,!(u<(f=s<=b?g:b+w<=s?w:s-b));s+=v)a>x(m/(c=v-f))&&k("overflow"),a*=c;b=T(p-o,e=h.length+1,0==o),x(p/e)>m-y&&k("overflow"),y+=x(p/e),p%=e,h.splice(p++,0,y)}return j(h)}function b(t){var e,r,n,i,o,a,s,u,f,c,l,h,d,p,y,b=[];for(h=(t=M(t)).length,e=A,o=_,a=r=0;a<h;++a)(l=t[a])<128&&b.push(E(l));for(n=i=b.length,i&&b.push(S);n<h;){for(s=m,a=0;a<h;++a)e<=(l=t[a])&&l<s&&(s=l);for(s-e>x((m-r)/(d=n+1))&&k("overflow"),r+=(s-e)*d,e=s,a=0;a<h;++a)if((l=t[a])<e&&++r>m&&k("overflow"),l==e){for(u=r,f=v;!(u<(c=f<=o?g:o+w<=f?w:f-o));f+=v)y=u-c,p=v-c,b.push(E(I(c+y%p,0))),u=x(y/p);b.push(E(I(u,0))),o=T(r,d,n==i),r=0,++n}++r,++e}return b.join("")}if(i={version:"1.4.1",ucs2:{decode:M,encode:j},decode:y,encode:b,toASCII:function(t){return p(t,function(t){return f.test(t)?"xn--"+b(t):t})},toUnicode:function(t){return p(t,function(t){return u.test(t)?y(t.slice(4).toLowerCase()):t})}},"function"==typeof define&&"object"==O(define.amd)&&define.amd)define("punycode",function(){return i});else if(e&&r)if(B.exports==e)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);else t.punycode=i}(void 0)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],132:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var o=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,u,f=t.length;0<a&&a<f&&(f=a);for(var c=0;c<f;++c){var l,h,d,p,y=t[c].replace(o,"%20"),b=y.indexOf(r);h=0<=b?(l=y.substr(0,b),y.substr(b+1)):(l=y,""),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(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],133:[function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(t){switch(o(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(r,n,i,t){return n=n||"&",i=i||"=",null===r&&(r=void 0),"object"===o(r)?u(f(r),function(t){var e=encodeURIComponent(a(t))+i;return s(r[t])?u(r[t],function(t){return e+encodeURIComponent(a(t))}).join(n):e+encodeURIComponent(a(r[t]))}).join(n):t?encodeURIComponent(a(t))+i+encodeURIComponent(a(r)):""};var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function u(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var f=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],134:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":132,"./encode":133}],135:[function(e,r,t){(function(i,t){"use strict";var o=e("safe-buffer").Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?r.exports=function(t,e){if(4294967295<t)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(t);if(0<t)if(65536<t)for(var n=0;n<t;n+=65536)a.getRandomValues(r.slice(n,n+65536));else a.getRandomValues(r);return"function"!=typeof e?r:i.nextTick(function(){e(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,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":153}],136:[function(r,t,d){(function(a,i){"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=r("safe-buffer"),s=r("randombytes"),o=e.Buffer,n=e.kMaxLength,u=i.crypto||i.msCrypto,f=Math.pow(2,32)-1;function c(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(f<t||t<0)throw new TypeError("offset must be a uint32");if(n<t||e<t)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(f<t||t<0)throw new TypeError("size must be a uint32");if(r<t+e||n<t)throw new RangeError("buffer too small")}function h(r,n,t,i){if(a.browser){var e=r.buffer,o=new Uint8Array(e,n,t);return u.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return s(t).copy(r,n),r;s(t,function(t,e){if(t)return i(t);e.copy(r,n),i(null,r)})}u&&u.getRandomValues||!a.browser?(d.randomFill=function(t,e,r,n){if(!(o.isBuffer(t)||t instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)n=e,e=0,r=t.length;else if("function"==typeof r)n=r,r=t.length-e;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return c(e,t.length),l(r,e,t.length),h(t,e,r,n)},d.randomFillSync=function(t,e,r){void 0===e&&(e=0);if(!(o.isBuffer(t)||t instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(e,t.length),void 0===r&&(r=t.length-e);return l(r,e,t.length),h(t,e,r)}):(d.randomFill=t,d.randomFillSync=t)}).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(t,e,r){"use strict";e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":138}],138:[function(t,e,r){"use strict";var n=t("process-nextick-args"),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=l;var o=t("core-util-is");o.inherits=t("inherits");var a=t("./_stream_readable"),s=t("./_stream_writable");o.inherits(l,a);for(var u=i(s.prototype),f=0;f<u.length;f++){var c=u[f];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(t){t.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(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},{"./_stream_readable":140,"./_stream_writable":142,"core-util-is":53,inherits:104,"process-nextick-args":123}],139:[function(t,e,r){"use strict";e.exports=o;var n=t("./_stream_transform"),i=t("core-util-is");function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=t("inherits"),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":141,"core-util-is":53,inherits:104}],140:[function(B,U,t){(function(b,t){"use strict";var m=B("process-nextick-args");U.exports=h;var a,v=B("isarray");h.ReadableState=o;B("events").EventEmitter;var g=function(t,e){return t.listeners(e).length},i=B("./internal/streams/stream"),f=B("safe-buffer").Buffer,c=t.Uint8Array||function(){};var e=B("core-util-is");e.inherits=B("inherits");var r=B("util"),w=void 0;w=r&&r.debuglog?r.debuglog("stream"):function(){};var s,u=B("./internal/streams/BufferList"),n=B("./internal/streams/destroy");e.inherits(h,i);var l=["error","close","destroy","pause","resume"];function o(t,e){t=t||{};var r=e instanceof(a=a||B("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=B("string_decoder/").StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function h(t){if(a=a||B("./_stream_duplex"),!(this instanceof h))return new h(t);this._readableState=new o(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function d(t,e,r,n,i){var o,a,s,u=t._readableState;null===e?(u.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,A(t)}(t,u)):(i||(o=function(t,e){var r;n=e,f.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,e)),o?t.emit("error",o):u.objectMode||e&&0<e.length?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===f.prototype||(a=e,e=f.from(a)),n?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):p(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?p(t,u,e,!1):x(t,u)):p(t,u,e,!1))):n||(u.reading=!1));return!(s=u).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function p(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&A(t)),x(t,e)}Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),h.prototype.destroy=n.destroy,h.prototype._undestroy=n.undestroy,h.prototype._destroy=function(t,e){this.push(null),e(t)},h.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=f.from(t,e),e=""),r=!0),d(this,t,e,!1,r)},h.prototype.unshift=function(t){return d(this,t,null,!0,!1)},h.prototype.isPaused=function(){return!1===this._readableState.flowing},h.prototype.setEncoding=function(t){return s||(s=B("string_decoder/").StringDecoder),this._readableState.decoder=new s(t),this._readableState.encoding=t,this};var y=8388608;function _(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=(y<=(r=t)?r=y:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var r}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?m.nextTick(S,t):S(t))}function S(t){w("emit readable"),t.emit("readable"),j(t)}function x(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(E,t,e))}function E(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(w("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function k(t){w("readable nexttick read 0"),t.read(0)}function M(t,e){e.reading||(w("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(w("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(a);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=f.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=o.slice(a);break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function T(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,m.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}h.prototype.read=function(t){w("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):A(this),null;if(0===(t=_(t,e))&&e.ended)return 0===e.length&&T(this),null;var n,i=e.needReadable;return w("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&w("length less than watermark",i=!0),e.ended||e.reading?w("reading or ended",i=!1):i&&(w("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=_(r,e))),null===(n=0<t?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&T(this)),null!==n&&this.emit("data",n),n},h.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},h.prototype.pipe=function(r,t){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,t);var e=(!t||!1!==t.end)&&r!==b.stdout&&r!==b.stderr?a:y;function o(t,e){w("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.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",y),n.removeListener("data",l),f=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function a(){w("onend"),r.end()}i.endEmitted?m.nextTick(e):n.once("end",e),r.on("unpipe",o);var s,u=(s=n,function(){var t=s._readableState;w("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&g(s,"data")&&(t.flowing=!0,j(s))});r.on("drain",u);var f=!1;var c=!1;function l(t){w("ondata"),(c=!1)!==r.write(t)||c||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==O(i.pipes,r))&&!f&&(w("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function h(t){w("onerror",t),y(),r.removeListener("error",h),0===g(r,"error")&&r.emit("error",t)}function d(){r.removeListener("finish",p),y()}function p(){w("onfinish"),r.removeListener("close",d),y()}function y(){w("unpipe"),n.unpipe(r)}return n.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?v(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,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(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=O(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},h.prototype.addListener=h.prototype.on=function(t,e){var r=i.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&A(this):m.nextTick(k,this))}return r},h.prototype.resume=function(){var t,e,r=this._readableState;return r.flowing||(w("resume"),r.flowing=!0,t=this,(e=r).resumeScheduled||(e.resumeScheduled=!0,m.nextTick(M,t,e))),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(e){var r=this,n=this._readableState,i=!1;for(var t in e.on("end",function(){if(w("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),e.on("data",function(t){(w("wrapped data"),n.decoder&&(t=n.decoder.write(t)),n.objectMode&&null==t)||(n.objectMode||t&&t.length)&&(r.push(t)||(i=!0,e.pause()))}),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var o=0;o<l.length;o++)e.on(l[o],this.emit.bind(this,l[o]));return this._read=function(t){w("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(h.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),h._fromList=I}).call(this,B("_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(t,e,r){"use strict";e.exports=o;var n=t("./_stream_duplex"),i=t("core-util-is");function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:function(t,e){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)!=e&&this.push(e),n(t);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,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(t,e){s(r,t,e)}):s(this,null,null)}function s(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=t("inherits"),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},{"./_stream_duplex":138,"core-util-is":53,inherits:104}],142:[function(S,x,t){(function(t,e,r){"use strict";var m=S("process-nextick-args");function l(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}x.exports=c;var s,h=!t.browser&&-1<["v0.10","v0.9."].indexOf(t.version.slice(0,5))?r:m.nextTick;c.WritableState=f;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=e.Uint8Array||function(){};var a,u=S("./internal/streams/destroy");function w(){}function f(t,e){s=s||S("./_stream_duplex"),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.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)===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(l=r,l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,e)a=t,s=r,u=n,f=e,c=i,--s.pendingcb,u?(m.nextTick(c,f),m.nextTick(A,a,s),a._writableState.errorEmitted=!0,a.emit("error",f)):(c(f),a._writableState.errorEmitted=!0,a.emit("error",f),A(a,s));else{var o=y(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||p(t,r),n?h(d,t,r,o,i):d(t,r,o,i)}var a,s,u,f,c;var l}(e,t)},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 c(t){if(s=s||S("./_stream_duplex"),!(a.call(c,this)||this instanceof s))return new c(t);this._writableState=new f(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function _(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function d(t,e,r,n){var i,o;r||(i=t,0===(o=e).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),e.pendingcb--,n(),A(t,e)}function p(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.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,_(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new l(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback;if(_(t,e,!1,e.objectMode?1:u.length,u,f,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function y(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function b(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),A(e,r)})}function A(t,e){var r,n,i=y(e);return i&&(r=t,(n=e).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(b,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}n.inherits(c,o),f.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(f.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===c&&(t&&t._writableState instanceof f)}})):a=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,r){var n,i,o,a,s,u,f,c,l,h,d,p=this._writableState,y=!1,b=!p.objectMode&&(n=t,v.isBuffer(n)||n instanceof g);return b&&!v.isBuffer(t)&&(i=t,t=v.from(i)),"function"==typeof e&&(r=e,e=null),b?e="buffer":e||(e=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)):(b||(o=this,a=p,u=r,c=!(f=!0),null===(s=t)?c=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(o.emit("error",c),m.nextTick(u,c),f=!1),f))&&(p.pendingcb++,y=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=v.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else _(t,e,!1,s,n,i,o);return u}(this,p,b,t,e,r)),y},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||p(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,A(t,e),r&&(e.finished?m.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=u.destroy,c.prototype._undestroy=u.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).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(t,e,r){"use strict";var s=t("safe-buffer").Buffer,n=t("util");e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var e,r,n,i=s.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,e.copy(r,n),a+=o.data.length,o=o.next;return i},t}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":153,util:21}],144:[function(t,e,r){"use strict";var o=t("process-nextick-args");function a(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),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(t,e,r){"use strict";e.exports=t("events").EventEmitter},{events:86}],146:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.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(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=l,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(1<t.lastNeed&&1<e.length){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(2<t.lastNeed&&2<e.length&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}(r.StringDecoder=o).prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);if(0<=i)return 0<i&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(0<=(i=a(e[n])))return 0<i&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(0<=(i=a(e[n])))return 0<i&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":153}],147:[function(t,e,r){"use strict";e.exports=t("./readable").PassThrough},{"./readable":148}],148:[function(t,e,r){"use strict";(((r=e.exports=t("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./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(t,e,r){"use strict";e.exports=t("./readable").Transform},{"./readable":148}],150:[function(t,e,r){"use strict";e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":142}],151:[function(t,e,r){"use strict";function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(o){var u,t=Object.prototype,f=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function a(t,e,r,n){var o,a,s,u,i=e&&e.prototype instanceof m?e:m,f=Object.create(i.prototype),c=new M(n||[]);return f._invoke=(o=t,a=r,s=c,u=h,function(t,e){if(u===p)throw new Error("Generator is already running");if(u===y){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r){var n=x(r,s);if(n){if(n===b)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(u===h)throw u=y,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?y:d,i.arg===b)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(u=y,s.method="throw",s.arg=i.arg)}}),f}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}o.wrap=a;var h="suspendedStart",d="suspendedYield",p="executing",y="completed",b={};function m(){}function s(){}function c(){}var v={};v[i]=function(){return this};var g=Object.getPrototypeOf,w=g&&g(g(j([])));w&&w!==t&&f.call(w,i)&&(v=w);var _=c.prototype=m.prototype=Object.create(v);function A(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(u){var e;this._invoke=function(r,n){function t(){return new Promise(function(t,e){!function e(t,r,n,i){var o=l(u[t],u,r);if("throw"!==o.type){var a=o.arg,s=a.value;return s&&"object"===T(s)&&f.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):Promise.resolve(s).then(function(t){a.value=t,n(a)},function(t){return e("throw",t,n,i)})}i(o.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}}function x(t,e){var r=t.iterator[e.method];if(r===u){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=u,x(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,b;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,b):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(f.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=u,t.done=!0,t};return n.next=n}}return{next:I}}function I(){return{value:u,done:!0}}return s.prototype=_.constructor=c,c.constructor=s,c[n]=s.displayName="GeneratorFunction",o.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===s||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,n in t||(t[n]="GeneratorFunction")),t.prototype=Object.create(_),t},o.awrap=function(t){return{__await:t}},A(S.prototype),S.prototype[r]=function(){return this},o.AsyncIterator=S,o.async=function(t,e,r,n){var i=new S(a(t,e,r,n));return o.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},A(_),_[n]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},o.keys=function(r){var n=[];for(var t in r)n.push(t);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},o.values=j,M.prototype={constructor:M,reset:function(t){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(k),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return o.type="throw",o.arg=r,n.next=t,e&&(n.method="next",n.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=f.call(i,"catchLoc"),s=f.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&f.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=u),b}},o}("object"===(void 0===e?"undefined":T(e))?e.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},{}],152:[function(t,e,r){"use strict";var n=t("buffer").Buffer,i=t("inherits"),o=t("hash-base"),b=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],A=[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(t,e){return t<<e|t>>>32-e}function x(t,e,r,n,i,o,a,s){return S(t+(e^r^n)+o+a|0,s)+i|0}function E(t,e,r,n,i,o,a,s){return S(t+(e&r|~e&n)+o+a|0,s)+i|0}function k(t,e,r,n,i,o,a,s){return S(t+((e|~r)^n)+o+a|0,s)+i|0}function M(t,e,r,n,i,o,a,s){return S(t+(e&n|r&~n)+o+a|0,s)+i|0}function j(t,e,r,n,i,o,a,s){return S(t+(e^(r|~n))+o+a|0,s)+i|0}i(a,o),a.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);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,f=0|this._c,c=0|this._d,l=0|this._e,h=0;h<80;h+=1){var d,p;p=h<16?(d=x(r,n,i,o,a,t[m[h]],_[0],g[h]),j(s,u,f,c,l,t[v[h]],A[0],w[h])):h<32?(d=E(r,n,i,o,a,t[m[h]],_[1],g[h]),M(s,u,f,c,l,t[v[h]],A[1],w[h])):h<48?(d=k(r,n,i,o,a,t[m[h]],_[2],g[h]),k(s,u,f,c,l,t[v[h]],A[2],w[h])):h<64?(d=M(r,n,i,o,a,t[m[h]],_[3],g[h]),E(s,u,f,c,l,t[v[h]],A[3],w[h])):(d=j(r,n,i,o,a,t[m[h]],_[4],g[h]),x(s,u,f,c,l,t[v[h]],A[4],w[h])),r=a,a=o,o=S(i,10),i=n,n=d,s=l,l=c,c=S(f,10),f=u,u=p}var y=this._b+i+c|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+f|0,this._a=y},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 t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},e.exports=a},{buffer:50,"hash-base":88,inherits:104}],153:[function(t,e,r){"use strict";var n=t("buffer"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:50}],154:[function(t,e,r){"use strict";var c=t("safe-buffer").Buffer;function n(t,e){this._block=c.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}n.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=c.from(t,e));for(var r=this._block,n=this._blockSize,i=t.length,o=this._len,a=0;a<i;){for(var s=o%n,u=Math.min(i-a,n-s),f=0;f<u;f++)r[s+f]=t[a+f];a+=u,(o+=u)%n==0&&this._update(r)}return this._len+=i,this},n.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=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 t?o.toString(t):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},{"safe-buffer":153}],155:[function(t,e,r){"use strict";var n=e.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":156,"./sha1":157,"./sha224":158,"./sha256":159,"./sha384":160,"./sha512":161}],156:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./hash"),o=t("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(t){for(var e,r,n,i,o,a,s=this._w,u=0|this._a,f=0|this._b,c=0|this._c,l=0|this._d,h=0|this._e,d=0;d<16;++d)s[d]=t.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 y=~~(p/20),b=0|((a=u)<<5|a>>>27)+(n=f,i=c,o=l,0===(r=y)?n&i|~n&o:2===r?n&i|n&o|i&o:n^i^o)+h+s[p]+m[y];h=l,l=c,c=(e=f)<<30|e>>>2,f=u,u=b}this._a=u+this._a|0,this._b=f+this._b|0,this._c=c+this._c|0,this._d=l+this._d|0,this._e=h+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],157:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./hash"),o=t("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(t){for(var e,r,n,i,o,a,s,u=this._w,f=0|this._a,c=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0;p<16;++p)u[p]=t.readInt32BE(4*p);for(;p<80;++p)u[p]=(e=u[p-3]^u[p-8]^u[p-14]^u[p-16])<<1|e>>>31;for(var y=0;y<80;++y){var b=~~(y/20),m=0|((s=f)<<5|s>>>27)+(i=c,o=l,a=h,0===(n=b)?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a)+d+u[y]+v[b];d=h,h=l,l=(r=c)<<30|r>>>2,c=f,f=m}this._a=f+this._a|0,this._b=c+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 t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],158:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./sha256"),o=t("./hash"),a=t("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 t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=u},{"./hash":154,"./sha256":159,inherits:104,"safe-buffer":153}],159:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./hash"),o=t("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(t){for(var e,r,n,i,o,a,s,u=this._w,f=0|this._a,c=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,y=0|this._g,b=0|this._h,m=0;m<16;++m)u[m]=t.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]+(((e=u[m-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+u[m-16];for(var v=0;v<64;++v){var g=b+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((a=y)^d&(p^a))+_[v]+u[v]|0,w=0|(((o=f)>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=f)&(i=c)|l&(n|i));b=y,y=p,p=d,d=h+g|0,h=l,l=c,c=f,f=g+w|0}this._a=f+this._a|0,this._b=c+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=y+this._g|0,this._h=b+this._h|0},s.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],160:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./sha512"),o=t("./hash"),a=t("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 t(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),n},e.exports=u},{"./hash":154,"./sha512":161,inherits:104,"safe-buffer":153}],161:[function(t,e,r){"use strict";var n=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,tt=[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 et(t,e,r){return r^t&(e^r)}function rt(t,e,r){return t&e|r&(t|e)}function nt(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function it(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function ot(t,e){return t>>>0<e>>>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(t){for(var e,r,n,i,o,a,s,u,f=this._w,c=0|this._ah,l=0|this._bh,h=0|this._ch,d=0|this._dh,p=0|this._eh,y=0|this._fh,b=0|this._gh,m=0|this._hh,v=0|this._al,g=0|this._bl,w=0|this._cl,_=0|this._dl,A=0|this._el,S=0|this._fl,x=0|this._gl,E=0|this._hl,k=0;k<32;k+=2)f[k]=t.readInt32BE(4*k),f[k+1]=t.readInt32BE(4*k+4);for(;k<160;k+=2){var M=f[k-30],j=f[k-30+1],I=((s=M)>>>1|(u=j)<<31)^(s>>>8|u<<24)^s>>>7,T=((o=j)>>>1|(a=M)<<31)^(o>>>8|a<<24)^(o>>>7|a<<25);M=f[k-4],j=f[k-4+1];var R=((n=M)>>>19|(i=j)<<13)^(i>>>29|n<<3)^n>>>6,O=((e=j)>>>19|(r=M)<<13)^(r>>>29|e<<3)^(e>>>6|r<<26),B=f[k-14],U=f[k-14+1],C=f[k-32],N=f[k-32+1],P=T+U|0,L=I+B+ot(P,T)|0;L=(L=L+R+ot(P=P+O|0,O)|0)+C+ot(P=P+N|0,N)|0,f[k]=L,f[k+1]=P}for(var F=0;F<160;F+=2){L=f[F],P=f[F+1];var D=rt(c,l,h),q=rt(v,g,w),z=nt(c,v),H=nt(v,c),K=it(p,A),V=it(A,p),G=tt[F],W=tt[F+1],Y=et(p,y,b),X=et(A,S,x),J=E+V|0,Z=m+K+ot(J,E)|0;Z=(Z=(Z=Z+Y+ot(J=J+X|0,X)|0)+G+ot(J=J+W|0,W)|0)+L+ot(J=J+P|0,P)|0;var $=H+q|0,Q=z+D+ot($,H)|0;m=b,E=x,b=y,x=S,y=p,S=A,p=d+Z+ot(A=_+J|0,_)|0,d=h,_=w,h=l,w=g,l=c,g=v,c=Z+Q+ot(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+A|0,this._fl=this._fl+S|0,this._gl=this._gl+x|0,this._hl=this._hl+E|0,this._ah=this._ah+c+ot(this._al,v)|0,this._bh=this._bh+l+ot(this._bl,g)|0,this._ch=this._ch+h+ot(this._cl,w)|0,this._dh=this._dh+d+ot(this._dl,_)|0,this._eh=this._eh+p+ot(this._el,A)|0,this._fh=this._fh+y+ot(this._fl,S)|0,this._gh=this._gh+b+ot(this._gl,x)|0,this._hh=this._hh+m+ot(this._hl,E)|0},s.prototype._hash=function(){var n=o.allocUnsafe(64);function t(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),n},e.exports=s},{"./hash":154,inherits:104,"safe-buffer":153}],162:[function(t,e,r){"use strict";e.exports=n;var c=t("events").EventEmitter;function n(){c.call(this)}t("inherits")(n,c),n.Readable=t("readable-stream/readable.js"),n.Writable=t("readable-stream/writable.js"),n.Duplex=t("readable-stream/duplex.js"),n.Transform=t("readable-stream/transform.js"),n.PassThrough=t("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(t){if(f(),0===c.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},{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,t,i){(function(u){"use strict";var f=r("./lib/request"),t=r("./lib/response"),c=r("xtend"),e=r("builtin-status-codes"),l=r("url"),n=i;n.request=function(t,e){t="string"==typeof t?l.parse(t):c(t);var r=-1===u.location.protocol.search(/^https?:$/)?"http:":"",n=t.protocol||r,i=t.hostname||t.host,o=t.port,a=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?n+"//"+i:"")+(o?":"+o:"")+a,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new f(t);return e&&s.on("response",e),s},n.get=function(t,e){var r=n.request(t,e);return r.end(),r},n.ClientRequest=f,n.IncomingMessage=t.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=e,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(t,e,o){(function(t){"use strict";var e;function r(){if(void 0!==e)return e;if(t.XMLHttpRequest){e=new t.XMLHttpRequest;try{e.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){e=null}}else e=null;return e}function n(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}function i(t){return"function"==typeof t}o.fetch=i(t.fetch)&&i(t.ReadableStream),o.writableStream=i(t.WritableStream),o.abortController=i(t.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),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],165:[function(o,h,t){(function(u,f,a){"use strict";var c=o("./capability"),t=o("inherits"),e=o("./response"),s=o("readable-stream"),r=e.IncomingMessage,l=e.readyStates;var n=h.exports=function(e){var t,r=this;s.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+a.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i,o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!c.abortController)t=!(o=!1);else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!c.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=(n=t,i=o,c.fetch&&i?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&n?"arraybuffer":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};t(n,s.Writable),n.prototype.setHeader=function(t,e){var r=t.toLowerCase();-1===i.indexOf(r)&&(this._headers[r]={name:t,value:e})},n.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},n.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},n.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,r=null;"GET"!==t.method&&"HEAD"!==t.method&&(r=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var i=[];if(Object.keys(n).forEach(function(t){var e=n[t].name,r=n[t].value;Array.isArray(r)?r.forEach(function(t){i.push([e,t])}):i.push([e,r])}),"fetch"===e._mode){var o=null;if(c.abortController){var a=new AbortController;o=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=f.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}f.fetch(e._opts.url,{method:e._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:o}).then(function(t){e._fetchResponse=t,e._connect()},function(t){f.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var s=e._xhr=new f.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(t){return void u.nextTick(function(){e.emit("error",t)})}"responseType"in s&&(s.responseType=e._mode),"withCredentials"in s&&(s.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(s.timeout=t.requestTimeout,s.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(t){s.setRequestHeader(t[0],t[1])}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{s.send(r)}catch(t){return void u.nextTick(function(){e.emit("error",t)})}}}},n.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},n.prototype._connect=function(){var e=this;e._destroyed||(e._response=new r(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},n.prototype._write=function(t,e,r){this._body.push(t),r()},n.prototype.abort=n.prototype.destroy=function(){this._destroyed=!0,f.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},n.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),s.Writable.prototype.end.call(this,t,e,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,t,n){(function(f,c,l){"use strict";var h=r("./capability"),t=r("inherits"),d=r("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},e=n.IncomingMessage=function(t,e,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(){f.nextTick(function(){i.emit("close")})}),"fetch"===r){if(i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText,e.headers.forEach(function(t,e){i.headers[e.toLowerCase()]=t,i.rawHeaders.push(e,t)}),h.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(t,e){i._destroyed?e():i.push(l.from(r))?t():i._resumeFetch=t})},close:function(){c.clearTimeout(n),i._destroyed||i.push(null)},abort:function(t){i._destroyed||i.emit("error",t)}});try{return void e.body.pipeTo(o).catch(function(t){c.clearTimeout(n),i._destroyed||i.emit("error",t)})}catch(t){}}var a=e.body.getReader();!function e(){a.read().then(function(t){if(!i._destroyed){if(t.done)return c.clearTimeout(n),void i.push(null);i.push(l.from(t.value)),e()}}).catch(function(t){c.clearTimeout(n),i._destroyed||i.emit("error",t)})}()}else{if(i._xhr=t,i._pos=0,i.url=t.responseURL,i.statusCode=t.status,i.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(e[2])):void 0!==i.headers[r]?i.headers[r]+=", "+e[2]:i.headers[r]=e[2],i.rawHeaders.push(e[1],e[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")}}};t(e,d.Readable),e.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},e.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text":if((r=e.responseText).length>t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var i=l.alloc(n.length),o=0;o<n.length;o++)i[o]=255&n.charCodeAt(o);t.push(i)}else t.push(n,t._charset);t._pos=r.length}break;case"arraybuffer":if(e.readyState!==s.DONE||!e.response)break;r=e.response,t.push(l.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=e.response,e.readyState!==s.LOADING||!r)break;t.push(l.from(new Uint8Array(r)));break;case"ms-stream":if(r=e.response,e.readyState!==s.LOADING)break;var a=new c.MSStreamReader;a.onprogress=function(){a.result.byteLength>t._pos&&(t.push(l.from(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(r)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&t.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(t,e,r){"use strict";function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n={};function i(t,s,e){e||(e=Error);var r=function(a){var t,e;function r(t,e,r){return a.call(this,(n=t,i=e,o=r,"string"==typeof s?s:s(n,i,o)))||this;var n,i,o}return e=a,(t=r).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,r}(e);r.prototype.name=e.name,r.prototype.code=t,n[t]=r}function y(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),2<r?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,r){var n,i,o,a,s,u,f,c,l,h;if("string"==typeof e&&(i="not ",e.substr(!o||o<0?0:+o,i.length)===i)?(n="must not be",e=e.replace(/^not /,"")):n="must be",c=t,l=" argument",(void 0===h||h>c.length)&&(h=c.length),c.substring(h-l.length,h)===l)a="The ".concat(t," ").concat(n," ").concat(y(e,"type"));else{var d=("number"!=typeof f&&(f=0),f+(u=".").length>(s=t).length||-1===s.indexOf(u,f)?"argument":"property");a='The "'.concat(t,'" ').concat(d," ").concat(n," ").concat(y(e,"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(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" 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(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],168:[function(t,e,r){(function(r){"use strict";var n=new Set;e.exports.emitExperimentalWarning=r.emitWarning?function(t){if(!n.has(t)){var e=t+" is an experimental feature. This feature could change at any time";n.add(t),r.emitWarning(e,"ExperimentalWarning")}}:function(){}}).call(this,t("_process"))},{_process:124}],169:[function(c,l,t){(function(t){"use strict";var e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};l.exports=s;var r=c("./_stream_readable"),n=c("./_stream_writable");c("inherits")(s,r);for(var i=e(n.prototype),o=0;o<i.length;o++){var a=i[o];s.prototype[a]||(s.prototype[a]=n.prototype[a])}function s(t){if(!(this instanceof s))return new s(t);r.call(this,t),n.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(f,this)}function f(t){t.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(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,c("_process"))},{"./_stream_readable":171,"./_stream_writable":173,_process:124,inherits:104}],170:[function(t,e,r){"use strict";e.exports=i;var n=t("./_stream_transform");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t("inherits")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":172,inherits:104}],171:[function(F,D,t){(function(y,t){"use strict";var n;(D.exports=A).ReadableState=_;F("events").EventEmitter;var b=function(t,e){return t.listeners(e).length},i=F("./internal/streams/stream"),u=F("buffer").Buffer,f=t.Uint8Array||function(){};var m,e=F("util");m=e&&e.debuglog?e.debuglog("stream"):function(){};var o,r,a=F("./internal/streams/buffer_list"),s=F("./internal/streams/destroy"),c=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")(A,i);var w=["error","close","destroy","pause","resume"];function _(t,e,r){n=n||F("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=e instanceof n),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=c(this,t,"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!==t.emitClose,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o||(o=F("string_decoder/").StringDecoder),this.decoder=new o(t.encoding),this.encoding=t.encoding)}function A(t){if(n=n||F("./_stream_duplex"),!(this instanceof A))return new A(t);var e=this instanceof n;this._readableState=new _(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function S(t,e,r,n,i){m("readableAddChunk",e);var o,a,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?M(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}(t,s);else if(i||(o=function(t,e){var r;n=e,u.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new h("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(s,e)),o)t.emit("error",o);else if(s.objectMode||e&&0<e.length)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(a=e,e=u.from(a)),n)s.endEmitted?t.emit("error",new v):x(t,s,e,!0);else if(s.ended)t.emit("error",new d);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?x(t,s,e,!1):I(t,s)):x(t,s,e,!1)}else n||(s.reading=!1,I(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function x(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&M(t)),I(t,e)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),A.prototype.destroy=s.destroy,A.prototype._undestroy=s.undestroy,A.prototype._destroy=function(t,e){e(t)},A.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),S(this,t,e,!1,r)},A.prototype.unshift=function(t){return S(this,t,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(t){return o||(o=F("string_decoder/").StringDecoder),this._readableState.decoder=new o(t),this._readableState.encoding=this._readableState.decoder.encoding,this};var E=8388608;function k(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=(E<=(r=t)?r=E:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var r}function M(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,y.nextTick(j,t))}function j(t){var e=t._readableState;m("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||t.emit("readable"),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function I(t,e){e.readingMore||(e.readingMore=!0,y.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(m("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function R(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function O(t){m("readable nexttick read 0"),t.read(0)}function B(t,e){m("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(m("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;m("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,y.nextTick(P,e,t))}function P(t,e){m("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}A.prototype.read=function(t){m("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:0<e.length)||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):M(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&m("length less than watermark",i=!0),e.ended||e.reading?m("reading or ended",i=!1):i&&(m("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(r,e))),null===(n=0<t?C(t,e):null)?(e.needReadable=!0,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(t){this.emit("error",new p("_read()"))},A.prototype.pipe=function(r,t){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,t);var e=(!t||!1!==t.end)&&r!==y.stdout&&r!==y.stderr?a:p;function o(t,e){m("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.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",c),f=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||u())}function a(){m("onend"),r.end()}i.endEmitted?y.nextTick(e):n.once("end",e),r.on("unpipe",o);var s,u=(s=n,function(){var t=s._readableState;m("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&b(s,"data")&&(t.flowing=!0,U(s))});r.on("drain",u);var f=!1;function c(t){m("ondata");var e=r.write(t);m("dest.write",e),!1===e&&((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==L(i.pipes,r))&&!f&&(m("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function l(t){m("onerror",t),p(),r.removeListener("error",l),0===b(r,"error")&&r.emit("error",t)}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",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(r,"error",l),r.once("close",h),r.once("finish",d),r.emit("pipe",n),i.flowing||(m("pipe resume"),n.resume()),r},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},A.prototype.addListener=A.prototype.on=function(t,e){var r=i.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=0<this.listenerCount("readable"),!1!==n.flowing&&this.resume()):"readable"===t&&(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||y.nextTick(O,this))),r},A.prototype.removeListener=function(t,e){var r=i.prototype.removeListener.call(this,t,e);return"readable"===t&&y.nextTick(R,this),r},A.prototype.removeAllListeners=function(t){var e=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||y.nextTick(R,this),e},A.prototype.resume=function(){var t,e,r=this._readableState;return r.flowing||(m("resume"),r.flowing=!r.readableListening,t=this,(e=r).resumeScheduled||(e.resumeScheduled=!0,y.nextTick(B,t,e))),r.paused=!1,this},A.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},A.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;for(var t in e.on("end",function(){if(m("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),e.on("data",function(t){(m("wrapped data"),n.decoder&&(t=n.decoder.write(t)),n.objectMode&&null==t)||(n.objectMode||t&&t.length)&&(r.push(t)||(i=!0,e.pause()))}),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var o=0;o<w.length;o++)e.on(w[o],this.emit.bind(this,w[o]));return this._read=function(t){m("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return g("Readable[Symbol.asyncIterator]"),void 0===r&&(r=F("./internal/streams/async_iterator")),r(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),A._fromList=C,Object.defineProperty(A.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(t,e,r){"use strict";e.exports=f;var n=t("../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=t("./_stream_duplex");function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:function(t,e){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)!=e&&this.push(e),n(t);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,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,e){l(r,t,e)})}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}t("inherits")(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new i("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},{"../errors":167,"./_stream_duplex":169,inherits:104}],173:[function(I,T,t){(function(b,t){"use strict";function l(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var i;(T.exports=y).WritableState=p;var e={deprecate:I("util-deprecate")},r=I("./internal/streams/stream"),m=I("buffer").Buffer,v=t.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,f=s.ERR_STREAM_CANNOT_PIPE,c=s.ERR_STREAM_DESTROYED,w=s.ERR_STREAM_NULL_VALUES,_=s.ERR_STREAM_WRITE_AFTER_END,d=s.ERR_UNKNOWN_ENCODING;function A(){}function p(t,e,r){i=i||I("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=a(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._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,e)a=t,s=r,u=n,f=e,c=i,--s.pendingcb,u?(b.nextTick(c,f),b.nextTick(j,a,s),a._writableState.errorEmitted=!0,a.emit("error",f)):(c(f),a._writableState.errorEmitted=!0,a.emit("error",f),j(a,s));else{var o=k(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||E(t,r),n?b.nextTick(x,t,r,o,i):x(t,r,o,i)}var a,s,u,f,c;var l}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function y(t){var e=this instanceof(i=i||I("./_stream_duplex"));if(!e&&!n.call(y,this))return new y(t);this._writableState=new p(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),r.call(this)}function S(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new c("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function x(t,e,r,n){var i,o;r||(i=t,0===(o=e).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),e.pendingcb--,n(),j(t,e)}function E(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.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(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new l(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback;if(S(t,e,!1,e.objectMode?1:u.length,u,f,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),j(e,r)})}function j(t,e){var r,n,i=k(e);return i&&(r=t,(n=e).prefinished||n.finalCalled||("function"!=typeof r._final||n.destroyed?(n.prefinished=!0,r.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,b.nextTick(M,r,n))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}I("inherits")(y,r),p.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(p.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!n.call(this,t)||this===y&&(t&&t._writableState instanceof p)}})):n=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new f)},y.prototype.write=function(t,e,r){var n,i,o,a,s,u,f,c,l,h,d=this._writableState,p=!1,y=!d.objectMode&&(n=t,m.isBuffer(n)||n instanceof v);return y&&!m.isBuffer(t)&&(i=t,t=m.from(i)),"function"==typeof e&&(r=e,e=null),y?e="buffer":e||(e=d.defaultEncoding),"function"!=typeof r&&(r=A),d.ending?(c=this,l=r,h=new _,c.emit("error",h),b.nextTick(l,h)):(y||(o=this,a=d,u=r,null===(s=t)?f=new w:"string"==typeof s||a.objectMode||(f=new g("chunk",["string","Buffer"],s)),!f||(o.emit("error",f),b.nextTick(u,f),0)))&&(d.pendingcb++,p=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=m.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else S(t,e,!1,s,n,i,o);return u}(this,d,y,t,e,r)),p},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new d(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new u("_write()"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,j(t,e),r&&(e.finished?b.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=o.destroy,y.prototype._undestroy=o.undestroy,y.prototype._destroy=function(t,e){e(t)}}).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,b,t){(function(s){"use strict";var t;function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=n("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var r=t[h].read();null!==r&&(t[c]=null,t[o]=null,t[a]=null,e(d(r,!1)))}}var e=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((r(t={get stream(){return this[h]},next:function(){var r=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(t,e){s.nextTick(function(){r[u]?e(r[u]):t(d(void 0,!0))})});var e,n,i,o=this[c];if(o)e=new Promise((n=o,i=this,function(t,e){n.then(function(){i[f]?t(d(void 0,!0)):i[l](t,e)},e)}));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));e=new Promise(this[l])}return this[c]=e}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var t=this;return new Promise(function(e,r){t[h].destroy(null,function(t){t?r(t):e(d(void 0,!0))})})}),t),e);b.exports=function(t){var e,n=Object.create(y,(r(e={},h,{value:t,writable:!0}),r(e,o,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,f,{value:t._readableState.endEmitted,writable:!0}),r(e,l,{value:function(t,e){var r=n[h].read();r?(n[c]=null,n[o]=null,n[a]=null,t(d(r,!1))):(n[o]=t,n[a]=e)},writable:!0}),e));return n[c]=null,i(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[a];return null!==e&&(n[c]=null,n[o]=null,n[a]=null,e(t)),void(n[u]=t)}var r=n[o];null!==r&&(n[c]=null,n[o]=null,r(d(void 0,!(n[a]=null)))),n[f]=!0}),t.on("readable",function(t){s.nextTick(p,t)}.bind(null,n)),n}}).call(this,n("_process"))},{"./end-of-stream":177,_process:124}],175:[function(t,e,r){"use strict";var s=t("buffer").Buffer,n=t("util").inspect,i=n&&n.custom||"inspect";e.exports=function(){function t(){this.head=null,this.tail=null,this.length=0}var e=t.prototype;return e.push=function(t){var e={data:t,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},e.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},e.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.clear=function(){this.head=this.tail=null,this.length=0},e.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},e.concat=function(t){if(0===this.length)return s.alloc(0);for(var e,r,n,i=s.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,s.prototype.copy.call(e,r,n),a+=o.data.length,o=o.next;return i},e.consume=function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r},e.first=function(){return this.head.data},e._getString=function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(o);break}++r}return this.length-=r,n},e._getBuffer=function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=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,e},e[i]=function(t,e){return n(this,function(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,r,n;e=i,n=o[r=t],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return i}({},e,{depth:0,customInspect:!1}))},t}()},{buffer:50,util:21}],176:[function(t,e,r){(function(o){"use strict";function a(t,e){u(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function u(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(u,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e?(o.nextTick(s,r),e(t)):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,t("_process"))},{_process:124}],177:[function(t,e,r){"use strict";var m=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function v(){}e.exports=function t(e,r,n){if("function"==typeof r)return t(e,null,r);var i,o;r||(r={}),i=n||v,o=!1,n=function(){if(!o){o=!0;for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];i.apply(this,e)}};var a,s=r.readable||!1!==r.readable&&e.readable,u=r.writable||!1!==r.writable&&e.writable,f=function(){e.writable||l()},c=e._writableState&&e._writableState.finished,l=function(){c=!(u=!1),s||n.call(e)},h=e._readableState&&e._readableState.endEmitted,d=function(){h=!(s=!1),u||n.call(e)},p=function(t){n.call(e,t)},y=function(){var t;return s&&!h?(e._readableState&&e._readableState.ended||(t=new m),n.call(e,t)):u&&!c?(e._writableState&&e._writableState.ended||(t=new m),n.call(e,t)):void 0},b=function(){e.req.on("finish",l)};return(a=e).setHeader&&"function"==typeof a.abort?(e.on("complete",l),e.on("abort",y),e.req?b():e.on("request",b)):u&&!e._writableState&&(e.on("end",f),e.on("close",f)),e.on("end",d),e.on("finish",l),!1!==r.error&&e.on("error",p),e.on("close",y),function(){e.removeListener("complete",l),e.removeListener("abort",y),e.removeListener("request",b),e.req&&e.req.removeListener("finish",l),e.removeListener("end",f),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("end",d),e.removeListener("error",p),e.removeListener("close",y)}}},{"../../../errors":167}],178:[function(u,t,e){"use strict";var f;var r=u("../../../errors").codes,s=r.ERR_MISSING_ARGS,c=r.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function h(t){t()}function d(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];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(t,e){var r=e<n.length-1;return function(r,t,e,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===f&&(f=u("./end-of-stream")),f(r,{readable:t,writable:e},function(t){if(t)return n(t);a=!0,n()});var s=!1;return function(t){var e;if(!a&&!s)return s=!0,(e=r).setHeader&&"function"==typeof e.abort?r.abort():"function"==typeof r.destroy?r.destroy():void n(t||new c("pipe"))}}(t,r,0<e,function(t){i||(i=t),t&&a.forEach(h),r||(a.forEach(h),o(i))})});return n.reduce(d)}},{"../../../errors":167,"./end-of-stream":177}],179:[function(t,e,r){"use strict";var u=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,n){var i,o,a,s=(o=n,a=r,null!=(i=e).highWaterMark?i.highWaterMark:o?i[a]:null);if(null==s)return t.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(t,e,r){arguments[4][145][0].apply(r,arguments)},{dup:145,events:86}],181:[function(t,e,r){"use strict";(((r=e.exports=t("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js"),r.finished=t("./lib/internal/streams/end-of-stream.js"),r.pipeline=t("./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(t,e,r){arguments[4][146][0].apply(r,arguments)},{dup:146,"safe-buffer":183}],183:[function(t,e,r){"use strict";var n=t("buffer"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:50}],184:[function(u,t,f){(function(t,e){"use strict";var n=u("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,o={},a=0;function s(t,e){this._id=t,this._clearFn=e}f.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(t){t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},f.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},f._unrefActive=f.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},f.setImmediate="function"==typeof t?t:function(t){var e=a++,r=!(arguments.length<2)&&i.call(arguments,1);return o[e]=!0,n(function(){o[e]&&(r?t.apply(null,r):t.call(null),f.clearImmediate(e))}),e},f.clearImmediate="function"==typeof e?e:function(t){delete o[t]}}).call(this,u("timers").setImmediate,u("timers").clearImmediate)},{"process/browser.js":124,timers:184}],185:[function(t,e,r){"use strict";function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var U=t("punycode"),C=t("./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(t,e){return o(t,!1,!0).resolve(e)},r.resolveObject=function(t,e){return t?o(t,!1,!0).resolveObject(e):e},r.format=function(t){C.isString(t)&&(t=o(t));return t instanceof M?t.format():M.prototype.format.call(t)},r.Url=M;var N=/^([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},G=t("querystring");function o(t,e,r){if(t&&C.isObject(t)&&t instanceof M)return t;var n=new M;return n.parse(t,e,r),n}M.prototype.parse=function(t,e,r){if(!C.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+B(t));var n=t.indexOf("?"),i=-1!==n&&n<t.indexOf("#")?"?":"#",o=t.split(i);o[0]=o[0].replace(/\\/g,"/");var a=t=o.join(i);if(a=a.trim(),!r&&1===t.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=e?G.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=N.exec(a);if(u){var f=(u=u[0]).toLowerCase();this.protocol=f,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&K[u]||(a=a.substr(2),this.slashes=!0)}if(!K[u]&&(c||u&&!V[u])){for(var l,h,d=-1,p=0;p<D.length;p++){-1!==(y=a.indexOf(D[p]))&&(-1===d||y<d)&&(d=y)}-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 y;-1!==(y=a.indexOf(F[p]))&&(-1===d||y<d)&&(d=y)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)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,A=g.length;_<A;_++)127<g.charCodeAt(_)?w+="x":w+=g[_];if(!w.match(q)){var S=m.slice(0,p),x=m.slice(p+1),E=g.match(z);E&&(S.push(E[1]),x.unshift(E[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=S.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),b||(this.hostname=U.toASCII(this.hostname));var k=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+k,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!H[f])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 T=a.indexOf("#");-1!==T&&(this.hash=a.substr(T),a=a.slice(0,T));var R=a.indexOf("?");if(-1!==R?(this.search=a.substr(R),this.query=a.substr(R+1),e&&(this.query=G.parse(this.query)),a=a.slice(0,R)):e&&(this.search="",this.query={}),a&&(this.pathname=a),V[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){k=this.pathname||"";var O=this.search||"";this.path=k+O}return this.href=this.format(),this},M.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&C.isObject(this.query)&&Object.keys(this.query).length&&(o=G.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||V[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},M.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},M.prototype.resolveObject=function(t){if(C.isString(t)){var e=new M;e.parse(t,!1,!0),t=e}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=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=t[u])}return V[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!V[t.protocol]){for(var f=Object.keys(t),c=0;c<f.length;c++){var l=f[c];r[l]=t[l]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||K[t.protocol])r.pathname=t.pathname;else{for(var h=(t.pathname||"").split("/");h.length&&!(t.host=h.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),m=b||y||r.host&&t.pathname,v=m,g=r.pathname&&r.pathname.split("/")||[],w=(h=t.pathname&&t.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="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===h[0]?h[0]=t.host:h.unshift(t.host)),t.host=null),m=m&&(""===h[0]||""===g[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,g=h;else if(h.length)g||(g=[]),g.pop(),g=g.concat(h),r.search=t.search,r.query=t.query;else if(!C.isNullOrUndefined(t.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=t.search,r.query=t.query,C.isNull(r.pathname)&&C.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],A=(r.host||t.host||1<g.length)&&("."===_||".."===_)||""===_,S=0,x=g.length;0<=x;x--)"."===(_=g[x])?g.splice(x,1):".."===_?(g.splice(x,1),S++):S&&(g.splice(x,1),S--);if(!m&&!v)for(;S--;S)g.unshift("..");!m||""===g[0]||g[0]&&"/"===g[0].charAt(0)||g.unshift(""),A&&"/"!==g.join("/").substr(-1)&&g.push("");var E,k=""===g[0]||g[0]&&"/"===g[0].charAt(0);w&&(r.hostname=r.host=k?"":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)&&!k&&g.unshift(""),g.length?r.pathname=g.join("/"):(r.pathname=null,r.path=null),C.isNull(r.pathname)&&C.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},M.prototype.parseHost=function(){var t=this.host,e=n.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":186,punycode:131,querystring:134}],186:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===n(t)&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],187:[function(t,e,r){(function(r){"use strict";function n(t){try{if(!r.localStorage)return!1}catch(t){return!1}var e=r.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}e.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.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(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=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(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var r=Script.createContext(e),t=this.runInContext(r);return e&&forEach(Object_keys(r),function(t){e[t]=r[t]}),t},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(t){var e=Script(t);return e[r].apply(e,[].slice.call(arguments,1))}}),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(e){var r=new Context;return"object"===_typeof(e)&&forEach(Object_keys(e),function(t){r[t]=e[t]}),r}},{}],189:[function(t,e,r){"use strict";e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var n in r)i.call(r,n)&&(t[n]=r[n])}return t};var i=Object.prototype.hasOwnProperty},{}],190:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i="%[a-f0-9]{2}",o=new RegExp(i,"gi"),s=new RegExp("("+i+")+","gi");function a(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],a(r),a(n))}function u(e){try{return decodeURIComponent(e)}catch(t){for(var r=e.match(o),n=1;n<r.length;n++)r=(e=a(r,n).join("")).match(o);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+n(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},r=s.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var n=u(r[0]);n!==r[0]&&(e[r[0]]=n)}r=s.exec(t)}e["%C2"]="�";for(var i=Object.keys(e),o=0;o<i.length;o++){var a=i[o];t=t.replace(new RegExp(a,"g"),e[a])}return t}(e)}}},{}],191:[function(t,e,r){"use strict";var n=function(t,e){for(var r=[],n=0;n<t;++n)r.push(e(n));return r};e.exports={generate:n,replicate:function(t,e){return n(t,function(){return e})},concat:function(t,e){return t.concat(e)},flatten:function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=0,o=t[r].length;i<o;++i)e.push(t[r][i]);return e},chunksOf:function(t,e){for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r}}},{}],192:[function(i,t,e){"use strict";i("./array.js");var o=function(t,e){return parseInt(t.slice(2*e+2,2*e+4),16)},a=function(t){return(t.length-2)/2},r=function(t){for(var e=[],r=2,n=t.length;r<n;r+=2)e.push(parseInt(t.slice(r,r+2),16));return e},n=function(t){for(var e="0x",r=0,n=t.length;r<n;++r){var i=t[r];e+=(i<16?"0":"")+i.toString(16)}return e};t.exports={random:function(t){var e=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)e=window.crypto.getRandomValues(new Uint8Array(t));else{if(void 0===i)throw"Safe random numbers not available.";e=i("crypto").randomBytes(t)}for(var r="0x",n=0;n<t;++n)r+=("00"+e[n].toString(16)).slice(-2);return r},length:a,concat:function(t,e){return t.concat(e.slice(2))},flatten:function(t){return"0x"+t.reduce(function(t,e){return t+e.slice(2)},"")},slice:function(t,e,r){return"0x"+r.slice(2*t+2,2*e+2)},reverse:function(t){for(var e="0x",r=0,n=a(t);r<n;++r)e+=t.slice(2*(n-r),2*(n-r+1));return e},pad:function t(e,r){return r.length===2*e+2?r:t(e,"0x0"+r.slice(2))},padRight:function t(e,r){return r.length===2*e+2?r:t(e,r+"0")},fromAscii:function(t){for(var e="0x",r=0;r<t.length;++r)e+=("00"+t.charCodeAt(r).toString(16)).slice(-2);return e},toAscii:function(t){for(var e="",r=2;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.slice(r,r+2),16));return e},fromString:function(t){for(var e=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},r="0x",n=0;n!=t.length;n++){var i=t.charCodeAt(n);if(i<128)r+=e(i);else{if(i<2048)r+=e(i>>6|192);else{if(55295<i&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||57343<o)return null;r+=e((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},toString:function(t){for(var e="",r=0,n=a(t);r<n;){var i=o(t,r++);if(127<i){if(191<i&&i<224){if(n<=r)return null;i=(31&i)<<6|63&o(t,r)}else if(223<i&&i<240){if(n<=r+1)return null;i=(15&i)<<12|(63&o(t,r))<<6|63&o(t,++r)}else{if(!(239<i&&i<248))return null;if(n<=r+2)return null;i=(7&i)<<18|(63&o(t,r))<<12|(63&o(t,++r))<<6|63&o(t,++r)}++r}if(i<=65535)e+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,e+=String.fromCharCode(i>>10|55296),e+=String.fromCharCode(1023&i|56320)}}return e},fromNumber:function(t){var e=t.toString(16);return e.length%2==0?"0x"+e:"0x0"+e},toNumber:function(t){return parseInt(t.slice(2),16)},fromNat:function(t){return"0x0"===t?"0x":t.length%2==0?t:"0x0"+t.slice(2)},toNat:function(t){return"0"===t[2]?"0x"+t.slice(3):t},fromArray:n,toArray:r,fromUint8Array:function(t){return n([].slice.call(t,0))},toUint8Array:function(t){return new Uint8Array(r(t))}}},{"./array.js":191}],193:[function(t,e,r){"use strict";var p="0123456789abcdef".split(""),y=[1,256,65536,16777216],b=[0,8,16,24],ct=[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(t){var e,r,n,i,o,a,s,u,f,c,l,h,d,p,y,b,m,v,g,w,_,A,S,x,E,k,M,j,I,T,R,O,B,U,C,N,P,L,F,D,q,z,H,K,V,G,W,Y,X,J,Z,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(h=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|f>>>31),r=o^(f<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(h<<1|d>>>31),r=f^(d<<1|h>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],y=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,st=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,m=t[12]<<12|t[13]>>>20,Y=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,B=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,D=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=y^~m&g,t[10]=x^~k&j,t[11]=E^~M&I,t[20]=U^~N&L,t[21]=C^~P&F,t[30]=K^~G&Y,t[31]=V^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~v&w,t[3]=m^~g&_,t[12]=k^~j&T,t[13]=M^~I&R,t[22]=N^~L&D,t[23]=P^~F&q,t[32]=G^~Y&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&st,t[4]=v^~w&A,t[5]=g^~_&S,t[14]=j^~T&O,t[15]=I^~R&B,t[24]=L^~D&z,t[25]=F^~q&H,t[34]=Y^~J&$,t[35]=X^~Z&Q,t[44]=it^~at&ut,t[45]=ot^~st&ft,t[6]=w^~A&p,t[7]=_^~S&y,t[16]=T^~O&x,t[17]=R^~B&E,t[26]=D^~z&U,t[27]=q^~H&C,t[36]=J^~$&K,t[37]=Z^~Q&V,t[46]=at^~ut&tt,t[47]=st^~ft&et,t[8]=A^~p&b,t[9]=S^~y&m,t[18]=O^~x&k,t[19]=B^~E&M,t[28]=z^~U&N,t[29]=H^~C&P,t[38]=$^~K&G,t[39]=Q^~V&W,t[48]=ut^~tt&rt,t[49]=ft^~et&nt,t[0]^=ct[n],t[1]^=ct[n+1]},n=function(a){return function(t){var e,r,n;if("0x"===t.slice(0,2)){e=[];for(var i=2,o=t.length;i<o;i+=2)e.push(parseInt(t.slice(i,i+2),16))}else e=t;return function(t,e){for(var r,n=e.length,i=t.blocks,o=t.blockCount<<2,a=t.blockCount,s=t.outputBlocks,u=t.s,f=0;f<n;){if(t.reset)for(t.reset=!1,i[0]=t.block,h=1;h<a+1;++h)i[h]=0;if("string"!=typeof e)for(h=t.start;f<n&&h<o;++f)i[h>>2]|=e[f]<<b[3&h++];else for(h=t.start;f<n&&h<o;++f)(r=e.charCodeAt(f))<128?i[h>>2]|=r<<b[3&h++]:(r<2048?i[h>>2]|=(192|r>>6)<<b[3&h++]:(r<55296||57344<=r?i[h>>2]|=(224|r>>12)<<b[3&h++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++f)),i[h>>2]|=(240|r>>18)<<b[3&h++],i[h>>2]|=(128|r>>12&63)<<b[3&h++]),i[h>>2]|=(128|r>>6&63)<<b[3&h++]),i[h>>2]|=(128|63&r)<<b[3&h++]);if(o<=(t.lastByteIndex=h)){for(t.start=h-o,t.block=i[a],h=0;h<a;++h)u[h]^=i[h];m(u),t.reset=!0}else t.start=h}if(i[(h=t.lastByteIndex)>>2]|=y[3&h],t.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 c,l="",h=0,d=0;d<s;){for(h=0;h<a&&d<s;++h,++d)c=u[h],l+=p[c>>4&15]+p[15&c]+p[c>>12&15]+p[c>>8&15]+p[c>>20&15]+p[c>>16&15]+p[c>>28&15]+p[c>>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))},e)}};e.exports={keccak256:n(256),keccak512:n(512),keccak256s:n(256),keccak512s:n(512)}},{}],194:[function(t,r,e){(function(t){"use strict";var e;e="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},r.exports=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],195:[function(t,e,r){"use strict";e.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},{}],196:[function(t,e,r){arguments[4][111][0].apply(r,arguments)},{dup:111}],197:[function(t,e,r){"use strict";var f=function(t){return t.replace(/^\s+|\s+$/g,"")};e.exports=function(t){if(!t)return{};for(var e,r={},n=f(t).split("\n"),i=0;i<n.length;i++){var o=n[i],a=o.indexOf(":"),s=f(o.slice(0,a)).toLowerCase(),u=f(o.slice(a+1));void 0===r[s]?r[s]=u:(e=r[s],"[object Array]"===Object.prototype.toString.call(e)?r[s].push(u):r[s]=[r[s],u])}return r}},{}],198:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("strict-uri-encode"),a=t("object-assign"),s=t("decode-uri-component");function u(t,e){return e.encode?e.strict?i(t):encodeURIComponent(t):t}function o(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){var i=function(t){var n;switch(t.arrayFormat){case"index":return function(t,e,r){n=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),n?(void 0===r[t]&&(r[t]={}),r[t][n[1]]=e):r[t]=e};case"bracket":return function(t,e,r){n=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),n?void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=[e]:r[t]=e};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e=a({arrayFormat:"none"},e)),o=Object.create(null);return"string"!=typeof t?o:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=e.shift(),n=0<e.length?e.join("="):void 0;n=void 0===n?null:s(n),i(s(r),n,o)}),Object.keys(o).sort().reduce(function(t,e){var r=o[e];return Boolean(r)&&"object"===n(r)&&!Array.isArray(r)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"===n(e)?t(Object.keys(e)).sort(function(t,e){return Number(t)-Number(e)}).map(function(t){return e[t]}):e}(r):t[e]=r,t},Object.create(null))):o}r.extract=o,r.parse=f,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(t,e,r){return null===e?[u(t,n),"[",r,"]"].join(""):[u(t,n),"[",u(r,n),"]=",u(e,n)].join("")};case"bracket":return function(t,e){return null===e?u(t,n):[u(t,n),"[]=",u(e,n)].join("")};default:return function(t,e){return null===e?u(t,n):[u(t,n),"=",u(e,n)].join("")}}}(i);return n?Object.keys(n).sort(i.sort).map(function(e){var t=n[e];if(void 0===t)return"";if(null===t)return u(e,i);if(Array.isArray(t)){var r=[];return t.slice().forEach(function(t){void 0!==t&&r.push(o(e,t,r.length))}),r.join("&")}return u(e,i)+"="+u(t,i)}).filter(function(t){return 0<t.length}).join("&"):""},r.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:f(o(t),e)}}},{"decode-uri-component":190,"object-assign":196,"strict-uri-encode":199}],199:[function(t,e,r){"use strict";e.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},{}],200:[function(t,e,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},f={lookup:n},c=t("xhr-request"),l=t("eth-lib/lib/bytes"),h=t("./swarm-hash.js"),d=t("./pick.js"),p=t("./swarm");e.exports=p({fs:i,files:o,os:a,path:s,child_process:u,defaultArchives:{},mimetype:f,request:c,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(t,e,r){"use strict";var n=function(f){return function(){return new Promise(function(u,t){var e,r=function(t){var o={},a=t.target.files.length,s=0;[].map.call(t.target.files,function(i){var t=new FileReader;t.onload=function(t){var e=new Uint8Array(t.target.result);if("directory"===f){var r=i.webkitRelativePath;o[r.slice(r.indexOf("/")+1)]={type:"text/plain",data:e},++s===a&&u(o)}else if("file"===f){var n=i.webkitRelativePath;u({type:mimetype.lookup(n),data:e})}else u(e)},t.readAsArrayBuffer(i)})};"directory"===f?((e=document.createElement("input")).addEventListener("change",r),e.type="file",e.webkitdirectory=!0,e.mozdirectory=!0,e.msdirectory=!0,e.odirectory=!0,e.directory=!0):((e=document.createElement("input")).addEventListener("change",r),e.type="file");var n=document.createEvent("MouseEvents");n.initEvent("click",!0,!1),e.dispatchEvent(n)})}};e.exports={data:n("data"),file:n("file"),directory:n("directory")}},{}],202:[function(t,e,r){"use strict";var i=t("eth-lib/lib/hash").keccak256,s=t("eth-lib/lib/bytes"),u=function(t,e){var r=s.reverse(s.pad(6,s.fromNumber(t))),n=s.flatten([r,"0x0000",e]);return i(n).slice(2)};e.exports=function t(e){"string"==typeof e&&"0x"!==e.slice(0,2)?e=s.fromString(e):"string"!=typeof e&&void 0!==e.length&&(e=s.fromUint8Array(e));var r=s.length(e);if(r<=4096)return u(r,e);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(t(s.slice(e,o,o+a)))}return u(r,s.flatten(i))}},{"eth-lib/lib/bytes":192,"eth-lib/lib/hash":193}],203:[function(t,e,r){"use strict";e.exports=function(t){var o=t.fs,s=t.files,u=t.os,a=t.path,p=t.child_process,f=t.mimetype,c=t.defaultArchives,l=t.request,h=t.downloadUrl,e=t.bytes,n=t.hash,i=t.pick,d=function(i){return function(t){for(var e={},r=0,n=i.length;r<n;++r)e[i[r]]=t[r];return e}},y=function(e){return function(t){return"".concat(e,"/bzz-raw:/").concat(t)}},b=function(e){return function(t){return new Promise(function(n,i){l(y(e)(t),{responseType:"arraybuffer"},function(t,e,r){return t?i(t):400<=r.statusCode?i(new Error("Error ".concat(r.statusCode,"."))):n(new Uint8Array(e))})})}},m=function(r){return function(t){return function s(t){return function(a){return function(o){var e=function(t){return void 0===t.path?Promise.resolve():"application/bzz-manifest+json"===t.contentType?s(t.hash)(a+t.path)(o):Promise.resolve((i=a+t.path,r={type:(n=t).contentType,hash:n.hash},(e=o)[i]=r,e));var e,r,n,i};return b(r)(t).then(function(t){return JSON.parse(N(t)).entries}).then(function(t){return Promise.all(t.map(e))}).then(function(){return o})}}}(t)("")({})}},v=function(e){return function(t){return m(e)(t).then(function(e){return d(Object.keys(e))(Object.keys(e).map(function(t){return e[t].hash}))})}},g=function(o){return function(t){return m(o)(t).then(function(e){var r=Object.keys(e),t=r.map(function(t){return e[t].hash}),n=r.map(function(t){return e[t].type}),i=t.map(b(o));return Promise.all(i).then(function(t){return d(r)(t.map(function(t,e){return{type:n[e],data:t}}))})})}},w=function(r){return function(e){return function(t){return s.download(y(r)(e))(t)}}},_=function(o){return function(t){return function(i){return v(o)(t).then(function(t){var e=[];for(var r in t)if(0<r.length){var n=a.join(i,r);e.push(w(o)(t[r])(n))}return Promise.all(e).then(function(){return i})})}}},A=function(i){return function(e){return new Promise(function(r,n){var t={body:"string"==typeof e?P(e):e,method:"POST"};l("".concat(i,"/bzz-raw:/"),t,function(t,e){return t?n(t):r(e)})})}},S=function(u){return function(s){return function(a){return function(n){return function e(r){var t="/"===a[0]?a:"/"+a,i="".concat(u,"/bzz:/").concat(s).concat(t),o={method:"PUT",headers:{"Content-Type":n.type},body:n.data};return new Promise(function(r,n){l(i,o,function(t,e){return t?n(t):-1!==e.indexOf("error")?n(e):r(e)})}).catch(function(t){return 0<r&&e(r-1)})}(3)}}}},x=function(e){return function(t){return E(e)({"":t})}},r=function(r){return function(e){return o.readFile(e).then(function(t){return x(r)({type:f.lookup(e),data:t})})}},E=function(i){return function(n){return A(i)("{}").then(function(t){return Object.keys(n).reduce(function(t,e){return t.then((r=e,function(t){return S(i)(t)(r)(n[r])}));var r},Promise.resolve(t))})}},k=function(e){return function(t){return o.readFile(t).then(A(e))}},M=function(t){return function(e){return function(i){return s.directoryTree(i).then(function(n){return Promise.all(n.map(function(t){return o.readFile(t)})).then(function(t){var e=n.map(function(t){return t.slice(i.length)}),r=n.map(function(t){return f.lookup(t)||"text/plain"});return d(e)(t.map(function(t,e){return{type:r[e],data:t}}))})}).then(function(t){return i=e?{"":t[e]}:{},function(t){var e={};for(var r in i)e[r]=i[r];for(var n in t)e[n]=t[n];return e}(t);var i}).then(E(t))}}},j=function(e){return function(t){if("data"===t.pick)return i.data().then(A(e));if("file"===t.pick)return i.file().then(x(e));if("directory"===t.pick)return i.directory().then(E(e));if(t.path)switch(t.kind){case"data":return k(e)(t.path);case"file":return r(e)(t.path);case"directory":return M(e)(t.defaultFile)(t.path)}else{if(t.length||"string"==typeof t)return A(e)(t);if(t instanceof Object)return E(e)(t)}return Promise.reject(new Error("Bad arguments"))}},I=function(n){return function(r){return function(e){return U(n)(r).then(function(t){return t?e?_(n)(r)(e):g(n)(r):e?w(n)(r)(e):b(n)(r)})}}},T=function(t,e){var r=u.platform().replace("win32","windows")+"-"+("x64"===u.arch()?"amd64":"386"),n=(e||c)[r],i=h+n.archive+".tar.gz",o=n.archiveMD5,a=n.binaryMD5;return s.safeDownloadArchived(i)(o)(a)(t)},R=function(d){return new Promise(function(e,t){var r=p.spawn,n=function(e){return function(t){return-1!==(""+t).indexOf(e)}},i=d.account,o=d.password,a=d.dataDir,s=d.ensApi,u=d.privateKey,f=0,c=r(d.binPath,["--bzzaccount",i||u,"--datadir",a,"--ens-api",s]),l=function(t){0===f&&n("Passphrase")(t)?setTimeout(function(){f=1,c.stdin.write(o+"\n")},500):n("Swarm http proxy started")(t)&&(f=2,clearTimeout(h),e(c))};c.stdout.on("data",l),c.stderr.on("data",l);var h=setTimeout(function(){return t(new Error("Couldn't start swarm process."))},2e4)})},O=function(n){return new Promise(function(t,e){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),t()})})},B=function(t){return A(t)("test").then(function(t){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===t}).catch(function(){return!1})},U=function(e){return function(t){return b(e)(t).then(function(t){try{return!!JSON.parse(N(t)).entries}catch(t){return!1}})}},C=function(a){return function(t,e,r,n,i){var o;return void 0!==t&&(o=a(t)),void 0!==e&&(o=a(e)),void 0!==r&&(o=a(r)),void 0!==n&&(o=a(n)),void 0!==i&&(o=a(i)),o}},N=function(t){return e.toString(e.fromUint8Array(t))},P=function(t){return e.toUint8Array(e.fromString(t))},L=function(r){return{download:function(t,e){return I(r)(t)(e)},downloadData:C(b(r)),downloadDataToDisk:C(w(r)),downloadDirectory:C(g(r)),downloadDirectoryToDisk:C(_(r)),downloadEntries:C(m(r)),downloadRoutes:C(v(r)),isAvailable:function(){return B(r)},upload:function(t){return j(r)(t)},uploadData:C(A(r)),uploadFile:C(x(r)),uploadFileFromDisk:C(x(r)),uploadDataFromDisk:C(k(r)),uploadDirectory:C(E(r)),uploadDirectoryFromDisk:C(M(r)),uploadToManifest:C(S(r)),pick:i,hash:n,fromString:P,toString:N}};return{at:L,local:function(r){return function(e){return B("http://localhost:8500").then(function(t){return t?e(L("http://localhost:8500")).then(function(){}):T(r.binPath,r.archives).onData(function(t){return(r.onProgress||function(){})(t.length)}).then(function(){return R(r)}).then(function(t){return e(L("http://localhost:8500")).then(function(){return t})}).then(O)})}},download:I,downloadBinary:T,downloadData:b,downloadDataToDisk:w,downloadDirectory:g,downloadDirectoryToDisk:_,downloadEntries:m,downloadRoutes:v,isAvailable:B,startProcess:R,stopProcess:O,upload:j,uploadData:A,uploadDataFromDisk:k,uploadFile:x,uploadFileFromDisk:r,uploadDirectory:E,uploadDirectoryFromDisk:M,uploadToManifest:S,pick:i,hash:n,fromString:P,toString:N}}},{}],204:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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(t,e,r){"use strict";e.exports=function(t,e){if(e){e=(e=e.trim().replace(/^(\?|#|&)/,""))?"?"+e:e;var r=t.split(/[\?\#]/),n=r[0];e&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var i=t.match(/(\#.*)$/);t=n+e,i&&(t+=i[0])}return t}},{}],206:[function(t,e,r){"use strict";var s=t("query-string"),u=t("url-set-query"),f=t("object-assign"),c=t("./lib/ensure-header.js"),l=t("./lib/request.js"),h="application/json",d=function(){};e.exports=function(t,e,r){if(!t||"string"!=typeof t)throw new TypeError("must specify a URL");"function"==typeof e&&(r=e,e={});if(r&&"function"!=typeof r)throw new TypeError("expected cb to be undefined or a function");r=r||d;var n=(e=e||{}).json?"json":"text",i=(e=f({responseType:n},e)).headers||{},o=(e.method||"GET").toUpperCase(),a=e.query;a&&("string"!=typeof a&&(a=s.stringify(a)),t=u(t,a));"json"===e.responseType&&c(i,"Accept",h);e.json&&"GET"!==o&&"HEAD"!==o&&(c(i,"Content-Type",h),e.body=JSON.stringify(e.body));return e.method=o,e.url=t,e.headers=i,delete e.query,delete e.json,l(e,r)}},{"./lib/ensure-header.js":207,"./lib/request.js":209,"object-assign":196,"query-string":198,"url-set-query":205}],207:[function(t,e,r){"use strict";e.exports=function(t,e,r){var n=e.toLowerCase();t[e]||t[n]||(t[e]=r)}},{}],208:[function(t,e,r){"use strict";e.exports=function(t,e){return e?{statusCode:e.statusCode,headers:e.headers,method:t.method,url:t.url,rawRequest:e.rawRequest?e.rawRequest:e}:null}},{}],209:[function(t,e,r){"use strict";var n=t("xhr"),s=t("./normalize-response"),u=function(){};e.exports=function(i,o){delete i.uri;var a=!1;"json"===i.responseType&&(i.responseType="text",a=!0);var e=n(i,function(e,t,r){if(a&&!e)try{var n=t.rawRequest.responseText;r=JSON.parse(n)}catch(t){e=t}t=s(i,t),o(e,e?null:r,t),o=u}),r=e.onabort;return e.onabort=function(){var t=r.apply(e,Array.prototype.slice.call(arguments));return o(new Error("XHR Aborted")),o=u,t},e}},{"./normalize-response":208,xhr:210}],210:[function(t,e,r){"use strict";var n=t("global/window"),i=t("is-function"),b=t("parse-headers"),o=t("xtend");function a(t,e,r){var n=t;return i(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=r,n}function m(t,e,r){return s(e=a(t,e,r))}function s(n){if(void 0===n.callback)throw new Error("callback argument missing");var i=!1,o=function(t,e,r){i||(i=!0,n.callback(t,e,r))};function e(t){return clearTimeout(u),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,o(t,y)}function t(){if(!a){var t;clearTimeout(u),t=n.useXDR&&void 0===s.status?200:1223===s.status?204:s.status;var e=y,r=null;return 0!==t?(e={body:function(){var t=void 0;if(t=s.response?s.response:s.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(s),p)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:t,method:c,headers:{},url:f,rawRequest:s},s.getAllResponseHeaders&&(e.headers=b(s.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),o(r,e,e.body)}}var r,a,s=n.xhr||null;s||(s=n.cors||n.useXDR?new m.XDomainRequest:new m.XMLHttpRequest);var u,f=s.url=n.uri||n.url,c=s.method=n.method||"GET",l=n.body||n.data,h=s.headers=n.headers||{},d=!!n.sync,p=!1,y={body:void 0,headers:{},statusCode:0,method:c,url:f,rawRequest:s};if("json"in n&&!1!==n.json&&(p=!0,h.accept||h.Accept||(h.Accept="application/json"),"GET"!==c&&"HEAD"!==c&&(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(t,0)},s.onload=t,s.onerror=e,s.onprogress=function(){},s.onabort=function(){a=!0},s.ontimeout=e,s.open(c,f,!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 t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)}},n.timeout)),s.setRequestHeader)for(r in h)h.hasOwnProperty(r)&&s.setRequestHeader(r,h[r]);else if(n.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))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}e.exports=m,(e.exports.default=m).XMLHttpRequest=n.XMLHttpRequest||function(){},m.XDomainRequest="withCredentials"in new m.XMLHttpRequest?m.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],function(n){m["delete"===n?"del":n]=function(t,e,r){return(e=a(t,e,r)).method=n.toUpperCase(),s(e)}})},{"global/window":194,"is-function":195,"parse-headers":197,xtend:211}],211:[function(t,e,r){arguments[4][189][0].apply(r,arguments)},{dup:189}],212:[function(t,e,r){"use strict";var n=t("underscore"),i=t("swarm-js"),o=function t(e){this.givenProvider=t.givenProvider,e&&e._requestManager&&(e=e.currentProvider),"undefined"!=typeof document&&(this.pick=i.pick),this.setProvider(e)};o.givenProvider=null,"undefined"!=typeof ethereumProvider&ðereumProvider.bzz&&(o.givenProvider=ethereumProvider.bzz),o.prototype.setProvider=function(t){if(n.isObject(t)&&n.isString(t.bzz)&&(t=t.bzz),n.isString(t))return this.currentProvider=t,this.download=i.at(t).download,this.upload=i.at(t).upload,this.isAvailable=i.at(t).isAvailable,!0;this.currentProvider=null;var e=new Error("No provider set, please set one using bzz.setProvider().");return!(this.download=this.upload=this.isAvailable=function(){throw e})},e.exports=o},{"swarm-js":200,underscore:204}],213:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports={ErrorResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:JSON.stringify(t);return new Error("Returned error: "+e)},InvalidNumberOfParams:function(t,e,r){return new Error('Invalid number of parameters for "'+r+'". Got '+t+" expected "+e+"!")},InvalidConnection:function(t,e){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+t+".",e)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)},ConnectionTimeout:function(t){return new Error("CONNECTION TIMEOUT: timeout of "+t+" ms achived")},ConnectionNotOpenError:function(t){return this.ConnectionError("connection not open on send()",t)},ConnectionCloseError:function(t){return"object"===n(t)&&t.code&&t.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+t.code+"` and the following reason string `"+t.reason+"`",t):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(t,e){var r=new Error(t);return e&&(r.code=e.code,r.reason=e.reason),r},RevertInstructionError:function(t,e){var r=new Error("Your request got reverted with the following reason string: "+t);return r.reason=t,r.signature=e,r},TransactionRevertInstructionError:function(t,e,r){var n=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return n.reason=t,n.signature=e,n.receipt=r,n},TransactionError:function(t,e){var r=new Error(t);return r.receipt=e,r},NoContractAddressFoundError:function(t){return this.TransactionError("The transaction receipt didn't contain a contract address.",t)},ContractCodeNotStoredError:function(t){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",t)},TransactionRevertedWithoutReasonError:function(t){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(t,null,2),t)},TransactionOutOfGasError:function(t){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(t,null,2),t)}}},{}],215:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("underscore"),o=t("web3-utils"),a=t("web3-eth-iban"),s=function(t){return o.toBN(t).toString(10)},u=function(t){var e;if(void 0!==t)return"latest"===(e=t)||"pending"===e||"earliest"===e?t:"genesis"===t?"0x0":o.isHexStrict(t)?i.isString(t)?t.toLowerCase():t:o.numberToHex(t)},f=function(e){if(e.to&&(e.to=h(e.to)),e.data&&e.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(!e.data&&e.input&&(e.data=e.input,delete e.input),e.data&&!o.isHex(e.data))throw new Error("The data field must be HEX encoded data.");return(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),["gasPrice","gas","value","nonce"].filter(function(t){return void 0!==e[t]}).forEach(function(t){e[t]=o.numberToHex(e[t])}),e},c=function(t){return null!==t.blockNumber&&(t.blockNumber=o.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=o.hexToNumber(t.transactionIndex)),t.nonce=o.hexToNumber(t.nonce),t.gas=o.hexToNumber(t.gas),t.gasPrice=s(t.gasPrice),t.value=s(t.value),t.to&&o.isAddress(t.to)?t.to=o.toChecksumAddress(t.to):t.to=null,t.from&&(t.from=o.toChecksumAddress(t.from)),t},l=function(t){if("string"==typeof t.blockHash&&"string"==typeof t.transactionHash&&"string"==typeof t.logIndex){var e=o.sha3(t.blockHash.replace("0x","")+t.transactionHash.replace("0x","")+t.logIndex.replace("0x",""));t.id="log_"+e.replace("0x","").substr(0,8)}else t.id||(t.id=null);return null!==t.blockNumber&&(t.blockNumber=o.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=o.hexToNumber(t.transactionIndex)),null!==t.logIndex&&(t.logIndex=o.hexToNumber(t.logIndex)),t.address&&(t.address=o.toChecksumAddress(t.address)),t},h=function(t){var e=new a(t);if(e.isValid()&&e.isDirect())return e.toAddress().toLowerCase();if(o.isAddress(t))return"0x"+t.toLowerCase().replace("0x","");throw new Error('Provided address "'+t+"\" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted.")};e.exports={inputDefaultBlockNumberFormatter:function(t){return u(this&&null==t?this.defaultBlock:t)},inputBlockNumberFormatter:u,inputCallFormatter:function(t){var e=(t=f(t)).from||(this?this.defaultAccount:null);return e&&(t.from=h(e)),t},inputTransactionFormatter:function(t){if(t=f(t),!i.isNumber(t.from)&&!i.isObject(t.from)){if(t.from=t.from||(this?this.defaultAccount:null),!t.from&&!i.isNumber(t.from))throw new Error('The send transactions "from" field must be defined!');t.from=h(t.from)}return t},inputAddressFormatter:h,inputPostFormatter:function(t){return t.ttl&&(t.ttl=o.numberToHex(t.ttl)),t.workToProve&&(t.workToProve=o.numberToHex(t.workToProve)),t.priority&&(t.priority=o.numberToHex(t.priority)),i.isArray(t.topics)||(t.topics=t.topics?[t.topics]:[]),t.topics=t.topics.map(function(t){return 0===t.indexOf("0x")?t:o.fromUtf8(t)}),t},inputLogFormatter:function(t){var e=function(t){return null==t?null:0===(t=String(t)).indexOf("0x")?t:o.fromUtf8(t)};return(t.fromBlock||0===t.fromBlock)&&(t.fromBlock=u(t.fromBlock)),(t.toBlock||0===t.toBlock)&&(t.toBlock=u(t.toBlock)),t.topics=t.topics||[],t.topics=t.topics.map(function(t){return i.isArray(t)?t.map(e):e(t)}),e=null,t.address&&(t.address=i.isArray(t.address)?t.address.map(function(t){return h(t)}):h(t.address)),t},inputSignFormatter:function(t){return o.isHexStrict(t)?t:o.utf8ToHex(t)},inputStorageKeysFormatter:function(t){return t.map(o.numberToHex)},outputProofFormatter:function(t){return t.address=o.toChecksumAddress(t.address),t.nonce=o.hexToNumberString(t.nonce),t.balance=o.hexToNumberString(t.balance),t},outputBigNumberFormatter:s,outputTransactionFormatter:c,outputTransactionReceiptFormatter:function(t){if("object"!==n(t))throw new Error("Received receipt is invalid: "+t);return null!==t.blockNumber&&(t.blockNumber=o.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=o.hexToNumber(t.transactionIndex)),t.cumulativeGasUsed=o.hexToNumber(t.cumulativeGasUsed),t.gasUsed=o.hexToNumber(t.gasUsed),i.isArray(t.logs)&&(t.logs=t.logs.map(l)),t.contractAddress&&(t.contractAddress=o.toChecksumAddress(t.contractAddress)),void 0!==t.status&&null!==t.status&&(t.status=Boolean(parseInt(t.status))),t},outputBlockFormatter:function(t){return t.gasLimit=o.hexToNumber(t.gasLimit),t.gasUsed=o.hexToNumber(t.gasUsed),t.size=o.hexToNumber(t.size),t.timestamp=o.hexToNumber(t.timestamp),null!==t.number&&(t.number=o.hexToNumber(t.number)),t.difficulty&&(t.difficulty=s(t.difficulty)),t.totalDifficulty&&(t.totalDifficulty=s(t.totalDifficulty)),i.isArray(t.transactions)&&t.transactions.forEach(function(t){if(!i.isString(t))return c(t)}),t.miner&&(t.miner=o.toChecksumAddress(t.miner)),t},outputLogFormatter:l,outputPostFormatter:function(t){return t.expiry=o.hexToNumber(t.expiry),t.sent=o.hexToNumber(t.sent),t.ttl=o.hexToNumber(t.ttl),t.workProved=o.hexToNumber(t.workProved),t.topics||(t.topics=[]),t.topics=t.topics.map(function(t){return o.toUtf8(t)}),t},outputSyncingFormatter:function(t){return t.startingBlock=o.hexToNumber(t.startingBlock),t.currentBlock=o.hexToNumber(t.currentBlock),t.highestBlock=o.hexToNumber(t.highestBlock),t.knownStates&&(t.knownStates=o.hexToNumber(t.knownStates),t.pulledStates=o.hexToNumber(t.pulledStates)),t}}},{underscore:213,"web3-eth-iban":449,"web3-utils":489}],216:[function(t,e,r){"use strict";var n=t("./errors"),i=t("./formatters");e.exports={errors:n,formatters:i}},{"./errors":214,"./formatters":215}],217:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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(t,e,r){"use strict";function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function g(s){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=s.apply(t,a);function i(t){u(n,e,r,i,o,"next",t)}function o(t){u(n,e,r,i,o,"throw",t)}i(void 0)})}}var w=t("underscore"),_=t("web3-core-helpers").errors,A=t("web3-core-helpers").formatters,S=t("web3-utils"),x=t("web3-core-promievent"),i=t("web3-core-subscriptions").subscriptions,E=function(t){if(!t.call||!t.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter,this.transformPayload=t.transformPayload,this.extraFormatters=t.extraFormatters,this.abiCoder=t.abiCoder,this.requestManager=t.requestManager,this.accounts=t.accounts,this.defaultBlock=t.defaultBlock||"latest",this.defaultAccount=t.defaultAccount||null,this.transactionBlockTimeout=t.transactionBlockTimeout||50,this.transactionConfirmationBlocks=t.transactionConfirmationBlocks||24,this.transactionPollingTimeout=t.transactionPollingTimeout||750,this.defaultCommon=t.defaultCommon,this.defaultChain=t.defaultChain,this.defaultHardfork=t.defaultHardfork,this.handleRevert=t.handleRevert};E.prototype.setRequestManager=function(t,e){this.requestManager=t,e&&(this.accounts=e)},E.prototype.createFunction=function(t,e){var r=this.buildCall();return r.call=this.call,this.setRequestManager(t||this.requestManager,e||this.accounts),r},E.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var r=this.name.split(".");1<r.length?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},E.prototype.getCall=function(t){return w.isFunction(this.call)?this.call(t):this.call},E.prototype.extractCallback=function(t){if(w.isFunction(t[t.length-1]))return t.pop()},E.prototype.validateArgs=function(t){if(t.length!==this.params)throw _.InvalidNumberOfParams(t.length,this.params,this.name)},E.prototype.formatInput=function(r){var n=this;return this.inputFormatter?this.inputFormatter.map(function(t,e){return t?t.call(n,r[e]):r[e]}):r},E.prototype.formatOutput=function(t){var e=this;return w.isArray(t)?t.map(function(t){return e.outputFormatter&&t?e.outputFormatter(t):t}):this.outputFormatter&&t?this.outputFormatter(t):t},E.prototype.toPayload=function(t){var e=this.getCall(t),r=this.extractCallback(t),n=this.formatInput(t);this.validateArgs(n);var i={method:e,params:n,callback:r};return this.transformPayload&&(i=this.transformPayload(i)),i},E.prototype._confirmTransaction=function(a,r,s){var u=this,f=!1,c=!0,l=0,h=0,d=null,p=null,y=w.isObject(s.params[0])&&s.params[0].gas?s.params[0].gas:null,b=w.isObject(s.params[0])&&s.params[0].data&&s.params[0].from&&!s.params[0].to,m=b&&2<s.params[0].data.length,t=[new E({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[A.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:A.outputBlockFormatter}),new E({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:A.outputTransactionReceiptFormatter}),new E({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[A.inputAddressFormatter,A.inputDefaultBlockNumberFormatter]}),new E({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:A.outputTransactionFormatter}),new i({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:A.outputBlockFormatter}}})],v={};w.each(t,function(t){t.attachToObject(v),t.requestManager=u.requestManager});var e=function(n,i,t,e,o){if(!t)return o||(o={unsubscribe:function(){clearInterval(d)}}),(n?x.resolve(n):v.getTransactionReceipt(r)).catch(function(t){o.unsubscribe(),f=!0,S._fireError({message:"Failed to check for transaction receipt:",data:t},a.eventEmitter,a.reject)}).then(function(){var e=g(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(u.extraFormatters&&u.extraFormatters.receiptFormatter&&(e=u.extraFormatters.receiptFormatter(e)),!(0<a.eventEmitter.listeners("confirmation").length)){t.next=24;break}if(void 0!==n&&0===h){t.next=21;break}if(!i){t.next=20;break}if(p)return t.next=9,v.getBlockByNumber(p.number+1);t.next=13;break;case 9:(r=t.sent)&&(p=r,a.eventEmitter.emit("confirmation",h,e)),t.next=18;break;case 13:return t.next=15,v.getBlockByNumber(e.blockNumber);case 15:r=t.sent,p=r,a.eventEmitter.emit("confirmation",h,e);case 18:t.next=21;break;case 20:a.eventEmitter.emit("confirmation",h,e);case 21:(i&&r||!i)&&h++,c=!1,h===u.transactionConfirmationBlocks+1&&(o.unsubscribe(),a.eventEmitter.removeAllListeners());case 24:return t.abrupt("return",e);case 25:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()).then(function(){var e=g(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!b||f){t.next=19;break}if(e.contractAddress){t.next=5;break}return c&&(o.unsubscribe(),f=!0),S._fireError(_.NoContractAddressFoundError(e),a.eventEmitter,a.reject,null,e),t.abrupt("return");case 5:return t.prev=5,t.next=8,v.getCode(e.contractAddress);case 8:r=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(r){t.next=15;break}return t.abrupt("return");case 15:!0===e.status&&m||2<r.length?(a.eventEmitter.emit("receipt",e),u.extraFormatters&&u.extraFormatters.contractDeployFormatter?a.resolve(u.extraFormatters.contractDeployFormatter(e)):a.resolve(e),c&&a.eventEmitter.removeAllListeners()):S._fireError(_.ContractCodeNotStoredError(e),a.eventEmitter,a.reject,null,e),c&&o.unsubscribe(),f=!0;case 19:return t.abrupt("return",e);case 20:case"end":return t.stop()}},t,null,[[5,11]])}));return function(t){return e.apply(this,arguments)}}()).then(function(){var e=g(regeneratorRuntime.mark(function t(e){var r,n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(b||f){t.next=39;break}if(e.outOfGas||y&&y===e.gasUsed||!0!==e.status&&"0x1"!==e.status&&void 0!==e.status){t.next=7;break}a.eventEmitter.emit("receipt",e),a.resolve(e),c&&a.eventEmitter.removeAllListeners(),t.next=37;break;case 7:if(JSON.stringify(e,null,2),!1!==e.status&&"0x0"!==e.status){t.next=36;break}if(t.prev=9,r=null,!u.handleRevert||"eth_sendTransaction"!==u.call&&"eth_sendRawTransaction"!==u.call){t.next=28;break}if(n=s.params[0],"eth_sendRawTransaction"===u.call)return t.next=16,v.getTransactionByHash(e.transactionHash);t.next=18;break;case 16:i=t.sent,n=A.inputTransactionFormatter({data:i.input,to:i.to,from:i.from,gas:i.gas,gasPrice:i.gasPrice,value:i.value});case 18:return t.next=20,u.getRevertReason(n,e.blockNumber);case 20:if(!(r=t.sent)){t.next=25;break}S._fireError(_.TransactionRevertInstructionError(r.reason,r.signature,e),a.eventEmitter,a.reject,null,e),t.next=26;break;case 25:throw!1;case 26:t.next=29;break;case 28:throw!1;case 29:t.next=34;break;case 31:t.prev=31,t.t0=t.catch(9),S._fireError(_.TransactionRevertedWithoutReasonError(e),a.eventEmitter,a.reject,null,e);case 34:t.next=37;break;case 36:S._fireError(_.TransactionOutOfGasError(e),a.eventEmitter,a.reject,null,e);case 37:c&&o.unsubscribe(),f=!0;case 39:case"end":return t.stop()}},t,null,[[9,31]])}));return function(t){return e.apply(this,arguments)}}()).catch(function(){l++,i?l-1>=u.transactionPollingTimeout&&(o.unsubscribe(),f=!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(),f=!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(),f=!0,S._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:t},a.eventEmitter,a.reject)},n=function(t){w.isFunction(this.requestManager.provider.on)?v.subscribe("newBlockHeaders",e.bind(null,t,!1)):d=setInterval(e.bind(null,t,!0),1e3)}.bind(this);v.getTransactionReceipt(r).then(function(t){t&&t.blockHash?(0<a.eventEmitter.listeners("confirmation").length&&n(t),e(t,!1)):f||n()}).catch(function(){f||n()})};var l=function(t,e){return w.isNumber(t)?e.wallet[t]:w.isObject(t)&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};E.prototype.buildCall=function(){var o=this,a="eth_sendTransaction"===o.call||"eth_sendRawTransaction"===o.call,c="eth_call"===o.call,t=function(){var s=x(!a),i=o.toPayload(Array.prototype.slice.call(arguments)),u=function(e,t){if(o.handleRevert&&!e&&c&&o.isRevertReasonString(t)&&o.abiCoder){var r=o.abiCoder.decodeParameter("string","0x"+t.substring(10)),n="Error(String)";S._fireError(_.RevertInstructionError(r,n),s.eventEmitter,s.reject,i.callback,{reason:r,signature:n})}else{try{t=o.formatOutput(t)}catch(t){e=t}if(t instanceof Error&&(e=t),e)return e.error&&(e=e.error),S._fireError(e,s.eventEmitter,s.reject,i.callback);i.callback&&i.callback(null,t),a?(s.eventEmitter.emit("transactionHash",t),o._confirmTransaction(s,t,i)):e||s.resolve(t)}},f=function(t){var e=w.extend({},i,{method:"eth_sendRawTransaction",params:[t.rawTransaction]});o.requestManager.send(e,u)},r=function(t,e){var r;if(e&&e.accounts&&e.accounts.wallet&&e.accounts.wallet.length)if("eth_sendTransaction"===t.method){var n=t.params[0];if((r=l(w.isObject(n)?n.from:null,e.accounts))&&r.privateKey){var i=w.omit(n,"from");return e.defaultChain&&!i.chain&&(i.chain=e.defaultChain),e.defaultHardfork&&!i.hardfork&&(i.hardfork=e.defaultHardfork),e.defaultCommon&&!i.common&&(i.common=e.defaultCommon),e.accounts.signTransaction(i,r.privateKey).then(f).catch(function(t){w.isFunction(s.eventEmitter.listeners)&&s.eventEmitter.listeners("error").length&&(s.eventEmitter.emit("error",t),s.eventEmitter.removeAllListeners(),s.eventEmitter.catch(function(){})),s.reject(t)})}}else if("eth_sign"===t.method){var o=t.params[1];if((r=l(t.params[0],e.accounts))&&r.privateKey){var a=e.accounts.sign(o,r.privateKey);return t.callback&&t.callback(null,a.signature),void s.resolve(a.signature)}}return e.requestManager.send(t,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(t,e){e&&(i.params[0].gasPrice=e),r(i,o)}):r(i,o);return s.eventEmitter};return t.method=o,t.request=this.request.bind(this),t},E.prototype.getRevertReason=function(t,n){var i=this;return new Promise(function(e,r){new E({name:"call",call:"eth_call",params:2,abiCoder:i.abiCoder,handleRevert:!0}).createFunction(i.requestManager)(t,S.numberToHex(n)).then(function(){e(!1)}).catch(function(t){t.reason?e({reason:t.reason,signature:t.signature}):r(t)})})},E.prototype.isRevertReasonString=function(t){return w.isString(t)&&(t.length-2)/2%32==4&&"0x08c379a0"===t.substring(0,10)},E.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},e.exports=E},{underscore:217,"web3-core-helpers":216,"web3-core-promievent":220,"web3-core-subscriptions":228,"web3-utils":489}],219:[function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,d="~";function i(){}function s(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,r,n,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new s(r,n||t,i),a=d?d+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],o]:t._events[a].push(o):(t._events[a]=o,t._eventsCount++),t}function f(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}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 t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(d?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=d?d+t:t,r=this._events[e];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(t){var e=d?d+t:t,r=this._events[e];return r?r.fn?1:r.length:0},a.prototype.emit=function(t,e,r,n,i,o){var a=d?d+t:t;if(!this._events[a])return!1;var s,u,f=this._events[a],c=arguments.length;if(f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),c){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,r),!0;case 4:return f.fn.call(f.context,e,r,n),!0;case 5:return f.fn.call(f.context,e,r,n,i),!0;case 6:return f.fn.call(f.context,e,r,n,i,o),!0}for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];f.fn.apply(f.context,s)}else{var l,h=f.length;for(u=0;u<h;u++)switch(f[u].once&&this.removeListener(t,f[u].fn,void 0,!0),c){case 1:f[u].fn.call(f[u].context);break;case 2:f[u].fn.call(f[u].context,e);break;case 3:f[u].fn.call(f[u].context,e,r);break;case 4:f[u].fn.call(f[u].context,e,r,n);break;default:if(!s)for(l=1,s=new Array(c-1);l<c;l++)s[l-1]=arguments[l];f[u].fn.apply(f[u].context,s)}}return!0},a.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,r,n){var i=d?d+t:t;if(!this._events[i])return this;if(!e)return f(this,i),this;var o=this._events[i];if(o.fn)o.fn!==e||n&&!o.once||r&&o.context!==r||f(this,i);else{for(var a=0,s=[],u=o.length;a<u;a++)(o[a].fn!==e||n&&!o[a].once||r&&o[a].context!==r)&&s.push(o[a]);s.length?this._events[i]=1===s.length?s[0]:s:f(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=d?d+t:t,this._events[e]&&f(this,e)):(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!==e&&(e.exports=a)},{}],220:[function(t,e,r){"use strict";var o=t("eventemitter3"),n=function(t){var e,r,n=new Promise(function(){e=arguments[0],r=arguments[1]});if(t)return{resolve:e,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:e,reject:r,eventEmitter:n}};n.resolve=function(t){var e=n(!0);return e.resolve(t),e.eventEmitter},e.exports=n},{eventemitter3:219}],221:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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(t,e,r){"use strict";var i=t("./jsonrpc"),o=t("web3-core-helpers").errors,n=function(t){this.requestManager=t,this.requests=[]};n.prototype.add=function(t){this.requests.push(t)},n.prototype.execute=function(){var n=this.requests;this.requestManager.sendBatch(n,function(t,r){r=r||[],n.map(function(t,e){return r[e]||{}}).forEach(function(t,e){if(n[e].callback){if(t&&t.error)return n[e].callback(o.ErrorResponse(t));if(!i.isValidResponse(t))return n[e].callback(o.InvalidResponse(t));try{n[e].callback(null,n[e].format?n[e].format(t.result):t.result)}catch(t){n[e].callback(t)}}})})},e.exports=n},{"./jsonrpc":225,"web3-core-helpers":216}],223:[function(t,e,r){"use strict";var n,i=null;try{n=Function("return this")()}catch(t){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(t,r){if("function"!=typeof r)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.connection.on("data",function(e){var t="";e=e.toString();try{t=JSON.parse(e)}catch(t){return r(new Error("Couldn't parse response data"+e))}t.id||-1===t.method.indexOf("_subscription")||r(null,t)});break;default:this.connection.on(t,r)}}),i=n.web3.currentProvider),e.exports=i},{}],224:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("underscore"),o=t("web3-core-helpers").errors,a=t("./jsonrpc.js"),s=t("./batch.js"),u=t("./givenProvider.js"),f=function t(e,r){this.provider=null,this.providers=t.providers,this.setProvider(e,r),this.subscriptions=new Map};f.givenProvider=u,f.providers={WebsocketProvider:t("web3-providers-ws"),HttpProvider:t("web3-providers-http"),IpcProvider:t("web3-providers-ipc")},f.prototype.setProvider=function(t,e){var r=this;if(t&&"string"==typeof t&&this.providers)if(/^http(s)?:\/\//i.test(t))t=new this.providers.HttpProvider(t);else if(/^ws(s)?:\/\//i.test(t))t=new this.providers.WebsocketProvider(t);else if(t&&"object"===n(e)&&"function"==typeof e.connect)t=new this.providers.IpcProvider(t,e);else if(t)throw new Error("Can't autodetect provider for \""+t+'"');this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=t||null,this.provider&&this.provider.on&&(this.provider.on("data",function(t,e){(t=t||e).method&&r.subscriptions.has(t.params.subscription)&&r.subscriptions.get(t.params.subscription).callback(null,t.params.result)}),this.provider.on("connect",function(){r.subscriptions.forEach(function(t){t.subscription.resubscribe()})}),this.provider.on("error",function(e){r.subscriptions.forEach(function(t){t.callback(e)})}),this.provider.on("close",function(e){r._isCleanCloseEvent(e)&&!r._isIpcCloseError(e)||r.subscriptions.forEach(function(t){t.callback(o.ConnectionCloseError(e)),r.subscriptions.delete(t.subscription.id)})}))},f.prototype.send=function(t,r){if(r=r||function(){},!this.provider)return r(o.InvalidProvider());var n=a.toPayload(t.method,t.params);this.provider[this.provider.sendAsync?"sendAsync":"send"](n,function(t,e){return e&&e.id&&n.id!==e.id?r(new Error('Wrong response id "'+e.id+'" (expected: "'+n.id+'") in '+JSON.stringify(n))):t?r(t):e&&e.error?r(o.ErrorResponse(e)):a.isValidResponse(e)?void r(null,e.result):r(o.InvalidResponse(e))})},f.prototype.sendBatch=function(t,r){if(!this.provider)return r(o.InvalidProvider());var e=a.toBatchPayload(t);this.provider[this.provider.sendAsync?"sendAsync":"send"](e,function(t,e){return t?r(t):i.isArray(e)?void r(null,e):r(o.InvalidResponse(e))})},f.prototype.addSubscription=function(t,e){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(t.id,{callback:e,subscription:t})},f.prototype.removeSubscription=function(t,e){if(this.subscriptions.has(t)){var r=this.subscriptions.get(t).subscription.options.type;return this.subscriptions.delete(t),void this.send({method:r+"_unsubscribe",params:[t]},e)}"function"==typeof e&&e(null)},f.prototype.clearSubscriptions=function(r){var n=this;0<this.subscriptions.size&&this.subscriptions.forEach(function(t,e){r&&"syncing"===t.name||n.removeSubscription(e)}),this.provider.reset&&this.provider.reset()},f.prototype._isCleanCloseEvent=function(t){return"object"===n(t)&&([1e3].includes(t.code)||!0===t.wasClean)},f.prototype._isIpcCloseError=function(t){return"boolean"==typeof t&&t},e.exports={Manager:f,BatchManager:s}},{"./batch.js":222,"./givenProvider.js":223,"./jsonrpc.js":225,underscore:221,"web3-core-helpers":216,"web3-providers-http":462,"web3-providers-ipc":465,"web3-providers-ws":472}],225:[function(t,e,r){"use strict";var n={messageId:0,toPayload:function(t,e){if(!t)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(e)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:t,params:e||[]}},isValidResponse:function(t){return Array.isArray(t)?t.every(e):e(t);function e(t){return!(!t||t.error||"2.0"!==t.jsonrpc||"number"!=typeof t.id&&"string"!=typeof t.id||void 0===t.result)}},toBatchPayload:function(t){return t.map(function(t){return n.toPayload(t.method,t.params)})}};e.exports=n},{}],226:[function(t,e,r){arguments[4][219][0].apply(r,arguments)},{dup:219}],227:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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(t,e,r){"use strict";var n=t("./subscription.js"),i=function(t){this.name=t.name,this.type=t.type,this.subscriptions=t.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(t){this.requestManager=t},i.prototype.attachToObject=function(t){var e=this.buildCall(),r=this.name.split(".");1<r.length?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},i.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new n({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:i,subscription:n}},{"./subscription.js":229}],229:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=t("underscore"),n=t("web3-core-helpers").errors,a=t("eventemitter3");function s(t){a.call(this),this.id=null,this.callback=o.identity,this.arguments=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}((s.prototype=Object.create(a.prototype)).constructor=s).prototype._extractCallback=function(t){if(o.isFunction(t[t.length-1]))return t.pop()},s.prototype._validateArgs=function(t){var e=this.options.subscription;if(e||(e={}),e.params||(e.params=0),t.length!==e.params)throw n.InvalidNumberOfParams(t.length,e.params,e.subscriptionName)},s.prototype._formatInput=function(r){var t=this.options.subscription;return t&&t.inputFormatter?t.inputFormatter.map(function(t,e){return t?t(r[e]):r[e]}):r},s.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},s.prototype._toPayload=function(t){var e=[];if(this.callback=this._extractCallback(t)||o.identity,this.subscriptionMethod||(this.subscriptionMethod=t.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(t),this._validateArgs(this.arguments),t=[]),e.push(this.subscriptionMethod),e=e.concat(this.arguments),t.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:e}},s.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.removeAllListeners()},s.prototype.subscribe=function(){var r=this,t=Array.prototype.slice.call(arguments),n=this._toPayload(t);if(!n)return this;if(!this.options.requestManager.provider)return setTimeout(function(){var t=new Error("No provider set.");r.callback(t,null,r),r.emit("error",t)},0),this;if(!this.options.requestManager.provider.on)return setTimeout(function(){var t=new Error("The current provider doesn't support subscriptions: "+r.options.requestManager.provider.constructor.name);r.callback(t,null,r),r.emit("error",t)},0),this;if(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 e=Object.assign({},n.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[e]},function(t,e){t?setTimeout(function(){r.callback(t,null,r),r.emit("error",t)},0):e.forEach(function(t){var e=r._formatOutput(t);r.callback(null,e,r),r.emit("data",e)})})}return"object"===i(n.params[1])&&delete n.params[1].fromBlock,this.options.requestManager.send(n,function(t,e){!t&&e?(r.id=e,r.method=n.params[0],r.emit("connected",e),r.options.requestManager.addSubscription(r,function(t,e){t?(r.callback(t,!1,r),r.emit("error",t)):(o.isArray(e)||(e=[e]),e.forEach(function(t){var e=r._formatOutput(t);if(o.isFunction(r.options.subscription.subscriptionHandler))return r.options.subscription.subscriptionHandler.call(r,e);r.emit("data",e),r.callback(null,e,r)}))})):setTimeout(function(){r.callback(t,!1,r),r.emit("error",t)},0)}),this},s.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},e.exports=s},{eventemitter3:226,underscore:227,"web3-core-helpers":216}],230:[function(t,e,r){"use strict";var n=t("web3-core-helpers").formatters,i=t("web3-core-method"),o=t("web3-utils");e.exports=function(r){var t=function(t){var e;return e=t.property?(r[t.property]||(r[t.property]={}),r[t.property]):r,t.methods&&t.methods.forEach(function(t){t instanceof i||(t=new i(t)),t.attachToObject(e),t.setRequestManager(r._requestManager)}),r};return t.formatters=n,t.utils=o,t.Method=i,t}},{"web3-core-helpers":216,"web3-core-method":218,"web3-utils":489}],231:[function(t,e,r){"use strict";var n=t("web3-core-requestmanager"),i=t("./extend.js");e.exports={packageInit:function(r,t){if(t=Array.prototype.slice.call(t),!r)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(r,"currentProvider",{get:function(){return r._provider},set:function(t){return r.setProvider(t)},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?r._requestManager=t[0]._requestManager:r._requestManager=new n.Manager(t[0],t[1]),r.givenProvider=n.Manager.givenProvider,r.providers=n.Manager.providers,r._provider=r._requestManager.provider,r.setProvider||(r.setProvider=function(t,e){return r._requestManager.setProvider(t,e),r._provider=r._requestManager.provider,!0}),r.setRequestManager=function(t){r._requestManager=t,r._provider=t.provider},r.BatchRequest=n.BatchManager.bind(null,r._requestManager),r.extend=i(r)},addProviders:function(t){t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers}}},{"./extend.js":230,"web3-core-requestmanager":224}],232:[function(S,t,e){"use strict";function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){function b(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function m(t,e,r){if(m.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var n;"object"===x(t)?t.exports=m:(void 0).BN=m,(m.BN=m).wordSize=26;try{n=S("buffer").Buffer}catch(t){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.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(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}m.isBN=function(t){return t instanceof m||null!==t&&"object"===x(t)&&t.constructor.wordSize===m.wordSize&&Array.isArray(t.words)},m.max=function(t,e){return 0<t.cmp(e)?t:e},m.min=function(t,e){return t.cmp(e)<0?t:e},m.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===x(t))return this._initArray(t,e,r);"hex"===e&&(e=16),b(e===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},m.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),this.length=t<67108864?(this.words=[67108863&t],1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],2):(b(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],3),"le"===r&&this._initArray(this.toArray(),e,r)},m.prototype._initArray=function(t,e,r){if(b("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.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=t.length-1,i=0;0<=n;n-=3)o=t[n]|t[n-1]<<8|t[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<t.length;n+=3)o=t[n]|t[n+1]<<8|t[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(t,e){this.length=Math.ceil((t.length-e)/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=t.length-6,n=0;e<=r;r-=6)i=a(t,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!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},m.prototype._parseBase=function(t,e,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=l(t,f,f+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=l(t,f,t.length,e),f=0;f<a;f++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},m.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},m.prototype.clone=function(){var t=new m(null);return this.copy(t),t},m.prototype._expand=function(t){for(;this.length<t;)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(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;n=(r.length=n)-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f<n;f++){for(var c=u>>>26,l=67108863&u,h=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=h;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&a}r.words[f]=0|l,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}m.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){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%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&2<=t&&t<=36){var u=d[t],f=p[t];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var l=c.modn(f).toString(t);r=(c=c.idivn(f)).isZero()?l+r:h[u-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}b(!1,"Base should be between 2 and 36")},m.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},m.prototype.toJSON=function(){return this.toString(16)},m.prototype.toBuffer=function(t,e){return b(void 0!==n),this.toArrayLike(n,t,e)},m.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},m.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),i=r||Math.max(1,n);b(n<=i,"byte array longer than desired length"),b(0<i,"Requested array length <= 0"),this.strip();var o,a,s="le"===e,u=new t(i),f=this.clone();if(s){for(a=0;!f.isZero();a++)o=f.andln(255),f.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;!f.isZero();a++)o=f.andln(255),f.iushrn(8),u[i-a-1]=o}return u},m.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,r=0;return 4096<=e&&(r+=13,e>>>=13),64<=e&&(r+=7,e>>>=7),8<=e&&(r+=4,e>>>=4),2<=e&&(r+=2,e>>>=2),r+e},m.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},m.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},m.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},m.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},m.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},m.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},m.prototype.ior=function(t){return b(0==(this.negative|t.negative)),this.iuor(t)},m.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},m.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},m.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},m.prototype.iand=function(t){return b(0==(this.negative|t.negative)),this.iuand(t)},m.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},m.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},m.prototype.iuxor=function(t){var e,r;r=this.length>t.length?(e=this,t):(e=t,this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},m.prototype.ixor=function(t){return b(0==(this.negative|t.negative)),this.iuxor(t)},m.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},m.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},m.prototype.inotn=function(t){b("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),0<r&&e--;for(var n=0;n<e;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(t){return this.clone().inotn(t)},m.prototype.setn=function(t,e){b("number"==typeof t&&0<=t);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},m.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();n=this.length>t.length?(r=this,t):(r=t,this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>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(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},m.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;n=0<i?(r=this,t):(r=t,this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;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(t){return this.clone().isub(t)};var o=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,f=0,c=0|a[0],l=8191&c,h=c>>>13,d=0|a[1],p=8191&d,y=d>>>13,b=0|a[2],m=8191&b,v=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,A=0|a[4],S=8191&A,x=A>>>13,E=0|a[5],k=8191&E,M=E>>>13,j=0|a[6],I=8191&j,T=j>>>13,R=0|a[7],O=8191&R,B=R>>>13,U=0|a[8],C=8191&U,N=U>>>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,G=0|s[2],W=8191&G,Y=G>>>13,X=0|s[3],J=8191&X,Z=X>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],lt=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(l,q))|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(h,q)|0))<<13)|0;f=((o=Math.imul(h,z))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(y,q)|0,o=Math.imul(y,z);var mt=(f+(n=n+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(h,K)|0))<<13)|0;f=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=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(y,K)|0,o=o+Math.imul(y,V)|0;var vt=(f+(n=n+Math.imul(l,W)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,W)|0))<<13)|0;f=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=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,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Y)|0;var gt=(f+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,J)|0))<<13)|0;f=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(x,q)|0,o=Math.imul(x,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,W)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,W)|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(y,J)|0,o=o+Math.imul(y,Z)|0;var wt=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(h,Q)|0))<<13)|0;f=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,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(x,K)|0,o=o+Math.imul(x,V)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,W)|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,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var _t=(f+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(h,rt)|0))<<13)|0;f=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=(i=Math.imul(I,z))+Math.imul(T,q)|0,o=Math.imul(T,z),n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,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,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var At=(f+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,at)|0)+Math.imul(h,ot)|0))<<13)|0;f=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,z))+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,W)|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(x,J)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var St=(f+(n=n+Math.imul(l,ut)|0)|0)+((8191&(i=(i=i+Math.imul(l,ft)|0)+Math.imul(h,ut)|0))<<13)|0;f=((o=o+Math.imul(h,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,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,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0;var xt=(f+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ht)|0)+Math.imul(h,lt)|0))<<13)|0;f=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=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(C,K)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ft)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ft)|0,n=n+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ht)|0;var Et=(f+(n=n+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(h,pt)|0))<<13)|0;f=((o=o+Math.imul(h,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=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(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,Y)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,ht)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Y))+Math.imul(F,W)|0,o=Math.imul(F,Y),n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(S,ut)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,ft)|0,n=n+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ht)|0;var Mt=(f+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,yt)|0)+Math.imul(v,pt)|0))<<13)|0;f=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=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(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ht)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,yt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ft)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0;var It=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,yt)|0)+Math.imul(x,pt)|0))<<13)|0;f=((o=o+Math.imul(x,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0;var Tt=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,yt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0;var Rt=(f+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(T,pt)|0))<<13)|0;f=((o=o+Math.imul(T,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(N,lt)|0,o=o+Math.imul(N,ht)|0;var Ot=(f+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,yt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,lt),i=(i=Math.imul(L,ht))+Math.imul(F,lt)|0,o=Math.imul(F,ht);var Bt=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ut=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,yt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,yt))+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,u[0]=bt,u[1]=mt,u[2]=vt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=At,u[7]=St,u[8]=xt,u[9]=Et,u[10]=kt,u[11]=Mt,u[12]=jt,u[13]=It,u[14]=Tt,u[15]=Rt,u[16]=Ot,u[17]=Bt,u[18]=Ut,0!==f&&(u[19]=f,r.length++),r};function s(t,e,r){return(new u).mulp(t,e,r)}function u(t,e){this.x=t,this.y=e}Math.imul||(o=i),m.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?o(this,t,e):r<63?i(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.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,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++){var c=o-f,l=(0|t.words[c])*(0|e.words[f]),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,t,e):s(this,t,e)},u.prototype.makeRBT=function(t){for(var e=new Array(t),r=m.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},u.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},u.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},u.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var l=u,h=f,d=0;d<a;d++){var p=r[c+d],y=n[c+d],b=r[c+d+a],m=n[c+d+a],v=l*b-h*m;m=l*m+h*b,b=v,r[c+d]=p+b,n[c+d]=y+m,r[c+d+a]=p-b,n[c+d+a]=y-m,d!==s&&(v=u*l-f*h,h=u*h+f*l,l=v)}},u.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},u.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},u.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},u.prototype.convert13b=function(t,e,r,n){for(var i=0,o=0;o<e;o++)i+=0|t[o],r[2*o]=8191&i,i>>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*e;o<n;++o)r[o]=0;b(0===i),b(0==(-8192&i))},u.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},u.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),f=new Array(n),c=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,s,u,n,i),this.transform(f,o,c,l,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*c[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=t.negative^e.negative,r.length=t.length+e.length,r.strip()},m.prototype.mul=function(t){var e=new m(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},m.prototype.mulf=function(t){var e=new m(null);return e.words=new Array(this.length+t.length),s(this,t,e)},m.prototype.imul=function(t){return this.clone().mulTo(t,this)},m.prototype.imuln=function(t){b("number"==typeof t),b(t<67108864);for(var e=0,r=0;r<this.length;r++){var n=(0|this.words[r])*t,i=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},m.prototype.muln=function(t){return this.clone().imuln(t)},m.prototype.sqr=function(){return this.mul(this)},m.prototype.isqr=function(){return this.imul(this.clone())},m.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new m(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},m.prototype.iushln=function(t){b("number"==typeof t&&0<=t);var e,r=t%26,n=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&i,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;0<=e;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},m.prototype.ishln=function(t){return b(0===this.negative),this.iushln(t)},m.prototype.iushrn=function(t,e,r){var n;b("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var i=t%26,o=Math.min((t-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 f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var c=0|this.words[u];this.words[u]=f<<26-i|c>>>i,f=c&a}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},m.prototype.ishrn=function(t,e,r){return b(0===this.negative),this.iushrn(t,e,r)},m.prototype.shln=function(t){return this.clone().ishln(t)},m.prototype.ushln=function(t){return this.clone().iushln(t)},m.prototype.shrn=function(t){return this.clone().ishrn(t)},m.prototype.ushrn=function(t){return this.clone().iushrn(t)},m.prototype.testn=function(t){b("number"==typeof t&&0<=t);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},m.prototype.imaskn=function(t){b("number"==typeof t&&0<=t);var e=t%26,r=(t-e)/26;if(b(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this.strip()},m.prototype.maskn=function(t){return this.clone().imaskn(t)},m.prototype.iaddn=function(t){return b("number"==typeof t),b(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},m.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},m.prototype.isubn=function(t){if(b("number"==typeof t),b(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},m.prototype.addn=function(t){return this.clone().iaddn(t)},m.prototype.subn=function(t){return this.clone().isubn(t)},m.prototype.iabs=function(){return this.negative=0,this},m.prototype.abs=function(){return this.clone().iabs()},m.prototype._ishlnsubmul=function(t,e,r){var n,i,o=t.length+r;this._expand(o);var a=0;for(n=0;n<t.length;n++){i=(0|this.words[n+r])+a;var s=(0|t.words[n])*e;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(b(-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(t,e){var r=(this.length,t.length),n=this.clone(),i=t,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"!==e){(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 f=n.clone()._ishlnsubmul(i,1,s);0===f.negative&&(n=f,a&&(a.words[s]=1));for(var c=s-1;0<=c;c--){var l=67108864*(0|n.words[i.length+c])+(0|n.words[i.length+c-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,c);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=l)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},m.prototype.divmod=function(t,e,r){return b(!t.isZero()),this.isZero()?{div:new m(0),mod:new m(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(n=o.div.neg()),"div"!==e&&(i=o.mod.neg(),r&&0!==i.negative&&i.iadd(t)),{div:n,mod:i}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&t.negative)?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(i=o.mod.neg(),r&&0!==i.negative&&i.isub(t)),{div:o.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new m(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new m(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new m(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,i,o},m.prototype.div=function(t){return this.divmod(t,"div",!1).div},m.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},m.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},m.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},m.prototype.modn=function(t){b(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(e*r+(0|this.words[n]))%t;return r},m.prototype.idivn=function(t){b(t<=67108863);for(var e=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},m.prototype.divn=function(t){return this.clone().idivn(t)},m.prototype.egcd=function(t){b(0===t.negative),b(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new m(1),i=new m(0),o=new m(0),a=new m(1),s=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(0<c)for(e.iushrn(c);0<c--;)(n.isOdd()||i.isOdd())&&(n.iadd(u),i.isub(f)),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(f)),o.iushrn(1),a.iushrn(1);0<=e.cmp(r)?(e.isub(r),n.isub(o),i.isub(a)):(r.isub(e),o.isub(n),a.isub(i))}return{a:o,b:a,gcd:r.iushln(s)}},m.prototype._invmp=function(t){b(0===t.negative),b(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,i=new m(1),o=new m(0),a=r.clone();0<e.cmpn(1)&&0<r.cmpn(1);){for(var s=0,u=1;0==(e.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(e.iushrn(s);0<s--;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,c=1;0==(r.words[0]&c)&&f<26;++f,c<<=1);if(0<f)for(r.iushrn(f);0<f--;)o.isOdd()&&o.iadd(a),o.iushrn(1);0<=e.cmp(r)?(e.isub(r),i.isub(o)):(r.isub(e),o.isub(i))}return(n=0===e.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(t),n},m.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0;for(var n=r.negative=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},m.prototype.invm=function(t){return this.egcd(t).a.umod(t)},m.prototype.isEven=function(){return 0==(1&this.words[0])},m.prototype.isOdd=function(){return 1==(1&this.words[0])},m.prototype.andln=function(t){return this.words[0]&t},m.prototype.bincn=function(t){b("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;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(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)e=1;else{r&&(t=-t),b(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},m.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},m.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;0<=r;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:i<n&&(e=1);break}}return e},m.prototype.gtn=function(t){return 1===this.cmpn(t)},m.prototype.gt=function(t){return 1===this.cmp(t)},m.prototype.gten=function(t){return 0<=this.cmpn(t)},m.prototype.gte=function(t){return 0<=this.cmp(t)},m.prototype.ltn=function(t){return-1===this.cmpn(t)},m.prototype.lt=function(t){return-1===this.cmp(t)},m.prototype.lten=function(t){return this.cmpn(t)<=0},m.prototype.lte=function(t){return this.cmp(t)<=0},m.prototype.eqn=function(t){return 0===this.cmpn(t)},m.prototype.eq=function(t){return 0===this.cmp(t)},m.red=function(t){return new _(t)},m.prototype.toRed=function(t){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},m.prototype.fromRed=function(){return b(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},m.prototype._forceRed=function(t){return this.red=t,this},m.prototype.forceRed=function(t){return b(!this.red,"Already a number in reduction context"),this._forceRed(t)},m.prototype.redAdd=function(t){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},m.prototype.redIAdd=function(t){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},m.prototype.redSub=function(t){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},m.prototype.redISub=function(t){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},m.prototype.redShl=function(t){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},m.prototype.redMul=function(t){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},m.prototype.redIMul=function(t){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},m.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},m.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},m.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},m.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},m.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},m.prototype.redPow=function(t){return b(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var f={k256:null,p224:null,p192:null,p25519:null};function c(t,e){this.name=t,this.p=new m(e,16),this.n=this.p.bitLength(),this.k=new m(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=m._prime(t);this.m=e.p,this.prime=e}else b(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){_.call(this,t),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)}c.prototype._tmp=function(){var t=new m(null);return t.words=new Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){for(var e,r=t;this.split(r,this.tmp),(e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=e<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},c.prototype.split=function(t,e){t.iushrn(this.n,0,e)},c.prototype.imulK=function(t){return t.imul(this.k)},r(y,c),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,0===(t.words[n-10]=i)&&10<t.length?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(v,c),r(g,c),r(w,c),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},m._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new v;else if("p192"===t)e=new g;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return f[t]=e},_.prototype._verify1=function(t){b(0===t.negative,"red works only with positives"),b(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){b(0==(t.negative|e.negative),"red works only with positives"),b(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return 0<=r.cmp(this.m)&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(b(e%2==1),3===e){var r=this.m.add(new m(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);b(!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 f=this.pow(u,n),c=this.pow(t,n.addn(1).iushrn(1)),l=this.pow(t,n),h=i;0!==l.cmp(o);){for(var d=l,p=0;0!==d.cmp(o);p++)d=d.redSqr();b(p<h);var y=this.pow(f,new m(1).iushln(h-p-1));c=c.redMul(y),f=y.redSqr(),l=l.redMul(f),h=p}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new m(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new m(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;0<=n;n--){for(var u=e.words[n],f=s-1;0<=f;f--){var c=u>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==c||0!==o?(o<<=1,o|=c,(4===++a||0===n&&0===f)&&(i=this.mul(i,r[o]),o=a=0)):a=0}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},m.mont=function(t){return new A(t)},r(A,_),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),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)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new m(0)._forceRed(this);var r=t.mul(e),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)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:21}],233:[function(t,e,r){"use strict";function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(r,"__esModule",{value:!0});var a=t("./address"),s=t("./bignumber"),u=t("./bytes"),c=t("./utf8"),l=t("./properties"),h=o(t("./errors")),d=new RegExp(/^bytes([0-9]*)$/),p=new RegExp(/^(u?int)([0-9]*)$/),y=new RegExp(/^(.*)\[([0-9]*)\]$/);r.defaultCoerceFunc=function(t,e){var r=t.match(p);return r&&parseInt(r[2])<=48?e.toNumber():e};var b=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),m=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function v(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}function g(e,t){function r(t){throw new Error('unexpected character "'+e[t]+'" at position '+t+' in "'+e+'"')}for(var n={type:"",name:"",state:{allowType:!0}},i=n,o=0;o<e.length;o++){var a=e[o];switch(a){case"(":i.state.allowParams||r(o),i.state.allowType=!1,i.type=v(i.type),i.components=[{type:"",name:"",parent:i,state:{allowType:!0}}],i=i.components[0];break;case")":delete i.state,t&&"indexed"===i.name&&(i.indexed=!0,i.name=""),i.type=v(i.type);var s=i;(i=i.parent)||r(o),delete s.parent,i.state.allowParams=!1,i.state.allowName=!0,i.state.allowArray=!0;break;case",":delete i.state,t&&"indexed"===i.name&&(i.indexed=!0,i.name=""),i.type=v(i.type);var u={type:"",name:"",parent:i.parent,state:{allowType:!0}};i.parent.components.push(u),delete i.parent,i=u;break;case" ":i.state.allowType&&""!==i.type&&(i.type=v(i.type),delete i.state.allowType,i.state.allowName=!0,i.state.allowParams=!0),i.state.allowName&&""!==i.name&&(t&&"indexed"===i.name?(i.indexed=!0,i.name=""):i.state.allowName=!1);break;case"[":i.state.allowArray||r(o),i.type+=a,i.state.allowArray=!1,i.state.allowName=!1,i.state.readArray=!0;break;case"]":i.state.readArray||r(o),i.type+=a,i.state.readArray=!1,i.state.allowArray=!0,i.state.allowName=!0;break;default:i.state.allowType?(i.type+=a,i.state.allowParams=!0,i.state.allowArray=!0):i.state.allowName?(i.name+=a,delete i.state.allowArray):i.state.readArray?i.type+=a:r(o)}}if(i.parent)throw new Error("unexpected eof");return delete n.state,t&&"indexed"===i.name&&(i.indexed=!0,i.name=""),n.type=v(n.type),n}function w(t){return D(r.defaultCoerceFunc,t).type}r.parseParamType=function(t){return g(t,!0)},r.formatParamType=w,r.formatSignature=function(t){return t.name+"("+t.inputs.map(function(t){return w(t)}).join(",")+")"},r.parseSignature=function(t){if("string"==typeof t)return"event "===(t=(t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).substring(0,6)?function(t){var e={anonymous:!1,inputs:[],name:"",type:"event"},r=t.match(b);if(!r)throw new Error("invalid event: "+t);if(e.name=r[1].trim(),L(r[2]).forEach(function(t){(t=g(t,!0)).indexed=!!t.indexed,e.inputs.push(t)}),r[3].split(" ").forEach(function(t){switch(t){case"anonymous":e.anonymous=!0;break;case"":break;default:console.log("unknown modifier: "+t)}}),e.name&&!e.name.match(m))throw new Error('invalid identifier: "'+e.name+'"');return e}(t.substring(6).trim()):("function "===t.substring(0,9)&&(t=t.substring(9)),function(t){var e={constant:!1,inputs:[],name:"",outputs:[],payable:!1,stateMutability:null,type:"function"},r=t.split(" returns "),n=r[0].match(b);if(!n)throw new Error("invalid signature");if(e.name=n[1].trim(),!e.name.match(m))throw new Error('invalid identifier: "'+n[1]+'"');if(L(n[2]).forEach(function(t){e.inputs.push(g(t))}),n[3].split(" ").forEach(function(t){switch(t){case"constant":e.constant=!0;break;case"payable":e.payable=!0;break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"":break;default:console.log("unknown modifier: "+t)}}),1<r.length){var i=r[1].match(b);if(""!=i[1].trim()||""!=i[3].trim())throw new Error("unexpected tokens");L(i[2]).forEach(function(t){e.outputs.push(g(t))})}return e}(t.trim()));throw new Error("unknown signature")};var _=function(t,e,r,n,i){this.coerceFunc=t,this.name=e,this.type=r,this.localName=n,this.dynamic=i},A=function(r){function t(t){var e=r.call(this,t.coerceFunc,t.name,t.type,void 0,t.dynamic)||this;return l.defineReadOnly(e,"coder",t),e}return i(t,r),t.prototype.encode=function(t){return this.coder.encode(t)},t.prototype.decode=function(t,e){return this.coder.decode(t,e)},t}(_),S=function(r){function t(t,e){return r.call(this,t,"null","",e,!1)||this}return i(t,r),t.prototype.encode=function(t){return u.arrayify([])},t.prototype.decode=function(t,e){if(e>t.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}},t}(_),x=function(a){function t(t,e,r,n){var i=this,o=(r?"int":"uint")+8*e;return(i=a.call(this,t,o,o,n,!1)||this).size=e,i.signed=r,i}return i(t,a),t.prototype.encode=function(e){try{var t=s.bigNumberify(e);return t=t.toTwos(8*this.size).maskn(8*this.size),this.signed&&(t=t.fromTwos(8*this.size).toTwos(256)),u.padZeros(u.arrayify(t),32)}catch(t){h.throwError("invalid number value",h.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:e})}return null},t.prototype.decode=function(t,e){t.length<e+32&&h.throwError("insufficient data for "+this.name+" type",h.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:u.hexlify(t.slice(e,e+32))});var r=32-this.size,n=s.bigNumberify(t.slice(e+r,e+32));return n=this.signed?n.fromTwos(8*this.size):n.maskn(8*this.size),{consumed:32,value:this.coerceFunc(this.name,n)}},t}(_),E=new x(function(t,e){return e},32,!1,"none"),k=function(r){function t(t,e){return r.call(this,t,"bool","bool",e,!1)||this}return i(t,r),t.prototype.encode=function(t){return E.encode(t?1:0)},t.prototype.decode=function(t,e){try{var r=E.decode(t,e)}catch(t){throw"insufficient data for uint256 type"===t.reason&&h.throwError("insufficient data for boolean type",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"boolean",value:t.value}),t}return{consumed:r.consumed,value:this.coerceFunc("bool",!r.value.isZero())}},t}(_),M=function(o){function t(t,e,r){var n=this,i="bytes"+e;return(n=o.call(this,t,i,i,r,!1)||this).length=e,n}return i(t,o),t.prototype.encode=function(e){var t=new Uint8Array(32);try{var r=u.arrayify(e);if(32<r.length)throw new Error;t.set(r)}catch(t){h.throwError("invalid "+this.name+" value",h.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:t.value||e})}return t},t.prototype.decode=function(t,e){return t.length<e+32&&h.throwError("insufficient data for "+name+" type",h.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:u.hexlify(t.slice(e,e+32))}),{consumed:32,value:this.coerceFunc(this.name,u.hexlify(t.slice(e,e+this.length)))}},t}(_),j=function(r){function t(t,e){return r.call(this,t,"address","address",e,!1)||this}return i(t,r),t.prototype.encode=function(e){var t=new Uint8Array(32);try{t.set(u.arrayify(a.getAddress(e)),12)}catch(t){h.throwError("invalid address",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"address",value:e})}return t},t.prototype.decode=function(t,e){return t.length<e+32&&h.throwError("insufficuent data for address type",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"address",value:u.hexlify(t.slice(e,e+32))}),{consumed:32,value:this.coerceFunc("address",a.getAddress(u.hexlify(t.slice(e+12,e+32))))}},t}(_);function I(t){var e=32*Math.ceil(t.length/32),r=new Uint8Array(e-t.length);return u.concat([E.encode(t.length),t,r])}function T(t,e,r){t.length<e+32&&h.throwError("insufficient data for dynamicBytes length",h.INVALID_ARGUMENT,{arg:r,coderType:"dynamicBytes",value:u.hexlify(t.slice(e,e+32))});var n=E.decode(t,e).value;try{n=n.toNumber()}catch(t){h.throwError("dynamic bytes count too large",h.INVALID_ARGUMENT,{arg:r,coderType:"dynamicBytes",value:n.toString()})}return t.length<e+32+n&&h.throwError("insufficient data for dynamicBytes type",h.INVALID_ARGUMENT,{arg:r,coderType:"dynamicBytes",value:u.hexlify(t.slice(e,e+32+n))}),{consumed:32+32*Math.ceil(n/32),value:t.slice(e+32,e+32+n)}}var R=function(r){function t(t,e){return r.call(this,t,"bytes","bytes",e,!0)||this}return i(t,r),t.prototype.encode=function(t){try{return I(u.arrayify(t))}catch(t){h.throwError("invalid bytes value",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"bytes",value:t.value})}return null},t.prototype.decode=function(t,e){var r=T(t,e,this.localName);return r.value=this.coerceFunc("bytes",u.hexlify(r.value)),r},t}(_),O=function(r){function t(t,e){return r.call(this,t,"string","string",e,!0)||this}return i(t,r),t.prototype.encode=function(t){return"string"!=typeof t&&h.throwError("invalid string value",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"string",value:t}),I(c.toUtf8Bytes(t))},t.prototype.decode=function(t,e){var r=T(t,e,this.localName);return r.value=this.coerceFunc("string",c.toUtf8String(r.value)),r},t}(_);function B(t){return 32*Math.ceil(t/32)}function U(t,r){if(Array.isArray(r));else if(r&&"object"===f(r)){var e=[];t.forEach(function(t){e.push(r[t.localName])}),r=e}else h.throwError("invalid tuple value",h.INVALID_ARGUMENT,{coderType:"tuple",value:r});t.length!==r.length&&h.throwError("types/value length mismatch",h.INVALID_ARGUMENT,{coderType:"tuple",value:r});var n=[];t.forEach(function(t,e){n.push({dynamic:t.dynamic,value:t.encode(r[e])})});var i=0,o=0;n.forEach(function(t){t.dynamic?(i+=32,o+=B(t.value.length)):i+=B(t.value.length)});var a=0,s=i,u=new Uint8Array(i+o);return n.forEach(function(t){t.dynamic?(u.set(E.encode(s),a),a+=32,u.set(t.value,s),s+=B(t.value.length)):(u.set(t.value,a),a+=B(t.value.length))}),u}function C(t,n,i){var o=i,a=0,s=[];return t.forEach(function(t){if(t.dynamic){var e=E.decode(n,i);(r=t.decode(n,o+e.value.toNumber())).consumed=e.consumed}else var r=t.decode(n,i);null!=r.value&&s.push(r.value),i+=r.consumed,a+=r.consumed}),t.forEach(function(t,e){var r=t.localName;r&&("length"===r&&(r="_length"),null==s[r]&&(s[r]=s[e]))}),{value:s,consumed:a}}var N=function(s){function t(t,e,r,n){var i=this,o=e.type+"["+(0<=r?r:"")+"]",a=-1===r||e.dynamic;return(i=s.call(this,t,"array",o,n,a)||this).coder=e,i.length=r,i}return i(t,s),t.prototype.encode=function(t){Array.isArray(t)||h.throwError("expected array value",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t});var e=this.length,r=new Uint8Array(0);-1===e&&(e=t.length,r=E.encode(e)),h.checkArgumentCount(e,t.length,"in coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i<t.length;i++)n.push(this.coder);return u.concat([r,U(n,t)])},t.prototype.decode=function(t,e){var r=0,n=this.length;if(-1===n){try{var i=E.decode(t,e)}catch(t){h.throwError("insufficient data for dynamic array length",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t.value})}try{n=i.value.toNumber()}catch(t){h.throwError("array count too large",h.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:i.value.toString()})}r+=i.consumed,e+=i.consumed}for(var o=[],a=0;a<n;a++)o.push(new A(this.coder));var s=C(o,t,e);return s.consumed+=r,s.value=this.coerceFunc(this.type,s.value),s},t}(_),P=function(s){function t(t,e,r){var n=this,i=!1,o=[];e.forEach(function(t){t.dynamic&&(i=!0),o.push(t.type)});var a="tuple("+o.join(",")+")";return(n=s.call(this,t,"tuple",a,r,i)||this).coders=e,n}return i(t,s),t.prototype.encode=function(t){return U(this.coders,t)},t.prototype.decode=function(t,e){var r=C(this.coders,t,e);return r.value=this.coerceFunc(this.type,r.value),r},t}(_);function L(t){for(var e=[],r="",n=0,i=0;i<t.length;i++){var o=t[i];if(","===o&&0===n)e.push(r),r="";else if(r+=o,"("===o)n++;else if(")"===o&&-1===--n)throw new Error("unbalanced parenthsis")}return e.push(r),e}var F={address:j,bool:k,string:O,bytes:R};function D(t,e){var r,n=F[e.type];if(n)return new n(t,e.name);if(r=e.type.match(p))return(0===(i=parseInt(r[2]||"256"))||256<i||i%8!=0)&&h.throwError("invalid "+r[1]+" bit length",h.INVALID_ARGUMENT,{arg:"param",value:e}),new x(t,i/8,"int"===r[1],e.name);if(r=e.type.match(d))return(0===(i=parseInt(r[1]))||32<i)&&h.throwError("invalid bytes length",h.INVALID_ARGUMENT,{arg:"param",value:e}),new M(t,i,e.name);if(r=e.type.match(y)){var i=parseInt(r[2]||"-1");return(e=l.jsonCopy(e)).type=r[1],new N(t,D(t,e),i,e.name)}return"tuple"===e.type.substring(0,5)?function(e,t,r){t||(t=[]);var n=[];return t.forEach(function(t){n.push(D(e,t))}),new P(e,n,r)}(t,e.components,e.name):""===e.type?new S(t,e.name):(h.throwError("invalid type",h.INVALID_ARGUMENT,{arg:"type",value:e.type}),null)}var q=function(){function e(t){h.checkNew(this,e),t||(t=r.defaultCoerceFunc),l.defineReadOnly(this,"coerceFunc",t)}return e.prototype.encode=function(t,e){t.length!==e.length&&h.throwError("types/values length mismatch",h.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var r=[];return t.forEach(function(t){var e=null;e="string"==typeof t?g(t):t,r.push(D(this.coerceFunc,e))},this),u.hexlify(new P(this.coerceFunc,r,"_").encode(e))},e.prototype.decode=function(t,e){var r=[];return t.forEach(function(t){var e=null;e="string"==typeof t?g(t):l.jsonCopy(t),r.push(D(this.coerceFunc,e))},this),new P(this.coerceFunc,r,"_").decode(u.arrayify(e),0).value},e}();r.AbiCoder=q,r.defaultAbiCoder=new q},{"./address":234,"./bignumber":235,"./bytes":236,"./errors":237,"./properties":239,"./utf8":242}],234:[function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(t("bn.js")),o=t("./bytes"),a=t("./keccak256"),s=t("./rlp"),u=t("./errors");function f(t){"string"==typeof t&&t.match(/^0x[0-9A-Fa-f]{40}$/)||u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t});for(var e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=e[n].charCodeAt(0);r=o.arrayify(a.keccak256(r));for(var i=0;i<40;i+=2)8<=r[i>>1]>>4&&(e[i]=e[i].toUpperCase()),8<=(15&r[i>>1])&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}for(var c={},l=0;l<10;l++)c[String(l)]=String(l);for(l=0;l<26;l++)c[String.fromCharCode(65+l)]=String(10+l);var h,d=Math.floor((h=9007199254740991,Math.log10?Math.log10(h):Math.log(h)/Math.LN10));function p(t){t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00";var e="";for(t.split("").forEach(function(t){e+=c[t]});e.length>=d;){var r=e.substring(0,d);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function y(t){var e=null;if("string"!=typeof t&&u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=f(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&u.throwError("bad address checksum",u.INVALID_ARGUMENT,{arg:"address",value:t});else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==p(t)&&u.throwError("bad icap checksum",u.INVALID_ARGUMENT,{arg:"address",value:t}),e=new i.default.BN(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=f("0x"+e)}else u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t});return e}r.getAddress=y,r.getIcapAddress=function(t){for(var e=new i.default.BN(y(t).substring(2),16).toString(36).toUpperCase();e.length<30;)e="0"+e;return"XE"+p("XE00"+e)+e},r.getContractAddress=function(t){if(!t.from)throw new Error("missing from address");var e=t.nonce;return y("0x"+a.keccak256(s.encode([y(t.from),o.stripZeros(o.hexlify(e))])).substring(26))}},{"./bytes":236,"./errors":237,"./keccak256":238,"./rlp":240,"bn.js":232}],235:[function(t,e,r){"use strict";var n,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=function(t){return t&&t.__esModule?t:{default:t}},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(r,"__esModule",{value:!0});var s=o(t("bn.js")),u=t("./bytes"),f=t("./properties"),c=t("./types"),l=a(t("./errors")),h=new s.default.BN(-1);function d(t){var e=t.toString(16);return"-"===e[0]?e.length%2==0?"-0x0"+e.substring(1):"-0x"+e.substring(1):e.length%2==1?"0x0"+e:"0x"+e}function p(t){return m(t)._bn}function y(t){return new b(d(t))}var b=function(r){function n(t){var e=r.call(this)||this;if(l.checkNew(e,n),"string"==typeof t)u.isHexString(t)?("0x"==t&&(t="0x0"),f.defineReadOnly(e,"_hex",t)):"-"===t[0]&&u.isHexString(t.substring(1))?f.defineReadOnly(e,"_hex",t):t.match(/^-?[0-9]*$/)?(""==t&&(t="0"),f.defineReadOnly(e,"_hex",d(new s.default.BN(t)))):l.throwError("invalid BigNumber string value",l.INVALID_ARGUMENT,{arg:"value",value:t});else if("number"==typeof t){parseInt(String(t))!==t&&l.throwError("underflow",l.NUMERIC_FAULT,{operation:"setValue",fault:"underflow",value:t,outputValue:parseInt(String(t))});try{f.defineReadOnly(e,"_hex",d(new s.default.BN(t)))}catch(t){l.throwError("overflow",l.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:t.message})}}else t instanceof n?f.defineReadOnly(e,"_hex",t._hex):t.toHexString?f.defineReadOnly(e,"_hex",d(p(t.toHexString()))):u.isArrayish(t)?f.defineReadOnly(e,"_hex",d(new s.default.BN(u.hexlify(t).substring(2),16))):l.throwError("invalid BigNumber value",l.INVALID_ARGUMENT,{arg:"value",value:t});return e}return i(n,r),Object.defineProperty(n.prototype,"_bn",{get:function(){return"-"===this._hex[0]?new s.default.BN(this._hex.substring(3),16).mul(h):new s.default.BN(this._hex.substring(2),16)},enumerable:!0,configurable:!0}),n.prototype.fromTwos=function(t){return y(this._bn.fromTwos(t))},n.prototype.toTwos=function(t){return y(this._bn.toTwos(t))},n.prototype.add=function(t){return y(this._bn.add(p(t)))},n.prototype.sub=function(t){return y(this._bn.sub(p(t)))},n.prototype.div=function(t){return m(t).isZero()&&l.throwError("division by zero",l.NUMERIC_FAULT,{operation:"divide",fault:"division by zero"}),y(this._bn.div(p(t)))},n.prototype.mul=function(t){return y(this._bn.mul(p(t)))},n.prototype.mod=function(t){return y(this._bn.mod(p(t)))},n.prototype.pow=function(t){return y(this._bn.pow(p(t)))},n.prototype.maskn=function(t){return y(this._bn.maskn(t))},n.prototype.eq=function(t){return this._bn.eq(p(t))},n.prototype.lt=function(t){return this._bn.lt(p(t))},n.prototype.lte=function(t){return this._bn.lte(p(t))},n.prototype.gt=function(t){return this._bn.gt(p(t))},n.prototype.gte=function(t){return this._bn.gte(p(t))},n.prototype.isZero=function(){return this._bn.isZero()},n.prototype.toNumber=function(){try{return this._bn.toNumber()}catch(t){l.throwError("overflow",l.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:t.message})}return null},n.prototype.toString=function(){return this._bn.toString(10)},n.prototype.toHexString=function(){return this._hex},n}(c.BigNumber);function m(t){return t instanceof b?t:new b(t)}r.bigNumberify=m,r.ConstantNegativeOne=m(-1),r.ConstantZero=m(0),r.ConstantOne=m(1),r.ConstantTwo=m(2),r.ConstantWeiPerEther=m("1000000000000000000")},{"./bytes":236,"./errors":237,"./properties":239,"./types":241,"bn.js":232}],236:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});var n=t("./types"),s=t("./errors");function a(t){return t instanceof n.BigNumber}function u(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return new Uint8Array(Array.prototype.slice.apply(e,t))}),e}function f(t){if(!t||parseInt(String(t.length))!=t.length||"string"==typeof t)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(r<0||256<=r||parseInt(String(r))!=r)return!1}return!0}function c(t){if(null==t&&s.throwError("cannot convert null value to array",s.INVALID_ARGUMENT,{arg:"value",value:t}),a(t)&&(t=t.toHexString()),"string"!=typeof t)return f(t)?u(new Uint8Array(t)):(s.throwError("invalid arrayify value",null,{arg:"value",value:t,type:i(t)}),null);var e=t.match(/^(0x)?[0-9a-fA-F]*$/);e||s.throwError("invalid hexidecimal string",s.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==e[1]&&s.throwError("hex string must have 0x prefix",s.INVALID_ARGUMENT,{arg:"value",value:t}),(t=t.substring(2)).length%2&&(t="0"+t);for(var r=[],n=0;n<t.length;n+=2)r.push(parseInt(t.substr(n,2),16));return u(new Uint8Array(r))}function o(t){for(var e=[],r=0,n=0;n<t.length;n++){var i=c(t[n]);e.push(i),r+=i.length}var o=new Uint8Array(r),a=0;for(n=0;n<e.length;n++)o.set(e[n],a),a+=e[n].length;return u(o)}function l(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}r.AddressZero="0x0000000000000000000000000000000000000000",r.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000",r.isArrayish=f,r.arrayify=c,r.concat=o,r.stripZeros=function(t){var e=c(t);if(0===e.length)return e;for(var r=0;0===e[r];)r++;return r&&(e=e.slice(r)),e},r.padZeros=function(t,e){if(e<(t=c(t)).length)throw new Error("cannot pad");var r=new Uint8Array(e);return r.set(t,e-t.length),u(r)},r.isHexString=l;var h="0123456789abcdef";function d(t){if(a(t))return t.toHexString();if("number"==typeof t){t<0&&s.throwError("cannot hexlify negative value",s.INVALID_ARGUMENT,{arg:"value",value:t});for(var e="";t;)e=h[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("string"==typeof t){var r=t.match(/^(0x)?[0-9a-fA-F]*$/);return r||s.throwError("invalid hexidecimal string",s.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==r[1]&&s.throwError("hex string must have 0x prefix",s.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2&&(t="0x0"+t.substring(2)),t}if(f(t)){for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(h[(240&o)>>4]+h[15&o])}return"0x"+n.join("")}return s.throwError("invalid hexlify value",null,{arg:"value",value:t}),"never"}function p(t,e){for(l(t)||s.throwError("invalid hex string",s.INVALID_ARGUMENT,{arg:"value",value:t});t.length<2*e+2;)t="0x0"+t.substring(2);return t}function y(t){var e,r=0,n="0x",i="0x";if((e=t)&&null!=e.r&&null!=e.s){null==t.v&&null==t.recoveryParam&&s.throwError("at least on of recoveryParam or v must be specified",s.INVALID_ARGUMENT,{argument:"signature",value:t}),n=p(t.r,32),i=p(t.s,32),"string"==typeof(r=t.v)&&(r=parseInt(r,16));var o=t.recoveryParam;null==o&&null!=t.v&&(o=1-r%2),r=27+o}else{var a=c(t);if(65!==a.length)throw new Error("invalid signature");n=d(a.slice(0,32)),i=d(a.slice(32,64)),27!==(r=a[64])&&28!==r&&(r=27+r%2)}return{r:n,s:i,recoveryParam:r-27,v:r}}r.hexlify=d,r.hexDataLength=function(t){return l(t)&&t.length%2==0?(t.length-2)/2:null},r.hexDataSlice=function(t,e,r){return l(t)||s.throwError("invalid hex data",s.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2!=0&&s.throwError("hex data length must be even",s.INVALID_ARGUMENT,{arg:"value",value:t}),e=2+2*e,null!=r?"0x"+t.substring(e,e+2*r):"0x"+t.substring(e)},r.hexStripZeros=function(t){for(l(t)||s.throwError("invalid hex string",s.INVALID_ARGUMENT,{arg:"value",value:t});3<t.length&&"0x0"===t.substring(0,3);)t="0x"+t.substring(3);return t},r.hexZeroPad=p,r.splitSignature=y,r.joinSignature=function(t){return d(o([(t=y(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},{"./errors":237,"./types":241}],237:[function(t,e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.UNKNOWN_ERROR="UNKNOWN_ERROR",a.NOT_IMPLEMENTED="NOT_IMPLEMENTED",a.MISSING_NEW="MISSING_NEW",a.CALL_EXCEPTION="CALL_EXCEPTION",a.INVALID_ARGUMENT="INVALID_ARGUMENT",a.MISSING_ARGUMENT="MISSING_ARGUMENT",a.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",a.NUMERIC_FAULT="NUMERIC_FAULT";var r=!(a.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION"),s=!1;function n(t,e,r){if(s)throw new Error("unknown error");e||(e=a.UNKNOWN_ERROR),r||(r={});var n=[];Object.keys(r).forEach(function(e){try{n.push(e+"="+JSON.stringify(r[e]))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}});var i=t;n.length&&(t+=" ("+n.join(", ")+")");var o=new Error(t);throw o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}a.throwError=n,a.checkNew=function(t,e){t instanceof e||n("missing new",a.MISSING_NEW,{name:e.name})},a.checkArgumentCount=function(t,e,r){r||(r=""),t<e&&n("missing argument"+r,a.MISSING_ARGUMENT,{count:t,expectedCount:e}),e<t&&n("too many arguments"+r,a.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})},a.setCensorship=function(t,e){r&&n("error censorship permanent",a.UNSUPPORTED_OPERATION,{operation:"setCersorship"}),s=!!t,r=!!e}},{}],238:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("js-sha3"),i=t("./bytes");r.keccak256=function(t){return"0x"+n.keccak_256(i.arrayify(t))}},{"./bytes":236,"js-sha3":243}],239:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defineReadOnly=function(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})},r.defineFrozen=function(t,e,r){var n=JSON.stringify(r);Object.defineProperty(t,e,{enumerable:!0,get:function(){return JSON.parse(n)}})},r.resolveProperties=function(r){var n={},i=[];return Object.keys(r).forEach(function(e){var t=r[e];t instanceof Promise?i.push(t.then(function(t){return n[e]=t,null})):n[e]=t}),Promise.all(i).then(function(){return n})},r.shallowCopy=function(t){var e={};for(var r in t)e[r]=t[r];return e},r.jsonCopy=function(t){return JSON.parse(JSON.stringify(t))}},{}],240:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("./bytes");function a(t){for(var e=[];t;)e.unshift(255&t),t>>=8;return e}function i(t,e,r){for(var n=0,i=0;i<r;i++)n=256*n+t[e+i];return n}function s(t,e,r,n){for(var i=[];r<e+1+n;){var o=u(t,r);if(i.push(o.result),e+1+n<(r+=o.consumed))throw new Error("invalid rlp")}return{consumed:1+n,result:i}}function u(t,e){if(0===t.length)throw new Error("invalid rlp data");if(248<=t[e]){if(e+1+(r=t[e]-247)>t.length)throw new Error("too short");if(e+1+r+(n=i(t,e+1,r))>t.length)throw new Error("to short");return s(t,e,e+1+r,r+n)}if(192<=t[e]){if(e+1+(n=t[e]-192)>t.length)throw new Error("invalid rlp data");return s(t,e,e+1,n)}if(184<=t[e]){var r;if(e+1+(r=t[e]-183)>t.length)throw new Error("invalid rlp data");if(e+1+r+(n=i(t,e+1,r))>t.length)throw new Error("invalid rlp data");return{consumed:1+r+n,result:o.hexlify(t.slice(e+1+r,e+1+r+n))}}if(128<=t[e]){var n;if(e+1+(n=t[e]-128)>t.length)throw new Error("invlaid rlp data");return{consumed:1+n,result:o.hexlify(t.slice(e+1,e+1+n))}}return{consumed:1,result:o.hexlify(t[e])}}r.encode=function(t){return o.hexlify(function e(t){if(Array.isArray(t)){var r=[];return t.forEach(function(t){r=r.concat(e(t))}),r.length<=55?(r.unshift(192+r.length),r):((n=a(r.length)).unshift(247+n.length),n.concat(r))}var n,i=Array.prototype.slice.call(o.arrayify(t));return 1===i.length&&i[0]<=127?i:i.length<=55?(i.unshift(128+i.length),i):((n=a(i.length)).unshift(183+n.length),n.concat(i))}(t))},r.decode=function(t){var e=o.arrayify(t),r=u(e,0);if(r.consumed!==e.length)throw new Error("invalid rlp data");return r.result}},{"./bytes":236}],241:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){};r.BigNumber=n;var i=function(){};r.Indexed=i;var o=function(){};r.MinimalProvider=o;var a=function(){};r.Signer=a;var s=function(){};r.HDNode=s},{}],242:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,n,u=t("./bytes");(n=a=r.UnicodeNormalizationForm||(r.UnicodeNormalizationForm={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",r.toUtf8Bytes=function(t,e){void 0===e&&(e=a.current),e!=a.current&&(t=t.normalize(e));for(var r=[],n=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);r[n++]=o<128?o:(r[n++]=o<2048?o>>6|192:(55296==(64512&o)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128):r[n++]=o>>12|224,o>>6&63|128),63&o|128)}return u.arrayify(r)},r.toUtf8String=function(t){t=u.arrayify(t);for(var e="",r=0;r<t.length;){var n=t[r++];if(n>>7!=0){if(n>>6!=2){var i=null;if(n>>5==6)i=1;else if(n>>4==14)i=2;else if(n>>3==30)i=3;else if(n>>2==62)i=4;else{if(n>>1!=126)continue;i=5}if(r+i>t.length){for(;r<t.length&&t[r]>>6==2;r++);if(r!=t.length)continue;return e}var o,a=n&(1<<8-i-1)-1;for(o=0;o<i;o++){var s=t[r++];if(s>>6!=2)break;a=a<<6|63&s}o==i?a<=65535?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296+(a>>10&1023),56320+(1023&a))):r--}}else e+=String.fromCharCode(n)}return e}},{"./bytes":236}],243:[function(t,A,e){(function(g,w){"use strict";function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"===("undefined"==typeof window?"undefined":_(window))?window:{};!t.JS_SHA3_NO_NODE_JS&&"object"===(void 0===g?"undefined":_(g))&&g.versions&&g.versions.node&&(t=w);for(var e=!t.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===A?"undefined":_(A))&&A.exports,u="0123456789abcdef".split(""),c=[0,8,16,24],ct=[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(e,r,n){return function(t){return new m(e,r,e).update(t)[n]()}},s=function(r,n,i){return function(t,e){return new m(r,n,e).update(t)[i]()}},n=function(t,e){var r=a(t,e,"hex");r.create=function(){return new m(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<o.length;++n){var i=o[n];r[i]=a(t,e,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(e,r){var n=s(e,r,"hex");n.create=function(t){return new m(e,r,t)},n.update=function(t,e){return n.create(e).update(t)};for(var t=0;t<o.length;++t){var i=o[t];n[i]=s(e,r,i)}return n}}],f={},l=[],h=0;h<i.length;++h)for(var d=i[h],p=d.bits,y=0;y<p.length;++y){var b=d.name+"_"+p[y];l.push(b),f[b]=d.createMethod(p[y],d.padding)}function m(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<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(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,f=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(e)for(r=this.start;u<i&&r<a;++u)o[r>>2]|=t[u]<<c[3&r++];else for(r=this.start;u<i&&r<a;++u)(n=t.charCodeAt(u))<128?o[r>>2]|=n<<c[3&r++]:(n<2048?o[r>>2]|=(192|n>>6)<<c[3&r++]:(n<55296||57344<=n?o[r>>2]|=(224|n>>12)<<c[3&r++]:(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<c[3&r++],o[r>>2]|=(128|n>>12&63)<<c[3&r++]),o[r>>2]|=(128|n>>6&63)<<c[3&r++]),o[r>>2]|=(128|63&n)<<c[3&r++]);if(a<=(this.lastByteIndex=r)){for(this.start=r-a,this.block=o[s],r=0;r<s;++r)f[r]^=o[r];v(f),this.reset=!0}else this.start=r}return this},m.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];v(n)},m.prototype.toString=m.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],s+=u[t>>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];a%e==0&&(v(r),o=0)}return i&&(t=r[o],0<i&&(s+=u[t>>4&15]+u[15&t]),1<i&&(s+=u[t>>12&15]+u[t>>8&15]),2<i&&(s+=u[t>>20&15]+u[t>>16&15])),s},m.prototype.buffer=m.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)u[a]=r[o];a%e==0&&v(r)}return i&&(u[o]=r[o],t=t.slice(0,s)),t},m.prototype.digest=m.prototype.array=function(){this.finalize();for(var t,e,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)t=s<<2,e=n[a],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&v(n)}return o&&(t=s<<2,e=n[a],0<o&&(u[t]=255&e),1<o&&(u[t+1]=e>>8&255),2<o&&(u[t+2]=e>>16&255)),u};var v=function(t){var e,r,n,i,o,a,s,u,f,c,l,h,d,p,y,b,m,v,g,w,_,A,S,x,E,k,M,j,I,T,R,O,B,U,C,N,P,L,F,D,q,z,H,K,V,G,W,Y,X,J,Z,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(h=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|f>>>31),r=o^(f<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(h<<1|d>>>31),r=f^(d<<1|h>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],y=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,st=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,m=t[12]<<12|t[13]>>>20,Y=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,B=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,D=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=y^~m&g,t[10]=x^~k&j,t[11]=E^~M&I,t[20]=U^~N&L,t[21]=C^~P&F,t[30]=K^~G&Y,t[31]=V^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~v&w,t[3]=m^~g&_,t[12]=k^~j&T,t[13]=M^~I&R,t[22]=N^~L&D,t[23]=P^~F&q,t[32]=G^~Y&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&st,t[4]=v^~w&A,t[5]=g^~_&S,t[14]=j^~T&O,t[15]=I^~R&B,t[24]=L^~D&z,t[25]=F^~q&H,t[34]=Y^~J&$,t[35]=X^~Z&Q,t[44]=it^~at&ut,t[45]=ot^~st&ft,t[6]=w^~A&p,t[7]=_^~S&y,t[16]=T^~O&x,t[17]=R^~B&E,t[26]=D^~z&U,t[27]=q^~H&C,t[36]=J^~$&K,t[37]=Z^~Q&V,t[46]=at^~ut&tt,t[47]=st^~ft&et,t[8]=A^~p&b,t[9]=S^~y&m,t[18]=O^~x&k,t[19]=B^~E&M,t[28]=z^~U&N,t[29]=H^~C&P,t[38]=$^~K&G,t[39]=Q^~V&W,t[48]=ut^~tt&rt,t[49]=ft^~et&nt,t[0]^=ct[n],t[1]^=ct[n+1]};if(e)A.exports=f;else for(h=0;h<l.length;++h)t[l[h]]=f[l[h]]}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124}],244:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],245:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c=t("underscore"),n=t("web3-utils"),o=new(t("ethers/utils/abi-coder").AbiCoder)(function(t,e){return!t.match(/^u?int/)||c.isArray(e)||c.isObject(e)&&"BN"===e.constructor.name?e:e.toString()});function l(){}var a=function(){};a.prototype.encodeFunctionSignature=function(t){return c.isObject(t)&&(t=n._jsonInterfaceMethodToString(t)),n.sha3(t).slice(0,10)},a.prototype.encodeEventSignature=function(t){return c.isObject(t)&&(t=n._jsonInterfaceMethodToString(t)),n.sha3(t)},a.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},a.prototype.encodeParameters=function(t,e){return o.encode(this.mapTypes(t),e.map(function(t){return n.isBN(t)||n.isBigNumber(t)?t.toString(10):t}))},a.prototype.mapTypes=function(t){var r=this,n=[];return t.forEach(function(t){if(r.isSimplifiedStructFormat(t)){var e=Object.keys(t)[0];n.push(Object.assign(r.mapStructNameAndType(e),{components:r.mapStructToCoderFormat(t[e])}))}else n.push(t)}),n},a.prototype.isSimplifiedStructFormat=function(t){return"object"===i(t)&&void 0===t.components&&void 0===t.name},a.prototype.mapStructNameAndType=function(t){var e="tuple";return-1<t.indexOf("[]")&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},a.prototype.mapStructToCoderFormat=function(e){var r=this,n=[];return Object.keys(e).forEach(function(t){"object"!==i(e[t])?n.push({name:t,type:e[t]}):n.push(Object.assign(r.mapStructNameAndType(t),{components:r.mapStructToCoderFormat(e[t])}))}),n},a.prototype.encodeFunctionCall=function(t,e){return this.encodeFunctionSignature(t)+this.encodeParameters(t.inputs,e).replace("0x","")},a.prototype.decodeParameter=function(t,e){return this.decodeParameters([t],e)[0]},a.prototype.decodeParameters=function(t,e){if(0<t.length&&(!e||"0x"===e||"0X"===e))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=o.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,"")),i=new l;return i.__length__=0,t.forEach(function(t,e){var r=n[i.__length__];r="0x"===r?null:r,i[e]=r,c.isObject(t)&&t.name&&(i[t.name]=r),i.__length__++}),i},a.prototype.decodeLog=function(t,e,r){var n=this;r=c.isArray(r)?r:[r],e=e||"";var i=[],o=[],a=0;t.forEach(function(e,t){e.indexed?(o[t]=["bool","int","uint","address","fixed","ufixed"].find(function(t){return-1!==e.type.indexOf(t)})?n.decodeParameter(e.type,r[a]):r[a],a++):i[t]=e});var s=e,u=s?this.decodeParameters(i,s):[],f=new l;return f.__length__=0,t.forEach(function(t,e){f[e]="string"===t.type?"":null,void 0!==u[e]&&(f[e]=u[e]),void 0!==o[e]&&(f[e]=o[e]),t.name&&(f[t.name]=f[e]),f.__length__++}),f};var s=new a;e.exports=s},{"ethers/utils/abi-coder":233,underscore:244,"web3-utils":489}],246:[function(t,e,r){"use strict";e.exports=t("scryptsy")},{scryptsy:408}],247:[function(t,e,r){arguments[4][1][0].apply(r,arguments)},{"./asn1/api":248,"./asn1/base":250,"./asn1/constants":254,"./asn1/decoders":256,"./asn1/encoders":259,"bn.js":262,dup:1}],248:[function(t,e,r){arguments[4][2][0].apply(r,arguments)},{"../asn1":247,dup:2,inherits:375,vm:188}],249:[function(t,e,r){arguments[4][3][0].apply(r,arguments)},{"../base":250,buffer:50,dup:3,inherits:375}],250:[function(t,e,r){arguments[4][4][0].apply(r,arguments)},{"./buffer":249,"./node":251,"./reporter":252,dup:4}],251:[function(t,e,r){arguments[4][5][0].apply(r,arguments)},{"../base":250,dup:5,"minimalistic-assert":385}],252:[function(t,e,r){arguments[4][6][0].apply(r,arguments)},{dup:6,inherits:375}],253:[function(t,e,r){arguments[4][7][0].apply(r,arguments)},{"../constants":254,dup:7}],254:[function(t,e,r){arguments[4][8][0].apply(r,arguments)},{"./der":253,dup:8}],255:[function(t,e,r){arguments[4][9][0].apply(r,arguments)},{"../../asn1":247,dup:9,inherits:375}],256:[function(t,e,r){arguments[4][10][0].apply(r,arguments)},{"./der":255,"./pem":257,dup:10}],257:[function(t,e,r){arguments[4][11][0].apply(r,arguments)},{"./der":255,buffer:50,dup:11,inherits:375}],258:[function(t,e,r){arguments[4][12][0].apply(r,arguments)},{"../../asn1":247,buffer:50,dup:12,inherits:375}],259:[function(t,e,r){arguments[4][13][0].apply(r,arguments)},{"./der":258,"./pem":260,dup:13}],260:[function(t,e,r){arguments[4][14][0].apply(r,arguments)},{"./der":258,dup:14,inherits:375}],261:[function(t,e,r){"use strict";var o=t("safe-buffer").Buffer;e.exports={check:function(t){if(t.length<8)return!1;if(72<t.length)return!1;if(48!==t[0])return!1;if(t[1]!==t.length-2)return!1;if(2!==t[2])return!1;var e=t[3];if(0===e)return!1;if(5+e>=t.length)return!1;if(2!==t[4+e])return!1;var r=t[5+e];return!(0===r||6+e+r!==t.length||128&t[4]||1<e&&0===t[4]&&!(128&t[5])||128&t[e+6]||1<r&&0===t[e+6]&&!(128&t[e+7]))},decode:function(t){if(t.length<8)throw new Error("DER sequence length is too short");if(72<t.length)throw new Error("DER sequence length is too long");if(48!==t[0])throw new Error("Expected DER sequence");if(t[1]!==t.length-2)throw new Error("DER sequence length is invalid");if(2!==t[2])throw new Error("Expected DER integer");var e=t[3];if(0===e)throw new Error("R length is zero");if(5+e>=t.length)throw new Error("R length is too long");if(2!==t[4+e])throw new Error("Expected DER integer (2)");var r=t[5+e];if(0===r)throw new Error("S length is zero");if(6+e+r!==t.length)throw new Error("S length is invalid");if(128&t[4])throw new Error("R value is negative");if(1<e&&0===t[4]&&!(128&t[5]))throw new Error("R value excessively padded");if(128&t[e+6])throw new Error("S value is negative");if(1<r&&0===t[e+6]&&!(128&t[e+7]))throw new Error("S value excessively padded");return{r:t.slice(4,4+e),s:t.slice(6+e)}},encode:function(t,e){var r=t.length,n=e.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&t[0])throw new Error("R value is negative");if(128&e[0])throw new Error("S value is negative");if(1<r&&0===t[0]&&!(128&t[1]))throw new Error("R value excessively padded");if(1<n&&0===e[0]&&!(128&e[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]=t.length,t.copy(i,4),i[4+r]=2,i[5+r]=e.length,e.copy(i,6+r),i}}},{"safe-buffer":407}],262:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{buffer:21,dup:232}],263:[function(t,e,r){arguments[4][20][0].apply(r,arguments)},{crypto:21,dup:20}],264:[function(t,e,r){arguments[4][22][0].apply(r,arguments)},{dup:22,"safe-buffer":407}],265:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{"./aes":264,"./ghash":269,"./incr32":270,"buffer-xor":291,"cipher-base":292,dup:23,inherits:375,"safe-buffer":407}],266:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{"./decrypter":267,"./encrypter":268,"./modes/list.json":278,dup:24}],267:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{"./aes":264,"./authCipher":265,"./modes":277,"./streamCipher":280,"cipher-base":292,dup:25,evp_bytestokey:360,inherits:375,"safe-buffer":407}],268:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{"./aes":264,"./authCipher":265,"./modes":277,"./streamCipher":280,"cipher-base":292,dup:26,evp_bytestokey:360,inherits:375,"safe-buffer":407}],269:[function(t,e,r){arguments[4][27][0].apply(r,arguments)},{dup:27,"safe-buffer":407}],270:[function(t,e,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],271:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{"buffer-xor":291,dup:29}],272:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{"buffer-xor":291,dup:30,"safe-buffer":407}],273:[function(t,e,r){arguments[4][31][0].apply(r,arguments)},{dup:31,"safe-buffer":407}],274:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{dup:32,"safe-buffer":407}],275:[function(t,e,r){arguments[4][33][0].apply(r,arguments)},{"../incr32":270,"buffer-xor":291,dup:33,"safe-buffer":407}],276:[function(t,e,r){arguments[4][34][0].apply(r,arguments)},{dup:34}],277:[function(t,e,r){arguments[4][35][0].apply(r,arguments)},{"./cbc":271,"./cfb":272,"./cfb1":273,"./cfb8":274,"./ctr":275,"./ecb":276,"./list.json":278,"./ofb":279,dup:35}],278:[function(t,e,r){arguments[4][36][0].apply(r,arguments)},{dup:36}],279:[function(t,e,r){(function(i){"use strict";var o=t("buffer-xor");r.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=i.concat([t._cache,(r=t,r._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,n=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),o(e,n)}}).call(this,t("buffer").Buffer)},{buffer:50,"buffer-xor":291}],280:[function(t,e,r){arguments[4][38][0].apply(r,arguments)},{"./aes":264,"cipher-base":292,dup:38,inherits:375,"safe-buffer":407}],281:[function(t,e,r){arguments[4][39][0].apply(r,arguments)},{"browserify-aes/browser":266,"browserify-aes/modes":277,"browserify-des":282,"browserify-des/modes":283,dup:39,evp_bytestokey:360}],282:[function(t,e,r){arguments[4][40][0].apply(r,arguments)},{"cipher-base":292,"des.js":299,dup:40,inherits:375,"safe-buffer":407}],283:[function(t,e,r){arguments[4][41][0].apply(r,arguments)},{dup:41}],284:[function(e,r,t){(function(y){"use strict";var b=e("bn.js"),n=e("randombytes");function t(t,e){var r,n,i={blinder:(n=m(r=e)).toRed(b.mont(r.modulus)).redPow(new b(r.publicExponent)).fromRed(),unblinder:n.invm(r.modulus)},o=e.modulus.byteLength(),a=(b.mont(e.modulus),new b(t).mul(i.blinder).umod(e.modulus)),s=a.toRed(b.mont(e.prime1)),u=a.toRed(b.mont(e.prime2)),f=e.coefficient,c=e.prime1,l=e.prime2,h=s.redPow(e.exponent1),d=u.redPow(e.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(f).umod(c);return p.imul(l),d.iadd(p),new y(d.imul(i.unblinder).umod(e.modulus).toArray(!1,o))}function m(t){for(var e=t.modulus.byteLength(),r=new b(n(e));0<=r.cmp(t.modulus)||!r.umod(t.prime1)||!r.umod(t.prime2);)r=new b(n(e));return r}(r.exports=t).getr=m}).call(this,e("buffer").Buffer)},{"bn.js":262,buffer:50,randombytes:403}],285:[function(t,e,r){arguments[4][43][0].apply(r,arguments)},{"./browser/algorithms.json":286,dup:43}],286:[function(t,e,r){arguments[4][44][0].apply(r,arguments)},{dup:44}],287:[function(t,e,r){arguments[4][45][0].apply(r,arguments)},{dup:45}],288:[function(l,h,t){(function(i){"use strict";var r=l("create-hash"),n=l("stream"),t=l("inherits"),o=l("./sign"),a=l("./verify"),s=l("./algorithms.json");function e(t){n.Writable.call(this);var e=s[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){n.Writable.call(this);var e=s[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){return new e(t)}function c(t){return new u(t)}Object.keys(s).forEach(function(t){s[t].id=new i(s[t].id,"hex"),s[t.toLowerCase()]=s[t]}),t(e,n.Writable),e.prototype._write=function(t,e,r){this._hash.update(t),r()},e.prototype.update=function(t,e){return"string"==typeof t&&(t=new i(t,e)),this._hash.update(t),this},e.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=o(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},t(u,n.Writable),u.prototype._write=function(t,e,r){this._hash.update(t),r()},u.prototype.update=function(t,e){return"string"==typeof t&&(t=new i(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,r){"string"==typeof e&&(e=new i(e,r)),this.end();var n=this._hash.digest();return a(e,n,t,this._signType,this._tag)},h.exports={Sign:f,Verify:c,createSign:f,createVerify:c}}).call(this,l("buffer").Buffer)},{"./algorithms.json":286,"./sign":289,"./verify":290,buffer:50,"create-hash":294,inherits:375,stream:162}],289:[function(t,e,r){(function(y){"use strict";var f=t("create-hmac"),c=t("browserify-rsa"),l=t("elliptic").ec,b=t("bn.js"),h=t("parse-asn1"),d=t("./curves.json");function m(t,e,r,n){if((t=new y(t.toArray())).length<e.byteLength()){var i=new y(e.byteLength()-t.length);i.fill(0),t=y.concat([i,t])}var o=r.length,a=function(t,e){t=(t=v(t,e)).mod(e);var r=new y(t.toArray());if(r.length<e.byteLength()){var n=new y(e.byteLength()-r.length);n.fill(0),r=y.concat([n,r])}return r}(r,e),s=new y(o);s.fill(1);var u=new y(o);return u.fill(0),u=f(n,u).update(s).update(new y([0])).update(t).update(a).digest(),s=f(n,u).update(s).digest(),{k:u=f(n,u).update(s).update(new y([1])).update(t).update(a).digest(),v:s=f(n,u).update(s).digest()}}function v(t,e){var r=new b(t),n=(t.length<<3)-e.bitLength();return 0<n&&r.ishrn(n),r}function g(t,e,r){var n,i;do{for(n=new y(0);8*n.length<t.bitLength();)e.v=f(r,e.k).update(e.v).digest(),n=y.concat([n,e.v]);i=v(n,t),e.k=f(r,e.k).update(e.v).update(new y([0])).digest(),e.v=f(r,e.k).update(e.v).digest()}while(-1!==i.cmp(t));return i}e.exports=function(t,e,r,n,i){var o=h(e);if(o.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(t,e){var r=d[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var n=new l(r).keyFromPrivate(e.privateKey).sign(t);return new y(n.toDER())}(t,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong private key type");return function(t,e,r){for(var n,i,o,a,s=e.params.priv_key,u=e.params.p,f=e.params.q,c=e.params.g,l=new b(0),h=v(t,f).mod(f),d=!1,p=m(s,f,t,r);!1===d;)n=g(f,p,r),i=n,o=u,a=f,l=c.toRed(b.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(f).imul(h.add(s.mul(l))).mod(f)).cmpn(0)&&(d=!1,l=new b(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),new y(r)}(l,d)}(t,o,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");t=y.concat([i,t]);for(var a=o.modulus.byteLength(),s=[0,1];t.length+s.length+1<a;)s.push(255);s.push(0);for(var u=-1;++u<t.length;)s.push(t[u]);return c(s,o)},e.exports.getKey=m,e.exports.makeKey=g}).call(this,t("buffer").Buffer)},{"./curves.json":287,"bn.js":262,"browserify-rsa":284,buffer:50,"create-hmac":296,elliptic:309,"parse-asn1":391}],290:[function(t,e,r){(function(h){"use strict";var d=t("bn.js"),p=t("elliptic").ec,y=t("parse-asn1"),b=t("./curves.json");function m(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}e.exports=function(t,e,r,n,i){var o=y(r);if("ec"===o.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(t,e,r){var n=b[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(e,t,o)}(t,e,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,i=r.data.q,o=r.data.g,a=r.data.pub_key,s=y.signature.decode(t,"der"),u=s.s,f=s.r;m(u,i),m(f,i);var c=d.mont(n),l=u.invm(i);return 0===o.toRed(c).redPow(new d(e).mul(l).mod(i)).fromRed().mul(a.toRed(c).redPow(f.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(f)}(t,e,o)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");e=h.concat([i,e]);for(var a=o.modulus.byteLength(),s=[1],u=0;e.length+s.length+2<a;)s.push(255),u++;s.push(0);for(var f=-1;++f<e.length;)s.push(e[f]);s=new h(s);var c=d.mont(o.modulus);t=(t=new d(t).toRed(c)).redPow(new d(o.publicExponent)),t=new h(t.fromRed().toArray());var l=u<8?1:0;for(a=Math.min(t.length,s.length),t.length!==s.length&&(l=1),f=-1;++f<a;)l|=t[f]^s[f];return 0===l}}).call(this,t("buffer").Buffer)},{"./curves.json":287,"bn.js":262,buffer:50,elliptic:309,"parse-asn1":391}],291:[function(t,e,r){(function(o){"use strict";e.exports=function(t,e){for(var r=Math.min(t.length,e.length),n=new o(r),i=0;i<r;++i)n[i]=t[i]^e[i];return n}}).call(this,t("buffer").Buffer)},{buffer:50}],292:[function(t,e,r){arguments[4][52][0].apply(r,arguments)},{dup:52,inherits:375,"safe-buffer":407,stream:162,string_decoder:182}],293:[function(t,s,e){(function(o){"use strict";var e=t("elliptic"),n=t("bn.js");s.exports=function(t){return new i(t)};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(t){this.curveType=r[t],this.curveType||(this.curveType={name:t}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function a(t,e,r){Array.isArray(t)||(t=t.toArray());var n=new o(t);if(r&&n.length<r){var i=new o(r-n.length);i.fill(0),n=o.concat([i,n])}return e?n.toString(e):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(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},i.prototype.computeSecret=function(t,e,r){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),a(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},i.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,t)},i.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},i.prototype.setPublicKey=function(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this.keys._importPublic(t),this},i.prototype.setPrivateKey=function(t,e){e=e||"utf8",o.isBuffer(t)||(t=new o(t,e));var r=new n(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,t("buffer").Buffer)},{"bn.js":262,buffer:50,elliptic:309}],294:[function(t,e,r){arguments[4][55][0].apply(r,arguments)},{"cipher-base":292,dup:55,inherits:375,"md5.js":383,ripemd160:405,"sha.js":419}],295:[function(t,e,r){arguments[4][56][0].apply(r,arguments)},{dup:56,"md5.js":383}],296:[function(t,e,r){arguments[4][57][0].apply(r,arguments)},{"./legacy":297,"cipher-base":292,"create-hash/md5":295,dup:57,inherits:375,ripemd160:405,"safe-buffer":407,"sha.js":419}],297:[function(t,e,r){arguments[4][58][0].apply(r,arguments)},{"cipher-base":292,dup:58,inherits:375,"safe-buffer":407}],298:[function(t,e,r){arguments[4][59][0].apply(r,arguments)},{"browserify-cipher":281,"browserify-sign":288,"browserify-sign/algos":285,"create-ecdh":293,"create-hash":294,"create-hmac":296,"diffie-hellman":305,dup:59,pbkdf2:392,"public-encrypt":397,randombytes:403,randomfill:404}],299:[function(t,e,r){arguments[4][60][0].apply(r,arguments)},{"./des/cbc":300,"./des/cipher":301,"./des/des":302,"./des/ede":303,"./des/utils":304,dup:60}],300:[function(t,e,r){arguments[4][61][0].apply(r,arguments)},{dup:61,inherits:375,"minimalistic-assert":385}],301:[function(t,e,r){arguments[4][62][0].apply(r,arguments)},{dup:62,"minimalistic-assert":385}],302:[function(t,e,r){"use strict";var a=t("minimalistic-assert"),n=t("inherits"),h=t("./utils"),i=t("./cipher");function o(){this.tmp=new Array(2),this.keys=null}function s(t){i.call(this,t);var e=new o;this._desState=e,this.deriveKeys(e,t.key)}n(s,i),(e.exports=s).create=function(t){return new s(t)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(t,e){t.keys=new Array(32),a.equal(e.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(e,0),n=h.readUInt32BE(e,4);h.pc1(r,n,t.tmp,0),r=t.tmp[0],n=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var o=u[i>>>1];r=h.r28shl(r,o),n=h.r28shl(n,o),h.pc2(r,n,t.keys,i)}},s.prototype._update=function(t,e,r,n){var i=this._desState,o=h.readUInt32BE(t,e),a=h.readUInt32BE(t,e+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(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},s.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)a.equal(t[r],e);return t.slice(0,t.length-e)},s.prototype._encrypt=function(t,e,r,n,i){for(var o=e,a=r,s=0;s<t.keys.length;s+=2){var u=t.keys[s],f=t.keys[s+1];h.expand(a,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var c=h.substitute(u,f),l=a;a=(o^h.permute(c))>>>0,o=l}h.rip(a,o,n,i)},s.prototype._decrypt=function(t,e,r,n,i){for(var o=r,a=e,s=t.keys.length-2;0<=s;s-=2){var u=t.keys[s],f=t.keys[s+1];h.expand(o,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var c=h.substitute(u,f),l=o;o=(a^h.permute(c))>>>0,a=l}h.rip(o,a,n,i)}},{"./cipher":301,"./utils":304,inherits:375,"minimalistic-assert":385}],303:[function(t,e,r){"use strict";var o=t("minimalistic-assert"),n=t("inherits"),i=t("./cipher"),a=t("./des");function s(t,e){o.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),n=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[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(t){i.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}n(u,i),(e.exports=u).create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,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":301,"./des":302,inherits:375,"minimalistic-assert":385}],304:[function(t,e,r){arguments[4][65][0].apply(r,arguments)},{dup:65}],305:[function(t,e,r){(function(o){"use strict";var a=t("./lib/generatePrime"),n=t("./lib/primes.json"),s=t("./lib/dh");var u={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(t){var e=new o(n[t].prime,"hex"),r=new o(n[t].gen,"hex");return new s(e,r)},r.createDiffieHellman=r.DiffieHellman=function t(e,r,n,i){return o.isBuffer(r)||void 0===u[r]?t(e,"binary",r,n):(r=r||"binary",i=i||"binary",n=n||new o([2]),o.isBuffer(n)||(n=new o(n,i)),"number"==typeof e?new s(a(e,n),n,!0):(o.isBuffer(e)||(e=new o(e,r)),new s(e,n,!0)))}}).call(this,t("buffer").Buffer)},{"./lib/dh":306,"./lib/generatePrime":307,"./lib/primes.json":308,buffer:50}],306:[function(y,b,t){(function(o){"use strict";var a=y("bn.js"),s=new(y("miller-rabin")),u=new a(24),f=new a(11),c=new a(10),l=new a(3),h=new a(7),d=y("./generatePrime"),t=y("randombytes");function n(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this._pub=new a(t),this}function i(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this._priv=new a(t),this}b.exports=e;var p={};function e(t,e,r){this.setGenerator(e),this.__prime=new a(t),this._prime=a.mont(this.__prime),this._primeLen=t.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(t,e){var r=new o(t.toArray());return e?r.toString(e):r}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var i,o=0;if(t.isEven()||!d.simpleSieve||!d.fermatTest(t)||!s.test(t))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(s.test(t.shrn(1))||(o+=2),r){case"02":t.mod(u).cmp(f)&&(o+=8);break;case"05":(i=t.mod(c)).cmp(l)&&i.cmp(h)&&(o+=8);break;default:o+=4}return p[n]=o}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new a(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new a(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new o(e.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},e.prototype.getPublicKey=function(t){return r(this._pub,t)},e.prototype.getPrivateKey=function(t){return r(this._priv,t)},e.prototype.getPrime=function(t){return r(this.__prime,t)},e.prototype.getGenerator=function(t){return r(this._gen,t)},e.prototype.setGenerator=function(t,e){return e=e||"utf8",o.isBuffer(t)||(t=new o(t,e)),this.__gen=t,this._gen=new a(t),this}}).call(this,y("buffer").Buffer)},{"./generatePrime":307,"bn.js":262,buffer:50,"miller-rabin":384,randombytes:403}],307:[function(t,e,r){arguments[4][68][0].apply(r,arguments)},{"bn.js":262,dup:68,"miller-rabin":384,randombytes:403}],308:[function(t,e,r){arguments[4][69][0].apply(r,arguments)},{dup:69}],309:[function(t,e,r){arguments[4][70][0].apply(r,arguments)},{"../package.json":324,"./elliptic/curve":312,"./elliptic/curves":315,"./elliptic/ec":316,"./elliptic/eddsa":319,"./elliptic/utils":323,brorand:263,dup:70}],310:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("../utils"),E=i.getNAF,k=i.getJSF,l=i.assert;function o(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.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=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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(t,e){this.curve=t,this.type=e,this.precomputed=null}(e.exports=o).prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(t,e){l(t.precomputed);var r=t._getDoubles(),n=E(e,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(e=a+r.step-1;a<=e;e--)s=(s<<1)+n[e];o.push(s)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),c=i;0<c;c--){for(a=0;a<o.length;a++){(s=o[a])===c?f=f.mixedAdd(r.points[a]):s===-c&&(f=f.mixedAdd(r.points[a].neg()))}u=u.add(f)}return u.toP()},o.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=E(e,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;0<=s;s--){for(e=0;0<=s&&0===o[s];s--)e++;if(0<=s&&e++,a=a.dblp(e),s<0)break;var u=o[s];l(0!==u),a="affine"===t.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"===t.type?a.toP():a},o.prototype._wnafMulAdd=function(t,e,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,u=0,f=0;f<n;f++){var c=(S=e[f])._getNAFPoints(t);o[f]=c.wnd,a[f]=c.points}for(f=n-1;1<=f;f-=2){var l=f-1,h=f;if(1===o[l]&&1===o[h]){var d=[e[l],null,null,e[h]];0===e[l].y.cmp(e[h].y)?(d[1]=e[l].add(e[h]),d[2]=e[l].toJ().mixedAdd(e[h].neg())):0===e[l].y.cmp(e[h].y.redNeg())?(d[1]=e[l].toJ().mixedAdd(e[h]),d[2]=e[l].add(e[h].neg())):(d[1]=e[l].toJ().mixedAdd(e[h]),d[2]=e[l].toJ().mixedAdd(e[h].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],y=k(r[l],r[h]);u=Math.max(y[0].length,u),s[l]=new Array(u),s[h]=new Array(u);for(var b=0;b<u;b++){var m=0|y[0][b],v=0|y[1][b];s[l][b]=p[3*(m+1)+(v+1)],s[h][b]=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(f=u;0<=f;f--){for(var _=0;0<=f;){var A=!0;for(b=0;b<n;b++)w[b]=0|s[b][f],0!==w[b]&&(A=!1);if(!A)break;_++,f--}if(0<=f&&_++,g=g.dblp(_),f<0)break;for(b=0;b<n;b++){var S,x=w[b];0!==x&&(0<x?S=a[b][x-1>>1]:x<0&&(S=a[b][-x-1>>1].neg()),g="affine"===S.type?g.mixedAdd(S):g.add(S))}}for(f=0;f<n;f++)a[f]=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(t,e){t=i.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?l(t[t.length-1]%2==0):7===t[0]&&l(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},a.prototype.encodeCompressed=function(t){return this.encode(t,!0)},a.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},a.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},a.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},a.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},a.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},a.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},{"../utils":323,"bn.js":262}],311:[function(t,e,r){"use strict";var n=t("../utils"),u=t("bn.js"),i=t("inherits"),o=t("./base"),a=n.assert;function s(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,o.call(this,"edwards",t),this.a=new u(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(t.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|t.c)}function f(t,e,r,n,i){o.BasePoint.call(this,t,"projective"),null===e&&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(e,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),(e.exports=s).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},s.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},s.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},s.prototype.pointFromX=function(t,e){(t=new u(t,16)).red||(t=t.toRed(this.red));var r=t.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(e&&!s||!e&&s)&&(a=a.redNeg()),this.point(t,a)},s.prototype.pointFromY=function(t,e){(t=new u(t,16)).red||(t=t.toRed(this.red));var r=t.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(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},s.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},i(f,o.BasePoint),s.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},s.prototype.point=function(t,e,r,n){return new f(this,t,e,r,n)},f.fromJSON=function(t,e){return new f(t,e[0],e[1],e[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 t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),l=a.redMul(o);return this.curve.point(u,f,l,c)},f.prototype._projDbl=function(){var t,e,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(f.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);t=n.redSub(i).redISub(o).redMul(u),e=a.redMul(f.redSub(o)),r=a.redMul(u)}}else{var f=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=f.redSub(s).redSub(s);t=this.curve._mulC(n.redISub(f)).redMul(u),e=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(t,e,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),f=o.redMul(a),c=s.redMul(u),l=o.redMul(u),h=a.redMul(s);return this.curve.point(f,c,h,l)},f.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(c);return r=this.curve.twisted?(e=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),u.redMul(f)):(e=n.redMul(f).redMul(a.redSub(o)),this.curve._mulC(u).redMul(f)),this.curve.point(l,e,r)},f.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},f.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),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(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},f.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"../utils":323,"./base":310,"bn.js":262,inherits:375}],312:[function(t,e,r){arguments[4][73][0].apply(r,arguments)},{"./base":310,"./edwards":311,"./mont":313,"./short":314,dup:73}],313:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("inherits"),o=t("./base"),a=t("../utils");function s(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.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(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,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),(e.exports=s).prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.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 t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.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(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.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(t){return 0===this.getX().cmp(t.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":323,"./base":310,"bn.js":262,inherits:375}],314:[function(t,e,r){"use strict";var n=t("../utils"),_=t("bn.js"),i=t("inherits"),o=t("./base"),a=n.assert;function s(t){o.call(this,"short",t),this.a=new _(t.a,16).toRed(this.red),this.b=new _(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(t,e,r,n){o.BasePoint.call(this,t,"affine"),this.inf=null===e&&null===r?(this.x=null,!(this.y=null)):(this.x=new _(e,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(t,e,r,n){o.BasePoint.call(this,t,"jacobian"),this.z=null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,new _(0)):(this.x=new _(e,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),(e.exports=s).prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new _(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new _(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map(function(t){return{a:new _(t.a,16),b:new _(t.b,16)}}):this._getEndoBasis(r)}}},s.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:_.mont(t),r=new _(2).toRed(e).redInvm(),n=r.redNeg(),i=new _(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},s.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,a,s,u,f,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,h=this.n.clone(),d=new _(1),p=new _(0),y=new _(0),b=new _(1),m=0;0!==l.cmpn(0);){var v=h.div(l);u=h.sub(v.mul(l)),f=y.sub(v.mul(d));var g=b.sub(v.mul(p));if(!n&&u.cmp(c)<0)e=s.neg(),r=d,n=u.neg(),i=f;else if(n&&2==++m)break;h=l,l=s=u,y=d,d=f,b=p,p=g}o=u.neg(),a=f;var w=n.sqr().add(i.sqr());return 0<=o.sqr().add(a.sqr()).cmp(w)&&(o=e,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(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(f).neg()}},s.prototype.pointFromX=function(t,e){(t=new _(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.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(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},s.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[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 f=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return f},i(u,o.BasePoint),s.prototype.point=function(t,e,r){return new u(this,t,e,r)},s.prototype.pointFromJSON=function(t,e){return u.fromJSON(this,t,e)},u.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};(t.beta=e).precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},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(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[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(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).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(t){return t=new _(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},u.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.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 e},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(f,o.BasePoint),s.prototype.jpoint=function(t,e,r){return new f(this,t,e,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);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(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.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 f=s.redSqr(),c=f.redMul(s),l=n.redMul(f),h=u.redSqr().redIAdd(c).redISub(l).redISub(l),d=u.redMul(l.redISub(h)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,d,p)},f.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).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(),f=u.redMul(a),c=r.redMul(u),l=s.redSqr().redIAdd(f).redISub(c).redISub(c),h=s.redMul(c.redISub(l)).redISub(i.redMul(f)),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},f.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),f=a.redAdd(a);for(r=0;r<t;r++){var c=o.redSqr(),l=f.redSqr(),h=l.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),p=o.redMul(l),y=d.redSqr().redISub(p.redAdd(p)),b=p.redISub(y),m=d.redMul(b);m=m.redIAdd(m).redISub(h);var v=f.redMul(s);r+1<t&&(u=u.redMul(h)),o=y,s=v,f=m}return this.curve.jpoint(o,f.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 t,e,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),f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),t=u,e=s.redMul(a.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(c).redISub(h);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),y=p.redSqr(),b=h.redIAdd(h);b=(b=b.redIAdd(b)).redIAdd(b),t=y.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},f.prototype._threeDbl=function(){var t,e,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);t=u;var f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),e=s.redMul(a.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),y=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(y),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(c);var b=l.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),e=d.redMul(p.redISub(t)).redISub(b)}return this.curve.jpoint(t,e,r)},f.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),f=(u=u.redIAdd(u)).redMul(a),c=s.redSqr().redISub(f.redAdd(f)),l=f.redISub(c),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(c,d,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).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 f=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),c=e.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var l=this.x.redMul(s).redISub(c);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(f.redMul(u.redISub(f)).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(t,e){return t=new _(t,e),this.curve._wnafMul(this,t)},f.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){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)}},{"../utils":323,"./base":310,"bn.js":262,inherits:375}],315:[function(t,e,r){"use strict";var n,i=r,o=t("hash.js"),a=t("./curve"),s=t("./utils").assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,r){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var t=new u(r);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:t}),t}})}i.PresetCurve=u,f("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"]}),f("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"]}),f("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"]}),f("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"]}),f("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"]}),f("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"]}),f("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=t("./precomputed/secp256k1")}catch(t){n=void 0}f("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":312,"./precomputed/secp256k1":322,"./utils":323,"hash.js":362}],316:[function(t,e,r){"use strict";function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=t("bn.js"),v=t("hmac-drbg"),n=t("../utils"),i=t("../curves"),o=t("brorand"),d=n.assert,a=t("./key"),g=t("./signature");function s(t){if(!(this instanceof s))return new s(t);"string"==typeof t&&(d(i.hasOwnProperty(t),"Unknown curve "+t),t=i[t]),t instanceof i.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}(e.exports=s).prototype.keyPair=function(t){return new a(this,t)},s.prototype.keyFromPrivate=function(t,e){return a.fromPrivate(this,t,e)},s.prototype.keyFromPublic=function(t,e){return a.fromPublic(this,t,e)},s.prototype.genKeyPair=function(t){t||(t={});for(var e=new v({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||o(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new m(2));;){var i=new m(e.generate(r));if(!(0<i.cmp(n)))return i.iaddn(1),this.keyFromPrivate(i)}},s.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return 0<r&&(t=t.ushrn(r)),!e&&0<=t.cmp(this.n)?t.sub(this.n):t},s.prototype.sign=function(t,e,r,n){"object"===b(r)&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new m(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.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)),f=0;;f++){var c=n.k?n.k(f):new m(s.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||0<=c.cmp(u))){var l=this.g.mul(c);if(!l.isInfinity()){var h=l.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=c.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var y=(l.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),y^=1),new g({r:d,s:p,recoveryParam:y})}}}}}},s.prototype.verify=function(t,e,r,n){t=this._truncateToN(new m(t,16)),r=this.keyFromPublic(r,n);var i=(e=new g(e,"hex")).r,o=e.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(t).umod(this.n),f=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},s.prototype.recoverPubKey=function(t,e,r,n){d((3&r)===r,"The recovery param is more than two bits"),e=new g(e,n);var i=this.n,o=new m(t),a=e.r,s=e.s,u=1&r,f=r>>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&f)throw new Error("Unable to find sencond key candinate");a=f?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var c=e.r.invm(i),l=i.sub(o).mul(c).umod(i),h=s.mul(c).umod(i);return this.g.mulAdd(l,a,h)},s.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new g(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":315,"../utils":323,"./key":317,"./signature":318,"bn.js":262,brorand:263,"hmac-drbg":374}],317:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("../utils").assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}(e.exports=o).fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":323,"bn.js":262}],318:[function(t,e,r){"use strict";var s=t("bn.js"),u=t("../utils"),n=u.assert;function i(t,e){if(t instanceof i)return t;this._importDER(t,e)||(n(t.r&&t.s,"Signature without r or s"),this.r=new s(t.r,16),this.s=new s(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function f(){this.place=0}function c(t,e){var r=t[e.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a];return e.place=a,i}function a(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}(e.exports=i).prototype._importDER=function(t,e){t=u.toArray(t,e);var r=new f;if(48!==t[r.place++])return!1;if(c(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var n=c(t,r),i=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var o=c(t,r);if(t.length!==o+r.place)return!1;var a=t.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(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=a(e),r=a(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,e.length),(n=n.concat(e)).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,t)}},{"../utils":323,"bn.js":262}],319:[function(t,e,r){"use strict";var n=t("hash.js"),i=t("../curves"),o=t("../utils"),a=o.assert,u=o.parseBytes,s=t("./key"),f=t("./signature");function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}(e.exports=c).prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},c.prototype.verify=function(t,e,r){t=u(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return s.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return s.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return o.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},{"../curves":315,"../utils":323,"./key":320,"./signature":321,"hash.js":362}],320:[function(t,e,r){"use strict";var n=t("../utils"),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},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 t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.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(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},s.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},e.exports=s},{"../utils":323}],321:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("bn.js"),o=t("../utils"),a=o.assert,s=o.cachedProperty,u=o.parseBytes;function f(t,e){this.eddsa=t,"object"!==n(e)&&(e=u(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),a(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},{"../utils":323,"bn.js":262}],322:[function(t,e,r){arguments[4][83][0].apply(r,arguments)},{dup:83}],323:[function(t,e,r){"use strict";var n=r,i=t("bn.js"),o=t("minimalistic-assert"),a=t("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(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.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(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;0<t.cmpn(-n)||0<e.cmpn(-i);){var o,a,s,u=t.andln(3)+n&3,f=e.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),o=0==(1&u)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==f?u:-u,r[0].push(o),a=0==(1&f)?0:3!=(s=e.andln(7)+i&7)&&5!==s||2!==u?f:-f,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},{"bn.js":262,"minimalistic-assert":385,"minimalistic-crypto-utils":386}],324:[function(t,e,r){e.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"}},{}],325:[function(y,b,t){(function(a){"use strict";function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var s=y("./bytes"),i=y("./nat"),t=y("elliptic"),u=(y("./rlp"),new t.ec("secp256k1")),e=y("./hash"),f=e.keccak256,c=e.keccak256s,l=function(t){for(var e=c(t.slice(2)),r="0x",n=0;n<40;n++)r+=7<parseInt(e[n+2],16)?t[n+2].toUpperCase():t[n+2];return r},h=function(t){var e=new a(t.slice(2),"hex"),r="0x"+u.keyFromPrivate(e).getPublic(!1,"hex").slice(2),n=f(r);return{address:l("0x"+n.slice(-40)),privateKey:t}},d=function(t){var e=o(t,3),r=e[0],n=e[1],i=e[2];return s.flatten([n,i,r])},p=function(t){return[s.slice(64,s.length(t),t),s.slice(0,32,t),s.slice(32,64,t)]},r=function(n){return function(t,e){var r=u.keyFromPrivate(new a(e.slice(2),"hex")).sign(new a(t.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);b.exports={create:function(t){var e=f(s.concat(s.random(32),t||s.random(32))),r=s.concat(s.concat(s.random(32),e),s.random(32)),n=f(r);return h(n)},toChecksum:l,fromPrivate:h,sign:n,makeSigner:r,recover:function(t,e){var r=p(e),n={v:s.toNumber(r[0]),r:r[1].slice(2),s:r[2].slice(2)},i="0x"+u.recoverPubKey(new a(t.slice(2),"hex"),n,n.v<2?n.v:1-n.v%2).encode("hex",!1).slice(2),o=f(i);return l("0x"+o.slice(-40))},encodeSignature:d,decodeSignature:p}}).call(this,y("buffer").Buffer)},{"./bytes":327,"./hash":328,"./nat":329,"./rlp":330,buffer:50,elliptic:309}],326:[function(t,e,r){"use strict";var n=function(t,e){for(var r=[],n=0;n<t;++n)r.push(e(n));return r};e.exports={generate:n,replicate:function(t,e){return n(t,function(){return e})},concat:function(t,e){return t.concat(e)},flatten:function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=0,o=t[r].length;i<o;++i)e.push(t[r][i]);return e},chunksOf:function(t,e){for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(e.slice(n,n+t));return r}}},{}],327:[function(i,t,e){"use strict";i("./array.js");var o=function(t,e){return parseInt(t.slice(2*e+2,2*e+4),16)},a=function(t){return(t.length-2)/2},r=function(t){for(var e=[],r=2,n=t.length;r<n;r+=2)e.push(parseInt(t.slice(r,r+2),16));return e},n=function(t){for(var e="0x",r=0,n=t.length;r<n;++r){var i=t[r];e+=(i<16?"0":"")+i.toString(16)}return e};t.exports={random:function(t){var e;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)e=window.crypto.getRandomValues(new Uint8Array(t));else{if(void 0===i)throw"Safe random numbers not available.";e=i("crypto").randomBytes(t)}for(var r="0x",n=0;n<t;++n)r+=("00"+e[n].toString(16)).slice(-2);return r},length:a,concat:function(t,e){return t.concat(e.slice(2))},flatten:function(t){return"0x"+t.reduce(function(t,e){return t+e.slice(2)},"")},slice:function(t,e,r){return"0x"+r.slice(2*t+2,2*e+2)},reverse:function(t){for(var e="0x",r=0,n=a(t);r<n;++r)e+=t.slice(2*(n-r),2*(n-r+1));return e},pad:function t(e,r){return r.length===2*e+2?r:t(e,"0x0"+r.slice(2))},padRight:function t(e,r){return r.length===2*e+2?r:t(e,r+"0")},fromAscii:function(t){for(var e="0x",r=0;r<t.length;++r)e+=("00"+t.charCodeAt(r).toString(16)).slice(-2);return e},toAscii:function(t){for(var e="",r=2;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.slice(r,r+2),16));return e},fromString:function(t){for(var e=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},r="0x",n=0;n!=t.length;n++){var i=t.charCodeAt(n);if(i<128)r+=e(i);else{if(i<2048)r+=e(i>>6|192);else{if(55295<i&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||57343<o)return null;r+=e((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},toString:function(t){for(var e="",r=0,n=a(t);r<n;){var i=o(t,r++);if(127<i){if(191<i&&i<224){if(n<=r)return null;i=(31&i)<<6|63&o(t,r)}else if(223<i&&i<240){if(n<=r+1)return null;i=(15&i)<<12|(63&o(t,r))<<6|63&o(t,++r)}else{if(!(239<i&&i<248))return null;if(n<=r+2)return null;i=(7&i)<<18|(63&o(t,r))<<12|(63&o(t,++r))<<6|63&o(t,++r)}++r}if(i<=65535)e+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,e+=String.fromCharCode(i>>10|55296),e+=String.fromCharCode(1023&i|56320)}}return e},fromNumber:function(t){var e=t.toString(16);return e.length%2==0?"0x"+e:"0x0"+e},toNumber:function(t){return parseInt(t.slice(2),16)},fromNat:function(t){return"0x0"===t?"0x":t.length%2==0?t:"0x0"+t.slice(2)},toNat:function(t){return"0"===t[2]?"0x"+t.slice(3):t},fromArray:n,toArray:r,fromUint8Array:function(t){return n([].slice.call(t,0))},toUint8Array:function(t){return new Uint8Array(r(t))}}},{"./array.js":326}],328:[function(t,e,r){"use strict";var p="0123456789abcdef".split(""),y=[1,256,65536,16777216],b=[0,8,16,24],ct=[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(t){var e,r,n,i,o,a,s,u,f,c,l,h,d,p,y,b,m,v,g,w,_,A,S,x,E,k,M,j,I,T,R,O,B,U,C,N,P,L,F,D,q,z,H,K,V,G,W,Y,X,J,Z,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(h=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|f>>>31),r=o^(f<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(h<<1|d>>>31),r=f^(d<<1|h>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],y=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,st=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,m=t[12]<<12|t[13]>>>20,Y=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,B=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,D=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=y^~m&g,t[10]=x^~k&j,t[11]=E^~M&I,t[20]=U^~N&L,t[21]=C^~P&F,t[30]=K^~G&Y,t[31]=V^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~v&w,t[3]=m^~g&_,t[12]=k^~j&T,t[13]=M^~I&R,t[22]=N^~L&D,t[23]=P^~F&q,t[32]=G^~Y&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&st,t[4]=v^~w&A,t[5]=g^~_&S,t[14]=j^~T&O,t[15]=I^~R&B,t[24]=L^~D&z,t[25]=F^~q&H,t[34]=Y^~J&$,t[35]=X^~Z&Q,t[44]=it^~at&ut,t[45]=ot^~st&ft,t[6]=w^~A&p,t[7]=_^~S&y,t[16]=T^~O&x,t[17]=R^~B&E,t[26]=D^~z&U,t[27]=q^~H&C,t[36]=J^~$&K,t[37]=Z^~Q&V,t[46]=at^~ut&tt,t[47]=st^~ft&et,t[8]=A^~p&b,t[9]=S^~y&m,t[18]=O^~x&k,t[19]=B^~E&M,t[28]=z^~U&N,t[29]=H^~C&P,t[38]=$^~K&G,t[39]=Q^~V&W,t[48]=ut^~tt&rt,t[49]=ft^~et&nt,t[0]^=ct[n],t[1]^=ct[n+1]},n=function(a){return function(t){var e,r,n;if("0x"===t.slice(0,2)){e=[];for(var i=2,o=t.length;i<o;i+=2)e.push(parseInt(t.slice(i,i+2),16))}else e=t;return function(t,e){for(var r,n=e.length,i=t.blocks,o=t.blockCount<<2,a=t.blockCount,s=t.outputBlocks,u=t.s,f=0;f<n;){if(t.reset)for(t.reset=!1,i[0]=t.block,h=1;h<a+1;++h)i[h]=0;if("string"!=typeof e)for(h=t.start;f<n&&h<o;++f)i[h>>2]|=e[f]<<b[3&h++];else for(h=t.start;f<n&&h<o;++f)(r=e.charCodeAt(f))<128?i[h>>2]|=r<<b[3&h++]:(r<2048?i[h>>2]|=(192|r>>6)<<b[3&h++]:(r<55296||57344<=r?i[h>>2]|=(224|r>>12)<<b[3&h++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++f)),i[h>>2]|=(240|r>>18)<<b[3&h++],i[h>>2]|=(128|r>>12&63)<<b[3&h++]),i[h>>2]|=(128|r>>6&63)<<b[3&h++]),i[h>>2]|=(128|63&r)<<b[3&h++]);if(o<=(t.lastByteIndex=h)){for(t.start=h-o,t.block=i[a],h=0;h<a;++h)u[h]^=i[h];m(u),t.reset=!0}else t.start=h}if(i[(h=t.lastByteIndex)>>2]|=y[3&h],t.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 c,l="",h=0,d=0;d<s;){for(h=0;h<a&&d<s;++h,++d)c=u[h],l+=p[c>>4&15]+p[15&c]+p[c>>12&15]+p[c>>8&15]+p[c>>20&15]+p[c>>16&15]+p[c>>28&15]+p[c>>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))},e)}};e.exports={keccak256:n(256),keccak512:n(512),keccak256s:n(256),keccak512s:n(512)}},{}],329:[function(t,e,r){"use strict";var n=t("bn.js"),i=t("./bytes"),o=function(t){return new n(t.slice(2),16)},a=function(t){var e="0x"+("0x"===t.slice(0,2)?new n(t.slice(2),16):new n(t,10)).toString("hex");return"0x0"===e?"0x":e},s=function(t){return"string"==typeof t?/^0x/.test(t)?t:"0x"+t:"0x"+new n(t).toString("hex")},u=function(t){return o(t).toNumber()},f=function(r){return function(t,e){return"0x"+o(t)[r](o(e)).toString("hex")}},c=f("add"),l=f("mul"),h=f("div"),d=f("sub");e.exports={toString:function(t){return o(t).toString(10)},fromString:a,toNumber:u,fromNumber:s,toEther:function(t){return u(h(t,a("10000000000")))/1e8},fromEther:function(t){return l(s(Math.floor(1e8*t)),a("10000000000"))},toUint256:function(t){return i.pad(32,t)},add:c,mul:l,div:h,sub:d}},{"./bytes":327,"bn.js":262}],330:[function(t,e,r){"use strict";e.exports={encode:function(t){var r=function(t){return(e=t.toString(16)).length%2==0?e:"0"+e;var e},i=function(t,e){return t<56?r(e+t):r(e+r(t).length/2+55)+r(t)};return"0x"+function t(e){if("string"==typeof e){var r=e.slice(2);return(2!=r.length||"80"<=r?i(r.length/2,128):"")+r}var n=e.map(t).join("");return i(n.length/2,192)+n}(t)},decode:function(e){var r=2,n=function(){if(r>=e.length)throw"";var t=e.slice(r,r+2);return t<"80"?(r+=2,"0x"+t):t<"c0"?o():a()},i=function(){var t=parseInt(e.slice(r,r+=2),16)%64;return t<56?t:parseInt(e.slice(r,r+=2*(t-55)),16)},o=function(){var t=i();return"0x"+e.slice(r,r+=2*t)},a=function(){for(var t=2*i()+r,e=[];r<t;)e.push(n());return e};try{return n()}catch(t){return[]}}}},{}],331:[function(t,e,r){e.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"}]}},{}],332:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.chains={names:{1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",6284:"goerli"},mainnet:t("./mainnet.json"),ropsten:t("./ropsten.json"),rinkeby:t("./rinkeby.json"),kovan:t("./kovan.json"),goerli:t("./goerli.json")}},{"./goerli.json":331,"./kovan.json":333,"./mainnet.json":334,"./rinkeby.json":335,"./ropsten.json":336}],333:[function(t,e,r){e.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"}]}},{}],334:[function(t,e,r){e.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"}]}},{}],335:[function(t,e,r){e.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"}]}},{}],336:[function(t,e,r){e.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"}]}},{}],337:[function(t,e,r){e.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:{}}},{}],338:[function(t,e,r){e.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:{}}},{}],339:[function(t,e,r){e.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:{}}},{}],340:[function(t,e,r){e.exports={name:"dao",comment:"DAO rescue hardfork",eip:{url:"https://eips.ethereum.org/EIPS/eip-779",status:"Final"},gasConfig:{},gasPrices:{},vm:{},pow:{},casper:{},sharding:{}}},{}],341:[function(t,e,r){e.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:{}}},{}],342:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hardforks=[["chainstart",t("./chainstart.json")],["homestead",t("./homestead.json")],["dao",t("./dao.json")],["tangerineWhistle",t("./tangerineWhistle.json")],["spuriousDragon",t("./spuriousDragon.json")],["byzantium",t("./byzantium.json")],["constantinople",t("./constantinople.json")],["petersburg",t("./petersburg.json")],["istanbul",t("./istanbul.json")],["muirGlacier",t("./muirGlacier.json")]]},{"./byzantium.json":337,"./chainstart.json":338,"./constantinople.json":339,"./dao.json":340,"./homestead.json":341,"./istanbul.json":343,"./muirGlacier.json":344,"./petersburg.json":345,"./spuriousDragon.json":346,"./tangerineWhistle.json":347}],343:[function(t,e,r){e.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:{}}},{}],344:[function(t,e,r){e.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:{}}},{}],345:[function(t,e,r){e.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:{}}},{}],346:[function(t,e,r){e.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:{}}},{}],347:[function(t,e,r){e.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:{}}},{}],348:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0});var n=t("./chains"),s=t("./hardforks"),o=function(){function o(t,e,r){this._chainParams=this.setChain(t),this._hardfork=null,this._supportedHardforks=void 0===r?[]:r,e&&this.setHardfork(e)}return o.forCustomChain=function(t,e,r,n){var i=o._getChainParams(t);return new o(a({},i,e),r,n)},o._getChainParams=function(t){if("number"==typeof t){if(n.chains.names[t])return n.chains[n.chains.names[t]];throw new Error("Chain with ID "+t+" not supported")}if(n.chains[t])return n.chains[t];throw new Error("Chain with name "+t+" not supported")},o.prototype.setChain=function(t){if("number"==typeof t||"string"==typeof t)this._chainParams=o._getChainParams(t);else{if("object"!==i(t))throw new Error("Wrong input format");for(var e=0,r=["networkId","genesis","hardforks","bootstrapNodes"];e<r.length;e++){var n=r[e];if(void 0===t[n])throw new Error("Missing required chain parameter: "+n)}this._chainParams=t}return this._chainParams},o.prototype.setHardfork=function(t){if(!this._isSupportedHardfork(t))throw new Error("Hardfork "+t+" not set as supported in supportedHardforks");for(var e=!1,r=0,n=s.hardforks;r<n.length;r++){n[r][0]===t&&(this._hardfork=t,e=!0)}if(!e)throw new Error("Hardfork with name "+t+" not supported")},o.prototype._chooseHardfork=function(t,e){if(e=void 0===e||e,t){if(e&&!this._isSupportedHardfork(t))throw new Error("Hardfork "+t+" not set as supported in supportedHardforks")}else{if(!this._hardfork)throw new Error("Method called with neither a hardfork set nor provided by param");t=this._hardfork}return t},o.prototype._getHardfork=function(t){for(var e=0,r=this.hardforks();e<r.length;e++){var n=r[e];if(n.name===t)return n}throw new Error("Hardfork "+t+" not defined for chain "+this.chainName())},o.prototype._isSupportedHardfork=function(t){if(!(0<this._supportedHardforks.length))return!0;for(var e=0,r=this._supportedHardforks;e<r.length;e++){if(t===r[e])return!0}return!1},o.prototype.param=function(t,e,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][t])throw new Error("Topic "+t+" not defined");if(void 0!==a[1][t][e]&&(n=a[1][t][e].v),a[0]===r)break}if(void 0===n)throw new Error(t+" value for "+e+" not found");return n},o.prototype.paramByBlock=function(t,e,r){var n=this.activeHardforks(r),i=n[n.length-1].name;return this.param(t,e,i)},o.prototype.hardforkIsActiveOnBlock=function(t,e,r){var n=void 0!==(r=void 0!==r?r:{}).onlySupported&&r.onlySupported;t=this._chooseHardfork(t,n);var i=this.hardforkBlock(t);return null!==i&&i<=e},o.prototype.activeOnBlock=function(t,e){return this.hardforkIsActiveOnBlock(null,t,e)},o.prototype.hardforkGteHardfork=function(t,e,r){var n=void 0!==(r=void 0!==r?r:{}).onlyActive&&r.onlyActive;t=this._chooseHardfork(t,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 f=u[s];f.name===t&&(i=a),f.name===e&&(o=a),a+=1}return o<=i},o.prototype.gteHardfork=function(t,e){return this.hardforkGteHardfork(null,t,e)},o.prototype.hardforkIsActiveOnChain=function(t,e){var r=void 0!==(e=void 0!==e?e:{}).onlySupported&&e.onlySupported;t=this._chooseHardfork(t,r);for(var n=0,i=this.hardforks();n<i.length;n++){var o=i[n];if(o.name===t&&null!==o.block)return!0}return!1},o.prototype.activeHardforks=function(t,e){e=void 0!==e?e:{};for(var r=[],n=0,i=this.hardforks();n<i.length;n++){var o=i[n];if(null!==o.block){if(null!=t&&t<o.block)break;e.onlySupported&&!this._isSupportedHardfork(o.name)||r.push(o)}}return r},o.prototype.activeHardfork=function(t,e){e=void 0!==e?e:{};var r=this.activeHardforks(t,e);if(0<r.length)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},o.prototype.hardforkBlock=function(t){return t=this._chooseHardfork(t,!1),this._getHardfork(t).block},o.prototype.isHardforkBlock=function(t,e){return e=this._chooseHardfork(e,!1),this.hardforkBlock(e)===t},o.prototype.consensus=function(t){return t=this._chooseHardfork(t),this._getHardfork(t).consensus},o.prototype.finality=function(t){return t=this._chooseHardfork(t),this._getHardfork(t).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":332,"./hardforks":342}],349:[function(t,e,r){"use strict";var n,o=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var a=t("ethereumjs-util"),s=t("buffer"),i=function(i){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={});var r=i.call(this,t,e)||this;Object.defineProperty(r,"from",{enumerable:!0,configurable:!0,get:function(){return r.getSenderAddress()},set:function(t){t&&(r._from=a.toBuffer(t))}});var n=t;return n.from&&(r.from=a.toBuffer(n.from)),r}return o(t,i),t.prototype.hash=function(t){if(void 0===t&&(t=!0),t&&this._from&&""!==this._from.toString("hex")){var e=s.Buffer.concat([this._from,this._from.slice(0,12)]);this.sign(e)}return i.prototype.hash.call(this,t)},t}(t("./transaction").default);r.default=i},{"./transaction":351,buffer:50,"ethereumjs-util":356}],350:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./transaction");r.Transaction=n.default;var i=t("./fake");r.FakeTransaction=i.default},{"./fake":349,"./transaction":351}],351:[function(t,e,r){"use strict";var n=function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0});var o=t("ethereumjs-util"),a=t("ethereumjs-common"),s=t("buffer"),i=new o.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),u=function(){function t(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),e.common){if(e.chain||e.hardfork)throw new Error("Instantiation with both opts.common, and opts.chain and opts.hardfork parameter not allowed!");this._common=e.common}else{var r=e.chain?e.chain:"mainnet",n=e.hardfork?e.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,t),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,get:this.getSenderAddress.bind(this)}),this._validateV(this.v),this._overrideVSetterWithValidation()}return t.prototype.toCreationAddress=function(){return""===this.to.toString("hex")},t.prototype.hash=function(t){var e;return void 0===t&&(t=!0),e=t?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(e)},t.prototype.getChainId=function(){return this._common.chainId()},t.prototype.getSenderAddress=function(){if(this._from)return this._from;var t=this.getSenderPublicKey();return this._from=o.publicToAddress(t),this._from},t.prototype.getSenderPublicKey=function(){if(!this.verifySignature())throw new Error("Invalid Signature");return this._senderPubKey},t.prototype.verifySignature=function(){var t=this.hash(!1);if(this._common.gteHardfork("homestead")&&1===new o.BN(this.s).cmp(i))return!1;try{var e=o.bufferToInt(this.v),r=e>=2*this.getChainId()+35&&this._common.gteHardfork("spuriousDragon");this._senderPubKey=o.ecrecover(t,e,this.r,this.s,r?this.getChainId():void 0)}catch(t){return!1}return!!this._senderPubKey},t.prototype.sign=function(t){this.v=new s.Buffer([]),this.s=new s.Buffer([]),this.r=new s.Buffer([]);var e=this.hash(!1),r=o.ecsign(e,t);this._implementsEIP155()&&(r.v+=2*this.getChainId()+8),Object.assign(this,r)},t.prototype.getDataFee=function(){for(var t=this.raw[5],e=new o.BN(0),r=0;r<t.length;r++)0===t[r]?e.iaddn(this._common.param("gasPrices","txDataZero")):e.iaddn(this._common.param("gasPrices","txDataNonZero"));return e},t.prototype.getBaseFee=function(){var t=this.getDataFee().iaddn(this._common.param("gasPrices","tx"));return this._common.gteHardfork("homestead")&&this.toCreationAddress()&&t.iaddn(this._common.param("gasPrices","txCreation")),t},t.prototype.getUpfrontCost=function(){return new o.BN(this.gasLimit).imul(new o.BN(this.gasPrice)).iadd(new o.BN(this.value))},t.prototype.validate=function(t){void 0===t&&(t=!1);var e=[];return this.verifySignature()||e.push("Invalid Signature"),0<this.getBaseFee().cmp(new o.BN(this.gasLimit))&&e.push(["gas limit is too low. Need at least "+this.getBaseFee()]),!1===t?0===e.length:e.join(" ")},t.prototype.serialize=function(){return o.rlp.encode(this.raw)},t.prototype.toJSON=function(t){return void 0===t&&(t=!1),{}},t.prototype._validateV=function(t){if(void 0!==t&&0!==t.length&&this._common.gteHardfork("spuriousDragon")){var e=o.bufferToInt(t);if(27!==e&&28!==e)if(!(e===2*this.getChainId()+35||e===2*this.getChainId()+36))throw new Error("Incompatible EIP155-based V "+e+" and chain id "+this.getChainId()+". See the second parameter of the Transaction constructor to set the chain id.")}},t.prototype._isSigned=function(){return 0<this.v.length&&0<this.r.length&&0<this.s.length},t.prototype._overrideVSetterWithValidation=function(){var e=this,r=Object.getOwnPropertyDescriptor(this,"v");Object.defineProperty(this,"v",n({},r,{set:function(t){void 0!==t&&e._validateV(o.toBuffer(t)),r.set(t)}}))},t.prototype._implementsEIP155=function(){var t=this._common.gteHardfork("spuriousDragon");if(!this._isSigned())return t;var e=o.bufferToInt(this.v);return(e===2*this.getChainId()+35||e===2*this.getChainId()+36)&&t},t}();r.default=u},{buffer:50,"ethereumjs-common":348,"ethereumjs-util":356}],352:[function(t,e,i){(function(a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=t("assert"),u=t("ethjs-util"),r=t("secp256k1"),n=t("bn.js"),f=t("./bytes"),c=t("./hash");i.zeroAddress=function(){var t=f.zeros(20);return f.bufferToHex(t)},i.isValidAddress=function(t){return/^0x[0-9a-fA-F]{40}$/.test(t)},i.isZeroAddress=function(t){return i.zeroAddress()===f.addHexPrefix(t)},i.toChecksumAddress=function(t,e){t=u.stripHexPrefix(t).toLowerCase();for(var r=void 0!==e?e.toString()+"0x":"",n=c.keccak(r+t).toString("hex"),i="0x",o=0;o<t.length;o++)8<=parseInt(n[o],16)?i+=t[o].toUpperCase():i+=t[o];return i},i.isValidChecksumAddress=function(t,e){return i.isValidAddress(t)&&i.toChecksumAddress(t,e)===t},i.generateAddress=function(t,e){t=f.toBuffer(t);var r=new n(e);return r.isZero()?c.rlphash([t,null]).slice(-20):c.rlphash([t,a.from(r.toArray())]).slice(-20)},i.generateAddress2=function(t,e,r){var n=f.toBuffer(t),i=f.toBuffer(e),o=f.toBuffer(r);return s(20===n.length),s(32===i.length),c.keccak256(a.concat([a.from("ff","hex"),n,i,c.keccak256(o)])).slice(-20)},i.isPrecompiled=function(t){var e=f.unpad(t);return 1===e.length&&1<=e[0]&&e[0]<=8},i.isValidPrivate=function(t){return r.privateKeyVerify(t)},i.isValidPublic=function(t,e){return void 0===e&&(e=!1),64===t.length?r.publicKeyVerify(a.concat([a.from([4]),t])):!!e&&r.publicKeyVerify(t)},i.pubToAddress=function(t,e){return void 0===e&&(e=!1),t=f.toBuffer(t),e&&64!==t.length&&(t=r.publicKeyConvert(t,!1).slice(1)),s(64===t.length),c.keccak(t).slice(-20)},i.publicToAddress=i.pubToAddress,i.privateToAddress=function(t){return i.publicToAddress(i.privateToPublic(t))},i.privateToPublic=function(t){return t=f.toBuffer(t),r.publicKeyCreate(t,!1).slice(1)},i.importPublic=function(t){return 64!==(t=f.toBuffer(t)).length&&(t=r.publicKeyConvert(t,!1).slice(1)),t}}).call(this,t("buffer").Buffer)},{"./bytes":353,"./hash":355,assert:15,"bn.js":262,buffer:50,"ethjs-util":359,secp256k1:412}],353:[function(t,e,i){(function(n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=t("ethjs-util"),e=t("bn.js");i.zeros=function(t){return n.allocUnsafe(t).fill(0)},i.setLengthLeft=function(t,e,r){void 0===r&&(r=!1);var n=i.zeros(e);return t=i.toBuffer(t),r?t.length<e?(t.copy(n),n):t.slice(0,e):t.length<e?(t.copy(n,e-t.length),n):t.slice(-e)},i.setLength=i.setLengthLeft,i.setLengthRight=function(t,e){return i.setLength(t,e,!0)},i.unpad=function(t){for(var e=(t=r.stripHexPrefix(t))[0];0<t.length&&"0"===e.toString();)e=(t=t.slice(1))[0];return t},i.stripZeros=i.unpad,i.toBuffer=function(t){if(!n.isBuffer(t))if(Array.isArray(t))t=n.from(t);else if("string"==typeof t){if(!r.isHexString(t))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+t);t=n.from(r.padToEven(r.stripHexPrefix(t)),"hex")}else if("number"==typeof t)t=r.intToBuffer(t);else if(null==t)t=n.allocUnsafe(0);else if(e.isBN(t))t=t.toArrayLike(n);else{if(!t.toArray)throw new Error("invalid type");t=n.from(t.toArray())}return t},i.bufferToInt=function(t){return new e(i.toBuffer(t)).toNumber()},i.bufferToHex=function(t){return"0x"+(t=i.toBuffer(t)).toString("hex")},i.fromSigned=function(t){return new e(t).fromTwos(256)},i.toUnsigned=function(t){return n.from(t.toTwos(256).toArray())},i.addHexPrefix=function(t){return"string"!=typeof t?t:r.isHexPrefixed(t)?t:"0x"+t},i.baToJSON=function(t){if(n.isBuffer(t))return"0x"+t.toString("hex");if(t instanceof Array){for(var e=[],r=0;r<t.length;r++)e.push(i.baToJSON(t[r]));return e}}}).call(this,t("buffer").Buffer)},{"bn.js":262,buffer:50,"ethjs-util":359}],354:[function(r,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=r("bn.js");n.MAX_INTEGER=new e("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),n.TWO_POW256=new e("10000000000000000000000000000000000000000000000000000000000000000",16),n.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",n.KECCAK256_NULL=t.from(n.KECCAK256_NULL_S,"hex"),n.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",n.KECCAK256_RLP_ARRAY=t.from(n.KECCAK256_RLP_ARRAY_S,"hex"),n.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",n.KECCAK256_RLP=t.from(n.KECCAK256_RLP_S,"hex")}).call(this,r("buffer").Buffer)},{"bn.js":262,buffer:50}],355:[function(t,e,s){(function(r){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var n=t("keccak"),i=t("create-hash"),o=t("ethjs-util"),e=t("rlp"),a=t("./bytes");s.keccak=function(t,e){return void 0===e&&(e=256),t="string"!=typeof t||o.isHexString(t)?a.toBuffer(t):r.from(t,"utf8"),e||(e=256),n("keccak"+e).update(t).digest()},s.keccak256=function(t){return s.keccak(t)},s.sha256=function(t){return t=a.toBuffer(t),i("sha256").update(t).digest()},s.ripemd160=function(t,e){t=a.toBuffer(t);var r=i("rmd160").update(t).digest();return!0===e?a.setLength(r,32):r},s.rlphash=function(t){return s.keccak(e.encode(t))}}).call(this,t("buffer").Buffer)},{"./bytes":353,buffer:50,"create-hash":294,"ethjs-util":359,keccak:377,rlp:406}],356:[function(t,e,r){"use strict";function n(t){for(var e in t)r.hasOwnProperty(e)||(r[e]=t[e])}Object.defineProperty(r,"__esModule",{value:!0});var i=t("secp256k1");r.secp256k1=i;var o=t("ethjs-util"),a=t("bn.js");r.BN=a;var s=t("rlp");r.rlp=s,Object.assign(r,o),n(t("./constants")),n(t("./account")),n(t("./hash")),n(t("./signature")),n(t("./bytes")),n(t("./object"))},{"./account":352,"./bytes":353,"./constants":354,"./hash":355,"./object":357,"./signature":358,"bn.js":262,"ethjs-util":359,rlp:406,secp256k1:412}],357:[function(t,e,r){(function(o){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});var a=t("assert"),s=t("ethjs-util"),u=t("rlp"),f=t("./bytes");r.defineProperties=function(i,t,e){if(i.raw=[],i._fields=[],i.toJSON=function(t){if(void 0===t&&(t=!1),t){var e={};return i._fields.forEach(function(t){e[t]="0x"+i[t].toString("hex")}),e}return f.baToJSON(i.raw)},i.serialize=function(){return u.encode(i.raw)},t.forEach(function(e,r){function t(){return i.raw[r]}function n(t){"00"!==(t=f.toBuffer(t)).toString("hex")||e.allowZero||(t=o.allocUnsafe(0)),e.allowLess&&e.length?(t=f.stripZeros(t),a(e.length>=t.length,"The field "+e.name+" must not have more "+e.length+" bytes")):e.allowZero&&0===t.length||!e.length||a(e.length===t.length,"The field "+e.name+" must have byte length of "+e.length),i.raw[r]=t}i._fields.push(e.name),Object.defineProperty(i,e.name,{enumerable:!0,configurable:!0,get:t,set:n}),e.default&&(i[e.name]=e.default),e.alias&&Object.defineProperty(i,e.alias,{enumerable:!1,configurable:!0,set:n,get:t})}),e)if("string"==typeof e&&(e=o.from(s.stripHexPrefix(e),"hex")),o.isBuffer(e)&&(e=u.decode(e)),Array.isArray(e)){if(e.length>i._fields.length)throw new Error("wrong number of fields in data");e.forEach(function(t,e){i[i._fields[e]]=f.toBuffer(t)})}else{if("object"!==n(e))throw new Error("invalid data");var r=Object.keys(e);t.forEach(function(t){-1!==r.indexOf(t.name)&&(i[t.name]=e[t.name]),-1!==r.indexOf(t.alias)&&(i[t.alias]=e[t.alias])})}}}).call(this,t("buffer").Buffer)},{"./bytes":353,assert:15,buffer:50,"ethjs-util":359,rlp:406}],358:[function(t,e,n){(function(u){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var f=t("secp256k1"),c=t("bn.js"),l=t("./bytes"),r=t("./hash");function h(t,e){return e?t-(2*e+35):t-27}function d(t){return 0===t||1===t}n.ecsign=function(t,e,r){var n=f.sign(t,e),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(t,e,r,n,i){var o=u.concat([l.setLength(r,32),l.setLength(n,32)],64),a=h(e,i);if(!d(a))throw new Error("Invalid signature v value");var s=f.recover(t,o,a);return f.publicKeyConvert(s,!1).slice(1)},n.toRpcSig=function(t,e,r,n){if(!d(h(t,n)))throw new Error("Invalid signature v value");return l.bufferToHex(u.concat([l.setLengthLeft(e,32),l.setLengthLeft(r,32),l.toBuffer(t)]))},n.fromRpcSig=function(t){var e=l.toBuffer(t);if(65!==e.length)throw new Error("Invalid signature length");var r=e[64];return r<27&&(r+=27),{v:r,r:e.slice(0,32),s:e.slice(32,64)}},n.isValidSignature=function(t,e,r,n,i){void 0===n&&(n=!0);var o=new c("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),a=new c("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==e.length||32!==r.length)return!1;if(!d(h(t,i)))return!1;var s=new c(e),u=new c(r);return!(s.isZero()||s.gt(a)||u.isZero()||u.gt(a))&&(!n||1!==u.cmp(o))},n.hashPersonalMessage=function(t){var e=u.from("Ethereum Signed Message:\n"+t.length.toString(),"utf-8");return r.keccak(u.concat([e,t]))}}).call(this,t("buffer").Buffer)},{"./bytes":353,"./hash":355,"bn.js":262,buffer:50,secp256k1:412}],359:[function(o,s,t){(function(r){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var t=o("is-hex-prefixed"),e=o("strip-hex-prefix");function n(t){var e=t;if("string"!=typeof e)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+a(e)+", while padToEven.");return e.length%2&&(e="0"+e),e}function i(t){return"0x"+t.toString(16)}s.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+a(e)+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+a(t)+"'");return t[Boolean(r)?"some":"every"](function(t){return 0<=e.indexOf(t)})},intToBuffer:function(t){var e=i(t);return new r(n(e.slice(2)),"hex")},getBinarySize:function(t){if("string"!=typeof t)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+a(t)+"'.");return r.byteLength(t,"utf8")},isHexPrefixed:t,stripHexPrefix:e,padToEven:n,intToHex:i,fromAscii:function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r).toString(16);e+=n.length<2?"0"+n:n}return"0x"+e},fromUtf8:function(t){return"0x"+n(new r(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(t){var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(t.substr(r,2),16);e+=String.fromCharCode(i)}return e},toUtf8:function(t){return new r(n(e(t).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(t,e,r){if(!Array.isArray(t))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+a(t)+"'");if("string"!=typeof e)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+a(e)+"'.");for(var n=[],i=0;i<t.length;i++){var o=t[i][e];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}}}).call(this,o("buffer").Buffer)},{buffer:50,"is-hex-prefixed":376,"strip-hex-prefix":426}],360:[function(t,e,r){arguments[4][87][0].apply(r,arguments)},{dup:87,"md5.js":383,"safe-buffer":407}],361:[function(t,e,r){arguments[4][88][0].apply(r,arguments)},{dup:88,inherits:375,"safe-buffer":407,stream:162}],362:[function(t,e,r){arguments[4][89][0].apply(r,arguments)},{"./hash/common":363,"./hash/hmac":364,"./hash/ripemd":365,"./hash/sha":366,"./hash/utils":373,dup:89}],363:[function(t,e,r){arguments[4][90][0].apply(r,arguments)},{"./utils":373,dup:90,"minimalistic-assert":385}],364:[function(t,e,r){arguments[4][91][0].apply(r,arguments)},{"./utils":373,dup:91,"minimalistic-assert":385}],365:[function(t,e,r){arguments[4][92][0].apply(r,arguments)},{"./common":363,"./utils":373,dup:92}],366:[function(t,e,r){arguments[4][93][0].apply(r,arguments)},{"./sha/1":367,"./sha/224":368,"./sha/256":369,"./sha/384":370,"./sha/512":371,dup:93}],367:[function(t,e,r){arguments[4][94][0].apply(r,arguments)},{"../common":363,"../utils":373,"./common":372,dup:94}],368:[function(t,e,r){arguments[4][95][0].apply(r,arguments)},{"../utils":373,"./256":369,dup:95}],369:[function(t,e,r){arguments[4][96][0].apply(r,arguments)},{"../common":363,"../utils":373,"./common":372,dup:96,"minimalistic-assert":385}],370:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{"../utils":373,"./512":371,dup:97}],371:[function(t,e,r){arguments[4][98][0].apply(r,arguments)},{"../common":363,"../utils":373,dup:98,"minimalistic-assert":385}],372:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{"../utils":373,dup:99}],373:[function(t,e,r){arguments[4][100][0].apply(r,arguments)},{dup:100,inherits:375,"minimalistic-assert":385}],374:[function(t,e,r){arguments[4][101][0].apply(r,arguments)},{dup:101,"hash.js":362,"minimalistic-assert":385,"minimalistic-crypto-utils":386}],375:[function(t,e,r){"use strict";"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],376:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t){if("string"!=typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+n(t)+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},{}],377:[function(t,e,r){"use strict";e.exports=t("./lib/api")(t("./lib/keccak"))},{"./lib/api":378,"./lib/keccak":382}],378:[function(t,e,r){"use strict";var i=t("./keccak"),o=t("./shake");e.exports=function(t){var r=i(t),n=o(t);return function(t,e){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new r(1152,448,null,224,e);case"keccak256":return new r(1088,512,null,256,e);case"keccak384":return new r(832,768,null,384,e);case"keccak512":return new r(576,1024,null,512,e);case"sha3-224":return new r(1152,448,6,224,e);case"sha3-256":return new r(1088,512,6,256,e);case"sha3-384":return new r(832,768,6,384,e);case"sha3-512":return new r(576,1024,6,512,e);case"shake128":return new n(1344,256,31,e);case"shake256":return new n(1088,512,31,e);default:throw new Error("Invald algorithm: "+t)}}}},{"./keccak":379,"./shake":380}],379:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,a=t("stream").Transform,i=t("inherits");e.exports=function(o){function e(t,e,r,n,i){a.call(this,i),this._rate=t,this._capacity=e,this._delimitedSuffix=r,this._hashBitLength=n,this._options=i,this._state=new o,this._state.initialize(t,e),this._finalized=!1}return i(e,a),e.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},e.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},e.prototype.update=function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this},e.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e},e.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},e.prototype._clone=function(){var t=new e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t},e}},{inherits:375,"safe-buffer":407,stream:162}],380:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,o=t("stream").Transform,a=t("inherits");e.exports=function(i){function e(t,e,r,n){o.call(this,n),this._rate=t,this._capacity=e,this._delimitedSuffix=r,this._options=n,this._state=new i,this._state.initialize(t,e),this._finalized=!1}return a(e,o),e.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},e.prototype._flush=function(){},e.prototype._read=function(t){this.push(this.squeeze(t))},e.prototype.update=function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this},e.prototype.squeeze=function(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r},e.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},e.prototype._clone=function(){var t=new e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t},e}},{inherits:375,"safe-buffer":407,stream:162}],381:[function(t,e,r){"use strict";var ae=[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(t){for(var e=0;e<24;++e){var r=t[0]^t[10]^t[20]^t[30]^t[40],n=t[1]^t[11]^t[21]^t[31]^t[41],i=t[2]^t[12]^t[22]^t[32]^t[42],o=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],s=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],l=t[9]^t[19]^t[29]^t[39]^t[49],h=c^(i<<1|o>>>31),d=l^(o<<1|i>>>31),p=t[0]^h,y=t[1]^d,b=t[10]^h,m=t[11]^d,v=t[20]^h,g=t[21]^d,w=t[30]^h,_=t[31]^d,A=t[40]^h,S=t[41]^d;h=r^(a<<1|s>>>31),d=n^(s<<1|a>>>31);var x=t[2]^h,E=t[3]^d,k=t[12]^h,M=t[13]^d,j=t[22]^h,I=t[23]^d,T=t[32]^h,R=t[33]^d,O=t[42]^h,B=t[43]^d;h=i^(u<<1|f>>>31),d=o^(f<<1|u>>>31);var U=t[4]^h,C=t[5]^d,N=t[14]^h,P=t[15]^d,L=t[24]^h,F=t[25]^d,D=t[34]^h,q=t[35]^d,z=t[44]^h,H=t[45]^d;h=a^(c<<1|l>>>31),d=s^(l<<1|c>>>31);var K=t[6]^h,V=t[7]^d,G=t[16]^h,W=t[17]^d,Y=t[26]^h,X=t[27]^d,J=t[36]^h,Z=t[37]^d,$=t[46]^h,Q=t[47]^d;h=u^(r<<1|n>>>31),d=f^(n<<1|r>>>31);var tt=t[8]^h,et=t[9]^d,rt=t[18]^h,nt=t[19]^d,it=t[28]^h,ot=t[29]^d,at=t[38]^h,st=t[39]^d,ut=t[48]^h,ft=t[49]^d,ct=p,lt=y,ht=m<<4|b>>>28,dt=b<<4|m>>>28,pt=v<<3|g>>>29,yt=g<<3|v>>>29,bt=_<<9|w>>>23,mt=w<<9|_>>>23,vt=A<<18|S>>>14,gt=S<<18|A>>>14,wt=x<<1|E>>>31,_t=E<<1|x>>>31,At=M<<12|k>>>20,St=k<<12|M>>>20,xt=j<<10|I>>>22,Et=I<<10|j>>>22,kt=R<<13|T>>>19,Mt=T<<13|R>>>19,jt=O<<2|B>>>30,It=B<<2|O>>>30,Tt=C<<30|U>>>2,Rt=U<<30|C>>>2,Ot=N<<6|P>>>26,Bt=P<<6|N>>>26,Ut=F<<11|L>>>21,Ct=L<<11|F>>>21,Nt=D<<15|q>>>17,Pt=q<<15|D>>>17,Lt=H<<29|z>>>3,Ft=z<<29|H>>>3,Dt=K<<28|V>>>4,qt=V<<28|K>>>4,zt=W<<23|G>>>9,Ht=G<<23|W>>>9,Kt=Y<<25|X>>>7,Vt=X<<25|Y>>>7,Gt=J<<21|Z>>>11,Wt=Z<<21|J>>>11,Yt=Q<<24|$>>>8,Xt=$<<24|Q>>>8,Jt=tt<<27|et>>>5,Zt=et<<27|tt>>>5,$t=rt<<20|nt>>>12,Qt=nt<<20|rt>>>12,te=ot<<7|it>>>25,ee=it<<7|ot>>>25,re=at<<8|st>>>24,ne=st<<8|at>>>24,ie=ut<<14|ft>>>18,oe=ft<<14|ut>>>18;t[0]=ct^~At&Ut,t[1]=lt^~St&Ct,t[10]=Dt^~$t&pt,t[11]=qt^~Qt&yt,t[20]=wt^~Ot&Kt,t[21]=_t^~Bt&Vt,t[30]=Jt^~ht&xt,t[31]=Zt^~dt&Et,t[40]=Tt^~zt&te,t[41]=Rt^~Ht&ee,t[2]=At^~Ut&Gt,t[3]=St^~Ct&Wt,t[12]=$t^~pt&kt,t[13]=Qt^~yt&Mt,t[22]=Ot^~Kt&re,t[23]=Bt^~Vt&ne,t[32]=ht^~xt&Nt,t[33]=dt^~Et&Pt,t[42]=zt^~te&bt,t[43]=Ht^~ee&mt,t[4]=Ut^~Gt&ie,t[5]=Ct^~Wt&oe,t[14]=pt^~kt&Lt,t[15]=yt^~Mt&Ft,t[24]=Kt^~re&vt,t[25]=Vt^~ne>,t[34]=xt^~Nt&Yt,t[35]=Et^~Pt&Xt,t[44]=te^~bt&jt,t[45]=ee^~mt&It,t[6]=Gt^~ie&ct,t[7]=Wt^~oe<,t[16]=kt^~Lt&Dt,t[17]=Mt^~Ft&qt,t[26]=re^~vt&wt,t[27]=ne^~gt&_t,t[36]=Nt^~Yt&Jt,t[37]=Pt^~Xt&Zt,t[46]=bt^~jt&Tt,t[47]=mt^~It&Rt,t[8]=ie^~ct&At,t[9]=oe^~lt&St,t[18]=Lt^~Dt&$t,t[19]=Ft^~qt&Qt,t[28]=vt^~wt&Ot,t[29]=gt^~_t&Bt,t[38]=Yt^~Jt&ht,t[39]=Xt^~Zt&dt,t[48]=jt^~Tt&zt,t[49]=It^~Rt&Ht,t[0]^=ae[2*e],t[1]^=ae[2*e+1]}}},{}],382:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=t("./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(t,e){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(t){for(var e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,0!=(128&t)&&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(t){this.squeezing||this.absorbLastFewBits(1);for(var e=n.alloc(t),r=0;r<t;++r)e[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 e},o.prototype.copy=function(t){for(var e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},e.exports=o},{"./keccak-state-unroll":381,"safe-buffer":407}],383:[function(t,e,r){arguments[4][107][0].apply(r,arguments)},{dup:107,"hash-base":361,inherits:375,"safe-buffer":407}],384:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{"bn.js":262,brorand:263,dup:108}],385:[function(t,e,r){arguments[4][109][0].apply(r,arguments)},{dup:109}],386:[function(t,e,r){arguments[4][110][0].apply(r,arguments)},{dup:110}],387:[function(t,e,r){arguments[4][113][0].apply(r,arguments)},{dup:113}],388:[function(t,e,r){arguments[4][114][0].apply(r,arguments)},{"./certificate":389,"asn1.js":247,dup:114}],389:[function(t,e,r){arguments[4][115][0].apply(r,arguments)},{"asn1.js":247,dup:115}],390:[function(t,e,r){arguments[4][116][0].apply(r,arguments)},{"browserify-aes":266,dup:116,evp_bytestokey:360,"safe-buffer":407}],391:[function(t,e,r){arguments[4][117][0].apply(r,arguments)},{"./aesid.json":387,"./asn1":388,"./fixProc":390,"browserify-aes":266,dup:117,pbkdf2:392,"safe-buffer":407}],392:[function(t,e,r){arguments[4][118][0].apply(r,arguments)},{"./lib/async":393,"./lib/sync":396,dup:118}],393:[function(t,e,r){(function(f,c){"use strict";var l,h=t("./precondition"),d=t("./default-encoding"),p=t("./sync"),y=t("safe-buffer").Buffer,b=c.crypto&&c.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(t,e,r,n,i){return b.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return b.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)}).then(function(t){return y.from(t)})}e.exports=function(e,r,n,i,o,a){"function"==typeof o&&(a=o,o=void 0);var t,s,u=m[(o=o||"sha1").toLowerCase()];if(!u||"function"!=typeof c.Promise)return f.nextTick(function(){var t;try{t=p(e,r,n,i,o)}catch(t){return a(t)}a(null,t)});if(h(e,r,n,i),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");y.isBuffer(e)||(e=y.from(e,d)),y.isBuffer(r)||(r=y.from(r,d)),t=function(t){if(c.process&&!c.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(void 0!==v[t])return v[t];var e=g(l=l||y.alloc(8),l,10,128,t).then(function(){return!0}).catch(function(){return!1});return v[t]=e}(u).then(function(t){return t?g(e,r,n,i,u):p(e,r,n,i,o)}),s=a,t.then(function(t){f.nextTick(function(){s(null,t)})},function(t){f.nextTick(function(){s(t)})})}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":394,"./precondition":395,"./sync":396,_process:124,"safe-buffer":407}],394:[function(t,r,e){(function(t){"use strict";var e;t.browser?e="utf-8":e=6<=parseInt(t.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=e}).call(this,t("_process"))},{_process:124}],395:[function(t,e,r){(function(r){"use strict";var i=Math.pow(2,30)-1;function o(t,e){if("string"!=typeof t&&!r.isBuffer(t))throw new TypeError(e+" must be a buffer or string")}e.exports=function(t,e,r,n){if(o(t,"Password"),o(e,"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:t("../../../../../node_modules/is-buffer/index.js")})},{"../../../../../node_modules/is-buffer/index.js":105}],396:[function(t,e,r){arguments[4][122][0].apply(r,arguments)},{"./default-encoding":394,"./precondition":395,"create-hash/md5":295,dup:122,ripemd160:405,"safe-buffer":407,"sha.js":419}],397:[function(t,e,r){arguments[4][125][0].apply(r,arguments)},{"./privateDecrypt":399,"./publicEncrypt":400,dup:125}],398:[function(t,e,r){arguments[4][126][0].apply(r,arguments)},{"create-hash":294,dup:126,"safe-buffer":407}],399:[function(t,e,r){arguments[4][127][0].apply(r,arguments)},{"./mgf":398,"./withPublic":401,"./xor":402,"bn.js":262,"browserify-rsa":284,"create-hash":294,dup:127,"parse-asn1":391,"safe-buffer":407}],400:[function(t,e,r){arguments[4][128][0].apply(r,arguments)},{"./mgf":398,"./withPublic":401,"./xor":402,"bn.js":262,"browserify-rsa":284,"create-hash":294,dup:128,"parse-asn1":391,randombytes:403,"safe-buffer":407}],401:[function(t,e,r){arguments[4][129][0].apply(r,arguments)},{"bn.js":262,dup:129,"safe-buffer":407}],402:[function(t,e,r){arguments[4][130][0].apply(r,arguments)},{dup:130}],403:[function(e,r,t){(function(i,t){"use strict";var o=e("safe-buffer").Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?r.exports=function(t,e){if(4294967295<t)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(t);if(0<t)if(65536<t)for(var n=0;n<t;n+=65536)a.getRandomValues(r.slice(n,n+65536));else a.getRandomValues(r);return"function"!=typeof e?r:i.nextTick(function(){e(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,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":407}],404:[function(r,t,d){(function(a,i){"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=r("safe-buffer"),s=r("randombytes"),o=e.Buffer,n=e.kMaxLength,u=i.crypto||i.msCrypto,f=Math.pow(2,32)-1;function c(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(f<t||t<0)throw new TypeError("offset must be a uint32");if(n<t||e<t)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(f<t||t<0)throw new TypeError("size must be a uint32");if(r<t+e||n<t)throw new RangeError("buffer too small")}function h(r,n,t,i){if(a.browser){var e=r.buffer,o=new Uint8Array(e,n,t);return u.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return s(t).copy(r,n),r;s(t,function(t,e){if(t)return i(t);e.copy(r,n),i(null,r)})}u&&u.getRandomValues||!a.browser?(d.randomFill=function(t,e,r,n){if(!(o.isBuffer(t)||t instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)n=e,e=0,r=t.length;else if("function"==typeof r)n=r,r=t.length-e;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return c(e,t.length),l(r,e,t.length),h(t,e,r,n)},d.randomFillSync=function(t,e,r){void 0===e&&(e=0);if(!(o.isBuffer(t)||t instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(e,t.length),void 0===r&&(r=t.length-e);return l(r,e,t.length),h(t,e,r)}):(d.randomFill=t,d.randomFillSync=t)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,randombytes:403,"safe-buffer":407}],405:[function(t,e,r){arguments[4][152][0].apply(r,arguments)},{buffer:50,dup:152,"hash-base":361,inherits:375}],406:[function(t,e,r){(function(c){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("bn.js");function l(t,e){if("00"===t.slice(0,2))throw new Error("invalid RLP: extra zeros");return parseInt(t,e)}function a(t,e){if(t<56)return c.from([t+e]);var r=s(t),n=s(e+55+r.length/2);return c.from(n+r,"hex")}function o(t){return"0x"===t.slice(0,2)}function s(t){if(t<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0"+e:e}function u(t){if(c.isBuffer(t))return t;var e,r,n;if("string"==typeof t)return o(t)?c.from((r="string"!=typeof(n=t)?n:o(n)?n.slice(2):n).length%2?"0"+r:r,"hex"):c.from(t);if("number"==typeof t)return t?(e=s(t),c.from(e,"hex")):c.from([]);if(null==t)return c.from([]);if(t instanceof Uint8Array)return c.from(t);if(i.isBN(t))return c.from(t.toArray());throw new Error("invalid type")}r.encode=function t(e){if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n]));var i=c.concat(r);return c.concat([a(i.length,192),i])}var o=u(e);return 1===o.length&&o[0]<128?o:c.concat([a(o.length,128),o])},r.decode=function(t,e){if(void 0===e&&(e=!1),!t||0===t.length)return c.from([]);var r=function t(e){var r,n,i,o,a,s=[],u=e[0];if(u<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(u<=183){if(r=u-127,i=128===u?c.from([]):e.slice(1,r),2===r&&i[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:i,remainder:e.slice(r)}}if(u<=191){if(n=u-182,r=l(e.slice(1,n).toString("hex"),16),(i=e.slice(n,r+n)).length<r)throw new Error("invalid RLP");return{data:i,remainder:e.slice(r+n)}}if(u<=247){for(r=u-191,o=e.slice(1,r);o.length;)a=t(o),s.push(a.data),o=a.remainder;return{data:s,remainder:e.slice(r)}}n=u-246,r=l(e.slice(1,n).toString("hex"),16);var f=n+r;if(f>e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(o=e.slice(n,f)).length)throw new Error("invalid rlp, List has a invalid length");for(;o.length;)a=t(o),s.push(a.data),o=a.remainder;return{data:s,remainder:e.slice(f)}}(u(t));if(e)return r;if(0!==r.remainder.length)throw new Error("invalid remainder");return r.data},r.getLength=function(t){if(!t||0===t.length)return c.from([]);var e=u(t),r=e[0];if(r<=127)return e.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(e.slice(1,n).toString("hex"),16)}}).call(this,t("buffer").Buffer)},{"bn.js":262,buffer:50}],407:[function(t,e,r){arguments[4][183][0].apply(r,arguments)},{buffer:50,dup:183}],408:[function(t,e,r){"use strict";var n=t("./scryptSync");n.async=t("./scrypt"),e.exports=n},{"./scrypt":409,"./scryptSync":410}],409:[function(t,e,r){"use strict";function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var v=t("crypto"),n=t("./utils"),g=n.checkAndInit,w=n.smix;function f(){var s;return s=regeneratorRuntime.mark(function t(e,r,n,i,o,a,s,u){var f,c,l,h,d,p,y,b,m;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:f=g(e,r,n,i,o,a,s),c=f.XY,l=f.V,h=f.B32,d=f.x,p=f._X,y=f.B,b=f.tickCallback,m=0;case 2:if(m<o)return t.next=5,w(y,128*m*i,i,n,l,c,p,h,d,b,u);t.next=8;break;case 5:m++,t.next=2;break;case 8:return t.abrupt("return",v.pbkdf2Sync(e,y,1,a,"sha256"));case 9:case"end":return t.stop()}},t)}),(f=function(){var t=this,a=arguments;return new Promise(function(e,r){var n=s.apply(t,a);function i(t){u(n,e,r,i,o,"next",t)}function o(t){u(n,e,r,i,o,"throw",t)}i(void 0)})}).apply(this,arguments)}e.exports=function(t,e,r,n,i,o,a,s){return f.apply(this,arguments)}},{"./utils":411,crypto:59}],410:[function(t,e,r){"use strict";var b=t("crypto"),n=t("./utils"),m=n.checkAndInit,v=n.smixSync;e.exports=function(t,e,r,n,i,o,a){for(var s=m(t,e,r,n,i,o,a),u=s.XY,f=s.V,c=s.B32,l=s.x,h=s._X,d=s.B,p=s.tickCallback,y=0;y<i;y++)v(d,128*y*n,n,r,f,u,h,c,l,p);return b.pbkdf2Sync(t,d,1,o,"sha256")}},{"./utils":411,crypto:59}],411:[function(t,e,r){(function(b,m){"use strict";function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}var v=t("crypto"),g=5e3;function l(){var s;return s=regeneratorRuntime.mark(function t(e,r,n,i,o,a,s,u,f,c,l){var h,d,p,y,b;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:l=l||g,h=0,d=128*n,e.copy(a,h,r,r+d),p=0;case 5:if(!(p<i)){t.next=15;break}if(a.copy(o,p*d,h,h+d),p%l==0)return t.next=10,new Promise(function(t){return m(t)});t.next=10;break;case 10:w(a,h,d,n,s,u,f),c&&c();case 12:p++,t.next=5;break;case 15:p=0;case 16:if(!(p<i)){t.next=28;break}if(y=h+64*(2*n-1),b=a.readUInt32LE(y)&i-1,_(o,b*d,a,h,d),p%l==0)return t.next=23,new Promise(function(t){return m(t)});t.next=23;break;case 23:w(a,h,d,n,s,u,f),c&&c();case 25:p++,t.next=16;break;case 28:a.copy(e,r,h,h+d);case 29:case"end":return t.stop()}},t)}),(l=function(){var t=this,a=arguments;return new Promise(function(e,r){var n=s.apply(t,a);function i(t){u(n,e,r,i,o,"next",t)}function o(t){u(n,e,r,i,o,"throw",t)}i(void 0)})}).apply(this,arguments)}function w(t,e,r,n,i,o,a){var s;for(c(t,e+64*(2*n-1),i,0,64),s=0;s<2*n;s++)_(t,64*s,i,0,64),f(i,o,a),c(i,0,t,r+64*s,64);for(s=0;s<n;s++)c(t,r+2*s*64,t,e+64*s,64);for(s=0;s<n;s++)c(t,r+64*(2*s+1),t,e+64*(s+n),64)}function o(t,e){return t<<e|t>>>32-e}function f(t,e,r){var n;for(n=0;n<16;n++)e[n]=(255&t[4*n+0])<<0,e[n]|=(255&t[4*n+1])<<8,e[n]|=(255&t[4*n+2])<<16,e[n]|=(255&t[4*n+3])<<24;for(c(e,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)e[n]=r[n]+e[n];for(n=0;n<16;n++){var i=4*n;t[i+0]=e[n]>>0&255,t[i+1]=e[n]>>8&255,t[i+2]=e[n]>>16&255,t[i+3]=e[n]>>24&255}}function _(t,e,r,n,i){for(var o=0;o<i;o++)r[n+o]^=t[e+o]}function c(t,e,r,n,i){if(b.isBuffer(t)&&b.isBuffer(r))t.copy(r,n,e,e+i);else for(;i--;)r[n++]=t[e++]}e.exports={checkAndInit:function(t,e,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=b.alloc(256*n),f=b.alloc(128*n*r),c=new Int32Array(16),l=new Int32Array(16),h=b.alloc(64),d=v.pbkdf2Sync(t,e,1,128*i*n,"sha256");if(a){var p=i*r*2,y=0;s=function(){++y%1e3==0&&a({current:y,total:p,percent:y/p*100})}}return{XY:u,V:f,B32:c,x:l,_X:h,B:d,tickCallback:s}},smix:function(t,e,r,n,i,o,a,s,u,f,c){return l.apply(this,arguments)},smixSync:function(t,e,r,n,i,o,a,s,u,f){var c,l=128*r;for(t.copy(o,0,e,e+l),c=0;c<n;c++)o.copy(i,c*l,0,0+l),w(o,0,l,r,a,s,u),f&&f();for(c=0;c<n;c++){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),f&&f()}o.copy(t,e,0,0+l)}}}).call(this,t("buffer").Buffer,t("timers").setImmediate)},{buffer:50,crypto:59,timers:184}],412:[function(t,e,r){"use strict";e.exports=t("./lib")(t("./lib/elliptic"))},{"./lib":416,"./lib/elliptic":415}],413:[function(t,e,i){(function(r){"use strict";var n=Object.prototype.toString;i.isArray=function(t,e){if(!Array.isArray(t))throw TypeError(e)},i.isBoolean=function(t,e){if("[object Boolean]"!==n.call(t))throw TypeError(e)},i.isBuffer=function(t,e){if(!r.isBuffer(t))throw TypeError(e)},i.isFunction=function(t,e){if("[object Function]"!==n.call(t))throw TypeError(e)},i.isNumber=function(t,e){if("[object Number]"!==n.call(t))throw TypeError(e)},i.isObject=function(t,e){if("[object Object]"!==n.call(t))throw TypeError(e)},i.isBufferLength=function(t,e,r){if(t.length!==e)throw RangeError(r)},i.isBufferLength2=function(t,e,r,n){if(t.length!==e&&t.length!==r)throw RangeError(n)},i.isLengthGTZero=function(t,e){if(0===t.length)throw RangeError(e)},i.isNumberInInterval=function(t,e,r,n){if(t<=e||r<=t)throw RangeError(n)}}).call(this,{isBuffer:t("../../../../../node_modules/is-buffer/index.js")})},{"../../../../../node_modules/is-buffer/index.js":105}],414:[function(t,e,r){"use strict";var h=t("safe-buffer").Buffer,s=t("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(t,e,r){var n=h.from(r?i:o);return t.copy(n,r?8:9),e.copy(n,r?181:214),n},r.privateKeyImport=function(t){var e=t.length,r=0;if(!(e<r+1||48!==t[r])&&!(e<(r+=1)+1)&&128&t[r]){var n=127&t[r];if(r+=1,!(n<1||2<n||e<r+n)){var i=t[r+n-1]|(1<n?t[r+n-2]<<8:0);if(!(e<(r+=n)+i||e<r+3||2!==t[r]||1!==t[r+1]||1!==t[r+2]||e<(r+=3)+2||4!==t[r]||32<t[r+1]||e<r+2+t[r+1]))return t.slice(r+2,r+2+t[r+1])}}},r.signatureExport=function(t){for(var e=h.concat([h.from([0]),t.r]),r=33,n=0;1<r&&0===e[n]&&!(128&e[n+1]);--r,++n);for(var i=h.concat([h.from([0]),t.s]),o=33,a=0;1<o&&0===i[a]&&!(128&i[a+1]);--o,++a);return s.encode(e.slice(n),i.slice(a))},r.signatureImport=function(t){var e=h.alloc(32,0),r=h.alloc(32,0);try{var n=s.decode(t);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(t){return}return n.r.copy(e,32-n.r.length),n.s.copy(r,32-n.s.length),{r:e,s:r}},r.signatureImportLax=function(t){var e=h.alloc(32,0),r=h.alloc(32,0),n=t.length,i=0;if(48===t[i++]){var o=t[i++];if(!(128&o&&n<(i+=o-128))&&2===t[i++]){var a=t[i++];if(128&a){if(n<i+(o=a-128))return;for(;0<o&&0===t[i];i+=1,o-=1);for(a=0;0<o;i+=1,o-=1)a=(a<<8)+t[i]}if(!(n-i<a)){var s=i;if(i+=a,2===t[i++]){var u=t[i++];if(128&u){if(n<i+(o=u-128))return;for(;0<o&&0===t[i];i+=1,o-=1);for(u=0;0<o;i+=1,o-=1)u=(u<<8)+t[i]}if(!(n-i<u)){var f=i;for(i+=u;0<a&&0===t[s];a-=1,s+=1);if(!(32<a)){var c=t.slice(s,s+a);for(c.copy(e,32-c.length);0<u&&0===t[f];u-=1,f+=1);if(!(32<u)){var l=t.slice(f,f+u);return l.copy(r,32-l.length),{r:e,s:r}}}}}}}}}},{bip66:261,"safe-buffer":407}],415:[function(t,e,n){"use strict";var u=t("safe-buffer").Buffer,i=t("create-hash"),f=t("bn.js"),r=t("elliptic").ec,c=t("../messages.json"),l=new r("secp256k1"),h=l.curve;function s(t){var e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:function(t,e){var r=new f(e);if(0<=r.cmp(h.p))return null;var n=(r=r.toRed(h.red)).redSqr().redIMul(r).redIAdd(h.b).redSqrt();return 3===t!==n.isOdd()&&(n=n.redNeg()),l.keyPair({pub:{x:r,y:n}})}(e,t.slice(1,33));case 4:case 6:case 7:return 65!==t.length?null:function(t,e,r){var n=new f(e),i=new f(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===t||7===t)&&i.isOdd()!==(7===t))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}(e,t.slice(1,33),t.slice(33,65));default:return null}}n.privateKeyVerify=function(t){var e=new f(t);return e.cmp(h.n)<0&&!e.isZero()},n.privateKeyExport=function(t,e){var r=new f(t);if(0<=r.cmp(h.n)||r.isZero())throw new Error(c.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return u.from(l.keyFromPrivate(t).getPublic(e,!0))},n.privateKeyNegate=function(t){var e=new f(t);return e.isZero()?u.alloc(32):h.n.sub(e).umod(h.n).toArrayLike(u,"be",32)},n.privateKeyModInverse=function(t){var e=new f(t);if(0<=e.cmp(h.n)||e.isZero())throw new Error(c.EC_PRIVATE_KEY_RANGE_INVALID);return e.invm(h.n).toArrayLike(u,"be",32)},n.privateKeyTweakAdd=function(t,e){var r=new f(e);if(0<=r.cmp(h.n))throw new Error(c.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(r.iadd(new f(t)),0<=r.cmp(h.n)&&r.isub(h.n),r.isZero())throw new Error(c.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return r.toArrayLike(u,"be",32)},n.privateKeyTweakMul=function(t,e){var r=new f(e);if(0<=r.cmp(h.n)||r.isZero())throw new Error(c.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return r.imul(new f(t)),r.cmp(h.n)&&(r=r.umod(h.n)),r.toArrayLike(u,"be",32)},n.publicKeyCreate=function(t,e){var r=new f(t);if(0<=r.cmp(h.n)||r.isZero())throw new Error(c.EC_PUBLIC_KEY_CREATE_FAIL);return u.from(l.keyFromPrivate(t).getPublic(e,!0))},n.publicKeyConvert=function(t,e){var r=s(t);if(null===r)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);return u.from(r.getPublic(e,!0))},n.publicKeyVerify=function(t){return null!==s(t)},n.publicKeyTweakAdd=function(t,e,r){var n=s(t);if(null===n)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);if(0<=(e=new f(e)).cmp(h.n))throw new Error(c.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);var i=h.g.mul(e).add(n.pub);if(i.isInfinity())throw new Error(c.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return u.from(i.encode(!0,r))},n.publicKeyTweakMul=function(t,e,r){var n=s(t);if(null===n)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);if(0<=(e=new f(e)).cmp(h.n)||e.isZero())throw new Error(c.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return u.from(n.pub.mul(e).encode(!0,r))},n.publicKeyCombine=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;++n)if(r[n]=s(t[n]),null===r[n])throw new Error(c.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(c.EC_PUBLIC_KEY_COMBINE_FAIL);return u.from(i.encode(!0,e))},n.signatureNormalize=function(t){var e=new f(t.slice(0,32)),r=new f(t.slice(32,64));if(0<=e.cmp(h.n)||0<=r.cmp(h.n))throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);var n=u.from(t);return 1===r.cmp(l.nh)&&h.n.sub(r).toArrayLike(u,"be",32).copy(n,32),n},n.signatureExport=function(t){var e=t.slice(0,32),r=t.slice(32,64);if(0<=new f(e).cmp(h.n)||0<=new f(r).cmp(h.n))throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);return{r:e,s:r}},n.signatureImport=function(t){var e=new f(t.r);0<=e.cmp(h.n)&&(e=new f(0));var r=new f(t.s);return 0<=r.cmp(h.n)&&(r=new f(0)),u.concat([e.toArrayLike(u,"be",32),r.toArrayLike(u,"be",32)])},n.sign=function(r,n,t,i){if("function"==typeof t){var o=t;t=function(t){var e=o(r,n,null,i,t);if(!u.isBuffer(e)||32!==e.length)throw new Error(c.ECDSA_SIGN_FAIL);return new f(e)}}var e=new f(n);if(0<=e.cmp(h.n)||e.isZero())throw new Error(c.ECDSA_SIGN_FAIL);var a=l.sign(r,n,{canonical:!0,k:t,pers:i});return{signature:u.concat([a.r.toArrayLike(u,"be",32),a.s.toArrayLike(u,"be",32)]),recovery:a.recoveryParam}},n.verify=function(t,e,r){var n={r:e.slice(0,32),s:e.slice(32,64)},i=new f(n.r),o=new f(n.s);if(0<=i.cmp(h.n)||0<=o.cmp(h.n))throw new Error(c.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(c.EC_PUBLIC_KEY_PARSE_FAIL);return l.verify(t,n,{x:a.pub.x,y:a.pub.y})},n.recover=function(t,e,r,n){var i={r:e.slice(0,32),s:e.slice(32,64)},o=new f(i.r),a=new f(i.s);if(0<=o.cmp(h.n)||0<=a.cmp(h.n))throw new Error(c.ECDSA_SIGNATURE_PARSE_FAIL);try{if(o.isZero()||a.isZero())throw new Error;var s=l.recoverPubKey(t,i,r);return u.from(s.encode(!0,n))}catch(t){throw new Error(c.ECDSA_RECOVER_FAIL)}},n.ecdh=function(t,e){var r=n.ecdhUnsafe(t,e,!0);return i("sha256").update(r).digest()},n.ecdhUnsafe=function(t,e,r){var n=s(t);if(null===n)throw new Error(c.EC_PUBLIC_KEY_PARSE_FAIL);var i=new f(e);if(0<=i.cmp(h.n)||i.isZero())throw new Error(c.ECDH_FAIL);return u.from(n.pub.mul(i).encode(!0,r))}},{"../messages.json":417,"bn.js":262,"create-hash":294,elliptic:309,"safe-buffer":407}],416:[function(t,e,r){"use strict";var a=t("./assert"),n=t("./der"),s=t("./messages.json");function i(t,e){return void 0===t?e:(a.isBoolean(t,s.COMPRESSED_TYPE_INVALID),t)}e.exports=function(o){return{privateKeyVerify:function(t){return a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),32===t.length&&o.privateKeyVerify(t)},privateKeyExport:function(t,e){a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),e=i(e,!0);var r=o.privateKeyExport(t,e);return n.privateKeyExport(t,r,e)},privateKeyImport:function(t){if(a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),(t=n.privateKeyImport(t))&&32===t.length&&o.privateKeyVerify(t))return t;throw new Error(s.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(t){return a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),o.privateKeyNegate(t)},privateKeyModInverse:function(t){return a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),o.privateKeyModInverse(t)},privateKeyTweakAdd:function(t,e){return a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),a.isBuffer(e,s.TWEAK_TYPE_INVALID),a.isBufferLength(e,32,s.TWEAK_LENGTH_INVALID),o.privateKeyTweakAdd(t,e)},privateKeyTweakMul:function(t,e){return a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),a.isBuffer(e,s.TWEAK_TYPE_INVALID),a.isBufferLength(e,32,s.TWEAK_LENGTH_INVALID),o.privateKeyTweakMul(t,e)},publicKeyCreate:function(t,e){return a.isBuffer(t,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(t,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),e=i(e,!0),o.publicKeyCreate(t,e)},publicKeyConvert:function(t,e){return a.isBuffer(t,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(t,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),e=i(e,!0),o.publicKeyConvert(t,e)},publicKeyVerify:function(t){return a.isBuffer(t,s.EC_PUBLIC_KEY_TYPE_INVALID),o.publicKeyVerify(t)},publicKeyTweakAdd:function(t,e,r){return a.isBuffer(t,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(t,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(e,s.TWEAK_TYPE_INVALID),a.isBufferLength(e,32,s.TWEAK_LENGTH_INVALID),r=i(r,!0),o.publicKeyTweakAdd(t,e,r)},publicKeyTweakMul:function(t,e,r){return a.isBuffer(t,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(t,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(e,s.TWEAK_TYPE_INVALID),a.isBufferLength(e,32,s.TWEAK_LENGTH_INVALID),r=i(r,!0),o.publicKeyTweakMul(t,e,r)},publicKeyCombine:function(t,e){a.isArray(t,s.EC_PUBLIC_KEYS_TYPE_INVALID),a.isLengthGTZero(t,s.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var r=0;r<t.length;++r)a.isBuffer(t[r],s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(t[r],33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID);return e=i(e,!0),o.publicKeyCombine(t,e)},signatureNormalize:function(t){return a.isBuffer(t,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(t,64,s.ECDSA_SIGNATURE_LENGTH_INVALID),o.signatureNormalize(t)},signatureExport:function(t){a.isBuffer(t,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(t,64,s.ECDSA_SIGNATURE_LENGTH_INVALID);var e=o.signatureExport(t);return n.signatureExport(e)},signatureImport:function(t){a.isBuffer(t,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isLengthGTZero(t,s.ECDSA_SIGNATURE_LENGTH_INVALID);var e=n.signatureImport(t);if(e)return o.signatureImport(e);throw new Error(s.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(t){a.isBuffer(t,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isLengthGTZero(t,s.ECDSA_SIGNATURE_LENGTH_INVALID);var e=n.signatureImportLax(t);if(e)return o.signatureImport(e);throw new Error(s.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(t,e,r){a.isBuffer(t,s.MSG32_TYPE_INVALID),a.isBufferLength(t,32,s.MSG32_LENGTH_INVALID),a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,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(t,e,i,n)},verify:function(t,e,r){return a.isBuffer(t,s.MSG32_TYPE_INVALID),a.isBufferLength(t,32,s.MSG32_LENGTH_INVALID),a.isBuffer(e,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(e,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(t,e,r)},recover:function(t,e,r,n){return a.isBuffer(t,s.MSG32_TYPE_INVALID),a.isBufferLength(t,32,s.MSG32_LENGTH_INVALID),a.isBuffer(e,s.ECDSA_SIGNATURE_TYPE_INVALID),a.isBufferLength(e,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(t,e,r,n)},ecdh:function(t,e){return a.isBuffer(t,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(t,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),o.ecdh(t,e)},ecdhUnsafe:function(t,e,r){return a.isBuffer(t,s.EC_PUBLIC_KEY_TYPE_INVALID),a.isBufferLength2(t,33,65,s.EC_PUBLIC_KEY_LENGTH_INVALID),a.isBuffer(e,s.EC_PRIVATE_KEY_TYPE_INVALID),a.isBufferLength(e,32,s.EC_PRIVATE_KEY_LENGTH_INVALID),r=i(r,!0),o.ecdhUnsafe(t,e,r)}}}},{"./assert":413,"./der":414,"./messages.json":417}],417:[function(t,e,r){e.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"}},{}],418:[function(t,e,r){arguments[4][154][0].apply(r,arguments)},{dup:154,"safe-buffer":407}],419:[function(t,e,r){arguments[4][155][0].apply(r,arguments)},{"./sha":420,"./sha1":421,"./sha224":422,"./sha256":423,"./sha384":424,"./sha512":425,dup:155}],420:[function(t,e,r){arguments[4][156][0].apply(r,arguments)},{"./hash":418,dup:156,inherits:375,"safe-buffer":407}],421:[function(t,e,r){arguments[4][157][0].apply(r,arguments)},{"./hash":418,dup:157,inherits:375,"safe-buffer":407}],422:[function(t,e,r){arguments[4][158][0].apply(r,arguments)},{"./hash":418,"./sha256":423,dup:158,inherits:375,"safe-buffer":407}],423:[function(t,e,r){arguments[4][159][0].apply(r,arguments)},{"./hash":418,dup:159,inherits:375,"safe-buffer":407}],424:[function(t,e,r){arguments[4][160][0].apply(r,arguments)},{"./hash":418,"./sha512":425,dup:160,inherits:375,"safe-buffer":407}],425:[function(t,e,r){arguments[4][161][0].apply(r,arguments)},{"./hash":418,dup:161,inherits:375,"safe-buffer":407}],426:[function(t,e,r){"use strict";var n=t("is-hex-prefixed");e.exports=function(t){return"string"!=typeof t?t:n(t)?t.slice(2):t}},{"is-hex-prefixed":376}],427:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],428:[function(t,e,r){"use strict";var n=t("./v1"),i=t("./v4"),o=i;o.v1=n,o.v4=i,e.exports=o},{"./v1":431,"./v4":432}],429:[function(t,e,r){"use strict";for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);e.exports=function(t,e){var r=e||0,n=i;return[n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]]].join("")}},{}],430:[function(t,e,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);e.exports=function(){return n(i),i}}else{var o=new Array(16);e.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},{}],431:[function(t,e,r){"use strict";var p,y,b=t("./lib/rng"),m=t("./lib/bytesToUuid"),v=0,g=0;e.exports=function(t,e,r){var n=e&&r||0,i=e||[],o=(t=t||{}).node||p,a=void 0!==t.clockseq?t.clockseq:y;if(null==o||null==a){var s=b();null==o&&(o=p=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=y=16383&(s[6]<<8|s[7]))}var u=void 0!==t.msecs?t.msecs:(new Date).getTime(),f=void 0!==t.nsecs?t.nsecs:g+1,c=u-v+(f-g)/1e4;if(c<0&&void 0===t.clockseq&&(a=a+1&16383),(c<0||v<u)&&void 0===t.nsecs&&(f=0),1e4<=f)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=u,y=a;var l=(1e4*(268435455&(u+=122192928e5))+(g=f))%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 e||m(i)}},{"./lib/bytesToUuid":429,"./lib/rng":430}],432:[function(t,e,r){"use strict";var a=t("./lib/rng"),s=t("./lib/bytesToUuid");e.exports=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;o<16;++o)e[n+o]=i[o];return e||s(i)}},{"./lib/bytesToUuid":429,"./lib/rng":430}],433:[function(a,l,t){(function(t,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"),f=a("eth-lib/lib/rlp"),c=a("eth-lib/lib/bytes"),p=a(void 0===t?"crypto-browserify":"crypto"),y=a("@web3-js/scrypt-shim"),b=a("uuid"),m=a("web3-utils"),v=a("web3-core-helpers"),g=a("ethereumjs-tx").Transaction,w=a("ethereumjs-common").default,i=function(t){return d.isUndefined(t)||d.isNull(t)},e=function(){var e=this;r.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var t=[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(t){if(m.isAddress(t))return t;throw new Error("Address "+t+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]})];this._ethereumCall={},d.each(t,function(t){t.attachToObject(e._ethereumCall),t.setRequestManager(e._requestManager)}),this.wallet=new o(this)};function o(t){this._accounts=t,this.length=0,this.defaultKeyName="web3js_wallet"}e.prototype._addAccountFunctions=function(r){var n=this;return r.signTransaction=function(t,e){return n.signTransaction(t,r.privateKey,e)},r.sign=function(t){return n.sign(t,r.privateKey)},r.encrypt=function(t,e){return n.encrypt(r.privateKey,t,e)},r},e.prototype.create=function(t){return this._addAccountFunctions(s.create(t||m.randomHex(32)))},e.prototype.privateKeyToAccount=function(t,e){if(t.startsWith("0x")||(t="0x"+t),!e&&66!==t.length)throw new Error("Private key must be 32 bytes long");return this._addAccountFunctions(s.fromPrivate(t))},e.prototype.signTransaction=function(e,s,u){var f=!1,c={},l=!(!e||!(e.chain&&e.hardfork||e.common));if(u=u||function(){},!e)return f=new Error("No transaction object given!"),u(f),Promise.reject(f);function r(t){if(t.common&&t.chain&&t.hardfork&&(f=new Error("Please provide the ethereumjs-common object or the chain and hardfork property but not all together.")),(t.chain&&!t.hardfork||t.hardfork&&!t.chain)&&(f=new Error('When specifying chain and hardfork, both values must be defined. Received "chain": '+t.chain+', "hardfork": '+t.hardfork)),t.gas||t.gasLimit||(f=new Error('"gas" is missing')),(t.nonce<0||t.gas<0||t.gasPrice<0||t.chainId<0)&&(f=new Error("Gas, gasPrice, nonce or chainId is lower than 0")),f)return u(f),Promise.reject(f);try{var e=v.formatters.inputCallFormatter(d.clone(t));e.to=e.to||"0x",e.data=e.data||"0x",e.value=e.value||"0x",e.chainId=m.numberToHex(e.chainId),l?(e.common&&(c.common=w.forCustomChain(e.common.baseChain||"mainnet",{name:e.common.customChain.name||"custom-network",networkId:e.common.customChain.networkId,chainId:e.common.customChain.chainId},e.common.hardfork||"petersburg"),delete e.common),e.chain&&(c.chain=e.chain,delete e.chain),e.hardfork&&(c.hardfork=e.hardfork,delete e.hardfork)):(c.common=w.forCustomChain("mainnet",{name:"custom-network",networkId:e.networkId,chainId:e.chainId},"petersburg"),delete e.networkId),s.startsWith("0x")&&(s=s.substring(2));var r=new g(e,c);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(t){return u(t),Promise.reject(t)}}return void 0!==e.nonce&&void 0!==e.chainId&&void 0!==e.gasPrice&&l?Promise.resolve(r(e)):Promise.all([i(e.chainId)?this._ethereumCall.getChainId():e.chainId,i(e.gasPrice)?this._ethereumCall.getGasPrice():e.gasPrice,i(e.nonce)?this._ethereumCall.getTransactionCount(this.privateKeyToAccount(s).address):e.nonce,i(l)?this._ethereumCall.getNetworkId():1]).then(function(t){if(i(t[0])||i(t[1])||i(t[2])||i(t[3]))throw new Error('One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t));return r(d.extend(e,{chainId:t[0],gasPrice:t[1],nonce:t[2],networkId:t[3]}))})},e.prototype.recoverTransaction=function(t){var e=f.decode(t),r=s.encodeSignature(e.slice(6,9)),n=c.toNumber(e[6]),i=n<35?[]:[c.fromNumber(n-35>>1),"0x","0x"],o=e.slice(0,6).concat(i),a=f.encode(o);return s.recover(u.keccak256(a),r)},e.prototype.hashMessage=function(t){var e=m.isHexStrict(t)?m.hexToBytes(t):t,r=h.from(e),n="Ethereum Signed Message:\n"+e.length,i=h.from(n),o=h.concat([i,r]);return u.keccak256s(o)},e.prototype.sign=function(t,e){if(e.startsWith("0x")||(e="0x"+e),66!==e.length)throw new Error("Private key must be 32 bytes long");var r=this.hashMessage(t),n=s.sign(r,e),i=s.decodeSignature(n);return{message:t,messageHash:r,v:i[0],r:i[1],s:i[2],signature:n}},e.prototype.recover=function(t,e,r){var n=[].slice.apply(arguments);return d.isObject(t)?this.recover(t.messageHash,s.encodeSignature([t.v,t.r,t.s]),!0):(r||(t=this.hashMessage(t)),4<=n.length?(r=n.slice(-1)[0],r=!!d.isBoolean(r)&&!!r,this.recover(t,s.encodeSignature(n.slice(1,4)),r)):s.recover(t,e))},e.prototype.decrypt=function(t,e,r){if(!d.isString(e))throw new Error("No password given.");var n,i,o=d.isObject(t)?t:JSON.parse(r?t.toLowerCase():t);if(3!==o.version)throw new Error("Not a valid V3 wallet");if("scrypt"===o.crypto.kdf)i=o.crypto.kdfparams,n=y(h.from(e),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(e),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)},e.prototype.encrypt=function(t,e,r){var n,i=this.privateKeyToAccount(t,!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(e),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=y(h.from(e),h.from(u.salt,"hex"),u.n,u.r,u.p,u.dklen)}var f=p.createCipheriv(r.cipher||"aes-128-ctr",n.slice(0,16),a);if(!f)throw new Error("Unsupported cipher");var c=h.concat([f.update(h.from(i.privateKey.replace("0x",""),"hex")),f.final()]),l=m.sha3(h.concat([n.slice(16,32),h.from(c,"hex")])).replace("0x","");return{version:3,id:b.v4({random:r.uuid||p.randomBytes(16)}),address:i.address.toLowerCase().replace("0x",""),crypto:{ciphertext:c.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(t){return t=t||0,d.has(this,t)?this._findSafeIndex(t+1):t},o.prototype._currentIndexes=function(){return Object.keys(this).map(function(t){return parseInt(t)}).filter(function(t){return t<9e20})},o.prototype.create=function(t,e){for(var r=0;r<t;++r)this.add(this._accounts.create(e).privateKey);return this},o.prototype.add=function(t){return d.isString(t)&&(t=this._accounts.privateKeyToAccount(t)),this[t.address]?this[t.address]:((t=this._accounts.privateKeyToAccount(t.privateKey)).index=this._findSafeIndex(),this[t.index]=t,this[t.address]=t,this[t.address.toLowerCase()]=t,this.length++,t)},o.prototype.remove=function(t){var e=this[t];return!(!e||!e.address)&&(this[e.address].privateKey=null,delete this[e.address],this[e.address.toLowerCase()].privateKey=null,delete this[e.address.toLowerCase()],this[e.index].privateKey=null,delete this[e.index],this.length--,!0)},o.prototype.clear=function(){var e=this;return this._currentIndexes().forEach(function(t){e.remove(t)}),this},o.prototype.encrypt=function(e,r){var n=this;return this._currentIndexes().map(function(t){return n[t].encrypt(e,r)})},o.prototype.decrypt=function(t,r){var n=this;return t.forEach(function(t){var e=n._accounts.decrypt(t,r);if(!e)throw new Error("Couldn't decrypt accounts. Password wrong?");n.add(e)}),this},o.prototype.save=function(t,e){return localStorage.setItem(e||this.defaultKeyName,JSON.stringify(this.encrypt(t))),!0},o.prototype.load=function(t,e){var r=localStorage.getItem(e||this.defaultKeyName);if(r)try{r=JSON.parse(r)}catch(t){}return this.decrypt(r||[],t)},function(t){var e;try{e=window[t];var r="__storage_test__";return e.setItem(r,r),e.removeItem(r),!0}catch(t){return t&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&e&&0!==e.length}}("localStorage")||(delete o.prototype.save,delete o.prototype.load),l.exports=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"@web3-js/scrypt-shim":246,buffer:50,crypto:59,"crypto-browserify":298,"eth-lib/lib/account":325,"eth-lib/lib/bytes":327,"eth-lib/lib/hash":328,"eth-lib/lib/rlp":330,"ethereumjs-common":348,"ethereumjs-tx":350,underscore:427,uuid:428,"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-utils":489}],434:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],435:[function(t,e,r){"use strict";var f=t("underscore"),c=t("web3-core"),a=t("web3-core-method"),l=t("web3-utils"),n=t("web3-core-subscriptions").subscription,h=t("web3-core-helpers").formatters,i=t("web3-core-helpers").errors,s=t("web3-core-promievent"),d=t("web3-eth-abi"),o=function t(e,r,n){var o=this,i=Array.prototype.slice.call(arguments);if(!(this instanceof t))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){c.packageInit(o,arguments),o.clearSubscriptions=o._requestManager.clearSubscriptions},c.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!e||!Array.isArray(e))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];f.isObject(a)&&!f.isArray(a)&&(n=a,this.options=f.extend(this.options,this._getOrSetDefaultOptions(n)),f.isObject(r)&&(r=null)),Object.defineProperty(this.options,"address",{set:function(t){t&&(o._address=l.toChecksumAddress(h.inputAddressFormatter(t)))},get:function(){return o._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(t){return o.methods={},o.events={},o._jsonInterface=t.map(function(t){var e,r;if(t.constant="view"===t.stateMutability||"pure"===t.stateMutability||t.constant,t.payable="payable"===t.stateMutability||t.payable,t.name&&(r=l._jsonInterfaceMethodToString(t)),"function"===t.type){if(t.signature=d.encodeFunctionSignature(r),e=o._createTxObject.bind({method:t,parent:o}),o.methods[t.name]){var n=o._createTxObject.bind({method:t,parent:o,nextMethod:o.methods[t.name]});o.methods[t.name]=n}else o.methods[t.name]=e;o.methods[t.signature]=e,o.methods[r]=e}else if("event"===t.type){t.signature=d.encodeEventSignature(r);var i=o._on.bind(o,t.signature);o.events[t.name]&&"bound "!==o.events[t.name].name||(o.events[t.name]=i),o.events[t.signature]=i,o.events[r]=i}return t}),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(t){o.options.handleRevert=t},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return o.options.common||this.constructor.defaultCommon},set:function(t){o.options.common=t},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return o.options.hardfork||this.constructor.defaultHardfork},set:function(t){o.options.hardfork=t},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return o.options.chain||this.constructor.defaultChain},set:function(t){o.options.chain=t},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return 0===o.options.transactionPollingTimeout?o.options.transactionPollingTimeout:o.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(t){o.options.transactionPollingTimeout=t},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return 0===o.options.transactionConfirmationBlocks?o.options.transactionConfirmationBlocks:o.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(t){o.options.transactionConfirmationBlocks=t},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return 0===o.options.transactionBlockTimeout?o.options.transactionBlockTimeout:o.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(t){o.options.transactionBlockTimeout=t},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return s},set:function(t){return t&&(s=l.toChecksumAddress(h.inputAddressFormatter(t))),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return u},set:function(t){return u=t},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=r,this.options.jsonInterface=e};o.setProvider=function(t,e){c.packageInit(this,[t]),this._ethAccounts=e},o.prototype._getCallback=function(t){if(t&&f.isFunction(t[t.length-1]))return t.pop()},o.prototype._checkListener=function(t,e){if(e===t)throw new Error('The event "'+t+"\" is a reserved event name, you can't use it.")},o.prototype._getOrSetDefaultOptions=function(t){var e=t.gasPrice?String(t.gasPrice):null,r=t.from?l.toChecksumAddress(h.inputAddressFormatter(t.from)):null;return t.data=t.data||this.options.data,t.from=r||this.options.from,t.gasPrice=e||this.options.gasPrice,t.gas=t.gas||t.gasLimit||this.options.gas,delete t.gasLimit,t},o.prototype._encodeEventABI=function(t,e){var r=(e=e||{}).filter||{},n={};if(["fromBlock","toBlock"].filter(function(t){return void 0!==e[t]}).forEach(function(t){n[t]=h.inputBlockNumberFormatter(e[t])}),f.isArray(e.topics))n.topics=e.topics;else{if(n.topics=[],t&&!t.anonymous&&"ALLEVENTS"!==t.name&&n.topics.push(t.signature),"ALLEVENTS"!==t.name){var i=t.inputs.filter(function(t){return!0===t.indexed}).map(function(e){var t=r[e.name];return t?f.isArray(t)?t.map(function(t){return d.encodeParameter(e.type,t)}):d.encodeParameter(e.type,t):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(e){var t=this;e.data=e.data||"",e.topics=e.topics||[];var r=h.outputLogFormatter(e);if("ALLEVENTS"===t.name&&(t=t.jsonInterface.find(function(t){return t.signature===e.topics[0]})||{anonymous:!0}),t.inputs=t.inputs||[],!t.anonymous){var n=0;t.inputs.forEach(function(t){return t.indexed?n++:null}),0<n&&e.topics.length!==n+1&&(t={anonymous:!0,inputs:[]})}var i=t.anonymous?e.topics:e.topics.slice(1);return r.returnValues=d.decodeLog(t.inputs,e.data,i),delete r.returnValues.__length__,r.event=t.name,r.signature=t.anonymous||!e.topics[0]?null:e.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},o.prototype._encodeMethodABI=function(){var e=this._method.signature,r=this.arguments||[],n=!1,t=this._parent.options.jsonInterface.filter(function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type}).map(function(t){var e=f.isArray(t.inputs)?t.inputs.length:0;if(e!==r.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+e+" arguments.");return"function"===t.type&&(n=t.signature),f.isArray(t.inputs)?t.inputs:[]}).map(function(t){return d.encodeParameters(t,r).replace("0x","")})[0]||"";if("constructor"===e){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+t}var i=n?n+t:t;if(!i)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return i},o.prototype._decodeMethodReturn=function(t,e){if(!e)return null;e=2<=e.length?e.slice(2):e;var r=d.decodeParameters(t,e);return 1===r.__length__?r[0]:(delete r.__length__,r)},o.prototype.deploy=function(t,e){if((t=t||{}).arguments=t.arguments||[],!(t=this._getOrSetDefaultOptions(t)).data)return l._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,e);var r=f.find(this.options.jsonInterface,function(t){return"constructor"===t.type})||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:t.data,_ethAccounts:this.constructor._ethAccounts},t.arguments)},o.prototype._generateEventOptions=function(){var t=Array.prototype.slice.call(arguments),e=this._getCallback(t),r=f.isObject(t[t.length-1])?t.pop():{},n=f.isString(t[0])?t[0]:"allevents",i="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(t){return"event"===t.type&&(t.name===n||t.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:e}},o.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},o.prototype.once=function(t,e,n){var r=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(r)))throw new Error("Once requires a callback as the second parameter.");e&&delete e.fromBlock,this._on(t,e,function(t,e,r){r.unsubscribe(),f.isFunction(n)&&n(t,e,r)})},o.prototype._on=function(){var t=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",t.event.name),this._checkListener("removeListener",t.event.name);var e=new n({subscription:{params:1,inputFormatter:[h.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event),subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),f.isFunction(this.callback)&&this.callback(null,t,this)}},type:"eth",requestManager:this._requestManager});return e.subscribe("logs",t.params,t.callback||function(){}),e},o.prototype.getPastEvents=function(){var t=this._generateEventOptions.apply(this,arguments),e=new a({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[h.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event)});e.setRequestManager(this._requestManager);var r=e.buildCall();return e=null,r(t.params,t.callback)},o.prototype._createTxObject=function(){var t=Array.prototype.slice.call(arguments),e={};if("function"===this.method.type&&(e.call=this.parent._executeMethod.bind(e,"call"),e.call.request=this.parent._executeMethod.bind(e,"call",!0)),e.send=this.parent._executeMethod.bind(e,"send"),e.send.request=this.parent._executeMethod.bind(e,"send",!0),e.encodeABI=this.parent._encodeMethodABI.bind(e),e.estimateGas=this.parent._executeMethod.bind(e,"estimate"),t&&this.method.inputs&&t.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,t);throw i.InvalidNumberOfParams(t.length,this.method.inputs.length,this.method.name)}return e.arguments=t||[],e._method=this.method,e._parent=this.parent,e._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(e._deployData=this.deployData),e},o.prototype._processExecuteArguments=function(t,e){var r={};if(r.type=t.shift(),r.callback=this._parent._getCallback(t),"call"===r.type&&!0!==t[t.length-1]&&(f.isString(t[t.length-1])||isFinite(t[t.length-1]))&&(r.defaultBlock=t.pop()),r.options=f.isObject(t[t.length-1])?t.pop():{},r.generateRequest=!0===t[t.length-1]&&t.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."),e.eventEmitter,e.reject,r.callback)},o.prototype._executeMethod=function(){var n=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),e),e=s("send"!==t.type),r=n.constructor._ethAccounts||n._ethAccounts;if(t.generateRequest){var i={params:[h.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(i.params.push(h.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),i.method="eth_call",i.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):i.method="eth_sendTransaction",i}switch(t.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()(t.options,t.callback);case"call":return new a({name:"call",call:"eth_call",params:2,inputFormatter:[h.inputCallFormatter,h.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return n._parent._decodeMethodReturn(n._method.outputs,t)},requestManager:n._parent._requestManager,accounts:r,defaultAccount:n._parent.defaultAccount,defaultBlock:n._parent.defaultBlock,handleRevert:n._parent.handleRevert,abiCoder:d}).createFunction()(t.options,t.defaultBlock,t.callback);case"send":if(!l.isAddress(t.options.from))return l._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),e.eventEmitter,e.reject,t.callback);if(f.isBoolean(this._method.payable)&&!this._method.payable&&t.options.value&&0<t.options.value)return l._fireError(new Error("Can not send value to non-payable contract method or constructor"),e.eventEmitter,e.reject,t.callback);var o={receiptFormatter:function(e){if(f.isArray(e.logs)){var t=f.map(e.logs,function(t){return n._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:n._parent.options.jsonInterface},t)});e.events={};var r=0;t.forEach(function(t){t.event?e.events[t.event]?Array.isArray(e.events[t.event])?e.events[t.event].push(t):e.events[t.event]=[e.events[t.event],t]:e.events[t.event]=t:(e.events[r]=t,r++)}),delete e.logs}return e},contractDeployFormatter:function(t){var e=n._parent.clone();return e.options.address=t.contractAddress,e}};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()(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=o},{underscore:434,"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-core-promievent":220,"web3-core-subscriptions":228,"web3-eth-abi":245,"web3-utils":489}],436:[function(t,e,r){(function(o){"use strict";var a=t("js-sha3").keccak_256,e=t("idna-uts46-hx");function s(t){return t?e.toUnicode(t,{useStd3ASCII:!0,transitional:!1}):t}r.hash=function(t){for(var e="",r=0;r<32;r++)e+="00";if(name=s(t),name){var n=name.split(".");for(r=n.length-1;0<=r;r--){var i=a(n[r]);e=a(new o(e+i,"hex"))}}return"0x"+e},r.normalize=s}).call(this,t("buffer").Buffer)},{buffer:50,"idna-uts46-hx":438,"js-sha3":439}],437:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;i=function(){var e=[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(t){return 196608<=t?917760<=t&&t<=917999?18874368:0:e[r[t>>4]][15&t]}}},"function"==typeof define&&define.amd?define([],function(){return i()}):"object"===(void 0===r?"undefined":n(r))?e.exports=i():(void 0).uts46_map=i()},{}],438:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;i=function(p,y){function i(t,e,r){for(var n=[],i=p.ucs2.decode(t),o=0;o<i.length;o++){var a=i[o],s=p.ucs2.encode([i[o]]),u=y.mapChar(a),f=u>>23,c=u>>21&3,l=u>>5&65535,h=31&u,d=y.mapStr.substr(l,h);if(0===c||e&&1&f)throw new Error("Illegal char "+s);1===c?n.push(d):2===c?n.push(r?d:s):3===c&&n.push(s)}return n.join("").normalize("NFC")}function f(t,e,r){void 0===r&&(r=!1);var n=i(t,r,e).split(".");return(n=n.map(function(t){return t.startsWith("xn--")?o(t=p.decode(t.substring(4)),r,!1):o(t,r,e),t})).join(".")}function o(t,e,r){if("-"===t[2]&&"-"===t[3])throw new Error("Failed to validate "+t);if(t.startsWith("-")||t.endsWith("-"))throw new Error("Failed to validate "+t);if(t.includes("."))throw new Error("Failed to validate "+t);if(i(t,e,r)!==t)throw new Error("Failed to validate "+t);var n=t.codePointAt(0);if(y.mapChar(n)&2<<23)throw new Error("Label contains illegal character: "+n)}return{toUnicode:function(t,e){return void 0===e&&(e={}),f(t,!1,"useStd3ASCII"in e&&e.useStd3ASCII)},toAscii:function(t,e){void 0===e&&(e={});var r,n=!("transitional"in e)||e.transitional,i="useStd3ASCII"in e&&e.useStd3ASCII,o="verifyDnsLength"in e&&e.verifyDnsLength,a=f(t,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(t,e){return i(t,e)}):"object"===(void 0===r?"undefined":n(r))?e.exports=i(t("punycode"),t("./idna-map")):(void 0).uts46=i((void 0).punycode,(void 0).idna_map)},{"./idna-map":437,punycode:131}],439:[function(t,A,e){(function(g,w){"use strict";function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"===("undefined"==typeof window?"undefined":_(window))?window:{};!t.JS_SHA3_NO_NODE_JS&&"object"===(void 0===g?"undefined":_(g))&&g.versions&&g.versions.node&&(t=w);for(var e=!t.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===A?"undefined":_(A))&&A.exports,u="0123456789abcdef".split(""),c=[0,8,16,24],ct=[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(e,r,n){return function(t){return new m(e,r,e).update(t)[n]()}},s=function(r,n,i){return function(t,e){return new m(r,n,e).update(t)[i]()}},n=function(t,e){var r=a(t,e,"hex");r.create=function(){return new m(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<o.length;++n){var i=o[n];r[i]=a(t,e,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(e,r){var n=s(e,r,"hex");n.create=function(t){return new m(e,r,t)},n.update=function(t,e){return n.create(e).update(t)};for(var t=0;t<o.length;++t){var i=o[t];n[i]=s(e,r,i)}return n}}],f={},l=[],h=0;h<i.length;++h)for(var d=i[h],p=d.bits,y=0;y<p.length;++y){var b=d.name+"_"+p[y];l.push(b),f[b]=d.createMethod(p[y],d.padding)}function m(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<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(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,f=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(e)for(r=this.start;u<i&&r<a;++u)o[r>>2]|=t[u]<<c[3&r++];else for(r=this.start;u<i&&r<a;++u)(n=t.charCodeAt(u))<128?o[r>>2]|=n<<c[3&r++]:(n<2048?o[r>>2]|=(192|n>>6)<<c[3&r++]:(n<55296||57344<=n?o[r>>2]|=(224|n>>12)<<c[3&r++]:(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<c[3&r++],o[r>>2]|=(128|n>>12&63)<<c[3&r++]),o[r>>2]|=(128|n>>6&63)<<c[3&r++]),o[r>>2]|=(128|63&n)<<c[3&r++]);if(a<=(this.lastByteIndex=r)){for(this.start=r-a,this.block=o[s],r=0;r<s;++r)f[r]^=o[r];v(f),this.reset=!0}else this.start=r}return this},m.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];v(n)},m.prototype.toString=m.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],s+=u[t>>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];a%e==0&&(v(r),o=0)}return i&&(t=r[o],0<i&&(s+=u[t>>4&15]+u[15&t]),1<i&&(s+=u[t>>12&15]+u[t>>8&15]),2<i&&(s+=u[t>>20&15]+u[t>>16&15])),s},m.prototype.buffer=m.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)u[a]=r[o];a%e==0&&v(r)}return i&&(u[o]=r[o],t=t.slice(0,s)),t},m.prototype.digest=m.prototype.array=function(){this.finalize();for(var t,e,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)t=s<<2,e=n[a],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&v(n)}return o&&(t=s<<2,e=n[a],0<o&&(u[t]=255&e),1<o&&(u[t+1]=e>>8&255),2<o&&(u[t+2]=e>>16&255)),u};var v=function(t){var e,r,n,i,o,a,s,u,f,c,l,h,d,p,y,b,m,v,g,w,_,A,S,x,E,k,M,j,I,T,R,O,B,U,C,N,P,L,F,D,q,z,H,K,V,G,W,Y,X,J,Z,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(h=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|f>>>31),r=o^(f<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(h<<1|d>>>31),r=f^(d<<1|h>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],y=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,st=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,m=t[12]<<12|t[13]>>>20,Y=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,B=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,D=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=y^~m&g,t[10]=x^~k&j,t[11]=E^~M&I,t[20]=U^~N&L,t[21]=C^~P&F,t[30]=K^~G&Y,t[31]=V^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~v&w,t[3]=m^~g&_,t[12]=k^~j&T,t[13]=M^~I&R,t[22]=N^~L&D,t[23]=P^~F&q,t[32]=G^~Y&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&st,t[4]=v^~w&A,t[5]=g^~_&S,t[14]=j^~T&O,t[15]=I^~R&B,t[24]=L^~D&z,t[25]=F^~q&H,t[34]=Y^~J&$,t[35]=X^~Z&Q,t[44]=it^~at&ut,t[45]=ot^~st&ft,t[6]=w^~A&p,t[7]=_^~S&y,t[16]=T^~O&x,t[17]=R^~B&E,t[26]=D^~z&U,t[27]=q^~H&C,t[36]=J^~$&K,t[37]=Z^~Q&V,t[46]=at^~ut&tt,t[47]=st^~ft&et,t[8]=A^~p&b,t[9]=S^~y&m,t[18]=O^~x&k,t[19]=B^~E&M,t[28]=z^~U&N,t[29]=H^~C&P,t[38]=$^~K&G,t[39]=Q^~V&W,t[48]=ut^~tt&rt,t[49]=ft^~et&nt,t[0]^=ct[n],t[1]^=ct[n+1]};if(e)A.exports=f;else for(h=0;h<l.length;++h)t[l[h]]=f[l[h]]}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124}],440:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],441:[function(t,e,r){"use strict";function u(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function n(s){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=s.apply(t,a);function i(t){u(n,e,r,i,o,"next",t)}function o(t){u(n,e,r,i,o,"throw",t)}i(void 0)})}}var i=t("underscore"),a=t("./config"),o=t("web3-core-helpers").formatters,s=t("web3-utils"),f=t("./contracts/Registry"),c=t("./lib/ResolverMethodHandler");function l(t){this.eth=t;var e=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new f(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new c(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return e},set:function(t){e=null!==t?o.inputAddressFormatter(t):t},enumerable:!0})}l.prototype.supportsInterface=function(t,e,r){return this.getResolver(t).then(function(t){return s.isHexStrict(e)||(e=s.sha3(e).slice(0,10)),t.methods.supportsInterface(e).call(r)}).catch(function(t){if(!i.isFunction(r))throw t;r(t,null)})},l.prototype.resolver=function(t,e){return this.registry.resolver(t,e)},l.prototype.getResolver=function(t,e){return this.registry.getResolver(t,e)},l.prototype.setResolver=function(t,e,r,n){return this.registry.setResolver(t,e,r,n)},l.prototype.setRecord=function(t,e,r,n,i,o){return this.registry.setRecord(t,e,r,n,i,o)},l.prototype.setSubnodeRecord=function(t,e,r,n,i,o,a){return this.registry.setSubnodeRecord(t,e,r,n,i,o,a)},l.prototype.setApprovalForAll=function(t,e,r,n){return this.registry.setApprovalForAll(t,e,r,n)},l.prototype.isApprovedForAll=function(t,e,r){return this.registry.isApprovedForAll(t,e,r)},l.prototype.recordExists=function(t,e){return this.registry.recordExists(t,e)},l.prototype.setSubnodeOwner=function(t,e,r,n,i){return this.registry.setSubnodeOwner(t,e,r,n,i)},l.prototype.getTTL=function(t,e){return this.registry.getTTL(t,e)},l.prototype.setTTL=function(t,e,r,n){return this.registry.setTTL(t,e,r,n)},l.prototype.getOwner=function(t,e){return this.registry.getOwner(t,e)},l.prototype.setOwner=function(t,e,r,n){return this.registry.setOwner(t,e,r,n)},l.prototype.getAddress=function(t,e){return this.resolverMethodHandler.method(t,"addr",[]).call(e)},l.prototype.setAddress=function(t,e,r,n){return this.resolverMethodHandler.method(t,"setAddr",[e]).send(r,n)},l.prototype.getPubkey=function(t,e){return this.resolverMethodHandler.method(t,"pubkey",[],e).call(e)},l.prototype.setPubkey=function(t,e,r,n,i){return this.resolverMethodHandler.method(t,"setPubkey",[e,r]).send(n,i)},l.prototype.getContent=function(t,e){return this.resolverMethodHandler.method(t,"content",[]).call(e)},l.prototype.setContent=function(t,e,r,n){return this.resolverMethodHandler.method(t,"setContent",[e]).send(r,n)},l.prototype.getMultihash=function(t,e){return this.resolverMethodHandler.method(t,"multihash",[]).call(e)},l.prototype.setMultihash=function(t,e,r,n){return this.resolverMethodHandler.method(t,"multihash",[e]).send(r,n)},l.prototype.checkNetwork=n(regeneratorRuntime.mark(function t(){var e,r,n,i,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=new Date/1e3,!this._lastSyncCheck||3600<e-this._lastSyncCheck)return t.next=4,this.eth.getBlock("latest");t.next=9;break;case 4:if(r=t.sent,3600<(n=e-r.timestamp))throw new Error("Network not synced; last block was "+n+" seconds ago");t.next=8;break;case 8:this._lastSyncCheck=e;case 9:if(this.registryAddress)return t.abrupt("return",this.registryAddress);t.next=11;break;case 11:if(this._detectedAddress){t.next=20;break}return t.next=14,this.eth.net.getNetworkType();case 14:if(i=t.sent,void 0===(o=a.addresses[i]))throw new Error("ENS is not supported on network "+i);t.next=18;break;case 18:return this._detectedAddress=o,t.abrupt("return",this._detectedAddress);case 20:return t.abrupt("return",this._detectedAddress);case 21:case"end":return t.stop()}},t,this)})),e.exports=l},{"./config":442,"./contracts/Registry":443,"./lib/ResolverMethodHandler":445,underscore:440,"web3-core-helpers":216,"web3-utils":489}],442:[function(t,e,r){"use strict";e.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}}},{}],443:[function(t,e,r){"use strict";var f=t("underscore"),i=t("web3-eth-contract"),c=t("eth-ens-namehash"),l=t("web3-core-promievent"),h=t("web3-core-helpers").formatters,d=t("web3-utils"),n=t("../ressources/ABI/Registry"),o=t("../ressources/ABI/Resolver");function a(t){var r=this;this.ens=t,this.contract=t.checkNetwork().then(function(t){var e=new i(n,t);return e.setProvider(r.ens.eth.currentProvider),e})}a.prototype.owner=function(t,e){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(t,e)},a.prototype.getOwner=function(e,r){var n=new l(!0);return this.contract.then(function(t){return t.methods.owner(c.hash(e)).call()}).then(function(t){f.isFunction(r)?r(t,t):n.resolve(t)}).catch(function(t){f.isFunction(r)?r(t,null):n.reject(t)}),n.eventEmitter},a.prototype.setOwner=function(e,r,n,i){var o=new l(!0);return this.contract.then(function(t){return t.methods.setOwner(c.hash(e),h.inputAddressFormatter(r)).send(n)}).then(function(t){f.isFunction(i)?i(t,t):o.resolve(t)}).catch(function(t){f.isFunction(i)?i(t,null):o.reject(t)}),o.eventEmitter},a.prototype.getTTL=function(e,r){var n=new l(!0);return this.contract.then(function(t){return t.methods.ttl(c.hash(e)).call()}).then(function(t){f.isFunction(r)?r(t,t):n.resolve(t)}).catch(function(t){f.isFunction(r)?r(t,null):n.reject(t)}),n.eventEmitter},a.prototype.setTTL=function(e,r,n,i){var o=new l(!0);return this.contract.then(function(t){return t.methods.setTTL(c.hash(e),r).send(n)}).then(function(t){f.isFunction(i)?i(t,t):o.resolve(t)}).catch(function(t){f.isFunction(i)?i(t,null):o.reject(t)}),o.eventEmitter},a.prototype.setSubnodeOwner=function(e,r,n,i,o){var a=new l(!0);return d.isHexStrict(r)||(r=d.sha3(r)),this.contract.then(function(t){return t.methods.setSubnodeOwner(c.hash(e),r,h.inputAddressFormatter(n)).send(i)}).then(function(t){f.isFunction(o)?o(t,t):a.resolve(t)}).catch(function(t){f.isFunction(o)?o(t,null):a.reject(t)}),a.eventEmitter},a.prototype.setRecord=function(e,r,n,i,o,a){var s=new l(!0);return this.contract.then(function(t){return t.methods.setRecord(c.hash(e),h.inputAddressFormatter(r),h.inputAddressFormatter(n),i).send(o)}).then(function(t){f.isFunction(a)?a(t,t):s.resolve(t)}).catch(function(t){f.isFunction(a)?a(t,null):s.reject(t)}),s.eventEmitter},a.prototype.setSubnodeRecord=function(e,r,n,i,o,a,s){var u=new l(!0);return d.isHexStrict(r)||(r=d.sha3(r)),this.contract.then(function(t){return t.methods.setSubnodeRecord(c.hash(e),r,h.inputAddressFormatter(n),h.inputAddressFormatter(i),o).send(a)}).then(function(t){f.isFunction(s)?s(t,t):u.resolve(t)}).catch(function(t){f.isFunction(s)?s(t,null):u.reject(t)}),u.eventEmitter},a.prototype.setApprovalForAll=function(e,r,n,i){var o=new l(!0);return this.contract.then(function(t){return t.methods.setApprovalForAll(h.inputAddressFormatter(e),r).send(n)}).then(function(t){f.isFunction(i)?i(t,t):o.resolve(t)}).catch(function(t){f.isFunction(i)?i(t,null):o.reject(t)}),o.eventEmitter},a.prototype.isApprovedForAll=function(e,r,n){var i=new l(!0);return this.contract.then(function(t){return t.methods.isApprovedForAll(h.inputAddressFormatter(e),h.inputAddressFormatter(r)).call()}).then(function(t){f.isFunction(n)?n(t,t):i.resolve(t)}).catch(function(t){f.isFunction(n)?n(t,null):i.reject(t)}),i.eventEmitter},a.prototype.recordExists=function(e,r){var n=new l(!0);return this.contract.then(function(t){return t.methods.recordExists(c.hash(e)).call()}).then(function(t){f.isFunction(r)?r(t,t):n.resolve(t)}).catch(function(t){f.isFunction(r)?r(t,null):n.reject(t)}),n.eventEmitter},a.prototype.resolver=function(t,e){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(t,e)},a.prototype.getResolver=function(e,r){var n=this;return this.contract.then(function(t){return t.methods.resolver(c.hash(e)).call()}).then(function(t){var e=new i(o,t);if(e.setProvider(n.ens.eth.currentProvider),!f.isFunction(r))return e;r(e,e)}).catch(function(t){if(!f.isFunction(r))throw t;r(t,null)})},a.prototype.setResolver=function(e,r,n,i){var o=new l(!0);return this.contract.then(function(t){return t.methods.setResolver(c.hash(e),h.inputAddressFormatter(r)).send(n)}).then(function(t){f.isFunction(i)?i(t,t):o.resolve(t)}).catch(function(t){f.isFunction(i)?i(t,null):o.reject(t)}),o.eventEmitter},e.exports=a},{"../ressources/ABI/Registry":446,"../ressources/ABI/Resolver":447,"eth-ens-namehash":436,underscore:440,"web3-core-helpers":216,"web3-core-promievent":220,"web3-eth-contract":435,"web3-utils":489}],444:[function(t,e,r){"use strict";var n=t("./ENS");e.exports=n},{"./ENS":441}],445:[function(t,e,r){"use strict";var a=t("web3-core-promievent"),n=t("eth-ens-namehash"),s=t("underscore");function i(t){this.registry=t}i.prototype.method=function(t,e,r,n){return{call:this.call.bind({ensName:t,methodName:e,methodArguments:r,callback:n,parent:this}),send:this.send.bind({ensName:t,methodName:e,methodArguments:r,callback:n,parent:this})}},i.prototype.call=function(e){var r=this,n=new a,i=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(function(t){r.parent.handleCall(n,t.methods[r.methodName],i,e)}).catch(function(t){s.isFunction(e)?e(t,null):n.reject(t)}),n.eventEmitter},i.prototype.send=function(e,r){var n=this,i=new a,o=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(function(t){n.parent.handleSend(i,t.methods[n.methodName],o,e,r)}).catch(function(t){s.isFunction(r)?r(t,null):i.reject(t)}),i.eventEmitter},i.prototype.handleCall=function(e,t,r,n){return t.apply(this,r).call().then(function(t){s.isFunction(n)?n(t,t):e.resolve(t)}).catch(function(t){s.isFunction(n)?n(t,null):e.reject(t)}),e},i.prototype.handleSend=function(r,t,e,n,i){return t.apply(this,e).send(n).on("transactionHash",function(t){r.eventEmitter.emit("transactionHash",t)}).on("confirmation",function(t,e){r.eventEmitter.emit("confirmation",t,e)}).on("receipt",function(t){r.eventEmitter.emit("receipt",t),r.resolve(t),s.isFunction(i)&&i(t,t)}).on("error",function(t){r.eventEmitter.emit("error",t),s.isFunction(i)?i(t,null):r.reject(t)}),r},i.prototype.prepareArguments=function(t,e){var r=n.hash(t);return 0<e.length?(e.unshift(r),e):[r]},e.exports=i},{"eth-ens-namehash":436,underscore:440,"web3-core-promievent":220}],446:[function(t,e,r){"use strict";e.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"}]},{}],447:[function(t,e,r){"use strict";e.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"}]},{}],448:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{buffer:21,dup:232}],449:[function(t,e,r){"use strict";var n=t("web3-utils"),i=t("bn.js"),o=function(t){var r="A".charCodeAt(0),n="Z".charCodeAt(0);return(t=(t=t.toUpperCase()).substr(4)+t.substr(0,4)).split("").map(function(t){var e=t.charCodeAt(0);return r<=e&&e<=n?e-r+10:t}).join("")},a=function(t){for(var e,r=t;2<r.length;)e=r.slice(0,9),r=parseInt(e,10)%97+r.slice(e.length);return parseInt(r,10)%97},s=function(t){this._iban=t};s.toAddress=function(t){if(!(t=new s(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()},s.toIban=function(t){return s.fromAddress(t).toString()},s.fromAddress=function(t){if(!n.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var e=function(t,e){for(var r=t;r.length<2*e;)r="0"+r;return r}(new i(t,16).toString(36),15);return s.fromBban(e.toUpperCase())},s.fromBban=function(t){var e=("0"+(98-a(o("XE00"+t)))).slice(-2);return new s("XE"+e+t)},s.createIndirect=function(t){return s.fromBban("ETH"+t.institution+t.identifier)},s.isValid=function(t){return new s(t).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 t=this._iban.substr(4),e=new i(t,36);return n.toChecksumAddress(e.toString(16,20))}return""},s.prototype.toString=function(){return this._iban},e.exports=s},{"bn.js":448,"web3-utils":489}],450:[function(t,e,r){"use strict";var o=t("web3-core"),a=t("web3-core-method"),s=t("web3-utils"),u=t("web3-net"),f=t("web3-core-helpers").formatters,n=function(){var e=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(t){return t&&(r=s.toChecksumAddress(f.inputAddressFormatter(t))),i.forEach(function(t){t.defaultAccount=r}),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return n},set:function(t){return n=t,i.forEach(function(t){t.defaultBlock=n}),t},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:[f.inputAddressFormatter,null,null]}),new a({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[f.inputAddressFormatter]}),new a({name:"importRawKey",call:"personal_importRawKey",params:2}),new a({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[f.inputTransactionFormatter,null]}),new a({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[f.inputTransactionFormatter,null]}),new a({name:"sign",call:"personal_sign",params:3,inputFormatter:[f.inputSignFormatter,f.inputAddressFormatter,null]}),new a({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[f.inputSignFormatter,null]})];i.forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount})};o.addProviders(n),e.exports=n},{"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-net":454,"web3-utils":489}],451:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],452:[function(t,e,r){"use strict";var i=t("underscore");e.exports=function(r){var n,e=this;return this.net.getId().then(function(t){return n=t,e.getBlock(0)}).then(function(t){var e="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===t.hash&&1===n&&(e="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===t.hash&&2===n&&(e="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===t.hash&&3===n&&(e="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===t.hash&&4===n&&(e="rinkeby"),"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"===t.hash&&5===n&&(e="goerli"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===t.hash&&42===n&&(e="kovan"),i.isFunction(r)&&r(null,e),e}).catch(function(t){if(!i.isFunction(r))throw t;r(t)})}},{underscore:451}],453:[function(t,e,r){"use strict";var y=t("underscore"),b=t("web3-core"),n=t("web3-core-helpers"),m=t("web3-core-subscriptions").subscriptions,v=t("web3-core-method"),g=t("web3-utils"),w=t("web3-net"),_=t("web3-eth-ens"),A=t("web3-eth-personal"),S=t("web3-eth-contract"),x=t("web3-eth-iban"),E=t("web3-eth-accounts"),k=t("web3-eth-abi"),M=t("./getNetworkType.js"),j=n.formatters,I=function(t){return y.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},T=function(t){return y.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},R=function(t){return y.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},O=function(t){return y.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},B=function(t){return y.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},i=function(){var e=this;b.packageInit(this,arguments);var r=this.setRequestManager;this.setRequestManager=function(t){return r(t),e.net.setRequestManager(t),e.personal.setRequestManager(t),e.accounts.setRequestManager(t),e.Contract._requestManager=e._requestManager,e.Contract.currentProvider=e._provider,!0};var n,i,o,t=this.setProvider,a=!(this.setProvider=function(){t.apply(e,arguments),e.setRequestManager(e._requestManager),e.ens._detectedAddress=null,e.ens._lastSyncCheck=null}),s=null,u="latest",f=50,c=24,l=750;Object.defineProperty(this,"handleRevert",{get:function(){return a},set:function(t){a=t,e.Contract.handleRevert=a,p.forEach(function(t){t.handleRevert=a})},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return o},set:function(t){o=t,e.Contract.defaultCommon=o,p.forEach(function(t){t.defaultCommon=o})},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return i},set:function(t){i=t,e.Contract.defaultHardfork=i,p.forEach(function(t){t.defaultHardfork=i})},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return n},set:function(t){n=t,e.Contract.defaultChain=n,p.forEach(function(t){t.defaultChain=n})},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return l},set:function(t){l=t,e.Contract.transactionPollingTimeout=l,p.forEach(function(t){t.transactionPollingTimeout=l})},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return c},set:function(t){c=t,e.Contract.transactionConfirmationBlocks=c,p.forEach(function(t){t.transactionConfirmationBlocks=c})},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return f},set:function(t){f=t,e.Contract.transactionBlockTimeout=f,p.forEach(function(t){t.transactionBlockTimeout=f})},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return s},set:function(t){return t&&(s=g.toChecksumAddress(j.inputAddressFormatter(t))),e.Contract.defaultAccount=s,e.personal.defaultAccount=s,p.forEach(function(t){t.defaultAccount=s}),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return u},set:function(t){return u=t,e.Contract.defaultBlock=u,e.personal.defaultBlock=u,p.forEach(function(t){t.defaultBlock=u}),t},enumerable:!0}),this.clearSubscriptions=e._requestManager.clearSubscriptions,this.net=new w(this),this.net.getNetworkType=M.bind(this),this.accounts=new E(this),this.personal=new A(this),this.personal.defaultAccount=this.defaultAccount;var h=this,d=function(){S.apply(this,arguments);var t=this,e=h.setProvider;h.setProvider=function(){e.apply(h,arguments),b.packageInit(t,[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=x,this.abi=k,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(t){return!!t}],outputFormatter:j.outputBlockFormatter}),new v({name:"getUncle",call:R,params:2,inputFormatter:[j.inputBlockNumberFormatter,g.numberToHex],outputFormatter:j.outputBlockFormatter}),new v({name:"getBlockTransactionCount",call:O,params:1,inputFormatter:[j.inputBlockNumberFormatter],outputFormatter:g.hexToNumber}),new v({name:"getBlockUncleCount",call:B,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:T,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:k}),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:k}),new v({name:"sign",call:"eth_sign",params:2,inputFormatter:[j.inputSignFormatter,j.inputAddressFormatter],transformPayload:function(t){return t.params.reverse(),t}}),new v({name:"call",call:"eth_call",params:2,inputFormatter:[j.inputCallFormatter,j.inputDefaultBlockNumberFormatter],abiCoder:k}),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(t){t.removed?this.emit("changed",t):this.emit("data",t),y.isFunction(this.callback)&&this.callback(null,t,this)}},syncing:{params:0,outputFormatter:j.outputSyncingFormatter,subscriptionHandler:function(t){var e=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",e._isSyncing),y.isFunction(this.callback)&&this.callback(null,e._isSyncing,this),setTimeout(function(){e.emit("data",t),y.isFunction(e.callback)&&e.callback(null,t,e)},0)):(this.emit("data",t),y.isFunction(e.callback)&&this.callback(null,t,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){t.currentBlock>t.highestBlock-200&&(e._isSyncing=!1,e.emit("changed",e._isSyncing),y.isFunction(e.callback)&&e.callback(null,e._isSyncing,e))},500))}}}})];p.forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager,e.accounts),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount,t.transactionBlockTimeout=e.transactionBlockTimeout,t.transactionConfirmationBlocks=e.transactionConfirmationBlocks,t.transactionPollingTimeout=e.transactionPollingTimeout,t.handleRevert=e.handleRevert})};b.addProviders(i),e.exports=i},{"./getNetworkType.js":452,underscore:451,"web3-core":231,"web3-core-helpers":216,"web3-core-method":218,"web3-core-subscriptions":228,"web3-eth-abi":245,"web3-eth-accounts":433,"web3-eth-contract":435,"web3-eth-ens":444,"web3-eth-iban":449,"web3-eth-personal":450,"web3-net":454,"web3-utils":489}],454:[function(t,e,r){"use strict";var n=t("web3-core"),i=t("web3-core-method"),o=t("web3-utils"),a=function(){var e=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(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})};n.addProviders(a),e.exports=a},{"web3-core":231,"web3-core-method":218,"web3-utils":489}],455:[function(t,e,r){"use strict";!function(){function i(t,e,r,n){return this instanceof i?(this.domain=t||void 0,this.path=e||"/",this.secure=!!r,this.script=!!n,this):new i(t,e,r,n)}function u(t,e,r){return t instanceof u?t:this instanceof u?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(r||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,r),this):new u(t,e,r)}i.All=Object.freeze(Object.create(null)),r.CookieAccessInfo=i,(r.Cookie=u).prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},u.prototype.toValueString=function(){return this.name+"="+this.value};var a=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function t(){var o,a;return this instanceof t?(o=Object.create(null),this.setCookie=function(t,e,r){var n,i;if(n=(t=new u(t,e,r)).expiration_date<=Date.now(),void 0===o[t.name])return!n&&(o[t.name]=[t],o[t.name]);for(a=o[t.name],i=0;i<a.length;i+=1)if(a[i].collidesWith(t))return n?(a.splice(i,1),0===a.length&&delete o[t.name],!1):a[i]=t;return!n&&(a.push(t),t)},this.getCookie=function(t,e){var r,n;if(a=o[t])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(e))return r},this.getCookies=function(t){var e,r,n=[];for(e in o)(r=this.getCookie(e,t))&&n.push(r);return n.toString=function(){return n.join(":")},n.toValueString=function(){return n.map(function(t){return t.toValueString()}).join(";")},n},this):new t}u.prototype.parse=function(t,e,r){if(this instanceof u){var n,i=t.split(";").filter(function(t){return!!t}),o=i[0].match(/([^=]+)=([\s\S]*)/);if(!o)return void console.warn("Invalid cookie header encountered. Header: '"+t+"'");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: '"+t+"'");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=e),this}return(new u).parse(t,e,r)},u.prototype.matches=function(t){return t===i.All||!(this.noscript&&t.script||this.secure&&!t.secure||!this.collidesWith(t))},u.prototype.collidesWith=function(t){if(this.path&&!t.path||this.domain&&!t.domain)return!1;if(this.path&&0!==t.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==t.path.indexOf(this.path))return!1;var e=t.domain&&t.domain.replace(/^[\.]/,""),r=this.domain&&this.domain.replace(/^[\.]/,"");if(r===e)return!0;if(r){if(!this.explicit_domain)return!1;var n=e.indexOf(r);return-1!==n&&n===e.length-r.length}return!0},(r.CookieJar=t).prototype.setCookies=function(t,e,r){var n,i,o=[];for(t=(t=Array.isArray(t)?t:t.split(a)).map(function(t){return new u(t,e,r)}),n=0;n<t.length;n+=1)i=t[n],this.setCookie(i,e,r)&&o.push(i);return o}}()},{}],456:[function(t,e,r){"use strict";var n,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);r.SecurityError=o;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);r.InvalidStateError=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);r.NetworkError=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);r.SyntaxError=u},{}],457:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t){for(var e in t)r.hasOwnProperty(e)||(r[e]=t[e])}(t("./xml-http-request"));var n=t("./xml-http-request-event-target");r.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},{"./xml-http-request":461,"./xml-http-request-event-target":459}],458:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(t){this.type=t,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0};r.ProgressEvent=n},{}],459:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function t(){this.listeners={}}return t.prototype.addEventListener=function(t,e){t=t.toLowerCase(),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e.handleEvent||e)},t.prototype.removeEventListener=function(t,e){if(t=t.toLowerCase(),this.listeners[t]){var r=this.listeners[t].indexOf(e.handleEvent||e);r<0||this.listeners[t].splice(r,1)}},t.prototype.dispatchEvent=function(t){var e=t.type.toLowerCase();if((t.target=this).listeners[e])for(var r=0,n=this.listeners[e];r<n.length;r++){n[r].call(this,t)}var i=this["on"+e];return i&&i.call(this,t),!0},t}();r.XMLHttpRequestEventTarget=n},{}],460:[function(e,t,i){(function(o){"use strict";var n,r=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(i,"__esModule",{value:!0});var t=function(e){function t(){var t=e.call(this)||this;return t._contentType=null,t._body=null,t._reset(),t}return r(t,e),t.prototype._reset=function(){this._contentType=null,this._body=null},t.prototype._setData=function(t){if(null!=t)if("string"==typeof t)0!==t.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new o(t,"utf-8");else if(o.isBuffer(t))this._body=t;else if(t instanceof ArrayBuffer){for(var e=new o(t.byteLength),r=new Uint8Array(t),n=0;n<t.byteLength;n++)e[n]=r[n];this._body=e}else{if(!(t.buffer&&t.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+t);e=new o(t.byteLength);var i=t.byteOffset;for(r=new Uint8Array(t.buffer),n=0;n<t.byteLength;n++)e[n]=r[n+i];this._body=e}},t.prototype._finalizeHeaders=function(t,e){this._contentType&&!e["content-type"]&&(t["Content-Type"]=this._contentType),this._body&&(t["Content-Length"]=this._body.length.toString())},t.prototype._startUpload=function(t){this._body&&t.write(this._body),t.end()},t}(e("./xml-http-request-event-target").XMLHttpRequestEventTarget);i.XMLHttpRequestUpload=t}).call(this,e("buffer").Buffer)},{"./xml-http-request-event-target":459,buffer:50}],461:[function(y,t,b){(function(n,i){"use strict";var o,t=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(b,"__esModule",{value:!0});var s=y("http"),u=y("https"),f=y("os"),c=y("url"),l=y("./progress-event"),h=y("./errors"),r=y("./xml-http-request-event-target"),d=y("./xml-http-request-upload"),p=y("cookiejar"),a=function(r){function a(t){void 0===t&&(t={});var e=r.call(this)||this;return e.UNSENT=a.UNSENT,e.OPENED=a.OPENED,e.HEADERS_RECEIVED=a.HEADERS_RECEIVED,e.LOADING=a.LOADING,e.DONE=a.DONE,e.onreadystatechange=null,e.readyState=a.UNSENT,e.response=null,e.responseText="",e.responseType="",e.status=0,e.statusText="",e.timeout=0,e.upload=new d.XMLHttpRequestUpload,e.responseUrl="",e.withCredentials=!1,e._method=null,e._url=null,e._sync=!1,e._headers={},e._loweredHeaders={},e._mimeOverride=null,e._request=null,e._response=null,e._responseParts=null,e._responseHeaders=null,e._aborting=null,e._error=null,e._loadedBytes=0,e._totalBytes=0,e._lengthComputable=!1,e._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},e._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},e._privateHeaders={"set-cookie":!0,"set-cookie2":!0},e._userAgent="Mozilla/5.0 ("+f.type()+" "+f.arch()+") node.js/"+n.versions.node+" v8/"+n.versions.v8,e._anonymous=t.anon||!1,e}return t(a,r),a.prototype.open=function(t,e,r,n,i){if(void 0===r&&(r=!0),t=t.toUpperCase(),this._restrictedMethods[t])throw new a.SecurityError("HTTP method "+t+" is not allowed in XHR");var o=this._parseUrl(e,n,i);this.readyState===a.HEADERS_RECEIVED||this.readyState,this._method=t,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(t,e){if(this.readyState!==a.OPENED)throw new a.InvalidStateError("XHR readyState must be OPENED");var r=t.toLowerCase();this._restrictedHeaders[r]||/^sec-/.test(r)||/^proxy-/.test(r)?console.warn('Refused to set unsafe header "'+t+'"'):(e=e.toString(),null!=this._loweredHeaders[r]?(t=this._loweredHeaders[r],this._headers[t]=this._headers[t]+", "+e):(this._loweredHeaders[r]=t,this._headers[t]=e))},a.prototype.send=function(t){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(t);case"http:":case"https:":return this._sendHttp(t);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(t){if(null==this._responseHeaders||null==t)return null;var e=t.toLowerCase();return this._responseHeaders.hasOwnProperty(e)?this._responseHeaders[t.toLowerCase()]:null},a.prototype.getAllResponseHeaders=function(){var e=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map(function(t){return t+": "+e._responseHeaders[t]}).join("\r\n")},a.prototype.overrideMimeType=function(t){if(this.readyState===a.LOADING||this.readyState===a.DONE)throw new a.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=t.toLowerCase()},a.prototype.nodejsSet=function(t){if(this.nodejsHttpAgent=t.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=t.httpsAgent||this.nodejsHttpsAgent,t.hasOwnProperty("baseUrl")){if(null!=t.baseUrl)if(!c.parse(t.baseUrl,!1,!0).protocol)throw new a.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=t.baseUrl}},a.nodejsSet=function(t){a.prototype.nodejsSet(t)},a.prototype._setReadyState=function(t){this.readyState=t,this.dispatchEvent(new l.ProgressEvent("readystatechange"))},a.prototype._sendFile=function(t){throw new Error("Protocol file: not implemented")},a.prototype._sendHttp=function(t){if(this._sync)throw new Error("Synchronous XHR processing not implemented");t=!t||"GET"!==this._method&&"HEAD"!==this._method?t||"":(console.warn("Discarding entity body for "+this._method+" requests"),null),this.upload._setData(t),this._finalizeHeaders(),this._sendHxxpRequest()},a.prototype._sendHxxpRequest=function(){var e=this;if(this.withCredentials){var t=a.cookieJar.getCookies(p.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=t}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 e._onHttpTimeout(o)}),o.on("response",function(t){return e._onHttpResponse(o,t)}),o.on("error",function(t){return e._onHttpRequestError(o,t)}),this.upload._startUpload(o),this._request===o&&this._dispatchProgress("loadstart")},a.prototype._finalizeHeaders=function(){this._headers=e({},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(t,e){var r=this;if(this._request===t){if(this.withCredentials&&(e.headers["set-cookie"]||e.headers["set-cookie2"])&&a.cookieJar.setCookies(e.headers["set-cookie"]||e.headers["set-cookie2"]),0<=[301,302,303,307,308].indexOf(e.statusCode))return this._url=this._parseUrl(e.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=e,this._response.on("data",function(t){return r._onHttpResponseData(e,t)}),this._response.on("end",function(){return r._onHttpResponseEnd(e)}),this._response.on("close",function(){return r._onHttpResponseClose(e)}),this.responseUrl=this._url.href.split("#")[0],this.status=e.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(e);var n=this._responseHeaders["content-length"]||"";this._totalBytes=+n,this._lengthComputable=!!n,this._setReadyState(a.HEADERS_RECEIVED)}},a.prototype._onHttpResponseData=function(t,e){this._response===t&&(this._responseParts.push(new i(e)),this._loadedBytes+=e.length,this.readyState!==a.LOADING&&this._setReadyState(a.LOADING),this._dispatchProgress("progress"))},a.prototype._onHttpResponseEnd=function(t){this._response===t&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(a.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},a.prototype._onHttpResponseClose=function(t){if(this._response===t){var e=this._request;this._setError(),e.abort(),this._setReadyState(a.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},a.prototype._onHttpTimeout=function(t){this._request===t&&(this._setError(),t.abort(),this._setReadyState(a.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},a.prototype._onHttpRequestError=function(t,e){this._request===t&&(this._setError(),t.abort(),this._setReadyState(a.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},a.prototype._dispatchProgress=function(t){var e=new a.ProgressEvent(t);e.lengthComputable=this._lengthComputable,e.loaded=this._loadedBytes,e.total=this._totalBytes,this.dispatchEvent(e)},a.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},a.prototype._parseUrl=function(t,e,r){var n=null==this.nodejsBaseUrl?t:c.resolve(this.nodejsBaseUrl,t),i=c.parse(n,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||e||r)&&(i.auth=(e||a||"")+":"+(r||s||"")),i},a.prototype._parseResponseHeaders=function(t){for(var e in this._responseHeaders={},t.headers){var r=e.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=t.headers[e])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},a.prototype._parseResponse=function(){var e=i.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(t){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=e);case"arraybuffer":this.responseText=null;for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;n++)r[n]=e[n];return void(this.response=t);case"text":default:try{this.responseText=e.toString(this._parseResponseEncoding())}catch(t){this.responseText=e.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);(b.XMLHttpRequest=a).prototype.nodejsHttpAgent=s.globalAgent,a.prototype.nodejsHttpsAgent=u.globalAgent,a.prototype.nodejsBaseUrl=null}).call(this,y("_process"),y("buffer").Buffer)},{"./errors":456,"./progress-event":458,"./xml-http-request-event-target":459,"./xml-http-request-upload":460,_process:124,buffer:50,cookiejar:455,http:163,https:102,os:112,url:185}],462:[function(t,e,r){"use strict";var o=t("web3-core-helpers").errors,n=t("xhr2-cookies").XMLHttpRequest,i=t("http"),a=t("https"),s=function(t,e){e=e||{},this.withCredentials=e.withCredentials||!1,this.timeout=e.timeout||0,this.headers=e.headers,this.agent=e.agent;var r=!(this.connected=!1)===e.keepAlive||!1!==e.keepAlive;this.host=t||"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 e;if("undefined"!=typeof XMLHttpRequest)e=new XMLHttpRequest;else{e=new n;var t={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(t.httpsAgent=this.agent.https,t.httpAgent=this.agent.http,t.baseUrl=this.agent.baseUrl),e.nodejsSet(t)}return e.open("POST",this.host,!0),e.setRequestHeader("Content-Type","application/json"),e.timeout=this.timeout,e.withCredentials=this.withCredentials,this.headers&&this.headers.forEach(function(t){e.setRequestHeader(t.name,t.value)}),e},s.prototype.send=function(t,r){var n=this,i=this._prepareRequest();i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var t=i.responseText,e=null;try{t=JSON.parse(t)}catch(t){e=o.InvalidResponse(i.responseText)}n.connected=!0,r(e,t)}},i.ontimeout=function(){n.connected=!1,r(o.ConnectionTimeout(this.timeout))};try{i.send(JSON.stringify(t))}catch(t){this.connected=!1,r(o.InvalidConnection(this.host))}},s.prototype.disconnect=function(){},s.prototype.supportsSubscriptions=function(){return!1},e.exports=s},{http:163,https:102,"web3-core-helpers":216,"xhr2-cookies":457}],463:[function(t,vt,gt){"use strict";function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(p,r,l,Y,u,X){var y=d(function(r,n){var i=n.length;return d(function(t){for(var e=0;e<t.length;e++)n[i+e]=t[e];return n.length=i+t.length,r.apply(this,n)})});d(function(t){var e=I(t);function r(t,e){return[h(t,e)]}return d(function(t){return R(r,t,e)[0]})});function b(t,e){return function(){return t.call(this,e.apply(this,arguments))}}function n(e){return function(t){return t[e]}}var m=d(function(n){return d(function(t){for(var e,r=0;r<A(n);r++)if(e=h(t,n[r]))return e})});function h(t,e){return e.apply(X,t)}function d(e){var r=e.length-1,n=l.prototype.slice;if(0==r)return function(){return e.call(this,n.call(arguments))};if(1==r)return function(){return e.call(this,arguments[0],n.call(arguments,1))};var i=l(e.length);return function(){for(var t=0;t<r;t++)i[t]=arguments[t];return i[r]=n.call(arguments,r),e.apply(this,i)}}function v(e,r){return function(t){return e(t)&&r(t)}}function g(){}function w(){return!0}function _(t,e){return e&&e.constructor===t}var A=n("length"),S=y(_,String);function x(t){return t!==X}function E(t,e){return e instanceof r&&function t(e,r){return!r||e(M(r))&&t(e,j(r))}(function(t){return t in e},t)}function k(t,e){return[t,e]}var i=null,M=n(0),j=n(1);function I(t){return O(t.reduce((r=k,function(t,e){return r(e,t)}),i));var r}var T=d(I);function s(t){return R(function(t,e){return t.unshift(e),t},[],t)}function f(t,e){return e?k(t(M(e)),f(t,j(e))):i}function R(t,e,r){return r?t(R(t,e,j(r)),M(r)):e}function c(t,n,e){return function t(e,r){return e?n(M(e))?(r(M(e)),j(e)):k(M(e),t(j(e),r)):i}(t,e||g)}function O(t){return function t(e,r){return e?t(j(e),k(M(e),r)):r}(t,i)}function a(t){var o,a,s,u=t(ft).emit,f=t(ct).emit,c=t(lt).emit,e=t(rt).emit,l=65536,h=/[\\"\n]/g,r=0,d=r++,p=r++,y=r++,b=r++,m=r++,v=r++,g=r++,w=r++,_=r++,A=r++,S=r++,x=r++,E=r++,k=r++,M=r++,j=r++,I=r++,T=r++,R=r++,O=r++,B=l,U=X,C="",N=!1,P=!1,L=d,F=[],D=null,q=0,z=0,H=0,K=0,V=1;function G(t){U!==X&&(f(U),c(),U=X),o=Y(t+"\nLn: "+V+"\nCol: "+K+"\nChr: "+a),e(ht(X,X,o))}function W(t){return"\r"==t||"\n"==t||" "==t||"\t"==t}t(at).on(function(t){if(o)return;if(P)return G("Cannot write after close");var e=0;a=t[0];for(;a&&(0<e&&(s=a),a=t[e++]);)switch(H++,"\n"==a?(V++,K=0):K++,L){case d:if("{"===a)L=y;else if("["===a)L=m;else if(!W(a))return G("Non-whitespace before {[.");continue;case w:case y:if(W(a))continue;if(L===w)F.push(_);else{if("}"===a){f({}),c(),L=F.pop()||p;continue}F.push(b)}if('"'!==a)return G('Malformed object key should start with " ');L=g;continue;case _:case b:if(W(a))continue;if(":"===a)L===b?(F.push(b),U!==X&&(f({}),u(U),U=X),z++):U!==X&&(u(U),U=X),L=p;else if("}"===a)U!==X&&(f(U),c(),U=X),c(),z--,L=F.pop()||p;else{if(","!==a)return G("Bad object");L===b&&F.push(b),U!==X&&(f(U),c(),U=X),L=w}continue;case m:case p:if(W(a))continue;if(L===m){if(f([]),z++,L=p,"]"===a){c(),z--,L=F.pop()||p;continue}F.push(v)}if('"'===a)L=g;else if("{"===a)L=y;else if("["===a)L=m;else if("t"===a)L=A;else if("f"===a)L=E;else if("n"===a)L=I;else if("-"===a)C+=a;else if("0"===a)C+=a,L=20;else{if(-1==="123456789".indexOf(a))return G("Bad value");C+=a,L=20}continue;case v:if(","===a)F.push(v),U!==X&&(f(U),c(),U=X),L=p;else{if("]"!==a){if(W(a))continue;return G("Bad array")}U!==X&&(f(U),c(),U=X),c(),z--,L=F.pop()||p}continue;case g:U===X&&(U="");var r=e-1;t:for(;;){for(;0<q;)if(D+=a,a=t.charAt(e++),4===q?(U+=String.fromCharCode(parseInt(D,16)),q=0,r=e-1):q++,!a)break t;if('"'===a&&!N){L=F.pop()||p,U+=t.substring(r,e-1);break}if(!("\\"!==a||N||(N=!0,U+=t.substring(r,e-1),a=t.charAt(e++))))break;if(N){if(N=!1,"n"===a?U+="\n":"r"===a?U+="\r":"t"===a?U+="\t":"f"===a?U+="\f":"b"===a?U+="\b":"u"===a?(q=1,D=""):U+=a,a=t.charAt(e++),r=e-1,a)continue;break}h.lastIndex=e;var n=h.exec(t);if(!n){e=t.length+1,U+=t.substring(r,e-1);break}if(e=n.index+1,!(a=t.charAt(n.index))){U+=t.substring(r,e-1);break}}continue;case A:if(!a)continue;if("r"!==a)return G("Invalid true started with t"+a);L=S;continue;case S:if(!a)continue;if("u"!==a)return G("Invalid true started with tr"+a);L=x;continue;case x:if(!a)continue;if("e"!==a)return G("Invalid true started with tru"+a);f(!0),c(),L=F.pop()||p;continue;case E:if(!a)continue;if("a"!==a)return G("Invalid false started with f"+a);L=k;continue;case k:if(!a)continue;if("l"!==a)return G("Invalid false started with fa"+a);L=M;continue;case M:if(!a)continue;if("s"!==a)return G("Invalid false started with fal"+a);L=j;continue;case j:if(!a)continue;if("e"!==a)return G("Invalid false started with fals"+a);f(!1),c(),L=F.pop()||p;continue;case I:if(!a)continue;if("u"!==a)return G("Invalid null started with n"+a);L=T;continue;case T:if(!a)continue;if("l"!==a)return G("Invalid null started with nu"+a);L=R;continue;case R:if(!a)continue;if("l"!==a)return G("Invalid null started with nul"+a);f(null),c(),L=F.pop()||p;continue;case O:if("."!==a)return G("Leading zero not followed by .");C+=a,L=20;continue;case 20:if(-1!=="0123456789".indexOf(a))C+=a;else if("."===a){if(-1!==C.indexOf("."))return G("Invalid number has two dots");C+=a}else if("e"===a||"E"===a){if(-1!==C.indexOf("e")||-1!==C.indexOf("E"))return G("Invalid number has two exponential");C+=a}else if("+"===a||"-"===a){if("e"!==s&&"E"!==s)return G("Invalid symbol in number");C+=a}else C&&(f(parseFloat(C)),c(),C=""),e--,L=F.pop()||p;continue;default:return G("Unknown state: "+L)}B<=H&&(i=0,U!==X&&U.length>l&&(G("Max buffer length exceeded: textNode"),i=Math.max(i,U.length)),C.length>l&&(G("Max buffer length exceeded: numberNode"),i=Math.max(i,C.length)),B=l-i+H);var i}),t(st).on(function(){if(L==d)return f({}),c(),void(P=!0);L===p&&0===z||G("Unexpected end");U!==X&&(f(U),c(),U=X);P=!0})}var t,e,o,B,U,C,N,P,L,F,D,q=(t=d(function(t){return t.unshift(/^/),(e=RegExp(t.map(n("source")).join(""))).exec.bind(e);var e}),B=t(e=/(\$?)/,/([\w-_]+|\*)/,o=/(?:{([\w ]*?)})?/),U=t(e,/\["([^"]+)"\]/,o),C=t(e,/\[(\d+|\*)\]/,o),N=t(e,/()/,/{([\w ]*?)}/),P=t(/\.\./),L=t(/\./),F=t(e,/!/),D=t(/$/),function(t){return t(m(B,U,C,N),P,L,F,D)});function z(t,e){return{key:t,node:e}}var H=n("key"),K=n("node"),V={};function G(t){var i=t($).emit,e=t(Q).emit,u=t(it).emit,r=t(nt).emit;function f(t,e,r){K(M(t))[e]=r}function c(t,e,r){t&&f(t,e,r);var n=k(z(e,r),t);return i(n),n}var n={};return n[ct]=function(t,e){if(!t)return u(e),c(t,V,e);var r,n,i,o=(n=e,i=K(M(r=t)),_(l,i)?c(r,A(i),n):r),a=j(o),s=H(M(o));return f(a,s,e),k(z(s,e),a)},n[lt]=function(t){return e(t),j(t)||r(K(M(t)))},n[ft]=c,n}var W=q(function(t,e,r,n,i){var o=b(H,M),a=b(K,M);function s(t,e){return!!e[1]?v(t,M):t}function u(t){if(t==w)return w;return v(function(t){return o(t)!=V},b(t,j))}function f(){return function(t){return o(t)==V}}function c(t,e,r,n,i){var o,a=t(r);if(a){var s=(o=a,R(function(t,e){return e(t,o)},n,e));return i(r.substr(A(a[0])),s)}}function l(t,e){return y(c,t,e)}var h=m(l(t,T(s,function(t,e){var r=e[3];return r?v(b(y(E,I(r.split(/\W+/))),a),t):t},function(t,e){var r=e[2];return v(r&&"*"!=r?function(t){return o(t)==r}:w,t)},u)),l(e,T(function(t){if(t==w)return w;var e=f(),r=t,n=u(function(t){return i(t)}),i=m(e,r,n);return i})),l(r,T()),l(n,T(s,f)),l(i,T(function(r){return function(t){var e=r(t);return!0===e?M(t):e}})),function(t){throw Y('"'+t+'" could not be tokenised')});function d(t,e){return e}function p(t,e){return h(t,e,t?p:d)}return function(e){try{return p(e,w)}catch(t){throw Y('Could not compile "'+e+'" because '+t.message)}}});function J(n,i,r){var o,a;function s(e){return function(t){return t.id==e}}return{on:function(t,e){var r={listener:t,id:e||t};return i&&i.emit(n,t,r.id),o=k(r,o),a=k(t,a),this},emit:function(){!function t(e,r){e&&(M(e).apply(null,r),t(j(e),r))}(a,arguments)},un:function(t){var e;o=c(o,s(t),function(t){e=t}),e&&(a=c(a,function(t){return t==e.listener}),r&&r.emit(n,e.listener,e.id))},listeners:function(){return a},hasListener:function(t){return x(function t(e,r){return r&&(e(M(r))?M(r):t(e,j(r)))}(t?s(t):w,o))}}}var Z=1,$=Z++,Q=Z++,tt=Z++,et=Z++,rt="fail",nt=Z++,it=Z++,ot="start",at="data",st="end",ut=Z++,ft=Z++,ct=Z++,lt=Z++;function ht(t,e,r){try{var n=u.parse(e)}catch(t){}return{statusCode:t,body:e,jsonBody:n,thrown:r}}function dt(n,i){var o={node:n(Q),path:n($)};function a(e,r,o){var a=n(e).emit;r.on(function(t){var e,r,n,i=o(t);!1!==i&&(e=a,r=K(i),n=O(t),e(r,s(j(f(H,n))),s(f(K,n))))},e),n("removeListener").on(function(t){t==e&&(n(t).listeners()||r.un(e))})}n("newListener").on(function(t){var e=/(node|path):(.*)/.exec(t);if(e){var r=o[e[1]];r.hasListener(t)||a(t,r,i(e[2]))}})}function pt(o,t){var i,a=/^(node|path):./,s=o(nt),u=o(et).emit,f=o(tt).emit,e=d(function(t,e){if(i[t])h(e,i[t]);else{var r=o(t),n=e[0];a.test(t)?c(r,n):r.on(n)}return i});function c(e,t,r){r=r||t;var n=l(t);return e.on(function(){var t=!1;i.forget=function(){t=!0},h(arguments,n),delete i.forget,t&&e.un(r)},r),i}function l(t){return function(){try{return t.apply(i,arguments)}catch(t){setTimeout(function(){throw new Y(t.message)})}}}function n(t,e,r){var n,i;n="node"==t?(i=r,function(){var t=i.apply(this,arguments);x(t)&&(t==mt.drop?u():f(t))}):r,c(o(t+":"+e),n,r)}function r(t,e,r){return S(e)?n(t,e,r):function(t,e){for(var r in e)n(t,r,e[r])}(t,e),i}return o(it).on(function(t){var e;i.root=(e=t,function(){return e})}),o(ot).on(function(t,e){i.header=function(t){return t?e[t]:e}}),i={on:e,addListener:e,removeListener:function(t,e,r){if("done"==t)s.un(e);else if("node"==t||"path"==t)o.un(t+":"+e,r);else{var n=e;o(t).un(n)}return i},emit:o.emit,node:y(r,"node"),path:y(r,"path"),done:y(c,s),start:y(function(t,e){return o(t).on(l(e),e),i},ot),fail:o(rt).on,abort:o(ut).emit,header:g,root:g,source:t}}function yt(t,e,r,n,i){var o=function(){var e={},r=i("newListener"),n=i("removeListener");function i(t){return e[t]=J(t,r,n)}function o(t){return e[t]||i(t)}return["emit","on","un"].forEach(function(r){o[r]=d(function(t,e){h(e,o(t)[r])})}),o}();return e&&function(e,n,t,r,i,o,a){var s,u=e(at).emit,f=e(rt).emit,c=0,l=!0;function h(){var t=n.responseText,e=t.substr(c);e&&u(e),c=A(t)}e(ut).on(function(){n.onreadystatechange=null,n.abort()}),"onprogress"in n&&(n.onprogress=h),n.onreadystatechange=function(){function t(){try{l&&e(ot).emit(n.status,(t=n.getAllResponseHeaders(),r={},t&&t.split("\r\n").forEach(function(t){var e=t.indexOf(": ");r[t.substring(0,e)]=t.substring(e+2)}),r)),l=!1}catch(t){}var t,r}switch(n.readyState){case 2:case 3:return t();case 4:t(),2==String(n.status)[0]?(h(),e(st).emit()):f(ht(n.status,n.responseText))}};try{for(var d in n.open(t,r,!0),o)n.setRequestHeader(d,o[d]);(function(e,t){function r(t){return t.port||{"http:":80,"https:":443}[t.protocol||e.protocol]}return!!(t.protocol&&t.protocol!=e.protocol||t.host&&t.host!=e.host||t.host&&r(t)!=r(e))})(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(t){p.setTimeout(y(f,ht(X,X,t)),0)}}(o,new XMLHttpRequest,t,e,r,n,i),a(o),function(e,r){var i,n={};function t(e){return function(t){i=e(i,t)}}for(var o in r)e(o).on(t(r[o]),n);e(tt).on(function(t){var e=M(i),r=H(e),n=j(i);n&&(K(M(n))[r]=t)}),e(et).on(function(){var t=M(i),e=H(t),r=j(i);r&&delete K(M(r))[e]}),e(ut).on(function(){for(var t in r)e(t).un(n)})}(o,G(o)),dt(o,W),pt(o,e)}function bt(t,e,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,t(r||"GET",(s=e,!1===a&&(-1==s.indexOf("?")?s+="?":s+="&",s+="_="+(new Date).getTime()),s),n,i,o||!1);var s}function mt(t){var e=T("resume","pause","pipe"),r=y(E,e);return t?r(t)||S(t)?bt(yt,t):bt(yt,t.url,t.method,t.body,t.headers,t.withCredentials,t.cached):yt()}mt.drop=function(){return mt.drop},"function"==typeof define&&define.amd?define("oboe",[],function(){return mt}):"object"===(void 0===gt?"undefined":wt(gt))?vt.exports=mt:p.oboe=mt}(function(){try{return window}catch(t){return self}}(),Object,Array,Error,JSON)},{}],464:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],465:[function(t,e,r){"use strict";var i=t("underscore"),o=t("web3-core-helpers").errors,a=t("oboe"),n=function(t,e){var n=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=t,this.connected=!1,this.connection=e.connect({path:this.path}),this.addDefaultEvents();var r=function(e){var r=null;i.isArray(e)?e.forEach(function(t){n.responseCallbacks[t.id]&&(r=t.id)}):r=e.id,r||-1===e.method.indexOf("_subscription")?n.responseCallbacks[r]&&(n.responseCallbacks[r](null,e),delete n.responseCallbacks[r]):n.notificationCallbacks.forEach(function(t){i.isFunction(t)&&t(e)})};"Socket"===e.constructor.name?a(this.connection).done(r):this.connection.on("data",function(t){n._parseResponse(t.toString()).forEach(r)})};n.prototype.addDefaultEvents=function(){var t=this;this.connection.on("connect",function(){t.connected=!0}),this.connection.on("close",function(){t.connected=!1}),this.connection.on("error",function(){t._timeout()}),this.connection.on("end",function(){t._timeout()}),this.connection.on("timeout",function(){t._timeout()})},n.prototype._parseResponse=function(t){var r=this,n=[];return t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){r.lastChunk&&(e=r.lastChunk+e);var t=null;try{t=JSON.parse(e)}catch(t){return r.lastChunk=e,clearTimeout(r.lastChunkTimeout),void(r.lastChunkTimeout=setTimeout(function(){throw r._timeout(),o.InvalidResponse(e)},15e3))}clearTimeout(r.lastChunkTimeout),r.lastChunk=null,t&&n.push(t)}),n},n.prototype._addResponseCallback=function(t,e){var r=t.id||t[0].id,n=t.method||t[0].method;this.responseCallbacks[r]=e,this.responseCallbacks[r].method=n},n.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](o.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},n.prototype.reconnect=function(){this.connection.connect({path:this.path})},n.prototype.send=function(t,e){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._addResponseCallback(t,e)},n.prototype.on=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.notificationCallbacks.push(e);break;default:this.connection.on(t,e)}},n.prototype.once=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");this.connection.once(t,e)},n.prototype.removeListener=function(t,r){var n=this;switch(t){case"data":this.notificationCallbacks.forEach(function(t,e){t===r&&n.notificationCallbacks.splice(e,1)});break;default:this.connection.removeListener(t,r)}},n.prototype.removeAllListeners=function(t){switch(t){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(t)}},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},e.exports=n},{oboe:463,underscore:464,"web3-core-helpers":216}],466:[function(t,e,r){"use strict";var n;try{n=t("es5-ext/global")}catch(t){}finally{if(n||"undefined"==typeof window||(n=window),!n)throw new Error("Could not determine global this")}var i=n.WebSocket||n.MozWebSocket,o=t("./version");function a(t,e){return e?new i(t,e):new i(t)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(t){Object.defineProperty(a,t,{get:function(){return i[t]}})}),e.exports={w3cwebsocket:i?a:null,version:o}},{"./version":467,"es5-ext/global":469}],467:[function(t,e,r){"use strict";e.exports=t("../package.json").version},{"../package.json":468}],468:[function(t,e,r){e.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"}},{}],469:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}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`")};e.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(t){return i()}try{return __global__||i()}finally{delete Object.prototype.__global__}}()},{}],470:[function(t,e,r){arguments[4][219][0].apply(r,arguments)},{dup:219}],471:[function(a,s,t){(function(t,e){"use strict";var r=null,n=null;if("[object process]"===Object.prototype.toString.call(void 0!==t?t:0)){r=function(t){return e.from(t).toString("base64")};var i=a("url");if(i.URL){var o=i.URL;n=function(t){return new o(t)}}else n=a("url").parse}else r=btoa,n=function(t){return new URL(t)};s.exports={parseURL:n,btoa:r}}).call(this,a("_process"),a("buffer").Buffer)},{_process:124,buffer:50,url:185}],472:[function(t,e,r){"use strict";var n=t("eventemitter3"),i=t("./helpers.js"),o=t("web3-core-helpers").errors,a=t("@web3-js/websocket").w3cwebsocket,s=function(t,e){n.call(this),e=e||{},this.url=t,this._customTimeout=e.timeout||15e3,this.headers=e.headers||{},this.protocol=e.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},e.reconnect),this.clientConfig=e.clientConfig||void 0,this.requestOptions=e.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(t);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(t){var r=this;this._parseResponse("string"==typeof t.data?t.data:"").forEach(function(t){if(t.method&&-1!==t.method.indexOf("_subscription"))r.emit(r.DATA,t);else{var e=t.id;Array.isArray(t)&&(e=t[0].id),r.responseQueue.has(e)&&(r.responseQueue.get(e).callback(!1,t),r.responseQueue.delete(e))}})},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(t,e){r.send(t.payload,t.callback),r.requestQueue.delete(e)})}},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(t,e){t.callback(o.ConnectionNotOpenError(r)),n.requestQueue.delete(e)}),0<this.responseQueue.size&&this.responseQueue.forEach(function(t,e){t.callback(o.InvalidConnection("on WS",r)),n.responseQueue.delete(e)}),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(t){var r=this,n=[];return t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){r.lastChunk&&(e=r.lastChunk+e);var t=null;try{t=JSON.parse(e)}catch(t){return r.lastChunk=e,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(t,e){t.callback(o.ConnectionTimeout(r._customTimeout)),r.requestQueue.delete(e)}))},r._customTimeout))}clearTimeout(r.lastChunkTimeout),r.lastChunk=null,t&&n.push(t)}),n},s.prototype.send=function(t,e){var r=this,n=t.id,i={payload:t,callback:e};if(Array.isArray(t)&&(n=t[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(t){i.callback(t),r.responseQueue.delete(n)}}},s.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},s.prototype.disconnect=function(t,e){this._removeSocketListeners(),this.connection.close(t||1e3,e)},s.prototype.supportsSubscriptions=function(){return!0},s.prototype.reconnect=function(){var r=this;this.reconnecting=!0,0<this.responseQueue.size&&this.responseQueue.forEach(function(t,e){t.callback(o.PendingRequestsOnReconnectingError()),r.responseQueue.delete(e)}),!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()),0<this.requestQueue.size&&this.requestQueue.forEach(function(t,e){t.callback(o.MaxAttemptsReachedOnReconnectingError()),r.requestQueue.delete(e)}))},e.exports=s},{"./helpers.js":471,"@web3-js/websocket":466,eventemitter3:470,"web3-core-helpers":216}],473:[function(t,e,r){"use strict";var n=t("web3-core"),i=t("web3-core-subscriptions").subscriptions,o=t("web3-core-method"),a=t("web3-net"),s=function(){var e=this;n.packageInit(this,arguments);var r=this.setRequestManager;this.setRequestManager=function(t){return r(t),e.net.setRequestManager(t),!0};var t=this.setProvider;this.setProvider=function(){t.apply(e,arguments),e.setRequestManager(e._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(t){t.attachToObject(e),t.setRequestManager(e._requestManager)})};s.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},n.addProviders(s),e.exports=s},{"web3-core":231,"web3-core-method":218,"web3-core-subscriptions":228,"web3-net":454}],474:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{buffer:21,dup:232}],475:[function(t,e,r){arguments[4][193][0].apply(r,arguments)},{dup:193}],476:[function(t,e,r){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});var s=t("./utils");function n(t){return"string"==typeof t&&(!!/^(0x)?[0-9a-f]{512}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t)))}function i(t,e){"object"===a(e)&&e.constructor===Uint8Array&&(e=s.bytesToHex(e));for(var r=s.keccak256(e).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(t.charCodeAt(t.length-1-Math.floor(i/4)))&o)!==o)return!1}return!0}function u(t){if(48<=t&&t<=57)return t-48;if(65<=t&&t<=70)return t-55;if(97<=t&&t<=102)return t-87;throw new Error("invalid bloom")}function o(t){return"string"==typeof t&&(!!/^(0x)?[0-9a-f]{64}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t)))}function f(t){return"string"==typeof t&&(!!t.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}r.isBloom=n,r.isInBloom=i,r.isUserEthereumAddressInBloom=function(t,e){if(!n(t))throw new Error("Invalid bloom given");if(!f(e))throw new Error('Invalid ethereum address given: "'.concat(e,'"'));return i(t,s.padLeft(e,64))},r.isContractAddressInBloom=function(t,e){if(!n(t))throw new Error("Invalid bloom given");if(!f(e))throw new Error('Invalid contract address given: "'.concat(e,'"'));return i(t,e)},r.isTopicInBloom=function(t,e){if(!n(t))throw new Error("Invalid bloom given");if(!o(e))throw new Error("Invalid topic");return i(t,e)},r.isTopic=o,r.isAddress=f},{"./utils":477}],477:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("js-sha3");function i(t){if(null==t)throw new Error("cannot convert null value to array");if("string"==typeof t){var e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);for(var r=[],n=0;n<t.length;n+=2)r.push(parseInt(t.substr(n,2),16));return o(new Uint8Array(r))}if(function(t){if(!t||parseInt(String(t.length))!=t.length||"string"==typeof t)return!1;for(var e=0;e<t.length;e++){var r=t[e];if(r<0||256<=r||parseInt(String(r))!=r)return!1}return!0}(t))return o(new Uint8Array(t));throw new Error("invalid arrayify value")}function o(e){var r=arguments;return void 0!==e.slice||(e.slice=function(){var t=Array.prototype.slice.call(r);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}r.keccak256=function(t){return"0x"+n.keccak_256(i(t))},r.padLeft=function(t,e){var r=/^0x/i.test(t)||"number"==typeof t,n=0<=e-(t=t.toString().replace(/^0x/i,"")).length+1?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},r.bytesToHex=function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x".concat(e.join("").replace(/^0+/,""))},r.toByteArray=i},{"js-sha3":481}],478:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c=t("bn.js"),l=t("number-to-bn"),h=new c(0),d=new c(-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 y(t){var e=t?t.toLowerCase():"ether",r=p[e];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(p,null,2));return new c(r,10)}function b(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"===n(t)&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+n(t)+".")}e.exports={unitMap:p,numberToString:b,getValueOfUnit:y,fromWei:function(t,e,r){var n=l(t),i=n.lt(h),o=y(e),a=p[e].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 f=n.div(o).toString(10);s.commify&&(f=f.replace(/\B(?=(\d{3})+(?!\d))/g,","));var c=f+("0"==u?"":"."+u);return i&&(c="-"+c),c},toWei:function(t,e){var r=b(t),n=y(e),i=p[e].length-1||1,o="-"===r.substring(0,1);if(o&&(r=r.substring(1)),"."===r)throw new Error("[ethjs-unit] while converting number "+t+" to wei, invalid value");var a=r.split(".");if(2<a.length)throw new Error("[ethjs-unit] while converting number "+t+" 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 "+t+" to wei, too many decimal places");for(;u.length<i;)u+="0";s=new c(s),u=new c(u);var f=s.mul(n).add(u);return o&&(f=f.mul(d)),new c(f.toString(10),10)}}},{"bn.js":479,"number-to-bn":483}],479:[function(S,t,e){"use strict";function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){function b(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function m(t,e,r){if(m.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var n;"object"===x(t)?t.exports=m:(void 0).BN=m,(m.BN=m).wordSize=26;try{n=S("buffer").Buffer}catch(t){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var a=t.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(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=n,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}m.isBN=function(t){return t instanceof m||null!==t&&"object"===x(t)&&t.constructor.wordSize===m.wordSize&&Array.isArray(t.words)},m.max=function(t,e){return 0<t.cmp(e)?t:e},m.min=function(t,e){return t.cmp(e)<0?t:e},m.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===x(t))return this._initArray(t,e,r);"hex"===e&&(e=16),b(e===(0|e)&&2<=e&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},m.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),this.length=t<67108864?(this.words=[67108863&t],1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],2):(b(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],3),"le"===r&&this._initArray(this.toArray(),e,r)},m.prototype._initArray=function(t,e,r){if(b("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.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=t.length-1,i=0;0<=n;n-=3)o=t[n]|t[n-1]<<8|t[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<t.length;n+=3)o=t[n]|t[n+1]<<8|t[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(t,e){this.length=Math.ceil((t.length-e)/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=t.length-6,n=0;e<=r;r-=6)i=a(t,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!==e&&(i=a(t,e,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},m.prototype._parseBase=function(t,e,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=l(t,f,f+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=l(t,f,t.length,e),f=0;f<a;f++)c*=e;this.imuln(c),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},m.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},m.prototype.clone=function(){var t=new m(null);return this.copy(t),t},m.prototype._expand=function(t){for(;this.length<t;)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(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;n=(r.length=n)-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f<n;f++){for(var c=u>>>26,l=67108863&u,h=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=h;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&a}r.words[f]=0|l,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}m.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){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%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&2<=t&&t<=36){var u=d[t],f=p[t];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var l=c.modn(f).toString(t);r=(c=c.idivn(f)).isZero()?l+r:h[u-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}b(!1,"Base should be between 2 and 36")},m.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},m.prototype.toJSON=function(){return this.toString(16)},m.prototype.toBuffer=function(t,e){return b(void 0!==n),this.toArrayLike(n,t,e)},m.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},m.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),i=r||Math.max(1,n);b(n<=i,"byte array longer than desired length"),b(0<i,"Requested array length <= 0"),this.strip();var o,a,s="le"===e,u=new t(i),f=this.clone();if(s){for(a=0;!f.isZero();a++)o=f.andln(255),f.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;!f.isZero();a++)o=f.andln(255),f.iushrn(8),u[i-a-1]=o}return u},m.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,r=0;return 4096<=e&&(r+=13,e>>>=13),64<=e&&(r+=7,e>>>=7),8<=e&&(r+=4,e>>>=4),2<=e&&(r+=2,e>>>=2),r+e},m.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},m.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},m.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},m.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},m.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},m.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},m.prototype.ior=function(t){return b(0==(this.negative|t.negative)),this.iuor(t)},m.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},m.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},m.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},m.prototype.iand=function(t){return b(0==(this.negative|t.negative)),this.iuand(t)},m.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},m.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},m.prototype.iuxor=function(t){var e,r;r=this.length>t.length?(e=this,t):(e=t,this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},m.prototype.ixor=function(t){return b(0==(this.negative|t.negative)),this.iuxor(t)},m.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},m.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},m.prototype.inotn=function(t){b("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),0<r&&e--;for(var n=0;n<e;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(t){return this.clone().inotn(t)},m.prototype.setn=function(t,e){b("number"==typeof t&&0<=t);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},m.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();n=this.length>t.length?(r=this,t):(r=t,this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>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(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},m.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;n=0<i?(r=this,t):(r=t,this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;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(t){return this.clone().isub(t)};var o=function(t,e,r){var n,i,o,a=t.words,s=e.words,u=r.words,f=0,c=0|a[0],l=8191&c,h=c>>>13,d=0|a[1],p=8191&d,y=d>>>13,b=0|a[2],m=8191&b,v=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,A=0|a[4],S=8191&A,x=A>>>13,E=0|a[5],k=8191&E,M=E>>>13,j=0|a[6],I=8191&j,T=j>>>13,R=0|a[7],O=8191&R,B=R>>>13,U=0|a[8],C=8191&U,N=U>>>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,G=0|s[2],W=8191&G,Y=G>>>13,X=0|s[3],J=8191&X,Z=X>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],lt=8191&ct,ht=ct>>>13,dt=0|s[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(l,q))|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(h,q)|0))<<13)|0;f=((o=Math.imul(h,z))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,z))+Math.imul(y,q)|0,o=Math.imul(y,z);var mt=(f+(n=n+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,V)|0)+Math.imul(h,K)|0))<<13)|0;f=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=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(y,K)|0,o=o+Math.imul(y,V)|0;var vt=(f+(n=n+Math.imul(l,W)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,W)|0))<<13)|0;f=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=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,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Y)|0;var gt=(f+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,J)|0))<<13)|0;f=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(S,q),i=(i=Math.imul(S,z))+Math.imul(x,q)|0,o=Math.imul(x,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,W)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(v,W)|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(y,J)|0,o=o+Math.imul(y,Z)|0;var wt=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(h,Q)|0))<<13)|0;f=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,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(x,K)|0,o=o+Math.imul(x,V)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,W)|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,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var _t=(f+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(h,rt)|0))<<13)|0;f=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=(i=Math.imul(I,z))+Math.imul(T,q)|0,o=Math.imul(T,z),n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,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,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var At=(f+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,at)|0)+Math.imul(h,ot)|0))<<13)|0;f=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,z))+Math.imul(B,q)|0,o=Math.imul(B,z),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,W)|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(x,J)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var St=(f+(n=n+Math.imul(l,ut)|0)|0)+((8191&(i=(i=i+Math.imul(l,ft)|0)+Math.imul(h,ut)|0))<<13)|0;f=((o=o+Math.imul(h,ft)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(N,q)|0,o=Math.imul(N,z),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,V)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,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,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0;var xt=(f+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ht)|0)+Math.imul(h,lt)|0))<<13)|0;f=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=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(C,K)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ft)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ft)|0,n=n+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ht)|0;var Et=(f+(n=n+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(h,pt)|0))<<13)|0;f=((o=o+Math.imul(h,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=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(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,Y)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,ht)|0;var kt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Y))+Math.imul(F,W)|0,o=Math.imul(F,Y),n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(S,ut)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,ft)|0,n=n+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ht)|0;var Mt=(f+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,yt)|0)+Math.imul(v,pt)|0))<<13)|0;f=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=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(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(S,lt)|0,i=(i=i+Math.imul(S,ht)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ht)|0;var jt=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,yt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ft)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(M,lt)|0,o=o+Math.imul(M,ht)|0;var It=(f+(n=n+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,yt)|0)+Math.imul(x,pt)|0))<<13)|0;f=((o=o+Math.imul(x,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0;var Tt=(f+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,yt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ht)|0;var Rt=(f+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(T,pt)|0))<<13)|0;f=((o=o+Math.imul(T,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(N,lt)|0,o=o+Math.imul(N,ht)|0;var Ot=(f+(n=n+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,yt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,lt),i=(i=Math.imul(L,ht))+Math.imul(F,lt)|0,o=Math.imul(F,ht);var Bt=(f+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(N,pt)|0))<<13)|0;f=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var Ut=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,yt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,yt))+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,u[0]=bt,u[1]=mt,u[2]=vt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=At,u[7]=St,u[8]=xt,u[9]=Et,u[10]=kt,u[11]=Mt,u[12]=jt,u[13]=It,u[14]=Tt,u[15]=Rt,u[16]=Ot,u[17]=Bt,u[18]=Ut,0!==f&&(u[19]=f,r.length++),r};function s(t,e,r){return(new u).mulp(t,e,r)}function u(t,e){this.x=t,this.y=e}Math.imul||(o=i),m.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?o(this,t,e):r<63?i(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.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,e.length-1),f=Math.max(0,o-t.length+1);f<=u;f++){var c=o-f,l=(0|t.words[c])*(0|e.words[f]),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,t,e):s(this,t,e)},u.prototype.makeRBT=function(t){for(var e=new Array(t),r=m.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},u.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},u.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},u.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var l=u,h=f,d=0;d<a;d++){var p=r[c+d],y=n[c+d],b=r[c+d+a],m=n[c+d+a],v=l*b-h*m;m=l*m+h*b,b=v,r[c+d]=p+b,n[c+d]=y+m,r[c+d+a]=p-b,n[c+d+a]=y-m,d!==s&&(v=u*l-f*h,h=u*h+f*l,l=v)}},u.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},u.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},u.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},u.prototype.convert13b=function(t,e,r,n){for(var i=0,o=0;o<e;o++)i+=0|t[o],r[2*o]=8191&i,i>>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*e;o<n;++o)r[o]=0;b(0===i),b(0==(-8192&i))},u.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},u.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),f=new Array(n),c=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,f,n),this.transform(a,o,s,u,n,i),this.transform(f,o,c,l,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*c[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=t.negative^e.negative,r.length=t.length+e.length,r.strip()},m.prototype.mul=function(t){var e=new m(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},m.prototype.mulf=function(t){var e=new m(null);return e.words=new Array(this.length+t.length),s(this,t,e)},m.prototype.imul=function(t){return this.clone().mulTo(t,this)},m.prototype.imuln=function(t){b("number"==typeof t),b(t<67108864);for(var e=0,r=0;r<this.length;r++){var n=(0|this.words[r])*t,i=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},m.prototype.muln=function(t){return this.clone().imuln(t)},m.prototype.sqr=function(){return this.mul(this)},m.prototype.isqr=function(){return this.imul(this.clone())},m.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new m(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},m.prototype.iushln=function(t){b("number"==typeof t&&0<=t);var e,r=t%26,n=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&i,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;0<=e;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},m.prototype.ishln=function(t){return b(0===this.negative),this.iushln(t)},m.prototype.iushrn=function(t,e,r){var n;b("number"==typeof t&&0<=t),n=e?(e-e%26)/26:0;var i=t%26,o=Math.min((t-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 f=0;for(u=this.length-1;0<=u&&(0!==f||n<=u);u--){var c=0|this.words[u];this.words[u]=f<<26-i|c>>>i,f=c&a}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},m.prototype.ishrn=function(t,e,r){return b(0===this.negative),this.iushrn(t,e,r)},m.prototype.shln=function(t){return this.clone().ishln(t)},m.prototype.ushln=function(t){return this.clone().iushln(t)},m.prototype.shrn=function(t){return this.clone().ishrn(t)},m.prototype.ushrn=function(t){return this.clone().iushrn(t)},m.prototype.testn=function(t){b("number"==typeof t&&0<=t);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},m.prototype.imaskn=function(t){b("number"==typeof t&&0<=t);var e=t%26,r=(t-e)/26;if(b(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this.strip()},m.prototype.maskn=function(t){return this.clone().imaskn(t)},m.prototype.iaddn=function(t){return b("number"==typeof t),b(t<67108864),t<0?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},m.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&67108864<=this.words[e];e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},m.prototype.isubn=function(t){if(b("number"==typeof t),b(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},m.prototype.addn=function(t){return this.clone().iaddn(t)},m.prototype.subn=function(t){return this.clone().isubn(t)},m.prototype.iabs=function(){return this.negative=0,this},m.prototype.abs=function(){return this.clone().iabs()},m.prototype._ishlnsubmul=function(t,e,r){var n,i,o=t.length+r;this._expand(o);var a=0;for(n=0;n<t.length;n++){i=(0|this.words[n+r])+a;var s=(0|t.words[n])*e;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(b(-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(t,e){var r=(this.length,t.length),n=this.clone(),i=t,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"!==e){(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 f=n.clone()._ishlnsubmul(i,1,s);0===f.negative&&(n=f,a&&(a.words[s]=1));for(var c=s-1;0<=c;c--){var l=67108864*(0|n.words[i.length+c])+(0|n.words[i.length+c-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,c);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=l)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},m.prototype.divmod=function(t,e,r){return b(!t.isZero()),this.isZero()?{div:new m(0),mod:new m(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(n=o.div.neg()),"div"!==e&&(i=o.mod.neg(),r&&0!==i.negative&&i.iadd(t)),{div:n,mod:i}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&t.negative)?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(i=o.mod.neg(),r&&0!==i.negative&&i.isub(t)),{div:o.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new m(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new m(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new m(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,i,o},m.prototype.div=function(t){return this.divmod(t,"div",!1).div},m.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},m.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},m.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},m.prototype.modn=function(t){b(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(e*r+(0|this.words[n]))%t;return r},m.prototype.idivn=function(t){b(t<=67108863);for(var e=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},m.prototype.divn=function(t){return this.clone().idivn(t)},m.prototype.egcd=function(t){b(0===t.negative),b(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new m(1),i=new m(0),o=new m(0),a=new m(1),s=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(0<c)for(e.iushrn(c);0<c--;)(n.isOdd()||i.isOdd())&&(n.iadd(u),i.isub(f)),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(f)),o.iushrn(1),a.iushrn(1);0<=e.cmp(r)?(e.isub(r),n.isub(o),i.isub(a)):(r.isub(e),o.isub(n),a.isub(i))}return{a:o,b:a,gcd:r.iushln(s)}},m.prototype._invmp=function(t){b(0===t.negative),b(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,i=new m(1),o=new m(0),a=r.clone();0<e.cmpn(1)&&0<r.cmpn(1);){for(var s=0,u=1;0==(e.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(e.iushrn(s);0<s--;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var f=0,c=1;0==(r.words[0]&c)&&f<26;++f,c<<=1);if(0<f)for(r.iushrn(f);0<f--;)o.isOdd()&&o.iadd(a),o.iushrn(1);0<=e.cmp(r)?(e.isub(r),i.isub(o)):(r.isub(e),o.isub(i))}return(n=0===e.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(t),n},m.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0;for(var n=r.negative=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},m.prototype.invm=function(t){return this.egcd(t).a.umod(t)},m.prototype.isEven=function(){return 0==(1&this.words[0])},m.prototype.isOdd=function(){return 1==(1&this.words[0])},m.prototype.andln=function(t){return this.words[0]&t},m.prototype.bincn=function(t){b("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;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(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)e=1;else{r&&(t=-t),b(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},m.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},m.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;0<=r;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:i<n&&(e=1);break}}return e},m.prototype.gtn=function(t){return 1===this.cmpn(t)},m.prototype.gt=function(t){return 1===this.cmp(t)},m.prototype.gten=function(t){return 0<=this.cmpn(t)},m.prototype.gte=function(t){return 0<=this.cmp(t)},m.prototype.ltn=function(t){return-1===this.cmpn(t)},m.prototype.lt=function(t){return-1===this.cmp(t)},m.prototype.lten=function(t){return this.cmpn(t)<=0},m.prototype.lte=function(t){return this.cmp(t)<=0},m.prototype.eqn=function(t){return 0===this.cmpn(t)},m.prototype.eq=function(t){return 0===this.cmp(t)},m.red=function(t){return new _(t)},m.prototype.toRed=function(t){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},m.prototype.fromRed=function(){return b(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},m.prototype._forceRed=function(t){return this.red=t,this},m.prototype.forceRed=function(t){return b(!this.red,"Already a number in reduction context"),this._forceRed(t)},m.prototype.redAdd=function(t){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},m.prototype.redIAdd=function(t){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},m.prototype.redSub=function(t){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},m.prototype.redISub=function(t){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},m.prototype.redShl=function(t){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},m.prototype.redMul=function(t){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},m.prototype.redIMul=function(t){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},m.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},m.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},m.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},m.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},m.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},m.prototype.redPow=function(t){return b(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var f={k256:null,p224:null,p192:null,p25519:null};function c(t,e){this.name=t,this.p=new m(e,16),this.n=this.p.bitLength(),this.k=new m(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=m._prime(t);this.m=e.p,this.prime=e}else b(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){_.call(this,t),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)}c.prototype._tmp=function(){var t=new m(null);return t.words=new Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){for(var e,r=t;this.split(r,this.tmp),(e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=e<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},c.prototype.split=function(t,e){t.iushrn(this.n,0,e)},c.prototype.imulK=function(t){return t.imul(this.k)},r(y,c),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,0===(t.words[n-10]=i)&&10<t.length?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(v,c),r(g,c),r(w,c),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},m._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new v;else if("p192"===t)e=new g;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return f[t]=e},_.prototype._verify1=function(t){b(0===t.negative,"red works only with positives"),b(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){b(0==(t.negative|e.negative),"red works only with positives"),b(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return 0<=r.cmp(this.m)&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(b(e%2==1),3===e){var r=this.m.add(new m(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);b(!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 f=this.pow(u,n),c=this.pow(t,n.addn(1).iushrn(1)),l=this.pow(t,n),h=i;0!==l.cmp(o);){for(var d=l,p=0;0!==d.cmp(o);p++)d=d.redSqr();b(p<h);var y=this.pow(f,new m(1).iushln(h-p-1));c=c.redMul(y),f=y.redSqr(),l=l.redMul(f),h=p}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new m(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new m(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;0<=n;n--){for(var u=e.words[n],f=s-1;0<=f;f--){var c=u>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==c||0!==o?(o<<=1,o|=c,(4===++a||0===n&&0===f)&&(i=this.mul(i,r[o]),o=a=0)):a=0}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},m.mont=function(t){return new A(t)},r(A,_),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),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)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new m(0)._forceRed(this);var r=t.mul(e),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)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{}],480:[function(t,e,r){arguments[4][376][0].apply(r,arguments)},{dup:376}],481:[function(t,C,e){(function(O,B){"use strict";function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var l="input is invalid type",t="object"===("undefined"==typeof window?"undefined":U(window)),e=t?window:{};e.JS_SHA3_NO_WINDOW&&(t=!1);var r=!t&&"object"===("undefined"==typeof self?"undefined":U(self));!e.JS_SHA3_NO_NODE_JS&&"object"===(void 0===O?"undefined":U(O))&&O.versions&&O.versions.node?e=B:r&&(e=self);var n=!e.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===C?"undefined":U(C))&&C.exports,i="function"==typeof define&&define.amd,h=!e.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),o=[4,1024,262144,67108864],d=[0,8,16,24],ct=[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],f=["hex","buffer","arrayBuffer","array","digest"],c={128:168,256:136};!e.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!e.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===U(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var p=function(e,r,n){return function(t){return new I(e,r,e).update(t)[n]()}},y=function(r,n,i){return function(t,e){return new I(r,n,e).update(t)[i]()}},b=function(i,t,o){return function(t,e,r,n){return _["cshake"+i].update(t,e,r,n)[o]()}},m=function(i,t,o){return function(t,e,r,n){return _["kmac"+i].update(t,e,r,n)[o]()}},v=function(t,e,r,n){for(var i=0;i<f.length;++i){var o=f[i];t[o]=e(r,n,o)}return t},g=function(t,e){var r=p(t,e,"hex");return r.create=function(){return new I(t,e,t)},r.update=function(t){return r.create().update(t)},v(r,p,t,e)},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(e,r){var n=y(e,r,"hex");return n.create=function(t){return new I(e,r,t)},n.update=function(t,e){return n.create(e).update(t)},v(n,y,e,r)}},{name:"cshake",padding:o,bits:s,createMethod:function(n,i){var o=c[n],a=b(n,0,"hex");return a.create=function(t,e,r){return e||r?new I(n,i,t).bytepad([e,r],o):_["shake"+n].create(t)},a.update=function(t,e,r,n){return a.create(e,r,n).update(t)},v(a,b,n,i)}},{name:"kmac",padding:o,bits:s,createMethod:function(n,i){var o=c[n],a=m(n,0,"hex");return a.create=function(t,e,r){return new T(n,i,e).bytepad(["KMAC",r],o).bytepad([t],o)},a.update=function(t,e,r,n){return a.create(t,r,n).update(e)},v(a,m,n,i)}}],_={},A=[],S=0;S<w.length;++S)for(var x=w[S],E=x.bits,k=0;k<E.length;++k){var M=x.name+"_"+E[k];if(A.push(M),_[M]=x.createMethod(E[k],x.padding),"sha3"!==x.name){var j=x.name+E[k];A.push(j),_[j]=_[M]}}function I(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<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 T(t,e,r){I.call(this,t,e,r)}I.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=U(t);if("string"!==r){if("object"!==r)throw new Error(l);if(null===t)throw new Error(l);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(l);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,f=0,c=this.s;f<s;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<u+1;++n)o[n]=0;if(e)for(n=this.start;f<s&&n<a;++f)o[n>>2]|=t[f]<<d[3&n++];else for(n=this.start;f<s&&n<a;++f)(i=t.charCodeAt(f))<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&t.charCodeAt(++f)),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)c[n]^=o[n];R(c),this.reset=!0}else this.start=n}return this},I.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);0<r;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},I.prototype.encodeString=function(t){var e,r=U(t);if("string"!==r){if("object"!==r)throw new Error(l);if(null===t)throw new Error(l);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(l);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||57344<=a?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},I.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];R(n)}},I.prototype.toString=I.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],s+=u[t>>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];a%e==0&&(R(r),o=0)}return i&&(t=r[o],s+=u[t>>4&15]+u[15&t],1<i&&(s+=u[t>>12&15]+u[t>>8&15]),2<i&&(s+=u[t>>20&15]+u[t>>16&15])),s},I.prototype.buffer=I.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)u[a]=r[o];a%e==0&&R(r)}return i&&(u[o]=r[o],t=t.slice(0,s)),t},I.prototype.digest=I.prototype.array=function(){this.finalize();for(var t,e,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)t=s<<2,e=n[a],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&R(n)}return o&&(t=s<<2,e=n[a],u[t]=255&e,1<o&&(u[t+1]=e>>8&255),2<o&&(u[t+2]=e>>16&255)),u},(T.prototype=new I).finalize=function(){return this.encode(this.outputBits,!0),I.prototype.finalize.call(this)};var R=function(t){var e,r,n,i,o,a,s,u,f,c,l,h,d,p,y,b,m,v,g,w,_,A,S,x,E,k,M,j,I,T,R,O,B,U,C,N,P,L,F,D,q,z,H,K,V,G,W,Y,X,J,Z,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(h=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|f>>>31),r=o^(f<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(h<<1|d>>>31),r=f^(d<<1|h>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],y=t[1],G=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,st=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,m=t[12]<<12|t[13]>>>20,Y=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,g=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Z=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,B=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,D=t[38]<<8|t[39]>>>24,q=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=y^~m&g,t[10]=x^~k&j,t[11]=E^~M&I,t[20]=U^~N&L,t[21]=C^~P&F,t[30]=K^~G&Y,t[31]=V^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~v&w,t[3]=m^~g&_,t[12]=k^~j&T,t[13]=M^~I&R,t[22]=N^~L&D,t[23]=P^~F&q,t[32]=G^~Y&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&st,t[4]=v^~w&A,t[5]=g^~_&S,t[14]=j^~T&O,t[15]=I^~R&B,t[24]=L^~D&z,t[25]=F^~q&H,t[34]=Y^~J&$,t[35]=X^~Z&Q,t[44]=it^~at&ut,t[45]=ot^~st&ft,t[6]=w^~A&p,t[7]=_^~S&y,t[16]=T^~O&x,t[17]=R^~B&E,t[26]=D^~z&U,t[27]=q^~H&C,t[36]=J^~$&K,t[37]=Z^~Q&V,t[46]=at^~ut&tt,t[47]=st^~ft&et,t[8]=A^~p&b,t[9]=S^~y&m,t[18]=O^~x&k,t[19]=B^~E&M,t[28]=z^~U&N,t[29]=H^~C&P,t[38]=$^~K&G,t[39]=Q^~V&W,t[48]=ut^~tt&rt,t[49]=ft^~et&nt,t[0]^=ct[n],t[1]^=ct[n+1]};if(n)C.exports=_;else{for(S=0;S<A.length;++S)e[A[S]]=_[A[S]];i&&define(function(){return _})}}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124}],482:[function(t,e,r){arguments[4][479][0].apply(r,arguments)},{dup:479}],483:[function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=t("bn.js"),s=t("strip-hex-prefix");e.exports=function(t){if("string"==typeof t||"number"==typeof t){var e=new a(1),r=String(t).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)),e=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(e);if((i.match(/^-?[0-9]+$/)||""===i)&&!1===n)return new a(i,10).mul(e)}else if("object"===o(t)&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new a(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" 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":482,"strip-hex-prefix":486}],484:[function(e,r,t){(function(i,t){"use strict";var o=e("safe-buffer").Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?r.exports=function(t,e){if(4294967295<t)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(t);if(0<t)if(65536<t)for(var n=0;n<t;n+=65536)a.getRandomValues(r.slice(n,n+65536));else a.getRandomValues(r);return"function"!=typeof e?r:i.nextTick(function(){e(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,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":485}],485:[function(t,e,r){arguments[4][183][0].apply(r,arguments)},{buffer:50,dup:183}],486:[function(t,e,r){arguments[4][426][0].apply(r,arguments)},{dup:426,"is-hex-prefixed":480}],487:[function(t,Z,$){(function(X){"use strict";function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t="object"==("undefined"==typeof self?"undefined":J(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":J(X))&&X.global===X&&X||this||{},e=t._,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,f=Object.create,c=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===$||$.nodeType?t._=d:(void 0!==Z&&!Z.nodeType&&Z.exports&&($=Z.exports=d),$._=d),d.VERSION="1.9.1";var p,y=function(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,r){return i.call(o,t,e,r)};case 4:return function(t,e,r,n){return i.call(o,t,e,r,n)}}return function(){return i.apply(o,arguments)}},b=function(t,e,r){return d.iteratee!==p?d.iteratee(t,e):null==t?d.identity:d.isFunction(t)?y(t,e,r):d.isObject(t)&&!d.isArray(t)?d.matcher(t):d.property(t)};d.iteratee=p=function(t,e){return b(t,e,1/0)};var m=function(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),r=0;r<t;r++)e[r]=arguments[r+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var n=Array(o+1);for(r=0;r<o;r++)n[r]=arguments[r];return n[o]=e,i.apply(this,n)}},v=function(t){if(!d.isObject(t))return{};if(f)return f(t);c.prototype=t;var e=new c;return c.prototype=null,e},g=function(e){return function(t){return null==t?void 0:t[e]}},w=function(t,e){return null!=t&&o.call(t,e)},_=function(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0},A=Math.pow(2,53)-1,S=g("length"),x=function(t){var e=S(t);return"number"==typeof e&&0<=e&&e<=A};d.each=d.forEach=function(t,e,r){var n,i;if(e=y(e,r),x(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=d.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},d.map=d.collect=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=e(t[s],s,t)}return o};var E=function(u){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!x(t)&&d.keys(t),o=(i||t).length,a=0<u?0:o-1;for(n||(r=t[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;r=e(r,t[s],s,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=E(1),d.reduceRight=d.foldr=E(-1),d.find=d.detect=function(t,e,r){var n=(x(t)?d.findIndex:d.findKey)(t,e,r);if(void 0!==n&&-1!==n)return t[n]},d.filter=d.select=function(t,n,e){var i=[];return n=b(n,e),d.each(t,function(t,e,r){n(t,e,r)&&i.push(t)}),i},d.reject=function(t,e,r){return d.filter(t,d.negate(b(e)),r)},d.every=d.all=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(!e(t[a],a,t))return!1}return!0},d.some=d.any=function(t,e,r){e=b(e,r);for(var n=!x(t)&&d.keys(t),i=(n||t).length,o=0;o<i;o++){var a=n?n[o]:o;if(e(t[a],a,t))return!0}return!1},d.contains=d.includes=d.include=function(t,e,r,n){return x(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=m(function(t,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(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=_(t,i)),null==t)return;e=t[r]}return null==e?e:e.apply(t,n)})}),d.pluck=function(t,e){return d.map(t,d.property(e))},d.where=function(t,e){return d.filter(t,d.matcher(e))},d.findWhere=function(t,e){return d.find(t,d.matcher(e))},d.max=function(t,n,e){var r,i,o=-1/0,a=-1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&o<r&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){i=n(t,e,r),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},d.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n||"number"==typeof n&&"object"!=J(t[0])&&null!=t)for(var s=0,u=(t=x(t)?t:d.values(t)).length;s<u;s++)null!=(r=t[s])&&r<o&&(o=r);else n=b(n,e),d.each(t,function(t,e,r){((i=n(t,e,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},d.shuffle=function(t){return d.sample(t,1/0)},d.sample=function(t,e,r){if(null==e||r)return x(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=x(t)?d.clone(t):d.values(t),i=S(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var s=d.random(a,o),u=n[a];n[a]=n[s],n[s]=u}return n.slice(0,e)},d.sortBy=function(t,n,e){var i=0;return n=b(n,e),d.pluck(d.map(t,function(t,e,r){return{value:t,index:i++,criteria:n(t,e,r)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(n<r||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var k=function(a,e){return function(n,i,t){var o=e?[[],[]]:{};return i=b(i,t),d.each(n,function(t,e){var r=i(t,e,n);a(o,t,r)}),o}};d.groupBy=k(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=k(function(t,e,r){t[r]=e}),d.countBy=k(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var M=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?u.call(t):d.isString(t)?t.match(M):x(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:x(t)?t.length:d.keys(t).length},d.partition=k(function(t,e,r){t[r?0:1].push(e)},!0),d.first=d.head=d.take=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[0]:d.initial(t,t.length-e)},d.initial=function(t,e,r){return u.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},d.last=function(t,e,r){return null==t||t.length<1?null==e?void 0:[]:null==e||r?t[t.length-1]:d.rest(t,Math.max(0,t.length-e))},d.rest=d.tail=d.drop=function(t,e,r){return u.call(t,null==e||r?1:e)},d.compact=function(t){return d.filter(t,Boolean)};var j=function t(e,r,n,i){for(var o=(i=i||[]).length,a=0,s=S(e);a<s;a++){var u=e[a];if(x(u)&&(d.isArray(u)||d.isArguments(u)))if(r)for(var f=0,c=u.length;f<c;)i[o++]=u[f++];else t(u,r,n,i),o=i.length;else n||(i[o++]=u)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=m(function(t,e){return d.difference(t,e)}),d.uniq=d.unique=function(t,e,r,n){d.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=b(r,n));for(var i=[],o=[],a=0,s=S(t);a<s;a++){var u=t[a],f=r?r(u,a,t):u;e&&!r?(a&&o===f||i.push(u),o=f):r?d.contains(o,f)||(o.push(f),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=m(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=S(t);n<i;n++){var o=t[n];if(!d.contains(e,o)){var a;for(a=1;a<r&&d.contains(arguments[a],o);a++);a===r&&e.push(o)}}return e},d.difference=m(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=m(d.unzip=function(t){for(var e=t&&d.max(t,S).length||0,r=Array(e),n=0;n<e;n++)r[n]=d.pluck(t,n);return r}),d.object=function(t,e){for(var r={},n=0,i=S(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var I=function(o){return function(t,e,r){e=b(e,r);for(var n=S(t),i=0<o?0:n-1;0<=i&&i<n;i+=o)if(e(t[i],i,t))return i;return-1}};d.findIndex=I(1),d.findLastIndex=I(-1);var T=function(o,a,s){return function(t,e,r){var n=0,i=S(t);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 t[r=s(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(u.call(t,n,i),d.isNaN))?r+n:-1;for(r=0<o?n:i-1;0<=r&&r<i;r+=o)if(t[r]===e)return r;return-1}};d.indexOf=T(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=S(t);o<a;){var s=Math.floor((o+a)/2);r(t[s])<i?o=s+1:a=s}return o}),d.lastIndexOf=T(-1,d.findLastIndex),d.range=function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},d.chunk=function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(u.call(t,n,n+=e));return r};var R=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=v(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=m(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=m(function(t){return R(e,i,r,this,n.concat(t))});return i}),((d.partial=m(function(o,a){var s=d.partial.placeholder;return function t(){for(var e=0,r=a.length,n=Array(r),i=0;i<r;i++)n[i]=a[i]===s?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return R(o,t,this,this,n)}})).placeholder=d).bindAll=m(function(t,e){var r=(e=j(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=d.bind(t[n],t)}}),d.memoize=function(i,o){var t=function t(e){var r=t.cache,n=""+(o?o.apply(this,arguments):e);return w(r,n)||(r[n]=i.apply(this,arguments)),r[n]};return t.cache={},t},d.delay=m(function(t,e,r){return setTimeout(function(){return t.apply(null,r)},e)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(r,n,i){var o,a,s,u,f=0;i||(i={});var c=function(){f=!1===i.leading?0:d.now(),o=null,u=r.apply(a,s),o||(a=s=null)},t=function(){var t=d.now();f||!1!==i.leading||(f=t);var e=n-(t-f);return a=this,s=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),f=t,u=r.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(o),f=0,o=a=s=null},t},d.debounce=function(r,n,i){var o,a,s=function(t,e){o=null,e&&(a=r.apply(t,e))},t=m(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(s,n),e&&(a=r.apply(this,t))}else o=d.delay(s,n,this,t);return a});return t.cancel=function(){clearTimeout(o),o=null},t},d.wrap=function(t,e){return d.partial(e,t)},d.negate=function(t){return function(){return!t.apply(this,arguments)}},d.compose=function(){var r=arguments,n=r.length-1;return function(){for(var t=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);return e}},d.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},d.once=d.partial(d.before=function(t,e){var r;return function(){return 0<--t&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},2),d.restArguments=m;var O=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(t,e){var r=B.length,n=t.constructor,i=d.isFunction(n)&&n.prototype||a,o="constructor";for(w(t,o)&&!d.contains(e,o)&&e.push(o);r--;)(o=B[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(s)return s(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return O&&U(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return O&&U(t,e),e},d.values=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},d.mapObject=function(t,e,r){e=b(e,r);for(var n=d.keys(t),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=e(t[s],s,t)}return o},d.pairs=function(t){for(var e=d.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},d.invert=function(t){for(var e={},r=d.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},d.functions=d.methods=function(t){var e=[];for(var r in t)d.isFunction(t[r])&&e.push(r);return e.sort()};var C=function(u,f){return function(t){var e=arguments.length;if(f&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=u(n),o=i.length,a=0;a<o;a++){var s=i[a];f&&void 0!==t[s]||(t[s]=n[s])}return t}};d.extend=C(d.allKeys),d.extendOwn=d.assign=C(d.keys),d.findKey=function(t,e,r){e=b(e,r);for(var n,i=d.keys(t),o=0,a=i.length;o<a;o++)if(e(t[n=i[o]],n,t))return n};var N,P,L=function(t,e,r){return e in r};d.pick=m(function(t,e){var r={},n=e[0];if(null==t)return r;d.isFunction(n)?(1<e.length&&(n=y(n,e[1])),e=d.allKeys(t)):(n=L,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=t[a];n(s,a,t)&&(r[a]=s)}return r}),d.omit=m(function(t,r){var e,n=r[0];return d.isFunction(n)?(n=d.negate(n),1<r.length&&(e=r[1])):(r=d.map(j(r,!1,!1),String),n=function(t,e){return!d.contains(r,e)}),d.pick(t,n,e)}),d.defaults=C(d.allKeys,!0),d.create=function(t,e){var r=v(t);return e&&d.extendOwn(r,e),r},d.clone=function(t){return d.isObject(t)?d.isArray(t)?t.slice():d.extend({},t):t},d.tap=function(t,e){return e(t),t},d.isMatch=function(t,e){var r=d.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var a=r[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},N=function(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=J(t);return("function"===i||"object"===i||"object"==J(e))&&P(t,e,r,n)},P=function(t,e,r,n){t instanceof d&&(t=t._wrapped),e instanceof d&&(e=e._wrapped);var i=h.call(t);if(i!==h.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=J(t)||"object"!=J(e))return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(r=r||[]).length;u--;)if(r[u]===t)return n[u]===e;if(r.push(t),n.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],r,n))return!1}else{var f,c=d.keys(t);if(u=c.length,d.keys(e).length!==u)return!1;for(;u--;)if(f=c[u],!w(e,f)||!N(t[f],e[f],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return N(t,e)},d.isEmpty=function(t){return null==t||(x(t)&&(d.isArray(t)||d.isString(t)||d.isArguments(t))?0===t.length:0===d.keys(t).length)},d.isElement=function(t){return!(!t||1!==t.nodeType)},d.isArray=r||function(t){return"[object Array]"===h.call(t)},d.isObject=function(t){var e=J(t);return"function"===e||"object"===e&&!!t},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){d["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(t){return w(t,"callee")});var F=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":J(Int8Array))&&"function"!=typeof F&&(d.isFunction=function(t){return"function"==typeof t||!1}),d.isFinite=function(t){return!d.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},d.isNaN=function(t){return d.isNumber(t)&&isNaN(t)},d.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===h.call(t)},d.isNull=function(t){return null===t},d.isUndefined=function(t){return void 0===t},d.has=function(t,e){if(!d.isArray(e))return w(t,e);for(var r=e.length,n=0;n<r;n++){var i=e[n];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!r},d.noConflict=function(){return t._=e,this},d.identity=function(t){return t},d.constant=function(t){return function(){return t}},d.noop=function(){},d.property=function(e){return d.isArray(e)?function(t){return _(t,e)}:g(e)},d.propertyOf=function(e){return null==e?function(){}:function(t){return d.isArray(t)?_(e,t):e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(t,e,r){var n=Array(Math.max(0,t));e=y(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},d.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=d.invert(D),z=function(e){var r=function(t){return e[t]},t="(?:"+d.keys(e).join("|")+")",n=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,r):t}};d.escape=z(D),d.unescape=z(q),d.result=function(t,e,r){d.isArray(e)||(e=[e]);var n=e.length;if(!n)return d.isFunction(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=d.isFunction(o)?o.call(t):o}return t};var H=0;d.uniqueId=function(t){var e=++H+"";return t?t+e:e},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"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+V[t]};d.template=function(o,t,e){!t&&e&&(t=e),t=d.defaults({},t,d.templateSettings);var r,n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(n,function(t,e,r,n,i){return s+=o.slice(a,i).replace(G,W),a=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(s+="';\n"+n+"\n__p+='"),t}),s+="';\n",t.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(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return r.call(this,t,d)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var Y=function(t,e){return t._chain?d(e).chain():e};d.mixin=function(r){return d.each(d.functions(r),function(t){var e=d[t]=r[t];d.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),Y(this,e.apply(d,t))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=n[e];d.prototype[e]=function(){var t=this._wrapped;return r.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],Y(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return Y(this,e.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:{})},{}],488:[function(t,e,r){"use strict";!function(t){var n,i,o,a=String.fromCharCode;function s(t){for(var e,r,n=[],i=0,o=t.length;i<o;)55296<=(e=t.charCodeAt(i++))&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function r(t){if(55296<=t&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function u(t,e){return a(t>>e&63|128)}function f(t){if(0==(4294967168&t))return a(t);var e="";return 0==(4294965248&t)?e=a(t>>6&31|192):0==(4294901760&t)?(r(t),e=a(t>>12&15|224),e+=u(t,6)):0==(4292870144&t)&&(e=a(t>>18&7|240),e+=u(t,12),e+=u(t,6)),e+=a(63&t|128)}function c(){if(i<=o)throw Error("Invalid byte index");var t=255&n[o];if(o++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function l(){var t,e;if(i<o)throw Error("Invalid byte index");if(o==i)return!1;if(t=255&n[o],o++,0==(128&t))return t;if(192==(224&t)){if(128<=(e=(31&t)<<6|c()))return e;throw Error("Invalid continuation byte")}if(224==(240&t)){if(2048<=(e=(15&t)<<12|c()<<6|c()))return r(e),e;throw Error("Invalid continuation byte")}if(240==(248&t)&&65536<=(e=(7&t)<<18|c()<<12|c()<<6|c())&&e<=1114111)return e;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=s(t),r=e.length,n=-1,i="";++n<r;)i+=f(e[n]);return i},t.decode=function(t){n=s(t),i=n.length,o=0;for(var e,r=[];!1!==(e=l());)r.push(e);return function(t){for(var e,r=t.length,n=-1,i="";++n<r;)65535<(e=t[n])&&(i+=a((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=a(e);return i}(r)}}(void 0===r?(void 0).utf8={}:r)},{}],489:[function(t,e,r){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=t("underscore"),n=t("ethjs-unit"),o=t("./utils.js"),i=t("./soliditySha3.js"),a=t("randombytes"),f=function i(o,t){var a=[];return t.forEach(function(t){if("object"===s(t.components)){if("tuple"!==t.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var e="",r=t.type.indexOf("[");0<=r&&(e=t.type.substring(r));var n=i(o,t.components);u.isArray(n)&&o?a.push("tuple("+n.join(",")+")"+e):o?a.push("("+n+")"):a.push("("+n.join(",")+")"+e)}else a.push(t.type)}),a},c=function(t){if(!o.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(t.substr(r,2),16);e+=String.fromCharCode(i)}return e},l=function(t){if(!t)return"0x00";for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r).toString(16);e+=n.length<2?"0"+n:n}return"0x"+e},h=function(t){if(t=t?t.toLowerCase():"ether",!n.unitMap[t])throw new Error('This unit "'+t+"\" doesn't exist, please use the one of the following units"+JSON.stringify(n.unitMap,null,2));return t};e.exports={_fireError:function(t,e,r,n,i){return!u.isObject(t)||t instanceof Error||!t.data||((u.isObject(t.data)||u.isArray(t.data))&&(t.data=JSON.stringify(t.data,null,2)),t=t.message+"\n"+t.data),u.isString(t)&&(t=new Error(t)),u.isFunction(n)&&n(t,i),u.isFunction(r)&&((e&&u.isFunction(e.listeners)&&e.listeners("error").length||u.isFunction(n))&&e.catch(function(){}),setTimeout(function(){r(t)},1)),e&&u.isFunction(e.emit)&&setTimeout(function(){e.emit("error",t,i),e.removeAllListeners()},1),e},_jsonInterfaceMethodToString:function(t){return u.isObject(t)&&t.name&&-1!==t.name.indexOf("(")?t.name:t.name+"("+f(!1,t.inputs).join(",")+")"},_flattenTypes:f,randomHex:function(t){return"0x"+a(t).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(t){if(void 0===t)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(t))throw new Error('Given address "'+t+'" is not a valid Ethereum address.');t=t.toLowerCase().replace(/^0x/i,"");for(var e=o.sha3(t).replace(/^0x/i,""),r="0x",n=0;n<t.length;n++)7<parseInt(e[n],16)?r+=t[n].toUpperCase():r+=t[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:c,toAscii:c,asciiToHex:l,fromAscii:l,unitMap:n.unitMap,toWei:function(t,e){if(e=h(e),!o.isBN(t)&&!u.isString(t))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(t)?n.toWei(t,e):n.toWei(t,e).toString(10)},fromWei:function(t,e){if(e=h(e),!o.isBN(t)&&!u.isString(t))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(t)?n.fromWei(t,e):n.fromWei(t,e).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":490,"./utils.js":491,"ethjs-unit":478,randombytes:484,underscore:487}],490:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=t("underscore"),s=t("bn.js"),u=t("./utils.js"),f=function(t){var e=n(t);if("string"===e)return u.isHexStrict(t)?new s(t.replace(/0x/i,""),16):new s(t,10);if("number"===e)return new s(t);if(u.isBigNumber(t))return new s(t.toString(10));if(u.isBN(t))return t;throw new Error(t+" is not a number")},a=function(t,e,r){var n,i,o,a;if("bytes"===(t=(o=t).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(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return u.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(n=r?64:40,!u.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return u.leftPad(e.toLowerCase(),n)}if(n=(a=/^\D+(\d+).*$/.exec(t))?parseInt(a[1],10):null,t.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity");if(r&&(n=32),n<1||32<n||n<e.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+n+" for "+e);return u.rightPad(e,2*n)}if(t.startsWith("uint")){if(n%8||n<8||256<n)throw new Error("Invalid uint"+n+" size");if((i=f(e)).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(t.startsWith("int")){if(n%8||n<8||256<n)throw new Error("Invalid int"+n+" size");if((i=f(e)).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: "+t)},i=function(t){if(o.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,n,i="";if(o.isObject(t)&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,i=t.hasOwnProperty("v")?t.v:t.value):(e=u.toHex(t,!0),i=u.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof i||/^(-)?0x/i.test(i)||(i=new s(i)),o.isArray(i)){if(n=/^\D+\d*\[(\d+)\]$/.exec(e),(r=n?parseInt(n[1],10):null)&&i.length!==r)throw new Error(e+" is not matching the given array "+JSON.stringify(i));r=i.length}return o.isArray(i)?i.map(function(t){return a(e,t,r).toString("hex").replace("0x","")}).join(""):a(e,i,r).toString("hex").replace("0x","")};e.exports={soliditySha3:function(){var t=Array.prototype.slice.call(arguments),e=o.map(t,i);return u.sha3("0x"+e.join(""))},soliditySha3Raw:function(){return u.sha3Raw("0x"+o.map(Array.prototype.slice.call(arguments),i).join(""))}}},{"./utils.js":491,"bn.js":474,underscore:487}],491:[function(v,g,t){(function(r){"use strict";var n=v("underscore"),i=v("bn.js"),t=v("number-to-bn"),o=v("utf8"),a=v("eth-lib/lib/hash"),s=v("ethereum-bloom-filters"),u=function(t){return i.isBN(t)},f=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},c=function(e){try{return t.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},l=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||e(t))},e=function(t){t=t.replace(/^0x/i,"");for(var e=m(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(7<parseInt(e[r],16)&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},h=function(t){var e="";t=(t=(t=(t=(t=o.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;r<t.length;r++){var n=t.charCodeAt(r).toString(16);e+=n.length<2?"0"+n:n}return"0x"+e},d=function(t){if(n.isNull(t)||n.isUndefined(t))return t;if(!isFinite(t)&&!y(t))throw new Error('Given input "'+t+'" is not a number.');var e=c(t),r=e.toString(16);return e.lt(new i(0))?"-0x"+r.substr(1):"0x"+r},p=function(t){if(t=t.toString(16),!y(t))throw new Error('Given value "'+t+'" is not a valid hex string.');t=t.replace(/^0x/i,"");for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},y=function(t){return(n.isString(t)||n.isNumber(t))&&/^(-)?0x[0-9a-f]*$/i.test(t)},b="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",m=function(t){u(t)&&(t=t.toString()),y(t)&&/^0x/i.test(t.toString())&&(t=p(t));var e=a.keccak256(t);return e===b?null:e};m._Hash=a;g.exports={BN:i,isBN:u,isBigNumber:f,toBN:c,isAddress:l,isBloom:function(t){return s.isBloom(t)},isUserEthereumAddressInBloom:function(t,e){return s.isUserEthereumAddressInBloom(t,e)},isContractAddressInBloom:function(t,e){return s.isContractAddressInBloom(t,e)},isTopic:function(t){return s.isTopic(t)},isTopicInBloom:function(t,e){return s.isTopicInBloom(t,e)},isInBloom:function(t,e){return s.isInBloom(t,e)},checkAddressChecksum:e,utf8ToHex:h,hexToUtf8:function(t){if(!y(t))throw new Error('The parameter "'+t+'" must be a valid HEX string.');for(var e="",r=0,n=(t=(t=(t=(t=(t=t.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,i=0;i<n;i+=2)r=parseInt(t.substr(i,2),16),e+=String.fromCharCode(r);return o.decode(e)},hexToNumber:function(t){if(!t)return t;if(n.isString(t)&&!y(t))throw new Error('Given value "'+t+'" is not a valid hex string.');return c(t).toNumber()},hexToNumberString:function(t){if(!t)return t;if(n.isString(t)&&!y(t))throw new Error('Given value "'+t+'" is not a valid hex string.');return c(t).toString(10)},numberToHex:d,toHex:function(t,e){if(l(t))return e?"address":"0x"+t.toLowerCase().replace(/^0x/i,"");if(n.isBoolean(t))return e?"bool":t?"0x01":"0x00";if(r.isBuffer(t))return"0x"+t.toString("hex");if(n.isObject(t)&&!f(t)&&!u(t))return e?"string":h(JSON.stringify(t));if(n.isString(t)){if(0===t.indexOf("-0x")||0===t.indexOf("-0X"))return e?"int256":d(t);if(0===t.indexOf("0x")||0===t.indexOf("0X"))return e?"bytes":t;if(!isFinite(t))return e?"string":h(t)}return e?t<0?"int256":"uint256":d(t)},hexToBytes:p,bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},isHex:function(t){return(n.isString(t)||n.isNumber(t))&&/^(-0x|0x)?[0-9a-f]*$/i.test(t)},isHexStrict:y,leftPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=0<=e-(t=t.toString(16).replace(/^0x/i,"")).length+1?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},rightPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=0<=e-(t=t.toString(16).replace(/^0x/i,"")).length+1?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},toTwosComplement:function(t){return"0x"+c(t).toTwos(256).toString(16,64)},sha3:m,sha3Raw:function(t){return null===(t=m(t))?b:t}}}).call(this,{isBuffer:v("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":105,"bn.js":474,"eth-lib/lib/hash":475,"ethereum-bloom-filters":476,"number-to-bn":483,underscore:487,utf8:488}],492:[function(t,e,r){e.exports={name:"web3",version:"1.2.7",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 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.7","web3-core":"1.2.7","web3-eth":"1.2.7","web3-eth-personal":"1.2.7","web3-net":"1.2.7","web3-shh":"1.2.7","web3-utils":"1.2.7"},devDependencies:{"@types/node":"^12.12.34","definitelytyped-header-parser":"^3.9.0",dtslint:"^3.4.1"}}},{}],BN:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{buffer:21,dup:232}],Web3:[function(t,e,r){"use strict";var i=t("../package.json").version,o=t("web3-core"),a=t("web3-eth"),n=t("web3-net"),s=t("web3-eth-personal"),u=t("web3-shh"),f=t("web3-bzz"),c=t("web3-utils"),l=function(){var r=this;o.packageInit(this,arguments),this.version=i,this.utils=c,this.eth=new a(this),this.shh=new u(this),this.bzz=new f(this);var n=this.setProvider;this.setProvider=function(t,e){return n.apply(r,arguments),r.eth.setRequestManager(r._requestManager),r.shh.setRequestManager(r._requestManager),r.bzz.setProvider(t),!0}};l.version=i,l.utils=c,l.modules={Eth:a,Net:n,Personal:s,Shh:u,Bzz:f},o.addProviders(l),e.exports=l},{"../package.json":492,"web3-bzz":212,"web3-core":231,"web3-eth":453,"web3-eth-personal":450,"web3-net":454,"web3-shh":473,"web3-utils":489}]},{},[151,"Web3"])("Web3")});
|