Skip to content

Instantly share code, notes, and snippets.

@andysign
Created November 18, 2019 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andysign/3b4a810808a8ba89dbecfbe020c67b5b to your computer and use it in GitHub Desktop.
Save andysign/3b4a810808a8ba89dbecfbe020c67b5b to your computer and use it in GitHub Desktop.
web3.min.js
"use strict";var _typeof2="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},_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(t){return void 0===t?"undefined":_typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":_typeof2(t)};!function(t){if("object"===("undefined"==typeof exports?"undefined":_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,u,s){function c(e,t){if(!u[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(f)return f(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=u[e]={exports:{}};a[e][0].call(i.exports,function(t){return c(a[e][1][t]||t)},i,i.exports,o,a,u,s)}return u[e].exports}for(var f="function"==typeof require&&require,t=0;t<s.length;t++)c(s[t]);return c}({1:[function(t,e,r){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){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:101,vm:168}],3:[function(t,e,r){var n=t("inherits"),i=t("../base").Reporter,o=t("buffer").Buffer;function a(t,e){i.call(this,e),o.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=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+(void 0===t?"undefined":_typeof(t)));this.value=t,this.length=t.length}}n(a,i),(r.DecoderBuffer=a).prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.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 o(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):o.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}},{"../base":4,buffer:47,inherits:101}],4:[function(t,e,r){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){var f=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 u(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=u;var s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,r={};s.forEach(function(t){r[t]=e[t]});var t=new this.constructor(r.parent);return t._baseState=r,t},u.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)},u.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")},u.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"!==(void 0===r?"undefined":_typeof(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){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(r){u.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}}),u.prototype.use=function(t){i(t);var e=this._baseState;return i(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){var e=this._baseState;return i(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){var e=this._baseState;return i(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){var e=this._baseState;return i(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){var e=this._baseState;return i(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.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},u.prototype.contains=function(t){var e=this._baseState;return i(null===e.use),e.contains=t,this},u.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 u=null;if(null!==t.explicit?u=t.explicit:null!==t.implicit?u=t.implicit:null!==t.tag&&(u=t.tag),null!==u||t.any){if(o=this._peekTag(e,u,t.any),e.isError(o))return o}else{var s=e.save();try{null===t.choice?this._decodeGeneric(t.tag,e,r):this._decodeChoice(e,r),o=!0}catch(t){o=!1}e.restore(s)}}if(t.obj&&o&&(n=e.enterObject()),o){if(null!==t.explicit){var c=this._decodeTag(e,t.explicit);if(e.isError(c))return c;e=c}var f=e.offset;if(null===t.use&&null===t.choice){if(t.any)s=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(s):e=l}if(r&&r.track&&null!==t.tag&&r.track(e.path(),f,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},u.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)},u.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},u.prototype._decodeChoice=function(i,o){var a=this._baseState,u=null,s=!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;u={type:t,value:n},s=!0}catch(t){return i.restore(e),!1}return!0},this),s?u:i.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new n(t,this.reporter)},u.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}},u.prototype._encodeValue=function(n,i,t){var e=this._baseState;if(null===e.parent)return e.children[0]._encode(n,i||new f);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"!==(void 0===n?"undefined":_typeof(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 u=this.clone();u._baseState.implicit=null,o=this._createEncoderBuffer(n.map(function(t){var e=this._baseState;return this._getUse(e.args[0],n)._encode(t,i)},u))}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 s=null!==e.implicit?e.implicit:e.tag,c=null===e.implicit?"universal":"context";null===s?null===e.use&&i.error("Tag could be omitted only for .use()"):null===e.use&&(r=this._encodeComposite(s,a,c,o))}return null!==e.explicit&&(r=this._encodeComposite(e.explicit,!1,"context",r)),r},u.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)},u.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)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},{"../base":4,"minimalistic-assert":106}],6:[function(t,e,r){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:101}],7:[function(t,e,r){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){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){var n=t("inherits"),i=t("../../asn1"),o=i.base,a=i.bignum,u=i.constants.der;function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){o.Node.call(this,"der",t)}function f(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=u.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:u.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=s).prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},n(c,o.Node),c.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=f(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)},c.prototype._decodeTag=function(t,e,r){var n=f(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+'"'))},c.prototype._skipUntilEnd=function(t,e){for(;;){var r=f(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}},c.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},c.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 u=t.raw().toString("ascii");return this._isPrintstr(u)?u:t.error("Decoding of string type: printstr unsupported characters")},c.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 u=i[0]/40|0,s=i[0]%40;if(n=r?i:[u,s].concat(i.slice(1)),e){var c=e[n.join(" ")];void 0===c&&(c=e[n.join(".")]),void 0!==c&&(n=c)}return n},c.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),u=0|r.slice(10,12),s=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),u=0|r.slice(8,10),s=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,u,s,0)},c.prototype._decodeNull=function(t){return null},c.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},c.prototype._decodeInt=function(t,e){var r=t.raw(),n=new a(r);return e&&(n=e[n.toString(10)]||n),n},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},{"../../asn1":1,inherits:101}],10:[function(t,e,r){var n=r;n.der=t("./der"),n.pem=t("./pem")},{"./der":9,"./pem":11}],11:[function(t,e,r){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,u=0;u<r.length;u++){var s=r[u].match(i);if(null!==s&&s[2]===n){if(-1!==o){if("END"!==s[1])break;a=u;break}if("BEGIN"!==s[1])break;o=u}}if(-1===o||-1===a)throw new Error("PEM section not found for: "+n);var c=r.slice(o+1,a).join("");c.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new l(c,"base64");return h.prototype.decode.call(this,f,e)}},{"./der":9,buffer:47,inherits:101}],12:[function(t,e,r){var n=t("inherits"),c=t("buffer").Buffer,i=t("../../asn1"),o=i.base,f=i.constants.der;function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.Node.call(this,"der",t)}function s(t){return t<10?"0"+t:t}(e.exports=a).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(u,o.Node),u.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(f.tagByName.hasOwnProperty(t))i=f.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|=f.tagClassByName[r||"universal"]<<6}(t,e,r,this.reporter);if(n.length<128)return(i=new c(2))[0]=o,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var a=1,u=n.length;256<=u;u>>=8)a++;(i=new c(2+a))[0]=o,i[1]=128|a;u=1+a;for(var s=n.length;0<s;u--,s>>=8)i[u]=255&s;return this._createEncoderBuffer([i,n])},u.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 c(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)},u.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 c(i),u=a.length-1;for(n=t.length-1;0<=n;n--){o=t[n];for(a[u--]=127&o;0<(o>>=7);)a[u--]=128|127&o}return this._createEncoderBuffer(a)},u.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[s(n.getFullYear()),s(n.getUTCMonth()+1),s(n.getUTCDate()),s(n.getUTCHours()),s(n.getUTCMinutes()),s(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[s(n.getFullYear()%100),s(n.getUTCMonth()+1),s(n.getUTCDate()),s(n.getUTCHours()),s(n.getUTCMinutes()),s(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!c.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new c(r)}if(c.isBuffer(t)){var n=t.length;0===t.length&&n++;var i=new c(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 c(i))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},u.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:47,inherits:101}],13:[function(t,e,r){var n=r;n.der=t("./der"),n.pem=t("./pem")},{"./der":12,"./pem":14}],14:[function(t,e,r){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:101}],15:[function(t,e,r){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((c=n,f=i,3*(c+f)/4-f)),a=0,u=0<i?n-4:n,s=0;s<u;s+=4)e=l[t.charCodeAt(s)]<<18|l[t.charCodeAt(s+1)]<<12|l[t.charCodeAt(s+2)]<<6|l[t.charCodeAt(s+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=255&e;var c,f;2===i&&(e=l[t.charCodeAt(s)]<<2|l[t.charCodeAt(s+1)]>>4,o[a++]=255&e);1===i&&(e=l[t.charCodeAt(s)]<<10|l[t.charCodeAt(s+1)]<<4|l[t.charCodeAt(s+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(s(t,o,a<o+16383?a:o+16383));1===n?(e=t[r-1],i.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"="));return i.join("")};for(var u=[],l=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)u[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 s(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(u[(i=n)>>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],16:[function(t,e,r){var n;function i(t){this.rand=t}if(e.exports=function(t){return n||(n=new i(null)),n.generate(t)},(e.exports.Rand=i).prototype.generate=function(t){return this._rand(t)},i.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":_typeof(self)))self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===("undefined"==typeof window?"undefined":_typeof(window))&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=t("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},{crypto:17}],17:[function(t,e,r){},{}],18:[function(t,e,r){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,u,s,c=r[0],f=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],v=4,m=1;m<i;m++)o=c[d>>>24]^f[p>>>16&255]^l[y>>>8&255]^h[255&b]^e[v++],a=c[p>>>24]^f[y>>>16&255]^l[b>>>8&255]^h[255&d]^e[v++],u=c[y>>>24]^f[b>>>16&255]^l[d>>>8&255]^h[255&p]^e[v++],s=c[b>>>24]^f[d>>>16&255]^l[p>>>8&255]^h[255&y]^e[v++],d=o,p=a,y=u,b=s;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[y>>>8&255]<<8|n[255&b])^e[v++],a=(n[p>>>24]<<24|n[y>>>16&255]<<16|n[b>>>8&255]<<8|n[255&d])^e[v++],u=(n[y>>>24]<<24|n[b>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[v++],s=(n[b>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&y])^e[v++],[o>>>=0,a>>>=0,u>>>=0,s>>>=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,u=0,s=0;s<256;++s){var c=u^u<<1^u<<2^u<<3^u<<4;c=c>>>8^255&c^99;var f=t[n[r[a]=c]=a],l=t[f],h=t[l],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*l^257*f^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=u=1:(a=f^t[t[t[h^f]]],u^=t[t[u]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(t){this._key=o(t),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.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 u=[],s=0;s<n;s++){var c=n-s,f=i[c-(s%4?0:4)];u[s]=s<4||c<=4?f:h.INV_SUB_MIX[0][h.SBOX[f>>>24]]^h.INV_SUB_MIX[1][h.SBOX[f>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[f>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(t){return a(t=o(t),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},u.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},u.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},u.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},e.exports.AES=u},{"safe-buffer":148}],19:[function(t,e,r){var a=t("./aes"),c=t("safe-buffer").Buffer,u=t("cipher-base"),n=t("inherits"),f=t("./ghash"),i=t("buffer-xor"),l=t("./incr32");function o(t,e,r,n){u.call(this);var i=c.alloc(4,0);this._cipher=new a.AES(e);var o=this._cipher.encryptBlock(i);this._ghash=new f(o),r=function(t,e,r){if(12===e.length)return t._finID=c.concat([e,c.from([0,0,0,1])]),c.concat([e,c.from([0,0,0,2])]);var n=new f(r),i=e.length,o=i%16;n.update(e),o&&(o=16-o,n.update(c.alloc(o,0))),n.update(c.alloc(8,0));var a=8*i,u=c.alloc(8);u.writeUIntBE(a,0,8),n.update(u),t._finID=n.state;var s=c.from(t._finID);return l(s),s}(this,r,o),this._prev=c.from(r),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}n(o,u),o.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=c.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||!c.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":18,"./ghash":23,"./incr32":24,"buffer-xor":46,"cipher-base":49,inherits:101,"safe-buffer":148}],20:[function(t,e,r){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":21,"./encrypter":22,"./modes/list.json":32}],21:[function(t,e,r){var i=t("./authCipher"),o=t("safe-buffer").Buffer,a=t("./modes"),u=t("./streamCipher"),n=t("cipher-base"),s=t("./aes"),c=t("evp_bytestokey");function f(t,e,r){n.call(this),this._cache=new l,this._last=void 0,this._cipher=new s.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 u(n.module,e,r,!0):"auth"===n.type?new i(n.module,e,r,!0):new f(n.module,e,r)}t("inherits")(f,n),f.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)},f.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")},f.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=c(e,!1,r.key,r.iv);return h(t,n.key,n.iv)},r.createDecipheriv=h},{"./aes":18,"./authCipher":19,"./modes":31,"./streamCipher":34,"cipher-base":49,evp_bytestokey:84,inherits:101,"safe-buffer":148}],22:[function(t,e,r){var i=t("./modes"),o=t("./authCipher"),a=t("safe-buffer").Buffer,u=t("./streamCipher"),n=t("cipher-base"),s=t("./aes"),c=t("evp_bytestokey");function f(t,e,r){n.call(this),this._cache=new h,this._cipher=new s.AES(e),this._prev=a.from(r),this._mode=t,this._autopadding=!0}t("inherits")(f,n),f.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 u(n.module,e,r):"auth"===n.type?new o(n.module,e,r):new f(n.module,e,r)}f.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")},f.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=c(e,!1,r.key,r.iv);return d(t,n.key,n.iv)}},{"./aes":18,"./authCipher":19,"./modes":31,"./streamCipher":34,"cipher-base":49,evp_bytestokey:84,inherits:101,"safe-buffer":148}],23:[function(t,e,r){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":148}],24:[function(t,e,r){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)}}},{}],25:[function(t,e,r){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":46}],26:[function(t,e,r){var o=t("safe-buffer").Buffer,a=t("buffer-xor");function u(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,u(t,e,r)]);break}n=t._cache.length,i=o.concat([i,u(t,e.slice(0,n),r)]),e=e.slice(n)}return i}},{"buffer-xor":46,"safe-buffer":148}],27:[function(t,e,r){var a=t("safe-buffer").Buffer;function u(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=s(t._prev,r?n:i);return a}function s(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]=u(t,e[o],r);return i}},{"safe-buffer":148}],28:[function(t,e,r){var f=t("safe-buffer").Buffer;r.encrypt=function(t,e,r){for(var n,i,o,a,u=e.length,s=f.allocUnsafe(u),c=-1;++c<u;)s[c]=(n=t,i=e[c],o=r,void 0,a=n._cipher.encryptBlock(n._prev)[0]^i,n._prev=f.concat([n._prev.slice(1),f.from([o?i:a])]),a);return s}},{"safe-buffer":148}],29:[function(t,e,r){var f=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 u=(void 0,n=(r=t)._cipher.encryptBlockRaw(r._prev),h(r._prev),n),s=o+16*a;t._cache.writeUInt32BE(u[0],s+0),t._cache.writeUInt32BE(u[1],s+4),t._cache.writeUInt32BE(u[2],s+8),t._cache.writeUInt32BE(u[3],s+12)}var c=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),f(e,c)}},{"../incr32":24,"buffer-xor":46,"safe-buffer":148}],30:[function(t,e,r){r.encrypt=function(t,e){return t._cipher.encryptBlock(e)},r.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},{}],31:[function(t,e,r){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":25,"./cfb":26,"./cfb1":27,"./cfb8":28,"./ctr":29,"./ecb":30,"./list.json":32,"./ofb":33}],32:[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"}}},{}],33:[function(t,e,r){(function(i){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:47,"buffer-xor":46}],34:[function(t,e,r){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":18,"cipher-base":49,inherits:101,"safe-buffer":148}],35:[function(t,e,r){var n=t("browserify-des"),i=t("browserify-aes/browser"),o=t("browserify-aes/modes"),a=t("browserify-des/modes"),u=t("evp_bytestokey");function s(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 c(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=u(e,!1,r,n);return s(t,i.key,i.iv)},r.createCipheriv=r.Cipheriv=s,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=u(e,!1,r,n);return c(t,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},{"browserify-aes/browser":20,"browserify-aes/modes":31,"browserify-des":36,"browserify-des/modes":37,evp_bytestokey:84}],36:[function(t,e,r){var a=t("cipher-base"),n=t("des.js"),i=t("inherits"),u=t("safe-buffer").Buffer,s={"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=s[r];e=t.decrypt?"decrypt":"encrypt";var i=t.key;u.isBuffer(i)||(i=u.from(i)),"des-ede"!==r&&"des-ede-cbc"!==r||(i=u.concat([i,i.slice(0,8)]));var o=t.iv;u.isBuffer(o)||(o=u.from(o)),this._des=n.create({key:i,iv:o,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],i(e.exports=o,a),o.prototype._update=function(t){return u.from(this._des.update(t))},o.prototype._final=function(){return u.from(this._des.final())}},{"cipher-base":49,"des.js":57,inherits:101,"safe-buffer":148}],37:[function(t,e,r){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}},{}],38:[function(e,r,t){(function(y){var b=e("bn.js"),n=e("randombytes");function t(t,e){var r,n,i={blinder:(n=v(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)),u=a.toRed(b.mont(e.prime1)),s=a.toRed(b.mont(e.prime2)),c=e.coefficient,f=e.prime1,l=e.prime2,h=u.redPow(e.exponent1),d=s.redPow(e.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(c).umod(f);return p.imul(l),d.iadd(p),new y(d.imul(i.unblinder).umod(e.modulus).toArray(!1,o))}function v(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=v}).call(this,e("buffer").Buffer)},{"bn.js":"BN",buffer:47,randombytes:131}],39:[function(t,e,r){e.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":40}],40:[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"}}},{}],41:[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"}},{}],42:[function(l,h,t){(function(i){var r=l("create-hash"),n=l("stream"),t=l("inherits"),o=l("./sign"),a=l("./verify"),u=l("./algorithms.json");function e(t){n.Writable.call(this);var e=u[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 s(t){n.Writable.call(this);var e=u[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function c(t){return new e(t)}function f(t){return new s(t)}Object.keys(u).forEach(function(t){u[t].id=new i(u[t].id,"hex"),u[t.toLowerCase()]=u[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(s,n.Writable),s.prototype._write=function(t,e,r){this._hash.update(t),r()},s.prototype.update=function(t,e){return"string"==typeof t&&(t=new i(t,e)),this._hash.update(t),this},s.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:c,Verify:f,createSign:c,createVerify:f}}).call(this,l("buffer").Buffer)},{"./algorithms.json":40,"./sign":43,"./verify":44,buffer:47,"create-hash":52,inherits:101,stream:157}],43:[function(t,e,r){(function(y){var c=t("create-hmac"),f=t("browserify-rsa"),l=t("elliptic").ec,b=t("bn.js"),h=t("parse-asn1"),d=t("./curves.json");function v(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=m(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),u=new y(o);u.fill(1);var s=new y(o);return s.fill(0),s=c(n,s).update(u).update(new y([0])).update(t).update(a).digest(),u=c(n,s).update(u).digest(),{k:s=c(n,s).update(u).update(new y([1])).update(t).update(a).digest(),v:u=c(n,s).update(u).digest()}}function m(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=c(r,e.k).update(e.v).digest(),n=y.concat([n,e.v]);i=m(n,t),e.k=c(r,e.k).update(e.v).update(new y([0])).digest(),e.v=c(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,u=e.params.priv_key,s=e.params.p,c=e.params.q,f=e.params.g,l=new b(0),h=m(t,c).mod(c),d=!1,p=v(u,c,t,r);!1===d;)n=g(c,p,r),i=n,o=s,a=c,l=f.toRed(b.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(c).imul(h.add(u.mul(l))).mod(c)).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(),u=[0,1];t.length+u.length+1<a;)u.push(255);u.push(0);for(var s=-1;++s<t.length;)u.push(t[s]);return f(u,o)},e.exports.getKey=v,e.exports.makeKey=g}).call(this,t("buffer").Buffer)},{"./curves.json":41,"bn.js":"BN","browserify-rsa":38,buffer:47,"create-hmac":54,elliptic:67,"parse-asn1":113}],44:[function(t,e,r){(function(h){var d=t("bn.js"),p=t("elliptic").ec,y=t("parse-asn1"),b=t("./curves.json");function v(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,u=y.signature.decode(t,"der"),s=u.s,c=u.r;v(s,i),v(c,i);var f=d.mont(n),l=s.invm(i);return 0===o.toRed(f).redPow(new d(e).mul(l).mod(i)).fromRed().mul(a.toRed(f).redPow(c.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(c)}(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(),u=[1],s=0;e.length+u.length+2<a;)u.push(255),s++;u.push(0);for(var c=-1;++c<e.length;)u.push(e[c]);u=new h(u);var f=d.mont(o.modulus);t=(t=new d(t).toRed(f)).redPow(new d(o.publicExponent)),t=new h(t.fromRed().toArray());var l=s<8?1:0;for(a=Math.min(t.length,u.length),t.length!==u.length&&(l=1),c=-1;++c<a;)l|=t[c]^u[c];return 0===l}}).call(this,t("buffer").Buffer)},{"./curves.json":41,"bn.js":"BN",buffer:47,elliptic:67,"parse-asn1":113}],45:[function(t,e,r){arguments[4][17][0].apply(r,arguments)},{dup:17}],46:[function(t,e,r){(function(o){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:47}],47:[function(t,e,C){(function(l){var n=t("base64-js"),o=t("ieee754");C.Buffer=l,C.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},C.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 s(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|h(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 c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(void 0===t?"undefined":_typeof(t)));if(B(t,ArrayBuffer)||t&&B(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|f(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||P(t.length)?a(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(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 "+(void 0===t?"undefined":_typeof(t)))}function u(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 s(t){return u(t),a(t<0?0:0|f(t))}function c(t){for(var e=t.length<0?0:0|f(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function h(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(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 '+(void 0===t?"undefined":_typeof(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 T(t).length;default:if(i)return n?-1:O(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function p(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),P(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:y(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):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u/=a=2,s/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<u;o++)if(c(t,o)===c(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===s)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(u<r+s&&(r=u-s),o=r;0<=o;o--){for(var l=!0,h=0;h<s;h++)if(c(t,o+h)!==c(e,h)){l=!1;break}if(l)return o}return-1}function b(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 u=parseInt(e.substr(2*a,2),16);if(P(u))return a;t[r+a]=u}return a}function v(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function m(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function g(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,u,s,c=t[i],f=null,l=239<c?4:223<c?3:191<c?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(o=t[i+1]))&&127<(s=(31&c)<<6|63&o)&&(f=s);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&2047<(s=(15&c)<<12|(63&o)<<6|63&a)&&(s<55296||57343<s)&&(f=s);break;case 4:o=t[i+1],a=t[i+2],u=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&65535<(s=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&u)&&s<1114112&&(f=s)}null===f?(f=65533,l=1):65535<f&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=w)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=w));return r}(n)}C.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,u(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 s(t)},l.allocUnsafeSlow=function(t){return s(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(B(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),B(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(B(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=h,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)d(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)d(this,e,e+3),d(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)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?g(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 g(this,e,r);case"ascii":return _(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return m(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(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=C.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(B(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 '+(void 0===t?"undefined":_typeof(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),u=Math.min(o,a),s=this.slice(n,i),c=t.slice(e,r),f=0;f<u;++f)if(s[f]!==c[f]){o=s[f],a=c[f];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 p(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return p(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,u,s,c,f,l,h,d,p=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return h=e,d=r,N(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 s=this,c=e,f=r,N(T(t),s,c,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=e,u=r,N(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,u);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 w=4096;function _(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 A(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+=I(t[o]);return i}function k(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 S(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 E(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 j(t,e,r,n,i){return e=+e,r>>>=0,i||E(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return e=+e,r>>>=0,i||E(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||S(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||S(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||S(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||S(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||S(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||S(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||S(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||S(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||S(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||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||S(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||S(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||S(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||S(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||S(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||S(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||S(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||S(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,u=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===u&&0!==this[e+o-1]&&(u=1),this[e+o]=(t/a>>0)-u&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,u=0;for(this[e+o]=255&t;0<=--o&&(a*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/a>>0)-u&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 j(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return U(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),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%u]}return this};var e=/[^+/0-9A-Za-z-_]/g;function I(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 T(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 N(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 B(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function P(t){return t!=t}}).call(this,t("buffer").Buffer)},{"base64-js":15,buffer:47,ieee754:100}],48:[function(t,e,r){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"}},{}],49:[function(t,e,r){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:101,"safe-buffer":148,stream:157,string_decoder:162}],50:[function(t,e,r){(function(t){function e(t){return Object.prototype.toString.call(t)}r.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},r.isBoolean=function(t){return"boolean"==typeof t},r.isNull=function(t){return null===t},r.isNullOrUndefined=function(t){return null==t},r.isNumber=function(t){return"number"==typeof t},r.isString=function(t){return"string"==typeof t},r.isSymbol=function(t){return"symbol"===(void 0===t?"undefined":_typeof(t))},r.isUndefined=function(t){return void 0===t},r.isRegExp=function(t){return"[object RegExp]"===e(t)},r.isObject=function(t){return"object"===(void 0===t?"undefined":_typeof(t))&&null!==t},r.isDate=function(t){return"[object Date]"===e(t)},r.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},r.isFunction=function(t){return"function"==typeof t},r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===(void 0===t?"undefined":_typeof(t))||void 0===t},r.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":102}],51:[function(t,u,e){(function(o){var e=t("elliptic"),n=t("bn.js");u.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:47,elliptic:67}],52:[function(t,e,r){var n=t("inherits"),i=t("md5.js"),o=t("ripemd160"),a=t("sha.js"),u=t("cipher-base");function s(t){u.call(this,"digest"),this._hash=t}n(s,u),s.prototype._update=function(t){this._hash.update(t)},s.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 s(a(t))}},{"cipher-base":49,inherits:101,"md5.js":104,ripemd160:147,"sha.js":150}],53:[function(t,e,r){var n=t("md5.js");e.exports=function(t){return(new n).update(t).digest()}},{"md5.js":104}],54:[function(t,e,r){var n=t("inherits"),i=t("./legacy"),a=t("cipher-base"),u=t("safe-buffer").Buffer,o=t("create-hash/md5"),s=t("ripemd160"),c=t("sha.js"),f=u.alloc(128);function l(t,e){a.call(this,"digest"),"string"==typeof e&&(e=u.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,(this._key=e).length>r)?e=("rmd160"===t?new s:c(t)).update(e).digest():e.length<r&&(e=u.concat([e,f],r));for(var n=this._ipad=u.allocUnsafe(r),i=this._opad=u.allocUnsafe(r),o=0;o<r;o++)n[o]=54^e[o],i[o]=92^e[o];this._hash="rmd160"===t?new s:c(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 s:c(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":55,"cipher-base":49,"create-hash/md5":53,inherits:101,ripemd160:147,"safe-buffer":148,"sha.js":150}],55:[function(t,e,r){var n=t("inherits"),o=t("safe-buffer").Buffer,a=t("cipher-base"),u=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,u],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":49,inherits:101,"safe-buffer":148}],56:[function(t,e,r){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 u=t("browserify-cipher");r.Cipher=u.Cipher,r.createCipher=u.createCipher,r.Cipheriv=u.Cipheriv,r.createCipheriv=u.createCipheriv,r.Decipher=u.Decipher,r.createDecipher=u.createDecipher,r.Decipheriv=u.Decipheriv,r.createDecipheriv=u.createDecipheriv,r.getCiphers=u.getCiphers,r.listCiphers=u.listCiphers;var s=t("diffie-hellman");r.DiffieHellmanGroup=s.DiffieHellmanGroup,r.createDiffieHellmanGroup=s.createDiffieHellmanGroup,r.getDiffieHellman=s.getDiffieHellman,r.createDiffieHellman=s.createDiffieHellman,r.DiffieHellman=s.DiffieHellman;var c=t("browserify-sign");r.createSign=c.createSign,r.Sign=c.Sign,r.createVerify=c.createVerify,r.Verify=c.Verify,r.createECDH=t("create-ecdh");var f=t("public-encrypt");r.publicEncrypt=f.publicEncrypt,r.privateEncrypt=f.privateEncrypt,r.publicDecrypt=f.publicDecrypt,r.privateDecrypt=f.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":35,"browserify-sign":42,"browserify-sign/algos":39,"create-ecdh":51,"create-hash":52,"create-hmac":54,"diffie-hellman":63,pbkdf2:114,"public-encrypt":121,randombytes:131,randomfill:132}],57:[function(t,e,r){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":58,"./des/cipher":59,"./des/des":60,"./des/ede":61,"./des/utils":62}],58:[function(t,e,r){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 u=0;u<this.blockSize;u++)a[u]^=t[e+u];o._update.call(this,a,0,r,n);for(u=0;u<this.blockSize;u++)a[u]=r[n+u]}else{o._update.call(this,t,e,r,n);for(u=0;u<this.blockSize;u++)r[n+u]^=a[u];for(u=0;u<this.blockSize;u++)a[u]=t[e+u]}}},{inherits:101,"minimalistic-assert":106}],59:[function(t,e,r){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":106}],60:[function(t,e,r){var a=t("minimalistic-assert"),n=t("inherits"),i=t("../des"),h=i.utils,o=i.Cipher;function u(){this.tmp=new Array(2),this.keys=null}function s(t){o.call(this,t);var e=new u;this._desState=e,this.deriveKeys(e,t.key)}n(s,o),(e.exports=s).create=function(t){return new s(t)};var c=[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=c[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,u=0;u<t.keys.length;u+=2){var s=t.keys[u],c=t.keys[u+1];h.expand(a,t.tmp,0),s^=t.tmp[0],c^=t.tmp[1];var f=h.substitute(s,c),l=a;a=(o^h.permute(f))>>>0,o=l}h.rip(a,o,n,i)},s.prototype._decrypt=function(t,e,r,n,i){for(var o=r,a=e,u=t.keys.length-2;0<=u;u-=2){var s=t.keys[u],c=t.keys[u+1];h.expand(o,t.tmp,0),s^=t.tmp[0],c^=t.tmp[1];var f=h.substitute(s,c),l=o;o=(a^h.permute(f))>>>0,a=l}h.rip(o,a,n,i)}},{"../des":57,inherits:101,"minimalistic-assert":106}],61:[function(t,e,r){var o=t("minimalistic-assert"),n=t("inherits"),i=t("../des"),a=i.Cipher,u=i.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?[u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n}),u.create({type:"encrypt",key:i})]:[u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r})]}function c(t){a.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}n(c,a),(e.exports=c).create=function(t){return new c(t)},c.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)},c.prototype._pad=u.prototype._pad,c.prototype._unpad=u.prototype._unpad},{"../des":57,inherits:101,"minimalistic-assert":106}],62:[function(t,e,r){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 u=0;u<=24;u+=8)i<<=1,i|=e>>>u+a&1;for(u=0;u<=24;u+=8)i<<=1,i|=t>>>u+a&1}for(a=6;0<=a;a-=2){for(u=1;u<=25;u+=8)o<<=1,o|=e>>>u+a&1;for(u=1;u<=25;u+=8)o<<=1,o|=t>>>u+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 u=24;0<=u;u-=8)i<<=1,i|=e>>>u+a&1,i<<=1,i|=t>>>u+a&1;for(a=4;a<8;a++)for(u=24;0<=u;u-=8)o<<=1,o|=e>>>u+a&1,o<<=1,o|=t>>>u+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 u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(u=0;u<=24;u+=8)i<<=1,i|=t>>u+a&1}for(u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(a=1;a<=3;a++){for(u=0;u<=24;u+=8)o<<=1,o|=e>>u+a&1;for(u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1}for(u=0;u<=24;u+=8)o<<=1,o|=t>>u+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 s=[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=s.length>>>1,u=0;u<a;u++)i<<=1,i|=t>>>s[u]&1;for(u=a;u<s.length;u++)o<<=1,o|=e>>>s[u]&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(" ")}},{}],63:[function(t,e,r){(function(o){var a=t("./lib/generatePrime"),n=t("./lib/primes.json"),u=t("./lib/dh");var s={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 u(e,r)},r.createDiffieHellman=r.DiffieHellman=function t(e,r,n,i){return o.isBuffer(r)||void 0===s[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 u(a(e,n),n,!0):(o.isBuffer(e)||(e=new o(e,r)),new u(e,n,!0)))}}).call(this,t("buffer").Buffer)},{"./lib/dh":64,"./lib/generatePrime":65,"./lib/primes.json":66,buffer:47}],64:[function(y,b,t){(function(o){var a=y("bn.js"),u=new(y("miller-rabin")),s=new a(24),c=new a(11),f=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)||!u.test(t))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(u.test(t.shrn(1))||(o+=2),r){case"02":t.mod(s).cmp(c)&&(o+=8);break;case"05":(i=t.mod(f)).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":65,"bn.js":"BN",buffer:47,"miller-rabin":105,randombytes:131}],65:[function(t,e,r){var i=t("randombytes");(e.exports=n).simpleSieve=b,n.fermatTest=v;var o=t("bn.js"),a=new o(24),u=new(t("miller-rabin")),s=new o(1),c=new o(2),f=new o(5),l=(new o(16),new o(8),new o(10)),h=new o(3),d=(new o(7),new o(11)),p=new o(4),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 v(t){var e=o.mont(t);return 0===c.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(s),r.testn(1)||r.iadd(c),e.cmp(c)){if(!e.cmp(f))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)&&v(n)&&v(r)&&u.test(n)&&u.test(r))return r}}},{"bn.js":"BN","miller-rabin":105,randombytes:131}],66:[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"}}},{}],67:[function(t,e,r){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":82,"./elliptic/curve":70,"./elliptic/curves":73,"./elliptic/ec":74,"./elliptic/eddsa":77,"./elliptic/utils":81,brorand:16}],68:[function(t,e,r){var n=t("bn.js"),i=t("../../elliptic").utils,S=i.getNAF,M=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=S(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 u=0;for(e=a+r.step-1;a<=e;e--)u=(u<<1)+n[e];o.push(u)}for(var s=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;0<f;f--){for(a=0;a<o.length;a++){(u=o[a])===f?c=c.mixedAdd(r.points[a]):u===-f&&(c=c.mixedAdd(r.points[a].neg()))}s=s.add(c)}return s.toP()},o.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=S(e,r),a=this.jpoint(null,null,null),u=o.length-1;0<=u;u--){for(e=0;0<=u&&0===o[u];u--)e++;if(0<=u&&e++,a=a.dblp(e),u<0)break;var s=o[u];l(0!==s),a="affine"===t.type?0<s?a.mixedAdd(i[s-1>>1]):a.mixedAdd(i[-s-1>>1].neg()):0<s?a.add(i[s-1>>1]):a.add(i[-s-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,u=this._wnafT3,s=0,c=0;c<n;c++){var f=(x=e[c])._getNAFPoints(t);o[c]=f.wnd,a[c]=f.points}for(c=n-1;1<=c;c-=2){var l=c-1,h=c;if(1===o[l]&&1===o[h]){var d=[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=M(r[l],r[h]);s=Math.max(y[0].length,s),u[l]=new Array(s),u[h]=new Array(s);for(var b=0;b<s;b++){var v=0|y[0][b],m=0|y[1][b];u[l][b]=p[3*(v+1)+(m+1)],u[h][b]=0,a[l]=d}}else u[l]=S(r[l],o[l]),u[h]=S(r[h],o[h]),s=Math.max(u[l].length,s),s=Math.max(u[h].length,s)}var g=this.jpoint(null,null,null),w=this._wnafT4;for(c=s;0<=c;c--){for(var _=0;0<=c;){var A=!0;for(b=0;b<n;b++)w[b]=0|u[b][c],0!==w[b]&&(A=!1);if(!A)break;_++,c--}if(0<=c&&_++,g=g.dblp(_),c<0)break;for(b=0;b<n;b++){var x,k=w[b];0!==k&&(0<k?x=a[b][k-1>>1]:k<0&&(x=a[b][-k-1>>1].neg()),g="affine"===x.type?g.mixedAdd(x):g.add(x))}}for(c=0;c<n;c++)a[c]=null;return i?g:g.toP()},(o.BasePoint=a).prototype.eq=function(){throw new Error("Not implemented")},a.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(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":67,"bn.js":"BN"}],69:[function(t,e,r){var n=t("../curve"),i=t("../../elliptic"),s=t("bn.js"),o=t("inherits"),a=n.base,u=i.utils.assert;function c(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 s(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function f(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 s(e,16),this.y=new s(r,16),this.z=n?new s(n,16):this.curve.one,this.t=i&&new s(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),(e.exports=c).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},c.prototype.pointFromX=function(t,e){(t=new s(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 u=a.fromRed().isOdd();return(e&&!u||!e&&u)&&(a=a.redNeg()),this.point(t,a)},c.prototype.pointFromY=function(t,e){(t=new s(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)},c.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(f,a.BasePoint),c.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},c.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),u=n.redSub(e),s=i.redMul(a),c=o.redMul(u),f=i.redMul(u),l=a.redMul(o);return this.curve.point(s,c,l,f)},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=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var u=this.z.redSqr(),s=a.redSub(u).redISub(u);t=n.redSub(i).redISub(o).redMul(s),e=a.redMul(c.redSub(o)),r=a.redMul(s)}}else{var c=i.redAdd(o);u=this.curve._mulC(this.z).redSqr(),s=c.redSub(u).redSub(u);t=this.curve._mulC(n.redISub(c)).redMul(s),e=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(s)}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),u=i.redAdd(n),s=r.redAdd(e),c=o.redMul(a),f=u.redMul(s),l=o.redMul(s),h=a.redMul(u);return this.curve.point(c,f,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),u=this.curve.d.redMul(o).redMul(a),s=i.redSub(u),c=i.redAdd(u),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),l=n.redMul(s).redMul(f);return r=this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),s.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),this.curve._mulC(s).redMul(c)),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},{"../../elliptic":67,"../curve":70,"bn.js":"BN",inherits:101}],70:[function(t,e,r){var n=r;n.base=t("./base"),n.short=t("./short"),n.mont=t("./mont"),n.edwards=t("./edwards")},{"./base":68,"./edwards":69,"./mont":71,"./short":72}],71:[function(t,e,r){var n=t("../curve"),i=t("bn.js"),o=t("inherits"),a=n.base,u=t("../../elliptic").utils;function s(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 c(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(s,a),(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)},o(c,a.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(u.toArray(t,e),1)},s.prototype.point=function(t,e){return new c(this,t,e)},s.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var 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)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.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),u=e.z.redMul(o.redAdd(a).redSqr()),s=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(u,s)},c.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},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":67,"../curve":70,"bn.js":"BN",inherits:101}],72:[function(t,e,r){var n=t("../curve"),i=t("../../elliptic"),_=t("bn.js"),o=t("inherits"),a=n.base,u=i.utils.assert;function s(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 c(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 f(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(s,a),(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],u(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,u,s,c,f=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),v=0;0!==l.cmpn(0);){var m=h.div(l);s=h.sub(m.mul(l)),c=y.sub(m.mul(d));var g=b.sub(m.mul(p));if(!n&&s.cmp(f)<0)e=u.neg(),r=d,n=s.neg(),i=c;else if(n&&2==++v)break;h=l,l=u=s,y=d,d=c,b=p,p=g}o=s.neg(),a=c;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),u=o.mul(n.a),s=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(u),k2:s.add(c).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]),u=t[o],s=u._getBeta();a.k1.negative&&(a.k1.ineg(),u=u.neg(!0)),a.k2.negative&&(a.k2.ineg(),s=s.neg(!0)),n[2*o]=u,n[2*o+1]=s,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),s.prototype.point=function(t,e,r){return new c(this,t,e,r)},s.prototype.pointFromJSON=function(t,e){return c.fromJSON(this,t,e)},c.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}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(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},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(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)},c.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)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.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)},c.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)},c.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)},c.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))},c.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},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),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)),u=n.redSub(i),s=o.redSub(a);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=u.redSqr(),f=c.redMul(u),l=n.redMul(c),h=s.redSqr().redIAdd(f).redISub(l).redISub(l),d=s.redMul(l.redISub(h)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(u);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),u=i.redSub(o);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),c=s.redMul(a),f=r.redMul(s),l=u.redSqr().redIAdd(c).redISub(f).redISub(f),h=u.redMul(f.redISub(l)).redISub(i.redMul(c)),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,u=this.z,s=u.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<t;r++){var f=o.redSqr(),l=c.redSqr(),h=l.redSqr(),d=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(s)),p=o.redMul(l),y=d.redSqr().redISub(p.redAdd(p)),b=p.redISub(y),v=d.redMul(b);v=v.redIAdd(v).redISub(h);var m=c.redMul(u);r+1<t&&(s=s.redMul(h)),o=y,u=m,c=v}return this.curve.jpoint(o,c.redMul(i),u)},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 u=n.redAdd(n).redIAdd(n),s=u.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s,e=u.redMul(a.redISub(s)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),d=this.x.redAdd(l).redSqr().redISub(f).redISub(h);d=d.redIAdd(d);var p=f.redAdd(f).redIAdd(f),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 u=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=u.redSqr().redISub(a).redISub(a);t=s;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u.redMul(a.redISub(s)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),d=this.x.redSub(f).redMul(this.x.redAdd(f));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),y=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(y),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);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(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),s=e.redAdd(e),c=(s=s.redIAdd(s)).redMul(a),f=u.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=u.redMul(l).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,d,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var 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),u=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var c=i.redIAdd(a).redSqr().redISub(o).redISub(u).redISub(s),f=e.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(u).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(c.redMul(s.redISub(c)).redISub(a.redMul(u)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(u);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)}},{"../../elliptic":67,"../curve":70,"bn.js":"BN",inherits:101}],73:[function(t,e,r){var n,i=r,o=t("hash.js"),a=t("../elliptic"),u=a.utils.assert;function s(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,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,r){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var t=new s(r);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:t}),t}})}i.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=t("./precomputed/secp256k1")}catch(t){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"../elliptic":67,"./precomputed/secp256k1":80,"hash.js":86}],74:[function(t,e,r){var b=t("bn.js"),v=t("hmac-drbg"),o=t("../../elliptic"),d=o.utils.assert,n=t("./key"),m=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 b(2));;){var i=new b(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"===(void 0===r?"undefined":_typeof(r))&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new b(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),u=new v({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new b(1)),c=0;;c++){var f=n.k?n.k(c):new b(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||0<=f.cmp(s))){var l=this.g.mul(f);if(!l.isInfinity()){var h=l.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=f.invm(this.n).mul(d.mul(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 m({r:d,s:p,recoveryParam:y})}}}}}},i.prototype.verify=function(t,e,r,n){t=this._truncateToN(new b(t,16)),r=this.keyFromPublic(r,n);var i=(e=new m(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,u=o.invm(this.n),s=u.mul(t).umod(this.n),c=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(s,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(s,r.getPublic(),c)).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 m(e,n);var i=this.n,o=new b(t),a=e.r,u=e.s,s=1&r,c=r>>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),s):this.curve.pointFromX(a,s);var f=e.r.invm(i),l=i.sub(o).mul(f).umod(i),h=u.mul(f).umod(i);return this.g.mulAdd(l,a,h)},i.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new m(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":67,"./key":75,"./signature":76,"bn.js":"BN","hmac-drbg":98}],75:[function(t,e,r){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":67,"bn.js":"BN"}],76:[function(t,e,r){var u=t("bn.js"),s=t("../../elliptic").utils,n=s.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 u(t.r,16),this.s=new u(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function c(){this.place=0}function f(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=s.toArray(t,e);var r=new c;if(48!==t[r.place++])return!1;if(f(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var n=f(t,r),i=t.slice(r.place,n+r.place);if(r.place+=n,2!==t[r.place++])return!1;var o=f(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 u(i),this.s=new u(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),s.encode(o,t)}},{"../../elliptic":67,"bn.js":"BN"}],77:[function(t,e,r){var n=t("hash.js"),i=t("../../elliptic"),o=i.utils,a=o.assert,s=o.parseBytes,u=t("./key"),c=t("./signature");function f(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(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=f).prototype.sign=function(t,e){t=s(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()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(t,e,r){t=s(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)},f.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)},f.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},f.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},f.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},f.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},f.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)},f.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(t){return o.intFromLE(t)},f.prototype.isPoint=function(t){return t instanceof this.pointClass}},{"../../elliptic":67,"./key":78,"./signature":79,"hash.js":86}],78:[function(t,e,r){var n=t("../../elliptic").utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function u(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}u.fromPublic=function(t,e){return e instanceof u?e:new u(t,{pub:e})},u.fromSecret=function(t,e){return e instanceof u?e:new u(t,{secret:e})},u.prototype.secret=function(){return this._secret},a(u,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(u,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(u,"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(u,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(u,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(u,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),u.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},u.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},u.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},u.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},e.exports=u},{"../../elliptic":67}],79:[function(t,e,r){var n=t("bn.js"),i=t("../../elliptic").utils,o=i.assert,a=i.cachedProperty,u=i.parseBytes;function s(t,e){this.eddsa=t,"object"!==(void 0===e?"undefined":_typeof(e))&&(e=u(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=s},{"../../elliptic":67,"bn.js":"BN"}],80:[function(t,e,r){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"]]}}},{}],81:[function(t,e,r){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 u=0!==i.cmpn(0)&&0===i.andln(n-1)?e+1:1,s=1;s<u;s++)r.push(0);i.iushrn(u)}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,u,s=t.andln(3)+n&3,c=e.andln(3)+i&3;3===s&&(s=-1),3===c&&(c=-1),o=0==(1&s)?0:3!=(u=t.andln(7)+n&7)&&5!==u||2!==c?s:-s,r[0].push(o),a=0==(1&c)?0:3!=(u=e.andln(7)+i&7)&&5!==u||2!==s?c:-c,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":106,"minimalistic-crypto-utils":107}],82:[function(t,e,r){e.exports={_args:[["elliptic@6.4.1","/Users/work/Development/foundation/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","/secp256k1"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",_spec:"6.4.1",_where:"/Users/work/Development/foundation/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"}},{}],83:[function(t,e,r){var s=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=s(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,u=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),i=0===c.x}catch(t){i=!1}function f(t){return void 0===t._maxListeners?n.defaultMaxListeners:t._maxListeners}function l(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=s(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=f(t))&&0<i&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,"object"===("undefined"==typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else a=o[e]=r,++t._eventsCount;return t}function h(){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 d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=o.call(h,n);return i.listener=r,n.wrapFn=i}function p(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):b(i,i.length):[]}function y(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 b(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 u},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');u=t}}):n.defaultMaxListeners=u,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 f(this)},n.prototype.emit=function(t){var e,r,n,i,o,a,u="error"===t;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(u){if(1<arguments.length&&(e=arguments[1]),e instanceof Error)throw e;var s=new Error('Unhandled "error" event. ('+e+")");throw s.context=e,s}if(!(r=a[t]))return!1;var c="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=b(t,n),o=0;o<n;++o)i[o].call(r)}(r,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=b(t,i),a=0;a<i;++a)o[a].call(r,n)}(r,c,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=b(t,o),u=0;u<o;++u)a[u].call(r,n,i)}(r,c,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,u=b(t,a),s=0;s<a;++s)u[s].call(r,n,i,o)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=b(t,i),a=0;a<i;++a)o[a].apply(r,n)}(r,c,this,i)}return!0},n.prototype.on=n.prototype.addListener=function(t,e){return l(this,t,e,!1)},n.prototype.prependListener=function(t,e){return l(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,d(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,d(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=s(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=s(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=s(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=s(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 p(this,t,!0)},n.prototype.rawListeners=function(t){return p(this,t,!1)},n.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},n.prototype.listenerCount=y,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],84:[function(t,e,r){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),u=d.alloc(0);0<i||0<n;){var s=new p;s.update(u),s.update(t),e&&s.update(e),u=s.digest();var c=0;if(0<i){var f=o.length-i;c=Math.min(i,u.length),u.copy(o,f,0,c),i-=c}if(c<u.length&&0<n){var l=a.length-n,h=Math.min(n,u.length-c);u.copy(a,l,c,c+h),n-=h}}return u.fill(0),{key:o,iv:a}}},{"md5.js":104,"safe-buffer":148}],85:[function(t,e,r){var u=t("safe-buffer").Buffer,n=t("stream").Transform;function i(t){n.call(this),this._block=u.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(!u.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");u.isBuffer(t)||(t=u.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:101,"safe-buffer":148,stream:157}],86:[function(t,e,r){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":87,"./hash/hmac":88,"./hash/ripemd":89,"./hash/sha":90,"./hash/utils":97}],87:[function(t,e,r){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":97,"minimalistic-assert":106}],88:[function(t,e,r){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":97,"minimalistic-assert":106}],89:[function(t,e,r){var n=t("./utils"),i=t("./common"),p=n.rotl32,y=n.sum32,b=n.sum32_3,v=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 m(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],u=r,s=n,c=i,f=o,l=a,h=0;h<80;h++){var d=y(p(v(r,m(h,n,i,o),t[_[h]+e],g(h)),x[h]),a);r=a,a=o,o=p(i,10),i=n,n=d,d=y(p(v(u,m(79-h,s,c,f),t[A[h]+e],w(h)),k[h]),l),u=l,l=f,f=p(c,10),c=s,s=d}d=b(this.h[1],i,f),this.h[1]=b(this.h[2],o,l),this.h[2]=b(this.h[3],a,u),this.h[3]=b(this.h[4],r,s),this.h[4]=b(this.h[0],n,c),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],x=[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],k=[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":87,"./utils":97}],90:[function(t,e,r){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":91,"./sha/224":92,"./sha/256":93,"./sha/384":94,"./sha/512":95}],91:[function(t,e,r){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 u(){if(!(this instanceof u))return new u;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(u,a),(e.exports=u).blockSize=512,u.outSize=160,u.hmacStrength=80,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]=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],u=this.h[3],s=this.h[4];for(n=0;n<r.length;n++){var c=~~(n/20),f=d(l(i,5),p(c,o,a,u),s,r[n],y[c]);s=u,u=a,a=l(o,30),o=i,i=f}this.h[0]=h(this.h[0],i),this.h[1]=h(this.h[1],o),this.h[2]=h(this.h[2],a),this.h[3]=h(this.h[3],u),this.h[4]=h(this.h[4],s)},u.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":87,"../utils":97,"./common":96}],92:[function(t,e,r){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":97,"./256":93}],93:[function(t,e,r){var n=t("../utils"),i=t("../common"),o=t("./common"),p=t("minimalistic-assert"),y=n.sum32,b=n.sum32_4,v=n.sum32_5,m=o.ch32,g=o.maj32,w=o.s0_256,_=o.s1_256,A=o.g0_256,x=o.g1_256,a=i.BlockHash,u=[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 s(){if(!(this instanceof s))return new s;a.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=u,this.W=new Array(64)}n.inherits(s,a),(e.exports=s).blockSize=512,s.outSize=256,s.hmacStrength=192,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]=b(x(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],u=this.h[3],s=this.h[4],c=this.h[5],f=this.h[6],l=this.h[7];for(p(this.k.length===r.length),n=0;n<r.length;n++){var h=v(l,_(s),m(s,c,f),this.k[n],r[n]),d=y(w(i),g(i,o,a));l=f,f=c,c=s,s=y(u,h),u=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],u),this.h[4]=y(this.h[4],s),this.h[5]=y(this.h[5],c),this.h[6]=y(this.h[6],f),this.h[7]=y(this.h[7],l)},s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":87,"../utils":97,"./common":96,"minimalistic-assert":106}],94:[function(t,e,r){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":97,"./512":95}],95:[function(t,e,r){var n=t("../utils"),i=t("../common"),B=t("minimalistic-assert"),o=n.rotr64_hi,a=n.rotr64_lo,u=n.shr64_hi,s=n.shr64_lo,P=n.sum64,C=n.sum64_hi,R=n.sum64_lo,h=n.sum64_4_hi,d=n.sum64_4_lo,F=n.sum64_5_hi,L=n.sum64_5_lo,c=i.BlockHash,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=f,this.W=new Array(160)}function q(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function D(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 $(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function V(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)^u(t,e,7);return r<0&&(r+=4294967296),r}function y(t,e){var r=a(t,e,1)^a(t,e,8)^s(t,e,7);return r<0&&(r+=4294967296),r}function b(t,e){var r=o(t,e,19)^o(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}function v(t,e){var r=a(t,e,19)^a(e,t,29)^s(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(l,c),(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=v(r[n-4],r[n-3]),a=r[n-14],u=r[n-13],s=p(r[n-30],r[n-29]),c=y(r[n-30],r[n-29]),f=r[n-32],l=r[n-31];r[n]=h(i,o,a,u,s,c,f,l),r[n+1]=d(i,o,a,u,s,c,f,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],u=this.h[4],s=this.h[5],c=this.h[6],f=this.h[7],l=this.h[8],h=this.h[9],d=this.h[10],p=this.h[11],y=this.h[12],b=this.h[13],v=this.h[14],m=this.h[15];B(this.k.length===r.length);for(var g=0;g<r.length;g+=2){var w=v,_=m,A=V(l,h),x=W(l,h),k=q(l,h,d,p,y),S=D(l,h,d,p,y,b),M=this.k[g],E=this.k[g+1],j=r[g],U=r[g+1],I=F(w,_,A,x,k,S,M,E,j,U),O=L(w,_,A,x,k,S,M,E,j,U);w=K(n,i),_=$(n,i),A=z(n,i,o,a,u),x=H(n,i,o,a,u,s);var T=C(w,_,A,x),N=R(w,_,A,x);v=y,m=b,y=d,b=p,d=l,p=h,l=C(c,f,I,O),h=R(f,f,I,O),c=u,f=s,u=o,s=a,o=n,a=i,n=C(I,O,T,N),i=R(I,O,T,N)}P(this.h,0,n,i),P(this.h,2,o,a),P(this.h,4,u,s),P(this.h,6,c,f),P(this.h,8,l,h),P(this.h,10,d,p),P(this.h,12,y,b),P(this.h,14,v,m)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":87,"../utils":97,"minimalistic-assert":106}],96:[function(t,e,r){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":97}],97:[function(t,e,r){var c=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 u=t.charCodeAt(a);i[o++]=u<128?u:(i[o++]=u<2048?u>>6|192:(n=a,55296!=(64512&(r=t).charCodeAt(n))||n<0||n+1>=r.length||56320!=(64512&r.charCodeAt(n+1))?i[o++]=u>>12|224:(u=65536+((1023&u)<<10)+(1023&t.charCodeAt(++a)),i[o++]=u>>18|240,i[o++]=u>>12&63|128),u>>6&63|128),63&u|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;c(i%4==0);for(var o=new Array(i/4),a=0,u=e;a<o.length;a++,u+=4){var s;s="big"===n?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],o[a]=s>>>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,u){var s=0,c=e;return s+=(c=c+n>>>0)<e?1:0,s+=(c=c+o>>>0)<o?1:0,t+r+i+a+(s+=(c=c+u>>>0)<u?1:0)>>>0},r.sum64_4_lo=function(t,e,r,n,i,o,a,u){return e+n+o+u>>>0},r.sum64_5_hi=function(t,e,r,n,i,o,a,u,s,c){var f=0,l=e;return f+=(l=l+n>>>0)<e?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+u>>>0)<u?1:0,t+r+i+a+s+(f+=(l=l+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(t,e,r,n,i,o,a,u,s,c){return e+n+o+u+c>>>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:101,"minimalistic-assert":106}],98:[function(t,e,r){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":86,"minimalistic-assert":106,"minimalistic-crypto-utils":107}],99:[function(t,e,r){var n=t("http"),i=t("url"),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function u(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=u(t),n.request.call(this,t,e)},o.get=function(t,e){return t=u(t),n.get.call(this,t,e)}},{http:158,url:165}],100:[function(t,e,r){r.read=function(t,e,r,n,i){var o,a,u=8*i-n-1,s=(1<<u)-1,c=s>>1,f=-7,l=r?i-1:0,h=r?-1:1,d=t[e+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=u;0<f;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;0<f;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var a,u,s,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),2<=(e+=1<=a+l?h/s:h*Math.pow(2,1-l))*s&&(a++,s/=2),f<=a+l?(u=0,a=f):1<=a+l?(u=(e*s-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;t[r+d]=255&u,d+=p,u/=256,i-=8);for(a=a<<i|u,c+=i;0<c;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*y}},{}],101:[function(t,e,r){"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}},{}],102:[function(t,e,r){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}},{}],103:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],104:[function(t,e,r){var n=t("inherits"),i=t("hash-base"),o=t("safe-buffer").Buffer,a=new Array(16);function u(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(t,e){return t<<e|t>>>32-e}function c(t,e,r,n,i,o,a){return s(t+(e&r|~e&n)+i+o|0,a)+e|0}function f(t,e,r,n,i,o,a){return s(t+(e&n|r&~n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return s(t+(e^r^n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return s(t+(r^(e|~n))+i+o|0,a)+e|0}n(u,i),u.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=f(n=f(n=f(n=f(n=c(n=c(n=c(n=c(n,i=c(i,o=c(o,r=c(r,n,i,o,t[0],3614090360,7),n,i,t[1],3905402710,12),r,n,t[2],606105819,17),o,r,t[3],3250441966,22),i=c(i,o=c(o,r=c(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=c(i,o=c(o,r=c(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=c(i,o=c(o,r=c(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=f(i,o=f(o,r=f(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=f(i,o=f(o,r=f(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=f(i,o=f(o,r=f(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=f(i,o=f(o,r=f(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},u.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=u},{"hash-base":85,inherits:101,"safe-buffer":148}],105:[function(t,e,r){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),u=0;!a.testn(u);u++);for(var s=t.shrn(u),c=a.toRed(i);0<e;e--){var f=this._randrange(new d(2),a);r&&r(f);var l=f.toRed(i).redPow(s);if(0!==l.cmp(o)&&0!==l.cmp(c)){for(var h=1;h<u;h++){if(0===(l=l.redSqr()).cmp(o))return!1;if(0===l.cmp(c))break}if(h===u)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 u=t.shrn(a),s=o.toRed(n);0<e;e--){var c=this._randrange(new d(2),o),f=t.gcd(c);if(0!==f.cmpn(1))return f;var l=c.toRed(n).redPow(u);if(0!==l.cmp(i)&&0!==l.cmp(s)){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(s))break}if(h===a)return(l=l.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},{"bn.js":"BN",brorand:16}],106:[function(t,e,r){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)}},{}],107:[function(t,e,r){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}},{}],108:[function(t,e,r){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"/"}},{}],109:[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"}},{}],110:[function(t,e,r){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(u),this.key("subjectPublicKey").bitstr())});r.PublicKey=a;var u=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())}),s=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(u),this.key("subjectPrivateKey").octstr())});r.PrivateKey=s;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=f,r.DSAparam=n.define("DSAparam",function(){this.int()});var l=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=l;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":111,"asn1.js":1}],111:[function(t,e,r){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())}),u=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),s=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(s)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),l=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(u),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}],112:[function(t,e,r){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"),v=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=v.from(i[2],"hex"),u=v.from(i[3].replace(/[\r\n]/g,""),"base64"),s=y(e,a.slice(0,8),parseInt(i[1],10)).key,c=[],f=b.createDecipheriv(o,s,a);c.push(f.update(u)),c.push(f.final()),r=v.concat(c)}else{var l=n.match(p);r=new v(l[2].replace(/[\r\n]/g,""),"base64")}return{tag:n.match(d)[1],data:r}}},{"browserify-aes":20,evp_bytestokey:84,"safe-buffer":148}],113:[function(t,e,r){var m=t("./asn1"),g=t("./aesid.json"),w=t("./fixProc"),_=t("browserify-aes"),A=t("pbkdf2"),x=t("safe-buffer").Buffer;function n(t){var e;"object"!==(void 0===t?"undefined":_typeof(t))||x.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=x.from(t));var r,n,i,o,a,u,s,c,f,l,h,d,p,y=w(t,e),b=y.tag,v=y.data;switch(b){case"CERTIFICATE":n=m.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=m.PublicKey.decode(v,"der")),r=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return m.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=m.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":v=m.EncryptedPrivateKey.decode(v,"der"),o=e,a=(i=v).algorithm.decrypt.kde.kdeparams.salt,u=parseInt(i.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=g[i.algorithm.decrypt.cipher.algo.join(".")],c=i.algorithm.decrypt.cipher.iv,f=i.subjectPrivateKey,l=parseInt(s.split("-")[1],10)/8,h=A.pbkdf2Sync(o,a,u,l,"sha1"),d=_.createDecipheriv(s,h,c),(p=[]).push(d.update(f)),p.push(d.final()),v=x.concat(p);case"PRIVATE KEY":switch(r=(n=m.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return m.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:m.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=m.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 m.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return m.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:m.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=m.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+b)}}(e.exports=n).signature=m.signature},{"./aesid.json":109,"./asn1":110,"./fixProc":112,"browserify-aes":20,pbkdf2:114,"safe-buffer":148}],114:[function(t,e,r){r.pbkdf2=t("./lib/async"),r.pbkdf2Sync=t("./lib/sync")},{"./lib/async":115,"./lib/sync":118}],115:[function(t,e,r){(function(c,f){var l,h=t("./precondition"),d=t("./default-encoding"),p=t("./sync"),y=t("safe-buffer").Buffer,b=f.crypto&&f.crypto.subtle,v={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"},m=[];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,u,s=v[(o=o||"sha1").toLowerCase()];if(!s||"function"!=typeof f.Promise)return c.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(f.process&&!f.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(void 0!==m[t])return m[t];var e=g(l=l||y.alloc(8),l,10,128,t).then(function(){return!0}).catch(function(){return!1});return m[t]=e}(s).then(function(t){return t?g(e,r,n,i,s):p(e,r,n,i,o)}),u=a,t.then(function(t){c.nextTick(function(){u(null,t)})},function(t){c.nextTick(function(){u(t)})})}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":116,"./precondition":117,"./sync":118,_process:120,"safe-buffer":148}],116:[function(t,r,e){(function(t){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:120}],117:[function(t,e,r){(function(r){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":102}],118:[function(t,e,r){var f=t("create-hash/md5"),l=t("ripemd160"),h=t("sha.js"),b=t("./precondition"),v=t("./default-encoding"),m=t("safe-buffer").Buffer,d=m.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?f: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=m.concat([e,d],o));for(var a=m.allocUnsafe(o+g[t]),u=m.allocUnsafe(o+g[t]),s=0;s<o;s++)a[s]=54^e[s],u[s]=92^e[s];var c=m.allocUnsafe(o+r+4);a.copy(c,0,0,o),this.ipad1=c,this.ipad2=a,this.opad=u,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),m.isBuffer(t)||(t=m.from(t,v)),m.isBuffer(e)||(e=m.from(e,v));var o=new w(i=i||"sha1",t,e.length),a=m.allocUnsafe(n),u=m.allocUnsafe(e.length+4);e.copy(u,0,0,e.length);for(var s=0,c=g[i],f=Math.ceil(n/c),l=1;l<=f;l++){u.writeUInt32BE(l,e.length);for(var h=o.run(u,o.ipad1),d=h,p=1;p<r;p++){d=o.run(d,o.ipad2);for(var y=0;y<c;y++)h[y]^=d[y]}h.copy(a,s),s+=c}return a}},{"./default-encoding":116,"./precondition":117,"create-hash/md5":53,ripemd160:147,"safe-buffer":148,"sha.js":150}],119:[function(t,e,r){(function(u){!u.version||0===u.version.indexOf("v0.")||0===u.version.indexOf("v1.")&&0!==u.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 u.nextTick(t);case 2:return u.nextTick(function(){t.call(null,e)});case 3:return u.nextTick(function(){t.call(null,e,r)});case 4:return u.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 u.nextTick(function(){t.apply(null,i)})}}}:e.exports=u}).call(this,t("_process"))},{_process:120}],120:[function(t,e,r){var n,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(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:u}catch(t){i=u}}();var c,f=[],l=!1,h=-1;function d(){l&&c&&(l=!1,c.length?f=c.concat(f):h=-1,f.length&&p())}function p(){if(!l){var t=s(d);l=!0;for(var e=f.length;e;){for(c=f,f=[];++h<e;)c&&c[h].run();h=-1,e=f.length}c=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===u||!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];f.push(new y(t,e)),1!==f.length||l||s(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}},{}],121:[function(t,e,r){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":123,"./publicEncrypt":124}],122:[function(t,e,r){var o=t("create-hash"),a=t("safe-buffer").Buffer;function u(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=u(i++),n=a.concat([n,o("sha1").update(t).update(r).digest()]);return n.slice(0,e)}},{"create-hash":52,"safe-buffer":148}],123:[function(t,e,r){var s=t("parse-asn1"),f=t("./mgf"),l=t("./xor"),c=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=s(t),a=o.modulus.byteLength();if(e.length>a||0<=new c(e).cmp(o.modulus))throw new Error("decryption error");i=r?p(new c(e),o):h(e,o);var u=y.alloc(a-i.length);if(i=y.concat([u,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),u=l(o,f(a,i)),s=l(a,f(u,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,s.slice(0,i)))throw new Error("decryption error");var c=i;for(;0===s[c];)c++;if(1===s[c++])return s.slice(c);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":122,"./withPublic":125,"./xor":126,"bn.js":"BN","browserify-rsa":38,"create-hash":52,"parse-asn1":113,"safe-buffer":148}],124:[function(t,e,r){var a=t("parse-asn1"),h=t("randombytes"),d=t("create-hash"),p=t("./mgf"),y=t("./xor"),b=t("bn.js"),u=t("./withPublic"),s=t("browserify-rsa"),v=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(v.alloc(0)).digest(),o=i.length,a=2*o;if(r-a-2<n)throw new Error("message too long");var u=v.alloc(r-n-a-2),s=r-o-1,c=h(o),f=y(v.concat([i,u,v.alloc(1,1),e],s),p(c,s)),l=y(c,p(f,o));return new b(v.concat([v.alloc(1),l,f],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?v.alloc(o-i-3,255):function(t){var e,r=v.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(v.concat([v.from([0,r?1:2]),n,v.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?s(i,o):u(i,o)}},{"./mgf":122,"./withPublic":125,"./xor":126,"bn.js":"BN","browserify-rsa":38,"create-hash":52,"parse-asn1":113,randombytes:131,"safe-buffer":148}],125:[function(t,e,r){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":148}],126:[function(t,e,r){e.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},{}],127:[function(t,T,N){(function(O){!function(t){var e="object"==(void 0===N?"undefined":_typeof(N))&&N&&!N.nodeType&&N,r="object"==(void 0===T?"undefined":_typeof(T))&&T&&!T.nodeType&&T,n="object"==(void 0===O?"undefined":_typeof(O))&&O;n.global!==n&&n.window!==n&&n.self!==n||(t=n);var i,o,v=2147483647,m=36,g=1,w=26,a=38,u=700,_=72,A=128,x="-",s=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=m-g,k=Math.floor,S=String.fromCharCode;function M(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(f,".")).split("."),e).join(".")}function E(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+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=S(t)}).join("")}function U(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function I(t,e,r){var n=0;for(t=r?k(t/u):t>>1,t+=k(t/e);h*w>>1<t;n+=m)t=k(t/h);return k(n+(h+1)*t/(t+a))}function y(t){var e,r,n,i,o,a,u,s,c,f,l,h=[],d=t.length,p=0,y=A,b=_;for((r=t.lastIndexOf(x))<0&&(r=0),n=0;n<r;++n)128<=t.charCodeAt(n)&&M("not-basic"),h.push(t.charCodeAt(n));for(i=0<r?r+1:0;i<d;){for(o=p,a=1,u=m;d<=i&&M("invalid-input"),l=t.charCodeAt(i++),(m<=(s=l-48<10?l-22:l-65<26?l-65:l-97<26?l-97:m)||s>k((v-p)/a))&&M("overflow"),p+=s*a,!(s<(c=u<=b?g:b+w<=u?w:u-b));u+=m)a>k(v/(f=m-c))&&M("overflow"),a*=f;b=I(p-o,e=h.length+1,0==o),k(p/e)>v-y&&M("overflow"),y+=k(p/e),p%=e,h.splice(p++,0,y)}return j(h)}function b(t){var e,r,n,i,o,a,u,s,c,f,l,h,d,p,y,b=[];for(h=(t=E(t)).length,e=A,o=_,a=r=0;a<h;++a)(l=t[a])<128&&b.push(S(l));for(n=i=b.length,i&&b.push(x);n<h;){for(u=v,a=0;a<h;++a)e<=(l=t[a])&&l<u&&(u=l);for(u-e>k((v-r)/(d=n+1))&&M("overflow"),r+=(u-e)*d,e=u,a=0;a<h;++a)if((l=t[a])<e&&++r>v&&M("overflow"),l==e){for(s=r,c=m;!(s<(f=c<=o?g:o+w<=c?w:c-o));c+=m)y=s-f,p=m-f,b.push(S(U(f+y%p,0))),s=k(y/p);b.push(S(U(s,0))),o=I(r,d,n==i),r=0,++n}++r,++e}return b.join("")}if(i={version:"1.4.1",ucs2:{decode:E,encode:j},decode:y,encode:b,toASCII:function(t){return p(t,function(t){return c.test(t)?"xn--"+b(t):t})},toUnicode:function(t){return p(t,function(t){return s.test(t)?y(t.slice(4).toLowerCase()):t})}},"function"==typeof define&&"object"==_typeof(define.amd)&&define.amd)define("punycode",function(){return i});else if(e&&r)if(T.exports==e)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);else t.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],128:[function(t,e,r){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 u,s,c=t.length;0<a&&a<c&&(c=a);for(var f=0;f<c;++f){var l,h,d,p,y=t[f].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),u=i,s=d,Object.prototype.hasOwnProperty.call(u,s)?v(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i};var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],129:[function(t,e,r){var o=function(t){switch(void 0===t?"undefined":_typeof(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"===(void 0===r?"undefined":_typeof(r))?u(s(r),function(t){var e=encodeURIComponent(o(t))+i;return a(r[t])?u(r[t],function(t){return e+encodeURIComponent(o(t))}).join(n):e+encodeURIComponent(o(r[t]))}).join(n):t?encodeURIComponent(o(t))+i+encodeURIComponent(o(r)):""};var a=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 s=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],130:[function(t,e,r){r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":128,"./encode":129}],131:[function(e,r,t){(function(i,t){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:120,"safe-buffer":148}],132:[function(r,t,d){(function(a,i){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"),u=r("randombytes"),o=e.Buffer,n=e.kMaxLength,s=i.crypto||i.msCrypto,c=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(c<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(c<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 s.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return u(t).copy(r,n),r;u(t,function(t,e){if(t)return i(t);e.copy(r,n),i(null,r)})}s&&s.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 f(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');f(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:120,randombytes:131,"safe-buffer":148}],133:[function(t,e,r){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":134}],134:[function(t,e,r){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"),u=t("./_stream_writable");o.inherits(l,a);for(var s=i(u.prototype),c=0;c<s.length;c++){var f=s[c];l.prototype[f]||(l.prototype[f]=u.prototype[f])}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),u.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":136,"./_stream_writable":138,"core-util-is":50,inherits:101,"process-nextick-args":119}],135:[function(t,e,r){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":137,"core-util-is":50,inherits:101}],136:[function(N,B,t){(function(b,t){var v=N("process-nextick-args");B.exports=h;var a,m=N("isarray");h.ReadableState=o;N("events").EventEmitter;var g=function(t,e){return t.listeners(e).length},i=N("./internal/streams/stream"),c=N("safe-buffer").Buffer,f=t.Uint8Array||function(){};var e=N("core-util-is");e.inherits=N("inherits");var r=N("util"),w=void 0;w=r&&r.debuglog?r.debuglog("stream"):function(){};var u,s=N("./internal/streams/BufferList"),n=N("./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||N("./_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 s,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&&(u||(u=N("string_decoder/").StringDecoder),this.decoder=new u(t.encoding),this.encoding=t.encoding)}function h(t){if(a=a||N("./_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,u,s=t._readableState;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,A(t)}(t,s)):(i||(o=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,e)),o?t.emit("error",o):s.objectMode||e&&0<e.length?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===c.prototype||(a=e,e=c.from(a)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):p(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?p(t,s,e,!1):k(t,s)):p(t,s,e,!1))):n||(s.reading=!1));return!(u=s).ended&&(u.needReadable||u.length<u.highWaterMark||0===u.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)),k(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=c.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 u||(u=N("string_decoder/").StringDecoder),this._readableState.decoder=new u(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?v.nextTick(x,t):x(t))}function x(t){w("emit readable"),t.emit("readable"),j(t)}function k(t,e){e.readingMore||(e.readingMore=!0,v.nextTick(S,t,e))}function S(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 M(t){w("readable nexttick read 0"),t.read(0)}function E(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 U(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=c.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 I(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,v.nextTick(O,e,t))}function O(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function T(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?I(this):A(this),null;if(0===(t=_(t,e))&&e.ended)return 0===e.length&&I(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?U(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&I(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",s),r.removeListener("error",h),r.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",y),n.removeListener("data",l),c=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||s())}function a(){w("onend"),r.end()}i.endEmitted?v.nextTick(e):n.once("end",e),r.on("unpipe",o);var u,s=(u=n,function(){var t=u._readableState;w("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&g(u,"data")&&(t.flowing=!0,j(u))});r.on("drain",s);var c=!1;var f=!1;function l(t){w("ondata"),(f=!1)!==r.write(t)||f||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==T(i.pipes,r))&&!c&&(w("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!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]?m(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=T(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):v.nextTick(M,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,v.nextTick(E,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=U}).call(this,N("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":134,"./internal/streams/BufferList":139,"./internal/streams/destroy":140,"./internal/streams/stream":141,_process:120,"core-util-is":50,events:83,inherits:101,isarray:103,"process-nextick-args":119,"safe-buffer":148,"string_decoder/":142,util:17}],137:[function(t,e,r){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){u(r,t,e)}):u(this,null,null)}function u(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":134,"core-util-is":50,inherits:101}],138:[function(x,k,t){(function(t,e,r){var v=x("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)}}k.exports=f;var u,h=!t.browser&&-1<["v0.10","v0.9."].indexOf(t.version.slice(0,5))?r:v.nextTick;f.WritableState=c;var n=x("core-util-is");n.inherits=x("inherits");var i={deprecate:x("util-deprecate")},o=x("./internal/streams/stream"),m=x("safe-buffer").Buffer,g=e.Uint8Array||function(){};var a,s=x("./internal/streams/destroy");function w(){}function c(t,e){u=u||x("./_stream_duplex"),t=t||{};var r=e instanceof u;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,u=r,s=n,c=e,f=i,--u.pendingcb,s?(v.nextTick(f,c),v.nextTick(A,a,u),a._writableState.errorEmitted=!0,a.emit("error",c)):(f(c),a._writableState.errorEmitted=!0,a.emit("error",c),A(a,u));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,u,s,c,f;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 f(t){if(u=u||x("./_stream_duplex"),!(a.call(f,this)||this instanceof u))return new f(t);this._writableState=new c(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,u=!0;r;)(i[a]=r).isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,_(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 s=r.chunk,c=r.encoding,f=r.callback;if(_(t,e,!1,e.objectMode?1:s.length,s,c,f),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,v.nextTick(b,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}n.inherits(f,o),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.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(f,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===f&&(t&&t._writableState instanceof c)}})):a=function(t){return t instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(t,e,r){var n,i,o,a,u,s,c,f,l,h,d,p=this._writableState,y=!1,b=!p.objectMode&&(n=t,m.isBuffer(n)||n instanceof g);return b&&!m.isBuffer(t)&&(i=t,t=m.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),v.nextTick(h,d)):(b||(o=this,a=p,s=r,f=!(c=!0),null===(u=t)?f=new TypeError("May not write null values to stream"):"string"==typeof u||void 0===u||a.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(o.emit("error",f),v.nextTick(s,f),c=!1),c))&&(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=m.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var u=e.objectMode?1:n.length;e.length+=u;var s=e.length<e.highWaterMark;s||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else _(t,e,!1,u,n,i,o);return s}(this,p,b,t,e,r)),y},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||p(this,t))},f.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(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),f.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},f.prototype._writev=null,f.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?v.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),f.prototype.destroy=s.destroy,f.prototype._undestroy=s.undestroy,f.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,x("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},x("timers").setImmediate)},{"./_stream_duplex":134,"./internal/streams/destroy":140,"./internal/streams/stream":141,_process:120,"core-util-is":50,inherits:101,"process-nextick-args":119,"safe-buffer":148,timers:163,"util-deprecate":167}],139:[function(t,e,r){var u=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 u.alloc(0);if(1===this.length)return this.head.data;for(var e,r,n,i=u.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":148,util:17}],140:[function(t,e,r){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":119}],141:[function(t,e,r){e.exports=t("events").EventEmitter},{events:83}],142:[function(t,e,r){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=s,this.end=c,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=f,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 u(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 s(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 c(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 f(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":148}],143:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":144}],144:[function(t,e,r){(((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":134,"./lib/_stream_passthrough.js":135,"./lib/_stream_readable.js":136,"./lib/_stream_transform.js":137,"./lib/_stream_writable.js":138}],145:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":144}],146:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":138}],147:[function(t,e,r){var n=t("buffer").Buffer,i=t("inherits"),o=t("hash-base"),b=new Array(16),v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],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 x(t,e){return t<<e|t>>>32-e}function k(t,e,r,n,i,o,a,u){return x(t+(e^r^n)+o+a|0,u)+i|0}function S(t,e,r,n,i,o,a,u){return x(t+(e&r|~e&n)+o+a|0,u)+i|0}function M(t,e,r,n,i,o,a,u){return x(t+((e|~r)^n)+o+a|0,u)+i|0}function E(t,e,r,n,i,o,a,u){return x(t+(e&n|r&~n)+o+a|0,u)+i|0}function j(t,e,r,n,i,o,a,u){return x(t+(e^(r|~n))+o+a|0,u)+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,u=0|this._a,s=0|this._b,c=0|this._c,f=0|this._d,l=0|this._e,h=0;h<80;h+=1){var d,p;p=h<16?(d=k(r,n,i,o,a,t[v[h]],_[0],g[h]),j(u,s,c,f,l,t[m[h]],A[0],w[h])):h<32?(d=S(r,n,i,o,a,t[v[h]],_[1],g[h]),E(u,s,c,f,l,t[m[h]],A[1],w[h])):h<48?(d=M(r,n,i,o,a,t[v[h]],_[2],g[h]),M(u,s,c,f,l,t[m[h]],A[2],w[h])):h<64?(d=E(r,n,i,o,a,t[v[h]],_[3],g[h]),S(u,s,c,f,l,t[m[h]],A[3],w[h])):(d=j(r,n,i,o,a,t[v[h]],_[4],g[h]),k(u,s,c,f,l,t[m[h]],A[4],w[h])),r=a,a=o,o=x(i,10),i=n,n=d,u=l,l=f,f=x(c,10),c=s,s=p}var y=this._b+i+f|0;this._b=this._c+o+l|0,this._c=this._d+a+u|0,this._d=this._e+r+s|0,this._e=this._a+n+c|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:47,"hash-base":85,inherits:101}],148:[function(t,e,r){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:47}],149:[function(t,e,r){var f=t("safe-buffer").Buffer;function n(t,e){this._block=f.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}n.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=f.from(t,e));for(var r=this._block,n=this._blockSize,i=t.length,o=this._len,a=0;a<i;){for(var u=o%n,s=Math.min(i-a,n-u),c=0;c<s;c++)r[u+c]=t[a+c];a+=s,(o+=s)%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":148}],150:[function(t,e,r){(r=e.exports=function(t){t=t.toLowerCase();var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e}).sha=t("./sha"),r.sha1=t("./sha1"),r.sha224=t("./sha224"),r.sha256=t("./sha256"),r.sha384=t("./sha384"),r.sha512=t("./sha512")},{"./sha":151,"./sha1":152,"./sha224":153,"./sha256":154,"./sha384":155,"./sha512":156}],151:[function(t,e,r){var n=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,v=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r,n,i,o,a,u=this._w,s=0|this._a,c=0|this._b,f=0|this._c,l=0|this._d,h=0|this._e,d=0;d<16;++d)u[d]=t.readInt32BE(4*d);for(;d<80;++d)u[d]=u[d-3]^u[d-8]^u[d-14]^u[d-16];for(var p=0;p<80;++p){var y=~~(p/20),b=0|((a=s)<<5|a>>>27)+(n=c,i=f,o=l,0===(r=y)?n&i|~n&o:2===r?n&i|n&o|i&o:n^i^o)+h+u[p]+v[y];h=l,l=f,f=(e=c)<<30|e>>>2,c=s,s=b}this._a=s+this._a|0,this._b=c+this._b|0,this._c=f+this._c|0,this._d=l+this._d|0,this._e=h+this._e|0},u.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=u},{"./hash":149,inherits:101,"safe-buffer":148}],152:[function(t,e,r){var n=t("inherits"),i=t("./hash"),o=t("safe-buffer").Buffer,m=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r,n,i,o,a,u,s=this._w,c=0|this._a,f=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0;p<16;++p)s[p]=t.readInt32BE(4*p);for(;p<80;++p)s[p]=(e=s[p-3]^s[p-8]^s[p-14]^s[p-16])<<1|e>>>31;for(var y=0;y<80;++y){var b=~~(y/20),v=0|((u=c)<<5|u>>>27)+(i=f,o=l,a=h,0===(n=b)?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a)+d+s[y]+m[b];d=h,h=l,l=(r=f)<<30|r>>>2,f=c,c=v}this._a=c+this._a|0,this._b=f+this._b|0,this._c=l+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0},u.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=u},{"./hash":149,inherits:101,"safe-buffer":148}],153:[function(t,e,r){var n=t("inherits"),i=t("./sha256"),o=t("./hash"),a=t("safe-buffer").Buffer,u=new Array(64);function s(){this.init(),this._w=u,o.call(this,64,56)}n(s,i),s.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},s.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=s},{"./hash":149,"./sha256":154,inherits:101,"safe-buffer":148}],154:[function(t,e,r){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 u(){this.init(),this._w=a,i.call(this,64,56)}n(u,i),u.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},u.prototype._update=function(t){for(var e,r,n,i,o,a,u,s=this._w,c=0|this._a,f=0|this._b,l=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,y=0|this._g,b=0|this._h,v=0;v<16;++v)s[v]=t.readInt32BE(4*v);for(;v<64;++v)s[v]=0|(((r=s[v-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+s[v-7]+(((e=s[v-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+s[v-16];for(var m=0;m<64;++m){var g=b+(((u=d)>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+((a=y)^d&(p^a))+_[m]+s[m]|0,w=0|(((o=c)>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=c)&(i=f)|l&(n|i));b=y,y=p,p=d,d=h+g|0,h=l,l=f,f=c,c=g+w|0}this._a=c+this._a|0,this._b=f+this._b|0,this._c=l+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=y+this._g|0,this._h=b+this._h|0},u.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=u},{"./hash":149,inherits:101,"safe-buffer":148}],155:[function(t,e,r){var n=t("inherits"),i=t("./sha512"),o=t("./hash"),a=t("safe-buffer").Buffer,u=new Array(160);function s(){this.init(),this._w=u,o.call(this,128,112)}n(s,i),s.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},s.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=s},{"./hash":149,"./sha512":156,inherits:101,"safe-buffer":148}],156:[function(t,e,r){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 u(){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(u,i),u.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},u.prototype._update=function(t){for(var e,r,n,i,o,a,u,s,c=this._w,f=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,v=0|this._hh,m=0|this._al,g=0|this._bl,w=0|this._cl,_=0|this._dl,A=0|this._el,x=0|this._fl,k=0|this._gl,S=0|this._hl,M=0;M<32;M+=2)c[M]=t.readInt32BE(4*M),c[M+1]=t.readInt32BE(4*M+4);for(;M<160;M+=2){var E=c[M-30],j=c[M-30+1],U=((u=E)>>>1|(s=j)<<31)^(u>>>8|s<<24)^u>>>7,I=((o=j)>>>1|(a=E)<<31)^(o>>>8|a<<24)^(o>>>7|a<<25);E=c[M-4],j=c[M-4+1];var O=((n=E)>>>19|(i=j)<<13)^(i>>>29|n<<3)^n>>>6,T=((e=j)>>>19|(r=E)<<13)^(r>>>29|e<<3)^(e>>>6|r<<26),N=c[M-14],B=c[M-14+1],P=c[M-32],C=c[M-32+1],R=I+B|0,F=U+N+ot(R,I)|0;F=(F=F+O+ot(R=R+T|0,T)|0)+P+ot(R=R+C|0,C)|0,c[M]=F,c[M+1]=R}for(var L=0;L<160;L+=2){F=c[L],R=c[L+1];var q=rt(f,l,h),D=rt(m,g,w),z=nt(f,m),H=nt(m,f),K=it(p,A),$=it(A,p),V=tt[L],W=tt[L+1],G=et(p,y,b),X=et(A,x,k),J=S+$|0,Z=v+K+ot(J,S)|0;Z=(Z=(Z=Z+G+ot(J=J+X|0,X)|0)+V+ot(J=J+W|0,W)|0)+F+ot(J=J+R|0,R)|0;var Y=H+D|0,Q=z+q+ot(Y,H)|0;v=b,S=k,b=y,k=x,y=p,x=A,p=d+Z+ot(A=_+J|0,_)|0,d=h,_=w,h=l,w=g,l=f,g=m,f=Z+Q+ot(m=J+Y|0,J)|0}this._al=this._al+m|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+x|0,this._gl=this._gl+k|0,this._hl=this._hl+S|0,this._ah=this._ah+f+ot(this._al,m)|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,x)|0,this._gh=this._gh+b+ot(this._gl,k)|0,this._hh=this._hh+v+ot(this._hl,S)|0},u.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=u},{"./hash":149,inherits:101,"safe-buffer":148}],157:[function(t,e,r){e.exports=n;var f=t("events").EventEmitter;function n(){f.call(this)}t("inherits")(n,f),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",u));var o=!1;function a(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function s(t){if(c(),0===f.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",s),e.removeListener("error",s),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",s),e.on("error",s),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},{events:83,inherits:101,"readable-stream/duplex.js":133,"readable-stream/passthrough.js":143,"readable-stream/readable.js":144,"readable-stream/transform.js":145,"readable-stream/writable.js":146}],158:[function(r,t,i){(function(s){var c=r("./lib/request"),t=r("./lib/response"),f=r("xtend"),e=r("builtin-status-codes"),l=r("url"),n=i;n.request=function(t,e){t="string"==typeof t?l.parse(t):f(t);var r=-1===s.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 u=new c(t);return e&&u.on("response",e),u},n.get=function(t,e){var r=n.request(t,e);return r.end(),r},n.ClientRequest=c,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":160,"./lib/response":161,"builtin-status-codes":48,url:165,xtend:169}],159:[function(t,e,u){(function(t){u.fetch=a(t.fetch)&&a(t.ReadableStream),u.writableStream=a(t.WritableStream),u.abortController=a(t.AbortController),u.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),u.blobConstructor=!0}catch(t){}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}var i=void 0!==t.ArrayBuffer,o=i&&a(t.ArrayBuffer.prototype.slice);function a(t){return"function"==typeof t}u.arraybuffer=u.fetch||i&&n("arraybuffer"),u.msstream=!u.fetch&&o&&n("ms-stream"),u.mozchunkedarraybuffer=!u.fetch&&i&&n("moz-chunked-arraybuffer"),u.overrideMimeType=u.fetch||!!r()&&a(r().overrideMimeType),u.vbArray=a(t.VBArray),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],160:[function(o,u,t){(function(s,c,f){var l=o("./capability"),t=o("inherits"),e=o("./response"),a=o("readable-stream"),h=o("to-arraybuffer"),r=e.IncomingMessage,d=e.readyStates;var n=u.exports=function(e){var t,r=this;a.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new f(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&&!l.abortController)t=!(o=!1);else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!l.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,l.fetch&&i?"fetch":l.mozchunkedarraybuffer?"moz-chunked-arraybuffer":l.msstream?"ms-stream":l.arraybuffer&&n?"arraybuffer":l.vbArray&&n?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};t(n,a.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=l.arraybuffer?h(f.concat(e._body)):l.blobConstructor?new c.Blob(e._body.map(function(t){return h(t)}),{type:(n["content-type"]||{}).value||""}):f.concat(e._body).toString());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(l.abortController){var a=new AbortController;o=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=c.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}c.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){c.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var u=e._xhr=new c.XMLHttpRequest;try{u.open(e._opts.method,e._opts.url,!0)}catch(t){return void s.nextTick(function(){e.emit("error",t)})}"responseType"in u&&(u.responseType=e._mode.split(":")[0]),"withCredentials"in u&&(u.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in u&&u.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(u.timeout=t.requestTimeout,u.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(t){u.setRequestHeader(t[0],t[1])}),e._response=null,u.onreadystatechange=function(){switch(u.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(u.onprogress=function(){e._onXHRProgress()}),u.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{u.send(r)}catch(t){return void s.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,c.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),a.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":159,"./response":161,_process:120,buffer:47,inherits:101,"readable-stream":144,"to-arraybuffer":164}],161:[function(r,t,n){(function(c,f,l){var h=r("./capability"),t=r("inherits"),d=r("readable-stream"),u=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(){c.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(new l(r))?t():i._resumeFetch=t})},close:function(){f.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){f.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 f.clearTimeout(n),void i.push(null);i.push(new l(t.value)),e()}}).catch(function(t){f.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 u=i.rawHeaders["mime-type"];if(u){var s=u.match(/;\s*charset=([^;])(;|$)/);s&&(i._charset=s[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 e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new f.VBArray(t.responseBody).toArray()}catch(t){}if(null!==r){e.push(new l(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var n=r.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new l(n.length),o=0;o<n.length;o++)i[o]=255&n.charCodeAt(o);e.push(i)}else e.push(n,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;r=t.response,e.push(new l(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==u.LOADING||!r)break;e.push(new l(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==u.LOADING)break;var a=new f.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(new l(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":159,_process:120,buffer:47,inherits:101,"readable-stream":144}],162:[function(t,e,r){arguments[4][142][0].apply(r,arguments)},{dup:142,"safe-buffer":148}],163:[function(s,t,c){(function(t,e){var n=s("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,o={},a=0;function u(t,e){this._id=t,this._clearFn=e}c.setTimeout=function(){return new u(r.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new u(r.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(t){t.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},c.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},c._unrefActive=c.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},c.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),c.clearImmediate(e))}),e},c.clearImmediate="function"==typeof e?e:function(t){delete o[t]}}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":120,timers:163}],164:[function(t,e,r){var i=t("buffer").Buffer;e.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(i.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,n=0;n<r;n++)e[n]=t[n];return e.buffer}throw new Error("Argument must be a Buffer")}},{buffer:47}],165:[function(t,e,r){var N=t("punycode"),B=t("./util");function E(){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){B.isString(t)&&(t=o(t));return t instanceof E?t.format():E.prototype.format.call(t)},r.Url=E;var P=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,C=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),R=["'"].concat(i),F=["%","/","?",";","#"].concat(R),L=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,z={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},K={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},$=t("querystring");function o(t,e,r){if(t&&B.isObject(t)&&t instanceof E)return t;var n=new E;return n.parse(t,e,r),n}E.prototype.parse=function(t,e,r){if(!B.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+(void 0===t?"undefined":_typeof(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 u=C.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],this.query=e?$.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var s=P.exec(a);if(s){var c=(s=s[0]).toLowerCase();this.protocol=c,a=a.substr(s.length)}if(r||s||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===a.substr(0,2);!f||s&&H[s]||(a=a.substr(2),this.slashes=!0)}if(!H[s]&&(f||s&&!K[s])){for(var l,h,d=-1,p=0;p<L.length;p++){-1!==(y=a.indexOf(L[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 v=this.hostname.split(/\./),m=(p=0,v.length);p<m;p++){var g=v[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 x=v.slice(0,p),k=v.slice(p+1),S=g.match(D);S&&(x.push(S[1]),k.unshift(S[2])),k.length&&(a="/"+k.join(".")+a),this.hostname=x.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),b||(this.hostname=N.toASCII(this.hostname));var M=this.port?":"+this.port:"",E=this.hostname||"";this.host=E+M,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!z[c])for(p=0,m=R.length;p<m;p++){var j=R[p];if(-1!==a.indexOf(j)){var U=encodeURIComponent(j);U===j&&(U=escape(j)),a=a.split(j).join(U)}}var I=a.indexOf("#");-1!==I&&(this.hash=a.substr(I),a=a.slice(0,I));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),e&&(this.query=$.parse(this.query)),a=a.slice(0,O)):e&&(this.search="",this.query={}),a&&(this.pathname=a),K[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var T=this.search||"";this.path=M+T}return this.href=this.format(),this},E.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&&B.isObject(this.query)&&Object.keys(this.query).length&&(o=$.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||K[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},E.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},E.prototype.resolveObject=function(t){if(B.isString(t)){var e=new E;e.parse(t,!1,!0),t=e}for(var r=new E,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),u=0;u<a.length;u++){var s=a[u];"protocol"!==s&&(r[s]=t[s])}return K[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!K[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var l=c[f];r[l]=t[l]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||H[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),v=b||y||r.host&&t.pathname,m=v,g=r.pathname&&r.pathname.split("/")||[],w=(h=t.pathname&&t.pathname.split("/")||[],r.protocol&&!K[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),v=v&&(""===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(!B.isNullOrUndefined(t.search)){if(w)r.hostname=r.host=g.shift(),(S=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift());return r.search=t.search,r.query=t.query,B.isNull(r.pathname)&&B.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)&&("."===_||".."===_)||""===_,x=0,k=g.length;0<=k;k--)"."===(_=g[k])?g.splice(k,1):".."===_?(g.splice(k,1),x++):x&&(g.splice(k,1),x--);if(!v&&!m)for(;x--;x)g.unshift("..");!v||""===g[0]||g[0]&&"/"===g[0].charAt(0)||g.unshift(""),A&&"/"!==g.join("/").substr(-1)&&g.push("");var S,M=""===g[0]||g[0]&&"/"===g[0].charAt(0);w&&(r.hostname=r.host=M?"":g.length?g.shift():"",(S=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift()));return(v=v||r.host&&g.length)&&!M&&g.unshift(""),g.length?r.pathname=g.join("/"):(r.pathname=null,r.path=null),B.isNull(r.pathname)&&B.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},E.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":166,punycode:127,querystring:130}],166:[function(t,e,r){e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===(void 0===t?"undefined":_typeof(t))&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],167:[function(t,e,r){(function(r){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:{})},{}],168:[function(require,module,exports){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"===(void 0===e?"undefined":_typeof(e))&&forEach(Object_keys(e),function(t){r[t]=e[t]}),r}},{}],169:[function(t,e,r){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},{}],170:[function(t,e,r){var n="%[a-f0-9]{2}",i=new RegExp(n,"gi"),u=new RegExp("("+n+")+","gi");function o(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([],o(r),o(n))}function s(e){try{return decodeURIComponent(e)}catch(t){for(var r=e.match(i),n=1;n<r.length;n++)r=(e=o(r,n).join("")).match(i);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+(void 0===e?"undefined":_typeof(e))+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},r=u.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var n=s(r[0]);n!==r[0]&&(e[r[0]]=n)}r=u.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)}}},{}],171:[function(t,e,r){var o=t("object-keys"),a="function"==typeof Symbol&&"symbol"===_typeof(Symbol("foo")),u=Object.prototype.toString,s=Array.prototype.concat,c=Object.defineProperty,f=c&&function(){var t={};try{for(var e in c(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,r,n){var i;e in t&&("function"!=typeof(i=n)||"[object Function]"!==u.call(i)||!n())||(f?c(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},n=function(t,e){var r=2<arguments.length?arguments[2]:{},n=o(e);a&&(n=s.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)l(t,n[i],e[n[i]],r[n[i]])};n.supportsDescriptors=!!f,e.exports=n},{"object-keys":193}],172:[function(t,e,r){var n,i=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator),a=Object.getPrototypeOf||function(t){return t.__proto__},u=n,s="undefined"==typeof Uint8Array?n:a(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?a([][Symbol.iterator]()):n,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":n,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":n,"$ %AsyncGenerator%":n,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":n,"$ %AsyncIteratorPrototype%":u&&o&&Symbol.asyncIterator?u[Symbol.asyncIterator]():n,"$ %Atomics%":"undefined"==typeof Atomics?n:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?n:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?n:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?n:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?n:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":n,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":n,"$ %Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?n:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?n:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?n:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?a(a([][Symbol.iterator]())):n,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?n:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?a((new Map)[Symbol.iterator]()):n,"$ %MapPrototype%":"undefined"==typeof Map?n:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?n:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?n:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?n:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?n:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?n:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?n:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?n:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?n:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?n:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?a((new Set)[Symbol.iterator]()):n,"$ %SetPrototype%":"undefined"==typeof Set?n:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?a(""[Symbol.iterator]()):n,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:n,"$ %SymbolPrototype%":o?Symbol.prototype:n,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":i,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:n,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?n:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?n:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?n:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?n:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?n:WeakSet.prototype};e.exports=function(t,e){if(1<arguments.length&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var r="$ "+t;if(!(r in c))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===c[r]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return c[r]}},{}],173:[function(t,e,r){var n=t("./GetIntrinsic"),i=n("%Object%"),o=n("%TypeError%"),a=n("%String%"),u=t("./helpers/assertRecord"),s=t("./helpers/isNaN"),c=t("./helpers/isFinite"),f=t("./helpers/sign"),l=t("./helpers/mod"),h=t("is-callable"),d=t("es-to-primitive/es5"),p=t("has"),y={ToPrimitive:d,ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var e=this.ToNumber(t);return s(e)?0:0!==e&&c(e)?f(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(s(e)||0===e||!c(e))return 0;var r=f(e)*Math.floor(Math.abs(e));return l(r,65536)},ToString:function(t){return a(t)},ToObject:function(t){return this.CheckObjectCoercible(t),i(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new o(e||"Cannot call method on "+t);return t},IsCallable:h,SameValue:function(t,e){return t===e?0!==t||1/t==1/e:s(t)&&s(e)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"===(void 0===t?"undefined":_typeof(t))?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(p(t,r)&&!e[r])return!1;var n=p(t,"[[Value]]"),i=p(t,"[[Get]]")||p(t,"[[Set]]");if(n&&i)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!(!p(t,"[[Get]]")&&!p(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!(!p(t,"[[Value]]")&&!p(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(u(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new o("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new o("ToPropertyDescriptor requires an object");var e={};if(p(t,"enumerable")&&(e["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),p(t,"configurable")&&(e["[[Configurable]]"]=this.ToBoolean(t.configurable)),p(t,"value")&&(e["[[Value]]"]=t.value),p(t,"writable")&&(e["[[Writable]]"]=this.ToBoolean(t.writable)),p(t,"get")){var r=t.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");e["[[Get]]"]=r}if(p(t,"set")){var n=t.set;if(void 0!==n&&!this.IsCallable(n))throw new o("setter must be a function");e["[[Set]]"]=n}if((p(e,"[[Get]]")||p(e,"[[Set]]"))&&(p(e,"[[Value]]")||p(e,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}};e.exports=y},{"./GetIntrinsic":172,"./helpers/assertRecord":174,"./helpers/isFinite":175,"./helpers/isNaN":176,"./helpers/mod":177,"./helpers/sign":178,"es-to-primitive/es5":179,has:188,"is-callable":189}],174:[function(t,e,r){var n=t("../GetIntrinsic"),a=n("%TypeError%"),o=n("%SyntaxError%"),u=t("has"),s={"Property Descriptor":function(t,e){if("Object"!==t.Type(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(u(e,n)&&!r[n])return!1;var i=u(e,"[[Value]]"),o=u(e,"[[Get]]")||u(e,"[[Set]]");if(i&&o)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(t,e,r,n){var i=s[e];if("function"!=typeof i)throw new o("unknown record type: "+e);if(!i(t,n))throw new a(r+" must be a "+e);console.log(i(t,n),n)}},{"../GetIntrinsic":172,has:188}],175:[function(t,e,r){var n=Number.isNaN||function(t){return t!=t};e.exports=Number.isFinite||function(t){return"number"==typeof t&&!n(t)&&t!==1/0&&t!==-1/0}},{}],176:[function(t,e,r){e.exports=Number.isNaN||function(t){return t!=t}},{}],177:[function(t,e,r){e.exports=function(t,e){var r=t%e;return Math.floor(0<=r?r:r+e)}},{}],178:[function(t,e,r){e.exports=function(t){return 0<=t?1:-1}},{}],179:[function(t,e,r){var o=Object.prototype.toString,a=t("./helpers/isPrimitive"),u=t("is-callable"),n=function(t){var e;if((e=1<arguments.length?arguments[1]:"[object Date]"===o.call(t)?String:Number)!==String&&e!==Number)throw new TypeError("invalid [[DefaultValue]] hint supplied");var r,n,i=e===String?["toString","valueOf"]:["valueOf","toString"];for(n=0;n<i.length;++n)if(u(t[i[n]])&&(r=t[i[n]](),a(r)))return r;throw new TypeError("No default value")};e.exports=function(t){return a(t)?t:1<arguments.length?n(t,arguments[1]):n(t)}},{"./helpers/isPrimitive":180,"is-callable":189}],180:[function(t,e,r){e.exports=function(t){return null===t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":_typeof(t))}},{}],181:[function(t,e,r){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}}},{}],182:[function(i,t,e){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":181}],183:[function(t,e,r){var p="0123456789abcdef".split(""),y=[1,256,65536,16777216],b=[0,8,16,24],ft=[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],v=function(t){var e,r,n,i,o,a,u,s,c,f,l,h,d,p,y,b,v,m,g,w,_,A,x,k,S,M,E,j,U,I,O,T,N,B,P,C,R,F,L,q,D,z,H,K,$,V,W,G,X,J,Z,Y,Q,tt,et,rt,nt,it,ot,at,ut,st,ct;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],u=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],f=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|u>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<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^(s<<1|c>>>31),r=o^(c<<1|s>>>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^(f<<1|l>>>31),r=u^(l<<1|f>>>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=s^(h<<1|d>>>31),r=c^(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=f^(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],V=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,U=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,P=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,I=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,st=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,C=t[14]<<6|t[15]>>>26,R=t[15]<<6|t[14]>>>26,m=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,T=t[45]<<29|t[44]>>>3,N=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,L=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,$=t[9]<<27|t[8]>>>5,M=t[18]<<20|t[19]>>>12,E=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,D=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,x=t[49]<<14|t[48]>>>18,t[0]=p^~b&m,t[1]=y^~v&g,t[10]=k^~M&j,t[11]=S^~E&U,t[20]=B^~C&F,t[21]=P^~R&L,t[30]=K^~V&G,t[31]=$^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~m&w,t[3]=v^~g&_,t[12]=M^~j&I,t[13]=E^~U&O,t[22]=C^~F&q,t[23]=R^~L&D,t[32]=V^~G&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&ut,t[4]=m^~w&A,t[5]=g^~_&x,t[14]=j^~I&T,t[15]=U^~O&N,t[24]=F^~q&z,t[25]=L^~D&H,t[34]=G^~J&Y,t[35]=X^~Z&Q,t[44]=it^~at&st,t[45]=ot^~ut&ct,t[6]=w^~A&p,t[7]=_^~x&y,t[16]=I^~T&k,t[17]=O^~N&S,t[26]=q^~z&B,t[27]=D^~H&P,t[36]=J^~Y&K,t[37]=Z^~Q&$,t[46]=at^~st&tt,t[47]=ut^~ct&et,t[8]=A^~p&b,t[9]=x^~y&v,t[18]=T^~k&M,t[19]=N^~S&E,t[28]=z^~B&C,t[29]=H^~P&R,t[38]=Y^~K&V,t[39]=Q^~$&W,t[48]=st^~tt&rt,t[49]=ct^~et&nt,t[0]^=ft[n],t[1]^=ft[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,u=t.outputBlocks,s=t.s,c=0;c<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;c<n&&h<o;++c)i[h>>2]|=e[c]<<b[3&h++];else for(h=t.start;c<n&&h<o;++c)(r=e.charCodeAt(c))<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(++c)),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)s[h]^=i[h];v(s),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)s[h]^=i[h];v(s);for(var f,l="",h=0,d=0;d<u;){for(h=0;h<a&&d<u;++h,++d)f=s[h],l+=p[f>>4&15]+p[15&f]+p[f>>12&15]+p[f>>8&15]+p[f>>20&15]+p[f>>16&15]+p[f>>28&15]+p[f>>24&15];d%a==0&&(v(s),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)}},{}],184:[function(t,e,r){var i=t("is-callable"),o=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(t,e,r){if(!i(e))throw new TypeError("iterator must be a function");var n;3<=arguments.length&&(n=r),"[object Array]"===o.call(t)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)a.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,n):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,n):function(t,e,r){for(var n in t)a.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,n)}},{"is-callable":189}],185:[function(t,e,r){var s=Array.prototype.slice,c=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==c.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var n,i=s.call(arguments,1),t=Math.max(0,r.length-i.length),o=[],a=0;a<t;a++)o.push("$"+a);if(n=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var t=r.apply(this,i.concat(s.call(arguments)));return Object(t)===t?t:this}return r.apply(e,i.concat(s.call(arguments)))}),r.prototype){var u=function(){};u.prototype=r.prototype,n.prototype=new u,u.prototype=null}return n}},{}],186:[function(t,e,r){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":185}],187:[function(t,r,e){(function(t){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:{})},{}],188:[function(t,e,r){var n=t("function-bind");e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":186}],189:[function(t,e,r){var n=Function.prototype.toString,i=/^\s*class\b/,o=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"===_typeof(Symbol.toStringTag);e.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!==(void 0===t?"undefined":_typeof(t)))return!1;if("function"==typeof t&&!t.prototype)return!0;if(u)return function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}}(t);if(o(t))return!1;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},{}],190:[function(t,e,r){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},{}],191:[function(t,e,r){var s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,f=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]))c.call(r,a)&&(i[a]=r[a]);if(s){n=s(r);for(var u=0;u<n.length;u++)f.call(r,n[u])&&(i[n[u]]=r[n[u]])}}return i}},{}],192:[function(t,e,r){var n;if(!Object.keys){var h=Object.prototype.hasOwnProperty,d=Object.prototype.toString,p=t("./isArguments"),i=Object.prototype.propertyIsEnumerable,y=!i.call({toString:null},"toString"),b=i.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],m=function(t){var e=t.constructor;return e&&e.prototype===t},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!o["$"+t]&&h.call(window,t)&&null!==window[t]&&"object"===_typeof(window[t]))try{m(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"===(void 0===t?"undefined":_typeof(t)),r="[object Function]"===d.call(t),n=p(t),i=e&&"[object String]"===d.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=b&&r;if(i&&0<t.length&&!h.call(t,0))for(var u=0;u<t.length;++u)o.push(String(u));if(n&&0<t.length)for(var s=0;s<t.length;++s)o.push(String(s));else for(var c in t)a&&"prototype"===c||!h.call(t,c)||o.push(String(c));if(y)for(var f=function(t){if("undefined"==typeof window||!g)return m(t);try{return m(t)}catch(t){return!1}}(t),l=0;l<v.length;++l)f&&"constructor"===v[l]||!h.call(t,v[l])||o.push(v[l]);return o}}e.exports=n},{"./isArguments":194}],193:[function(t,e,r){var n=Array.prototype.slice,i=t("./isArguments"),o=Object.keys,a=o?function(t){return o(t)}:t("./implementation"),u=Object.keys;a.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return i(t)?u(n.call(t)):u(t)}):Object.keys=a;return Object.keys||a},e.exports=a},{"./implementation":192,"./isArguments":194}],194:[function(t,e,r){var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===n.call(t.callee)),r}},{}],195:[function(t,e,r){var a=t("string.prototype.trim"),n=t("for-each");e.exports=function(t){if(!t)return{};var o={};return n(a(t).split("\n"),function(t){var e,r=t.indexOf(":"),n=a(t.slice(0,r)).toLowerCase(),i=a(t.slice(r+1));void 0===o[n]?o[n]=i:(e=o[n],"[object Array]"===Object.prototype.toString.call(e)?o[n].push(i):o[n]=[o[n],i])}),o}},{"for-each":184,"string.prototype.trim":199}],196:[function(t,e,r){var n=t("strict-uri-encode"),a=t("object-assign"),u=t("decode-uri-component");function s(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function i(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function o(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:u(n),i(u(r),n,o)}),Object.keys(o).sort().reduce(function(t,e){var r=o[e];return Boolean(r)&&"object"===(void 0===r?"undefined":_typeof(r))&&!Array.isArray(r)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"===(void 0===e?"undefined":_typeof(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=i,r.parse=o,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?[s(t,n),"[",r,"]"].join(""):[s(t,n),"[",s(r,n),"]=",s(e,n)].join("")};case"bracket":return function(t,e){return null===e?s(t,n):[s(t,n),"[]=",s(e,n)].join("")};default:return function(t,e){return null===e?s(t,n):[s(t,n),"=",s(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 s(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 s(e,i)+"="+s(t,i)}).filter(function(t){return 0<t.length}).join("&"):""},r.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:o(i(t),e)}}},{"decode-uri-component":170,"object-assign":191,"strict-uri-encode":197}],197:[function(t,e,r){e.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},{}],198:[function(t,e,r){var n=t("function-bind"),i=t("es-abstract/es5"),o=n.call(Function.call,String.prototype.replace),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var t=i.ToString(i.CheckObjectCoercible(this));return o(o(t,a,""),u,"")}},{"es-abstract/es5":173,"function-bind":186}],199:[function(t,e,r){var n=t("function-bind"),i=t("define-properties"),o=t("./implementation"),a=t("./polyfill"),u=t("./shim"),s=n.call(Function.call,a());i(s,{getPolyfill:a,implementation:o,shim:u}),e.exports=s},{"./implementation":198,"./polyfill":200,"./shim":201,"define-properties":171,"function-bind":186}],200:[function(t,e,r){var n=t("./implementation");e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:n}},{"./implementation":198}],201:[function(t,e,r){var n=t("define-properties"),i=t("./polyfill");e.exports=function(){var t=i();return n(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t}},{"./polyfill":200,"define-properties":171}],202:[function(t,e,r){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},u={join:n,slice:n},s={spawn:n},c={lookup:n},f=t("xhr-request-promise"),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:u,child_process:s,defaultArchives:{},mimetype:c,request:f,downloadUrl:null,bytes:l,hash:h,pick:d})},{"./pick.js":203,"./swarm":205,"./swarm-hash.js":204,"eth-lib/lib/bytes":182,"xhr-request-promise":208}],203:[function(t,e,r){var n=function(c){return function(){return new Promise(function(s,t){var e,r=function(t){var o={},a=t.target.files.length,u=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"===c){var r=i.webkitRelativePath;o[r.slice(r.indexOf("/")+1)]={type:"text/plain",data:e},++u===a&&s(o)}else if("file"===c){var n=i.webkitRelativePath;s({type:mimetype.lookup(n),data:e})}else s(e)},t.readAsArrayBuffer(i)})};"directory"===c?((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")}},{}],204:[function(t,e,r){var i=t("eth-lib/lib/hash").keccak256,u=t("eth-lib/lib/bytes"),s=function(t,e){var r=u.reverse(u.pad(6,u.fromNumber(t))),n=u.flatten([r,"0x0000",e]);return i(n).slice(2)};e.exports=function t(e){"string"==typeof e&&"0x"!==e.slice(0,2)?e=u.fromString(e):"string"!=typeof e&&void 0!==e.length&&(e=u.fromUint8Array(e));var r=u.length(e);if(r<=4096)return s(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(u.slice(e,o,o+a)))}return s(r,u.flatten(i))}},{"eth-lib/lib/bytes":182,"eth-lib/lib/hash":183}],205:[function(t,e,r){e.exports=function(t){var o=t.fs,u=t.files,s=t.os,a=t.path,p=t.child_process,c=t.mimetype,f=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,"/bzzr:/").concat(t)}},b=function(e){return function(t){return l(y(e)(t),{responseType:"arraybuffer"}).then(function(t){var n,e=new Uint8Array(t);if(n=e,function(t){if(n.length!==t.length)return!1;for(var e=0,r=n.length;e<r;++e)if(n[e]!==t[e])return!1;return!0}([52,48,52,32,112,97,103,101,32,110,111,116,32,102,111,117,110,100,10]))throw"Error 404.";return e})}},v=function(r){return function(t){return function u(t){return function(a){return function(o){var e=function(t){return void 0===t.path?Promise.resolve():"application/bzz-manifest+json"===t.contentType?u(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(C(t)).entries}).then(function(t){return Promise.all(t.map(e))}).then(function(){return o})}}}(t)("")({})}},m=function(e){return function(t){return v(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 v(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 u.download(y(r)(e))(t)}}},_=function(o){return function(t){return function(i){return m(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(e){return function(t){return l("".concat(e,"/bzzr:/"),{body:"string"==typeof t?R(t):t,method:"POST"})}},x=function(s){return function(u){return function(a){return function(o){return function e(r){var t="/"===a[0]?a:"/"+a,n="".concat(s,"/bzz:/").concat(u).concat(t),i={method:"PUT",headers:{"Content-Type":o.type},body:o.data};return l(n,i).then(function(t){if(-1!==t.indexOf("error"))throw t;return t}).catch(function(t){return 0<r&&e(r-1)})}(3)}}}},k=function(e){return function(t){return S(e)({"":t})}},r=function(r){return function(e){return o.readFile(e).then(function(t){return k(r)({type:c.lookup(e),data:t})})}},S=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 x(i)(t)(r)(n[r])}));var r},Promise.resolve(t))})}},M=function(e){return function(t){return o.readFile(t).then(A(e))}},E=function(t){return function(e){return function(i){return u.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 c.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(S(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(k(e));if("directory"===t.pick)return i.directory().then(S(e));if(t.path)switch(t.kind){case"data":return M(e)(t.path);case"file":return r(e)(t.path);case"directory":return E(e)(t.defaultFile)(t.path)}else{if(t.length||"string"==typeof t)return A(e)(t);if(t instanceof Object)return S(e)(t)}return Promise.reject(new Error("Bad arguments"))}},U=function(n){return function(r){return function(e){return B(n)(r).then(function(t){return t?e?_(n)(r)(e):g(n)(r):e?w(n)(r)(e):b(n)(r)})}}},I=function(t,e){var r=s.platform().replace("win32","windows")+"-"+("x64"===s.arch()?"amd64":"386"),n=(e||f)[r],i=h+n.archive+".tar.gz",o=n.archiveMD5,a=n.binaryMD5;return u.safeDownloadArchived(i)(o)(a)(t)},O=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,u=d.ensApi,s=d.privateKey,c=0,f=r(d.binPath,["--bzzaccount",i||s,"--datadir",a,"--ens-api",u]),l=function(t){0===c&&n("Passphrase")(t)?setTimeout(function(){c=1,f.stdin.write(o+"\n")},500):n("Swarm http proxy started")(t)&&(c=2,clearTimeout(h),e(f))};f.stdout.on("data",l),f.stderr.on("data",l);var h=setTimeout(function(){return t(new Error("Couldn't start swarm process."))},2e4)})},T=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()})})},N=function(t){return A(t)("test").then(function(t){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===t}).catch(function(){return!1})},B=function(e){return function(t){return b(e)(t).then(function(t){try{return!!JSON.parse(C(t)).entries}catch(t){return!1}})}},P=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}},C=function(t){return e.toString(e.fromUint8Array(t))},R=function(t){return e.toUint8Array(e.fromString(t))},F=function(r){return{download:function(t,e){return U(r)(t)(e)},downloadData:P(b(r)),downloadDataToDisk:P(w(r)),downloadDirectory:P(g(r)),downloadDirectoryToDisk:P(_(r)),downloadEntries:P(v(r)),downloadRoutes:P(m(r)),isAvailable:function(){return N(r)},upload:function(t){return j(r)(t)},uploadData:P(A(r)),uploadFile:P(k(r)),uploadFileFromDisk:P(k(r)),uploadDataFromDisk:P(M(r)),uploadDirectory:P(S(r)),uploadDirectoryFromDisk:P(E(r)),uploadToManifest:P(x(r)),pick:i,hash:n,fromString:R,toString:C}};return{at:F,local:function(r){return function(e){return N("http://localhost:8500").then(function(t){return t?e(F("http://localhost:8500")).then(function(){}):I(r.binPath,r.archives).onData(function(t){return(r.onProgress||function(){})(t.length)}).then(function(){return O(r)}).then(function(t){return e(F("http://localhost:8500")).then(function(){return t})}).then(T)})}},download:U,downloadBinary:I,downloadData:b,downloadDataToDisk:w,downloadDirectory:g,downloadDirectoryToDisk:_,downloadEntries:v,downloadRoutes:m,isAvailable:N,startProcess:O,stopProcess:T,upload:j,uploadData:A,uploadDataFromDisk:M,uploadFile:k,uploadFileFromDisk:r,uploadDirectory:S,uploadDirectoryFromDisk:E,uploadToManifest:x,pick:i,hash:n,fromString:R,toString:C}}},{}],206:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],207:[function(t,e,r){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}},{}],208:[function(t,e,r){var i=t("xhr-request");e.exports=function(t,e){return new Promise(function(r,n){i(t,e,function(t,e){t?n(t):r(e)})})}},{"xhr-request":209}],209:[function(t,e,r){var u=t("query-string"),s=t("url-set-query"),c=t("object-assign"),f=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=c({responseType:n},e)).headers||{},o=(e.method||"GET").toUpperCase(),a=e.query;a&&("string"!=typeof a&&(a=u.stringify(a)),t=s(t,a));"json"===e.responseType&&f(i,"Accept",h);e.json&&"GET"!==o&&"HEAD"!==o&&(f(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":210,"./lib/request.js":212,"object-assign":191,"query-string":196,"url-set-query":207}],210:[function(t,e,r){e.exports=function(t,e,r){var n=e.toLowerCase();t[e]||t[n]||(t[e]=r)}},{}],211:[function(t,e,r){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}},{}],212:[function(t,e,r){var n=t("xhr"),u=t("./normalize-response"),s=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=u(i,t),o(e,e?null:r,t),o=s}),r=e.onabort;return e.onabort=function(){var t=r.apply(e,Array.prototype.slice.call(arguments));return o(new Error("XHR Aborted")),o=s,t},e}},{"./normalize-response":211,xhr:213}],213:[function(t,e,r){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 v(t,e,r){return u(e=a(t,e,r))}function u(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(s),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,o(t,y)}function t(){if(!a){var t;clearTimeout(s),t=n.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var e=y,r=null;return 0!==t?(e={body:function(){var t=void 0;if(t=u.response?u.response:u.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}(u),p)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:t,method:f,headers:{},url:c,rawRequest:u},u.getAllResponseHeaders&&(e.headers=b(u.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),o(r,e,e.body)}}var r,a,u=n.xhr||null;u||(u=n.cors||n.useXDR?new v.XDomainRequest:new v.XMLHttpRequest);var s,c=u.url=n.uri||n.url,f=u.method=n.method||"GET",l=n.body||n.data,h=u.headers=n.headers||{},d=!!n.sync,p=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:c,rawRequest:u};if("json"in n&&!1!==n.json&&(p=!0,h.accept||h.Accept||(h.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json"),l=JSON.stringify(!0===n.json?l:n.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(t,0)},u.onload=t,u.onerror=e,u.onprogress=function(){},u.onabort=function(){a=!0},u.ontimeout=e,u.open(f,c,!d,n.username,n.password),d||(u.withCredentials=!!n.withCredentials),!d&&0<n.timeout&&(s=setTimeout(function(){if(!a){a=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)}},n.timeout)),u.setRequestHeader)for(r in h)h.hasOwnProperty(r)&&u.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&&(u.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(u),u.send(l||null),u}e.exports=v,(e.exports.default=v).XMLHttpRequest=n.XMLHttpRequest||function(){},v.XDomainRequest="withCredentials"in new v.XMLHttpRequest?v.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){v["delete"===n?"del":n]=function(t,e,r){return(e=a(t,e,r)).method=n.toUpperCase(),u(e)}})},{"global/window":187,"is-function":190,"parse-headers":195,xtend:214}],214:[function(t,e,r){arguments[4][169][0].apply(r,arguments)},{dup:169}],215:[function(t,e,r){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&&ethereumProvider.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":202,underscore:206}],216:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],217:[function(t,e,r){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){return new Error("CONNECTION ERROR: Couldn't connect to node "+t+".")},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")}}},{}],218:[function(t,e,r){var n=t("underscore"),i=t("web3-utils"),o=t("web3-eth-iban"),a=function(t){return i.toBN(t).toString(10)},u=function(t){var e;if(void 0!==t)return"latest"===(e=t)||"pending"===e||"earliest"===e?t:i.isHexStrict(t)?n.isString(t)?t.toLowerCase():t:i.numberToHex(t)},s=function(e){if(e.to&&(e.to=l(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&&!i.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]=i.numberToHex(e[t])}),e},c=function(t){return null!==t.blockNumber&&(t.blockNumber=i.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=i.hexToNumber(t.transactionIndex)),t.nonce=i.hexToNumber(t.nonce),t.gas=i.hexToNumber(t.gas),t.gasPrice=a(t.gasPrice),t.value=a(t.value),t.to&&i.isAddress(t.to)?t.to=i.toChecksumAddress(t.to):t.to=null,t.from&&(t.from=i.toChecksumAddress(t.from)),t},f=function(t){if("string"==typeof t.blockHash&&"string"==typeof t.transactionHash&&"string"==typeof t.logIndex){var e=i.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=i.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=i.hexToNumber(t.transactionIndex)),null!==t.logIndex&&(t.logIndex=i.hexToNumber(t.logIndex)),t.address&&(t.address=i.toChecksumAddress(t.address)),t},l=function(t){var e=new o(t);if(e.isValid()&&e.isDirect())return e.toAddress().toLowerCase();if(i.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 this&&null==t?this.defaultBlock:"genesis"===t||"earliest"===t?"0x0":u(t)},inputBlockNumberFormatter:u,inputCallFormatter:function(t){var e=(t=s(t)).from||(this?this.defaultAccount:null);return e&&(t.from=l(e)),t},inputTransactionFormatter:function(t){if(t=s(t),!n.isNumber(t.from)&&!n.isObject(t.from)){if(t.from=t.from||(this?this.defaultAccount:null),!t.from&&!n.isNumber(t.from))throw new Error('The send transactions "from" field must be defined!');t.from=l(t.from)}return t},inputAddressFormatter:l,inputPostFormatter:function(t){return t.ttl&&(t.ttl=i.numberToHex(t.ttl)),t.workToProve&&(t.workToProve=i.numberToHex(t.workToProve)),t.priority&&(t.priority=i.numberToHex(t.priority)),n.isArray(t.topics)||(t.topics=t.topics?[t.topics]:[]),t.topics=t.topics.map(function(t){return 0===t.indexOf("0x")?t:i.fromUtf8(t)}),t},inputLogFormatter:function(t){var e=function(t){return null==t?null:0===(t=String(t)).indexOf("0x")?t:i.fromUtf8(t)};return t.fromBlock&&(t.fromBlock=u(t.fromBlock)),t.toBlock&&(t.toBlock=u(t.toBlock)),t.topics=t.topics||[],t.topics=t.topics.map(function(t){return n.isArray(t)?t.map(e):e(t)}),e=null,t.address&&(t.address=n.isArray(t.address)?t.address.map(function(t){return l(t)}):l(t.address)),t},inputSignFormatter:function(t){return i.isHexStrict(t)?t:i.utf8ToHex(t)},outputBigNumberFormatter:a,outputTransactionFormatter:c,outputTransactionReceiptFormatter:function(t){if("object"!==(void 0===t?"undefined":_typeof(t)))throw new Error("Received receipt is invalid: "+t);return null!==t.blockNumber&&(t.blockNumber=i.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=i.hexToNumber(t.transactionIndex)),t.cumulativeGasUsed=i.hexToNumber(t.cumulativeGasUsed),t.gasUsed=i.hexToNumber(t.gasUsed),n.isArray(t.logs)&&(t.logs=t.logs.map(f)),t.contractAddress&&(t.contractAddress=i.toChecksumAddress(t.contractAddress)),void 0!==t.status&&(t.status=Boolean(parseInt(t.status))),t},outputBlockFormatter:function(t){return t.gasLimit=i.hexToNumber(t.gasLimit),t.gasUsed=i.hexToNumber(t.gasUsed),t.size=i.hexToNumber(t.size),t.timestamp=i.hexToNumber(t.timestamp),null!==t.number&&(t.number=i.hexToNumber(t.number)),t.difficulty&&(t.difficulty=a(t.difficulty)),t.totalDifficulty&&(t.totalDifficulty=a(t.totalDifficulty)),n.isArray(t.transactions)&&t.transactions.forEach(function(t){if(!n.isString(t))return c(t)}),t.miner&&(t.miner=i.toChecksumAddress(t.miner)),t},outputLogFormatter:f,outputPostFormatter:function(t){return t.expiry=i.hexToNumber(t.expiry),t.sent=i.hexToNumber(t.sent),t.ttl=i.hexToNumber(t.ttl),t.workProved=i.hexToNumber(t.workProved),t.topics||(t.topics=[]),t.topics=t.topics.map(function(t){return i.toUtf8(t)}),t},outputSyncingFormatter:function(t){return t.startingBlock=i.hexToNumber(t.startingBlock),t.currentBlock=i.hexToNumber(t.currentBlock),t.highestBlock=i.hexToNumber(t.highestBlock),t.knownStates&&(t.knownStates=i.hexToNumber(t.knownStates),t.pulledStates=i.hexToNumber(t.pulledStates)),t}}},{underscore:216,"web3-eth-iban":410,"web3-utils":443}],219:[function(t,e,r){var n=t("./errors"),i=t("./formatters");e.exports={errors:n,formatters:i}},{"./errors":217,"./formatters":218}],220:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],221:[function(t,e,r){var v=t("underscore"),n=t("web3-core-helpers").errors,i=t("web3-core-helpers").formatters,m=t("web3-utils"),g=t("web3-core-promievent"),w=t("web3-core-subscriptions").subscriptions,_=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.requestManager=t.requestManager,this.accounts=t.accounts,this.defaultBlock=t.defaultBlock||"latest",this.defaultAccount=t.defaultAccount||null};_.prototype.setRequestManager=function(t,e){this.requestManager=t,e&&(this.accounts=e)},_.prototype.createFunction=function(t,e){var r=this.buildCall();return r.call=this.call,this.setRequestManager(t||this.requestManager,e||this.accounts),r},_.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},_.prototype.getCall=function(t){return v.isFunction(this.call)?this.call(t):this.call},_.prototype.extractCallback=function(t){if(v.isFunction(t[t.length-1]))return t.pop()},_.prototype.validateArgs=function(t){if(t.length!==this.params)throw n.InvalidNumberOfParams(t.length,this.params,this.name)},_.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},_.prototype.formatOutput=function(t){var e=this;return v.isArray(t)?t.map(function(t){return e.outputFormatter&&t?e.outputFormatter(t):t}):this.outputFormatter&&t?this.outputFormatter(t):t},_.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},_.prototype._confirmTransaction=function(o,a,t){var u=this,s=!1,c=!0,f=0,l=0,h=null,d="",p=v.isObject(t.params[0])&&t.params[0].gas?t.params[0].gas:null,y=v.isObject(t.params[0])&&t.params[0].data&&t.params[0].from&&!t.params[0].to,e=[new _({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:i.outputTransactionReceiptFormatter}),new _({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[i.inputAddressFormatter,i.inputDefaultBlockNumberFormatter]}),new w({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:i.outputBlockFormatter}}})],b={};v.each(e,function(t){t.attachToObject(b),t.requestManager=u.requestManager});var r=function(e,t,r,n,i){if(!r)return i||(i={unsubscribe:function(){clearInterval(h)}}),(e?g.resolve(e):b.getTransactionReceipt(a)).catch(function(t){i.unsubscribe(),s=!0,m._fireError({message:"Failed to check for transaction receipt:",data:t},o.eventEmitter,o.reject)}).then(function(t){if(!t||!t.blockHash)throw new Error("Receipt missing or blockHash null");return u.extraFormatters&&u.extraFormatters.receiptFormatter&&(t=u.extraFormatters.receiptFormatter(t)),0<o.eventEmitter.listeners("confirmation").length&&(void 0!==e&&0===l||o.eventEmitter.emit("confirmation",l,t),c=!1,25===++l&&(i.unsubscribe(),o.eventEmitter.removeAllListeners())),t}).then(function(r){if(y&&!s){if(!r.contractAddress)return c&&(i.unsubscribe(),s=!0),void m._fireError(new Error("The transaction receipt didn't contain a contract address."),o.eventEmitter,o.reject);b.getCode(r.contractAddress,function(t,e){e&&(2<e.length?(o.eventEmitter.emit("receipt",r),u.extraFormatters&&u.extraFormatters.contractDeployFormatter?o.resolve(u.extraFormatters.contractDeployFormatter(r)):o.resolve(r),c&&o.eventEmitter.removeAllListeners()):m._fireError(new Error("The contract code couldn't be stored, please check your gas limit."),o.eventEmitter,o.reject),c&&i.unsubscribe(),s=!0)})}return r}).then(function(t){y||s||(t.outOfGas||p&&p===t.gasUsed||!0!==t.status&&"0x1"!==t.status&&void 0!==t.status?(d=JSON.stringify(t,null,2),!1===t.status||"0x0"===t.status?m._fireError(new Error("Transaction has been reverted by the EVM:\n"+d),o.eventEmitter,o.reject):m._fireError(new Error("Transaction ran out of gas. Please provide more gas:\n"+d),o.eventEmitter,o.reject)):(o.eventEmitter.emit("receipt",t),o.resolve(t),c&&o.eventEmitter.removeAllListeners()),c&&i.unsubscribe(),s=!0)}).catch(function(){f++,t?750<=f-1&&(i.unsubscribe(),s=!0,m._fireError(new Error("Transaction was not mined within750 seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),o.eventEmitter,o.reject)):50<=f-1&&(i.unsubscribe(),s=!0,m._fireError(new Error("Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),o.eventEmitter,o.reject))});i.unsubscribe(),s=!0,m._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:r},o.eventEmitter,o.reject)},n=function(t){v.isFunction(this.requestManager.provider.on)?b.subscribe("newBlockHeaders",r.bind(null,t,!1)):h=setInterval(r.bind(null,t,!0),1e3)}.bind(this);b.getTransactionReceipt(a).then(function(t){t&&t.blockHash?(0<o.eventEmitter.listeners("confirmation").length&&n(t),r(t,!1)):s||n()}).catch(function(){s||n()})};var c=function(t,e){return v.isNumber(t)?e.wallet[t]:v.isObject(t)&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};_.prototype.buildCall=function(){var i=this,o="eth_sendTransaction"===i.call||"eth_sendRawTransaction"===i.call,t=function(){var a=g(!o),r=i.toPayload(Array.prototype.slice.call(arguments)),u=function(e,t){try{t=i.formatOutput(t)}catch(t){e=t}if(t instanceof Error&&(e=t),e)return e.error&&(e=e.error),m._fireError(e,a.eventEmitter,a.reject,r.callback);r.callback&&r.callback(null,t),o?(a.eventEmitter.emit("transactionHash",t),i._confirmTransaction(a,t,r)):e||a.resolve(t)},s=function(t){var e=v.extend({},r,{method:"eth_sendRawTransaction",params:[t.rawTransaction]});i.requestManager.send(e,u)},n=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=c(v.isObject(n)?n.from:null,e.accounts))&&r.privateKey)return e.accounts.signTransaction(v.omit(n,"from"),r.privateKey).then(s)}else if("eth_sign"===t.method){var i=t.params[1];if((r=c(t.params[0],e.accounts))&&r.privateKey){var o=e.accounts.sign(i,r.privateKey);return t.callback&&t.callback(null,o.signature),void a.resolve(o.signature)}}return e.requestManager.send(t,u)};o&&v.isObject(r.params[0])&&void 0===r.params[0].gasPrice?new _({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(i.requestManager)(function(t,e){e&&(r.params[0].gasPrice=e),n(r,i)}):n(r,i);return a.eventEmitter};return t.method=i,t.request=this.request.bind(this),t},_.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},e.exports=_},{underscore:220,"web3-core-helpers":219,"web3-core-promievent":226,"web3-core-subscriptions":234,"web3-utils":443}],222:[function(t,e,r){e.exports=t("./register")().Promise},{"./register":224}],223:[function(t,e,r){var o="@@any-promise/REGISTRATION",a=null;e.exports=function(n,i){return function(t,e){t=t||null;var r=!1!==(e=e||{}).global;if(null===a&&r&&(a=n[o]||null),null!==a&&null!==t&&a.implementation!==t)throw new Error('any-promise already defined as "'+a.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===a&&(a=null!==t&&void 0!==e.Promise?{Promise:e.Promise,implementation:t}:i(t),r&&(n[o]=a)),a}}},{}],224:[function(t,e,r){e.exports=t("./loader")(window,function(){if(void 0!==window.Promise)return{Promise:window.Promise,implementation:"window.Promise"};throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')")})},{"./loader":223}],225:[function(t,e,r){var n=Object.prototype.hasOwnProperty,d="~";function i(){}function u(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 u(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 c(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 u,s,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,n),!0;case 5:return c.fn.call(c.context,e,r,n,i),!0;case 6:return c.fn.call(c.context,e,r,n,i,o),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var l,h=c.length;for(s=0;s<h;s++)switch(c[s].once&&this.removeListener(t,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,e);break;case 3:c[s].fn.call(c[s].context,e,r);break;case 4:c[s].fn.call(c[s].context,e,r,n);break;default:if(!u)for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c[s].fn.apply(c[s].context,u)}}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 c(this,i),this;var o=this._events[i];if(o.fn)o.fn!==e||n&&!o.once||r&&o.context!==r||c(this,i);else{for(var a=0,u=[],s=o.length;a<s;a++)(o[a].fn!==e||n&&!o[a].once||r&&o[a].context!==r)&&u.push(o[a]);u.length?this._events[i]=1===u.length?u[0]:u:c(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=d?d+t:t,this._events[e]&&c(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)},{}],226:[function(t,e,r){var o=t("eventemitter3"),a=t("any-promise"),n=function(t){var e,r,n=new a(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},{"any-promise":222,eventemitter3:225}],227:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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){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":231,"web3-core-helpers":219}],229:[function(t,e,r){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},{}],230:[function(t,e,r){var n=t("underscore"),i=t("web3-core-helpers").errors,o=t("./jsonrpc.js"),a=t("./batch.js"),u=t("./givenProvider.js"),s=function t(e){this.provider=null,this.providers=t.providers,this.setProvider(e),this.subscriptions={}};s.givenProvider=u,s.providers={WebsocketProvider:t("web3-providers-ws"),HttpProvider:t("web3-providers-http"),IpcProvider:t("web3-providers-ipc")},s.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"===(void 0===e?"undefined":_typeof(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[t.params.subscription]&&r.subscriptions[t.params.subscription].callback&&r.subscriptions[t.params.subscription].callback(null,t.params.result)})},s.prototype.send=function(t,r){if(r=r||function(){},!this.provider)return r(i.InvalidProvider());var n=o.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(i.ErrorResponse(e)):o.isValidResponse(e)?void r(null,e.result):r(i.InvalidResponse(e))})},s.prototype.sendBatch=function(t,r){if(!this.provider)return r(i.InvalidProvider());var e=o.toBatchPayload(t);this.provider[this.provider.sendAsync?"sendAsync":"send"](e,function(t,e){return t?r(t):n.isArray(e)?void r(null,e):r(i.InvalidResponse(e))})},s.prototype.addSubscription=function(t,e,r,n){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions[t]={callback:n,type:r,name:e}},s.prototype.removeSubscription=function(t,e){this.subscriptions[t]&&(this.send({method:this.subscriptions[t].type+"_unsubscribe",params:[t]},e),delete this.subscriptions[t])},s.prototype.clearSubscriptions=function(e){var r=this;Object.keys(this.subscriptions).forEach(function(t){e&&"syncing"===r.subscriptions[t].name||r.removeSubscription(t)}),this.provider.reset&&this.provider.reset()},e.exports={Manager:s,BatchManager:a}},{"./batch.js":228,"./givenProvider.js":229,"./jsonrpc.js":231,underscore:227,"web3-core-helpers":219,"web3-providers-http":423,"web3-providers-ipc":426,"web3-providers-ws":428}],231:[function(t,e,r){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},{}],232:[function(t,e,r){arguments[4][225][0].apply(r,arguments)},{dup:225}],233:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],234:[function(t,e,r){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":235}],235:[function(t,e,r){var o=t("underscore"),n=t("web3-core-helpers").errors,i=t("eventemitter3");function a(t){i.call(this),this.id=null,this.callback=o.identity,this.arguments=null,this._reconnectIntervalId=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}((a.prototype=Object.create(i.prototype)).constructor=a).prototype._extractCallback=function(t){if(o.isFunction(t[t.length-1]))return t.pop()},a.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+1,t[0])},a.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},a.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},a.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}},a.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.removeAllListeners(),clearInterval(this._reconnectIntervalId)},a.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){var e=new Error("No provider set.");return this.callback(e,null,this),this.emit("error",e),this}if(this.options.requestManager.provider.on)return 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)&&this.options.requestManager.send({method:"eth_getLogs",params:[n.params[1]]},function(t,e){t?(r.callback(t,null,r),r.emit("error",t)):e.forEach(function(t){var e=r._formatOutput(t);r.callback(null,e,r),r.emit("data",e)})}),"object"===_typeof(n.params[1])&&delete n.params[1].fromBlock,this.options.requestManager.send(n,function(t,e){!t&&e?(r.id=e,r.options.requestManager.addSubscription(r.id,n.params[0],r.options.type,function(t,e){t?(r.options.requestManager.removeSubscription(r.id),r.options.requestManager.provider.once&&(r._reconnectIntervalId=setInterval(function(){r.options.requestManager.provider.reconnect&&r.options.requestManager.provider.reconnect()},500),r.options.requestManager.provider.once("connect",function(){clearInterval(r._reconnectIntervalId),r.subscribe(r.callback)})),r.emit("error",t),r.callback(t,null,r)):(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)}))})):(r.callback(t,null,r),r.emit("error",t))}),this;var i=new Error("The current provider doesn't support subscriptions: "+this.options.requestManager.provider.constructor.name);return this.callback(i,null,this),this.emit("error",i),this},e.exports=a},{eventemitter3:232,underscore:233,"web3-core-helpers":219}],236:[function(t,e,r){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":219,"web3-core-method":221,"web3-utils":443}],237:[function(t,e,r){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=new n.Manager(t[0].currentProvider):(r._requestManager=new n.Manager,r._requestManager.setProvider(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.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":236,"web3-core-requestmanager":230}],238:[function(x,t,e){!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 v(t,e,r){if(v.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"===(void 0===t?"undefined":_typeof(t))?t.exports=v:e.BN=v,(v.BN=v).wordSize=26;try{n=x("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 u=t.charCodeAt(a)-48;i*=n,i+=49<=u?u-49+10:17<=u?u-17+10:u}return i}v.isBN=function(t){return t instanceof v||null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&t.constructor.wordSize===v.wordSize&&Array.isArray(t.words)},v.max=function(t,e){return 0<t.cmp(e)?t:e},v.min=function(t,e){return t.cmp(e)<0?t:e},v.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===(void 0===t?"undefined":_typeof(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)},v.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)},v.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()},v.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()},v.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,u=Math.min(o,o-a)+r,s=0,c=r;c<u;c+=n)s=l(t,c,c+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var f=1;for(s=l(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},v.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},v.prototype.clone=function(){var t=new v(null);return this.copy(t),t},v.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},v.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},v.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},v.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,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var c=1;c<n;c++){for(var f=s>>>26,l=67108863&s,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,s=0|f}return 0!==s?r.words[c]=0|s:r.length--,r.strip()}v.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],u=(16777215&(a<<n|i)).toString(16);r=0!==(i=a>>>24-n&16777215)||o!==this.length-1?h[6-u.length]+u+r:u+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 s=d[t],c=p[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(c).toString(t);r=(f=f.idivn(c)).isZero()?l+r:h[s-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")},v.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},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(t,e){return b(void 0!==n),this.toArrayLike(n,t,e)},v.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},v.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,u="le"===e,s=new t(i),c=this.clone();if(u){for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),s[a]=o;for(;a<i;a++)s[a]=0}else{for(a=0;a<i-n;a++)s[a]=0;for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),s[i-a-1]=o}return s},v.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},v.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},v.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},v.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},v.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},v.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},v.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},v.prototype.isNeg=function(){return 0!==this.negative},v.prototype.neg=function(){return this.clone().ineg()},v.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},v.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()},v.prototype.ior=function(t){return b(0==(this.negative|t.negative)),this.iuor(t)},v.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},v.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},v.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()},v.prototype.iand=function(t){return b(0==(this.negative|t.negative)),this.iuand(t)},v.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},v.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},v.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()},v.prototype.ixor=function(t){return b(0==(this.negative|t.negative)),this.iuxor(t)},v.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},v.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},v.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()},v.prototype.notn=function(t){return this.clone().inotn(t)},v.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()},v.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},v.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)},v.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()},v.prototype.sub=function(t){return this.clone().isub(t)};var o=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,c=0,f=0|a[0],l=8191&f,h=f>>>13,d=0|a[1],p=8191&d,y=d>>>13,b=0|a[2],v=8191&b,m=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,A=0|a[4],x=8191&A,k=A>>>13,S=0|a[5],M=8191&S,E=S>>>13,j=0|a[6],U=8191&j,I=j>>>13,O=0|a[7],T=8191&O,N=O>>>13,B=0|a[8],P=8191&B,C=B>>>13,R=0|a[9],F=8191&R,L=R>>>13,q=0|u[0],D=8191&q,z=q>>>13,H=0|u[1],K=8191&H,$=H>>>13,V=0|u[2],W=8191&V,G=V>>>13,X=0|u[3],J=8191&X,Z=X>>>13,Y=0|u[4],Q=8191&Y,tt=Y>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ct=ut>>>13,ft=0|u[8],lt=8191&ft,ht=ft>>>13,dt=0|u[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(c+(n=Math.imul(l,D))|0)+((8191&(i=(i=Math.imul(l,z))+Math.imul(h,D)|0))<<13)|0;c=((o=Math.imul(h,z))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,D),i=(i=Math.imul(p,z))+Math.imul(y,D)|0,o=Math.imul(y,z);var vt=(c+(n=n+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,$)|0)+Math.imul(h,K)|0))<<13)|0;c=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,D),i=(i=Math.imul(v,z))+Math.imul(m,D)|0,o=Math.imul(m,z),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,$)|0;var mt=(c+(n=n+Math.imul(l,W)|0)|0)+((8191&(i=(i=i+Math.imul(l,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(w,D),i=(i=Math.imul(w,z))+Math.imul(_,D)|0,o=Math.imul(_,z),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0;var gt=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(x,D),i=(i=Math.imul(x,z))+Math.imul(k,D)|0,o=Math.imul(k,z),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,$)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|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=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(M,D),i=(i=Math.imul(M,z))+Math.imul(E,D)|0,o=Math.imul(E,z),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,$)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,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=(c+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(U,D),i=(i=Math.imul(U,z))+Math.imul(I,D)|0,o=Math.imul(I,z),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,G)|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(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,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=(c+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(T,D),i=(i=Math.imul(T,z))+Math.imul(N,D)|0,o=Math.imul(N,z),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,$)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,$)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(x,J)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,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(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,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 xt=(c+(n=n+Math.imul(l,st)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(h,st)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(P,D),i=(i=Math.imul(P,z))+Math.imul(C,D)|0,o=Math.imul(C,z),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,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(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,ct)|0;var kt=(c+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ht)|0)+Math.imul(h,lt)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(F,D),i=(i=Math.imul(F,z))+Math.imul(L,D)|0,o=Math.imul(L,z),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,$)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(U,J)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(k,rt)|0,o=o+Math.imul(k,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(v,st)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ct)|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 St=(c+(n=n+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,K),i=(i=Math.imul(F,$))+Math.imul(L,K)|0,o=Math.imul(L,$),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,st)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Mt=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(F,W),i=(i=Math.imul(F,G))+Math.imul(L,W)|0,o=Math.imul(L,G),n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,ct)|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 Et=(c+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,yt)|0)+Math.imul(m,pt)|0))<<13)|0;c=((o=o+Math.imul(m,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,Z))+Math.imul(L,J)|0,o=Math.imul(L,Z),n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(E,st)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(x,lt)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(k,lt)|0,o=o+Math.imul(k,ht)|0;var jt=(c+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,yt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(F,Q),i=(i=Math.imul(F,tt))+Math.imul(L,Q)|0,o=Math.imul(L,tt),n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(U,st)|0,i=(i=i+Math.imul(U,ct)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,ct)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(E,lt)|0,o=o+Math.imul(E,ht)|0;var Ut=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(F,rt),i=(i=Math.imul(F,nt))+Math.imul(L,rt)|0,o=Math.imul(L,nt),n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(U,lt)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(I,lt)|0,o=o+Math.imul(I,ht)|0;var It=(c+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,yt)|0)+Math.imul(E,pt)|0))<<13)|0;c=((o=o+Math.imul(E,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(F,ot),i=(i=Math.imul(F,at))+Math.imul(L,ot)|0,o=Math.imul(L,at),n=n+Math.imul(P,st)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,st)|0,o=o+Math.imul(C,ct)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(N,lt)|0,o=o+Math.imul(N,ht)|0;var Ot=(c+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,yt)|0)+Math.imul(I,pt)|0))<<13)|0;c=((o=o+Math.imul(I,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,st),i=(i=Math.imul(F,ct))+Math.imul(L,st)|0,o=Math.imul(L,ct),n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ht)|0;var Tt=(c+(n=n+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,lt),i=(i=Math.imul(F,ht))+Math.imul(L,lt)|0,o=Math.imul(L,ht);var Nt=(c+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Bt=(c+(n=Math.imul(F,pt))|0)+((8191&(i=(i=Math.imul(F,yt))+Math.imul(L,pt)|0))<<13)|0;return c=((o=Math.imul(L,yt))+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,s[0]=bt,s[1]=vt,s[2]=mt,s[3]=gt,s[4]=wt,s[5]=_t,s[6]=At,s[7]=xt,s[8]=kt,s[9]=St,s[10]=Mt,s[11]=Et,s[12]=jt,s[13]=Ut,s[14]=It,s[15]=Ot,s[16]=Tt,s[17]=Nt,s[18]=Bt,0!==c&&(s[19]=c,r.length++),r};function u(t,e,r){return(new s).mulp(t,e,r)}function s(t,e){this.x=t,this.y=e}Math.imul||(o=i),v.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 u=67108863&n,s=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=s;c++){var f=o-c,l=(0|t.words[f])*(0|e.words[c]),h=67108863&l;u=67108863&(h=h+u|0),i+=(a=(a=a+(l/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):u(this,t,e)},s.prototype.makeRBT=function(t){for(var e=new Array(t),r=v.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},s.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},s.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]]},s.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 u=a<<1,s=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),f=0;f<i;f+=u)for(var l=s,h=c,d=0;d<a;d++){var p=r[f+d],y=n[f+d],b=r[f+d+a],v=n[f+d+a],m=l*b-h*v;v=l*v+h*b,b=m,r[f+d]=p+b,n[f+d]=y+v,r[f+d+a]=p-b,n[f+d+a]=y-v,d!==u&&(m=s*l-c*h,h=s*h+c*l,l=m)}},s.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},s.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}},s.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},s.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))},s.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},s.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),u=new Array(n),s=new Array(n),c=new Array(n),f=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,c,n),this.transform(a,o,u,s,n,i),this.transform(c,o,f,l,n,i);for(var d=0;d<n;d++){var p=u[d]*f[d]-s[d]*l[d];s[d]=u[d]*l[d]+s[d]*f[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,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()},v.prototype.mul=function(t){var e=new v(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},v.prototype.mulf=function(t){var e=new v(null);return e.words=new Array(this.length+t.length),u(this,t,e)},v.prototype.imul=function(t){return this.clone().mulTo(t,this)},v.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},v.prototype.muln=function(t){return this.clone().imuln(t)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.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 v(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},v.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,u=(0|this.words[e])-a<<r;this.words[e]=u|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()},v.prototype.ishln=function(t){return b(0===this.negative),this.iushln(t)},v.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,u=r;if(n-=o,n=Math.max(0,n),u){for(var s=0;s<o;s++)u.words[s]=this.words[s];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var c=0;for(s=this.length-1;0<=s&&(0!==c||n<=s);s--){var f=0|this.words[s];this.words[s]=c<<26-i|f>>>i,c=f&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(t,e,r){return b(0===this.negative),this.iushrn(t,e,r)},v.prototype.shln=function(t){return this.clone().ishln(t)},v.prototype.ushln=function(t){return this.clone().iushln(t)},v.prototype.shrn=function(t){return this.clone().ishrn(t)},v.prototype.ushrn=function(t){return this.clone().iushrn(t)},v.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)},v.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()},v.prototype.maskn=function(t){return this.clone().imaskn(t)},v.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)},v.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},v.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()},v.prototype.addn=function(t){return this.clone().iaddn(t)},v.prototype.subn=function(t){return this.clone().isubn(t)},v.prototype.iabs=function(){return this.negative=0,this},v.prototype.abs=function(){return this.clone().iabs()},v.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 u=(0|t.words[n])*e;a=((i-=67108863&u)>>26)-(u/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()},v.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,u=n.length-i.length;if("mod"!==e){(a=new v(null)).length=u+1,a.words=new Array(a.length);for(var s=0;s<a.length;s++)a.words[s]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var f=u-1;0<=f;f--){var l=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,f);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);a&&(a.words[f]=l)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},v.prototype.divmod=function(t,e,r){return b(!t.isZero()),this.isZero()?{div:new v(0),mod:new v(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 v(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new v(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new v(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,i,o},v.prototype.div=function(t){return this.divmod(t,"div",!1).div},v.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},v.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},v.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)},v.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},v.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()},v.prototype.divn=function(t){return this.clone().idivn(t)},v.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 v(1),i=new v(0),o=new v(0),a=new v(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var s=r.clone(),c=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0<f)for(e.iushrn(f);0<f--;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(c)),n.iushrn(1),i.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(0<h)for(r.iushrn(h);0<h--;)(o.isOdd()||a.isOdd())&&(o.iadd(s),a.isub(c)),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(u)}},v.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 v(1),o=new v(0),a=r.clone();0<e.cmpn(1)&&0<r.cmpn(1);){for(var u=0,s=1;0==(e.words[0]&s)&&u<26;++u,s<<=1);if(0<u)for(e.iushrn(u);0<u--;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var c=0,f=1;0==(r.words[0]&f)&&c<26;++c,f<<=1);if(0<c)for(r.iushrn(c);0<c--;)o.isOdd()&&o.iadd(a),o.iushrn(1);0<=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},v.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)},v.prototype.invm=function(t){return this.egcd(t).a.umod(t)},v.prototype.isEven=function(){return 0==(1&this.words[0])},v.prototype.isOdd=function(){return 1==(1&this.words[0])},v.prototype.andln=function(t){return this.words[0]&t},v.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},v.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},v.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},v.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},v.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},v.prototype.gtn=function(t){return 1===this.cmpn(t)},v.prototype.gt=function(t){return 1===this.cmp(t)},v.prototype.gten=function(t){return 0<=this.cmpn(t)},v.prototype.gte=function(t){return 0<=this.cmp(t)},v.prototype.ltn=function(t){return-1===this.cmpn(t)},v.prototype.lt=function(t){return-1===this.cmp(t)},v.prototype.lten=function(t){return this.cmpn(t)<=0},v.prototype.lte=function(t){return this.cmp(t)<=0},v.prototype.eqn=function(t){return 0===this.cmpn(t)},v.prototype.eq=function(t){return 0===this.cmp(t)},v.red=function(t){return new _(t)},v.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)},v.prototype.fromRed=function(){return b(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(t){return this.red=t,this},v.prototype.forceRed=function(t){return b(!this.red,"Already a number in reduction context"),this._forceRed(t)},v.prototype.redAdd=function(t){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},v.prototype.redIAdd=function(t){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},v.prototype.redSub=function(t){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},v.prototype.redISub=function(t){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},v.prototype.redShl=function(t){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},v.prototype.redMul=function(t){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},v.prototype.redIMul=function(t){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},v.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(t){return b(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var c={k256:null,p224:null,p192:null,p25519:null};function f(t,e){this.name=t,this.p=new v(e,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=v._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 v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f.prototype._tmp=function(){var t=new v(null);return t.words=new Array(Math.ceil(this.n/13)),t},f.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},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},r(y,f),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(m,f),r(g,f),r(w,f),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},v._prime=function(t){if(c[t])return c[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new m;else if("p192"===t)e=new g;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return c[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 v(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 v(1).toRed(this),a=o.redNeg(),u=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new v(2*s*s).toRed(this);0!==this.pow(s,u).cmp(a);)s.redIAdd(a);for(var c=this.pow(s,n),f=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(c,new v(1).iushln(h-p-1));f=f.redMul(y),c=y.redSqr(),l=l.redMul(c),h=p}return f},_.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 v(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new v(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,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;0<=n;n--){for(var s=e.words[n],c=u-1;0<=c;c--){var f=s>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[o]),o=a=0)):a=0}u=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},v.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 v(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,this)},{buffer:17}],239:[function(t,e,r){var n,i=this&&this.__extends||(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=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(r,"__esModule",{value:!0});var a=t("./address"),u=t("./bignumber"),s=t("./bytes"),c=t("./utf8"),f=t("./properties"),l=o(t("./errors")),h=new RegExp(/^bytes([0-9]*)$/),d=new RegExp(/^(u?int)([0-9]*)$/),p=new RegExp(/^(.*)\[([0-9]*)\]$/);r.defaultCoerceFunc=function(t,e){var r=t.match(d);return r&&parseInt(r[2])<=48?e.toNumber():e};var y=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),b=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 m(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 u=i;(i=i.parent)||r(o),delete u.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 s={type:"",name:"",parent:i.parent,state:{allowType:!0}};i.parent.components.push(s),delete i.parent,i=s;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 g(t){return L(r.defaultCoerceFunc,t).type}r.parseParamType=function(t){return m(t,!0)},r.formatParamType=g,r.formatSignature=function(t){return t.name+"("+t.inputs.map(function(t){return g(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(y);if(!r)throw new Error("invalid event: "+t);if(e.name=r[1].trim(),R(r[2]).forEach(function(t){(t=m(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(b))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(y);if(!n)throw new Error("invalid signature");if(e.name=n[1].trim(),!e.name.match(b))throw new Error('invalid identifier: "'+n[1]+'"');if(R(n[2]).forEach(function(t){e.inputs.push(m(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(y);if(""!=i[1].trim()||""!=i[3].trim())throw new Error("unexpected tokens");R(i[2]).forEach(function(t){e.outputs.push(m(t))})}return e}(t.trim()));throw new Error("unknown signature")};var w=function(t,e,r,n,i){this.coerceFunc=t,this.name=e,this.type=r,this.localName=n,this.dynamic=i},_=function(r){function t(t){var e=r.call(this,t.coerceFunc,t.name,t.type,void 0,t.dynamic)||this;return f.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}(w),A=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 s.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}(w),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=u.bigNumberify(e);return t=t.toTwos(8*this.size).maskn(8*this.size),this.signed&&(t=t.fromTwos(8*this.size).toTwos(256)),s.padZeros(s.arrayify(t),32)}catch(t){l.throwError("invalid number value",l.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:e})}return null},t.prototype.decode=function(t,e){t.length<e+32&&l.throwError("insufficient data for "+this.name+" type",l.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:s.hexlify(t.slice(e,e+32))});var r=32-this.size,n=u.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}(w),k=new x(function(t,e){return e},32,!1,"none"),S=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 k.encode(t?1:0)},t.prototype.decode=function(t,e){try{var r=k.decode(t,e)}catch(t){throw"insufficient data for uint256 type"===t.reason&&l.throwError("insufficient data for boolean type",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"boolean",value:t.value}),t}return{consumed:r.consumed,value:this.coerceFunc("bool",!r.value.isZero())}},t}(w),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=s.arrayify(e);if(32<r.length)throw new Error;t.set(r)}catch(t){l.throwError("invalid "+this.name+" value",l.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&&l.throwError("insufficient data for "+name+" type",l.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:s.hexlify(t.slice(e,e+32))}),{consumed:32,value:this.coerceFunc(this.name,s.hexlify(t.slice(e,e+this.length)))}},t}(w),E=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(s.arrayify(a.getAddress(e)),12)}catch(t){l.throwError("invalid address",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"address",value:e})}return t},t.prototype.decode=function(t,e){return t.length<e+32&&l.throwError("insufficuent data for address type",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"address",value:s.hexlify(t.slice(e,e+32))}),{consumed:32,value:this.coerceFunc("address",a.getAddress(s.hexlify(t.slice(e+12,e+32))))}},t}(w);function j(t){var e=32*Math.ceil(t.length/32),r=new Uint8Array(e-t.length);return s.concat([k.encode(t.length),t,r])}function U(t,e,r){t.length<e+32&&l.throwError("insufficient data for dynamicBytes length",l.INVALID_ARGUMENT,{arg:r,coderType:"dynamicBytes",value:s.hexlify(t.slice(e,e+32))});var n=k.decode(t,e).value;try{n=n.toNumber()}catch(t){l.throwError("dynamic bytes count too large",l.INVALID_ARGUMENT,{arg:r,coderType:"dynamicBytes",value:n.toString()})}return t.length<e+32+n&&l.throwError("insufficient data for dynamicBytes type",l.INVALID_ARGUMENT,{arg:r,coderType:"dynamicBytes",value:s.hexlify(t.slice(e,e+32+n))}),{consumed:32+32*Math.ceil(n/32),value:t.slice(e+32,e+32+n)}}var I=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 j(s.arrayify(t))}catch(t){l.throwError("invalid bytes value",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"bytes",value:t.value})}return null},t.prototype.decode=function(t,e){var r=U(t,e,this.localName);return r.value=this.coerceFunc("bytes",s.hexlify(r.value)),r},t}(w),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&&l.throwError("invalid string value",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"string",value:t}),j(c.toUtf8Bytes(t))},t.prototype.decode=function(t,e){var r=U(t,e,this.localName);return r.value=this.coerceFunc("string",c.toUtf8String(r.value)),r},t}(w);function T(t){return 32*Math.ceil(t/32)}function N(t,r){if(Array.isArray(r));else if(r&&"object"===(void 0===r?"undefined":_typeof(r))){var e=[];t.forEach(function(t){e.push(r[t.localName])}),r=e}else l.throwError("invalid tuple value",l.INVALID_ARGUMENT,{coderType:"tuple",value:r});t.length!==r.length&&l.throwError("types/value length mismatch",l.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+=T(t.value.length)):i+=T(t.value.length)});var a=0,u=i,s=new Uint8Array(i+o);return n.forEach(function(t){t.dynamic?(s.set(k.encode(u),a),a+=32,s.set(t.value,u),u+=T(t.value.length)):(s.set(t.value,a),a+=T(t.value.length))}),s}function B(t,n,i){var o=i,a=0,u=[];return t.forEach(function(t){if(t.dynamic){var e=k.decode(n,i);(r=t.decode(n,o+e.value.toNumber())).consumed=e.consumed}else var r=t.decode(n,i);null!=r.value&&u.push(r.value),i+=r.consumed,a+=r.consumed}),t.forEach(function(t,e){var r=t.localName;r&&("length"===r&&(r="_length"),null==u[r]&&(u[r]=u[e]))}),{value:u,consumed:a}}var P=function(u){function t(t,e,r,n){var i=this,o=e.type+"["+(0<=r?r:"")+"]",a=-1===r||e.dynamic;return(i=u.call(this,t,"array",o,n,a)||this).coder=e,i.length=r,i}return i(t,u),t.prototype.encode=function(t){Array.isArray(t)||l.throwError("expected array value",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t});var e=this.length,r=new Uint8Array(0);-1===e&&(e=t.length,r=k.encode(e)),l.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 s.concat([r,N(n,t)])},t.prototype.decode=function(t,e){var r=0,n=this.length;if(-1===n){try{var i=k.decode(t,e)}catch(t){l.throwError("insufficient data for dynamic array length",l.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t.value})}try{n=i.value.toNumber()}catch(t){l.throwError("array count too large",l.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 _(this.coder));var u=B(o,t,e);return u.consumed+=r,u.value=this.coerceFunc(this.type,u.value),u},t}(w),C=function(u){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=u.call(this,t,"tuple",a,r,i)||this).coders=e,n}return i(t,u),t.prototype.encode=function(t){return N(this.coders,t)},t.prototype.decode=function(t,e){var r=B(this.coders,t,e);return r.value=this.coerceFunc(this.type,r.value),r},t}(w);function R(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:E,bool:S,string:O,bytes:I};function L(t,e){var r,n=F[e.type];if(n)return new n(t,e.name);if(r=e.type.match(d))return(0===(i=parseInt(r[2]||"256"))||256<i||i%8!=0)&&l.throwError("invalid "+r[1]+" bit length",l.INVALID_ARGUMENT,{arg:"param",value:e}),new x(t,i/8,"int"===r[1],e.name);if(r=e.type.match(h))return(0===(i=parseInt(r[1]))||32<i)&&l.throwError("invalid bytes length",l.INVALID_ARGUMENT,{arg:"param",value:e}),new M(t,i,e.name);if(r=e.type.match(p)){var i=parseInt(r[2]||"-1");return(e=f.jsonCopy(e)).type=r[1],new P(t,L(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(L(e,t))}),new C(e,n,r)}(t,e.components,e.name):""===e.type?new A(t,e.name):(l.throwError("invalid type",l.INVALID_ARGUMENT,{arg:"type",value:e.type}),null)}var q=function(){function e(t){l.checkNew(this,e),t||(t=r.defaultCoerceFunc),f.defineReadOnly(this,"coerceFunc",t)}return e.prototype.encode=function(t,e){t.length!==e.length&&l.throwError("types/values length mismatch",l.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?m(t):t,r.push(L(this.coerceFunc,e))},this),s.hexlify(new C(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?m(t):f.jsonCopy(t),r.push(L(this.coerceFunc,e))},this),new C(this.coerceFunc,r,"_").decode(s.arrayify(e),0).value},e}();r.AbiCoder=q,r.defaultAbiCoder=new q},{"./address":240,"./bignumber":241,"./bytes":242,"./errors":243,"./properties":245,"./utf8":248}],240:[function(t,e,r){var n=this&&this.__importDefault||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"),u=t("./rlp"),s=t("./errors");function c(t){"string"==typeof t&&t.match(/^0x[0-9A-Fa-f]{40}$/)||s.throwError("invalid address",s.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 f={},l=0;l<10;l++)f[String(l)]=String(l);for(l=0;l<26;l++)f[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+=f[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&&s.throwError("invalid address",s.INVALID_ARGUMENT,{arg:"address",value:t}),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=c(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&s.throwError("bad address checksum",s.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)&&s.throwError("bad icap checksum",s.INVALID_ARGUMENT,{arg:"address",value:t}),e=new i.default.BN(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=c("0x"+e)}else s.throwError("invalid address",s.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(u.encode([y(t.from),o.stripZeros(o.hexlify(e))])).substring(26))}},{"./bytes":242,"./errors":243,"./keccak256":244,"./rlp":246,"bn.js":238}],241:[function(t,e,r){var n,i=this&&this.__extends||(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=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(r,"__esModule",{value:!0});var u=o(t("bn.js")),s=t("./bytes"),c=t("./properties"),f=t("./types"),l=a(t("./errors")),h=new u.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 v(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)s.isHexString(t)?("0x"==t&&(t="0x0"),c.defineReadOnly(e,"_hex",t)):"-"===t[0]&&s.isHexString(t.substring(1))?c.defineReadOnly(e,"_hex",t):t.match(/^-?[0-9]*$/)?(""==t&&(t="0"),c.defineReadOnly(e,"_hex",d(new u.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{c.defineReadOnly(e,"_hex",d(new u.default.BN(t)))}catch(t){l.throwError("overflow",l.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:t.message})}}else t instanceof n?c.defineReadOnly(e,"_hex",t._hex):t.toHexString?c.defineReadOnly(e,"_hex",d(p(t.toHexString()))):s.isArrayish(t)?c.defineReadOnly(e,"_hex",d(new u.default.BN(s.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 u.default.BN(this._hex.substring(3),16).mul(h):new u.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 v(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}(f.BigNumber);function v(t){return t instanceof b?t:new b(t)}r.bigNumberify=v,r.ConstantNegativeOne=v(-1),r.ConstantZero=v(0),r.ConstantOne=v(1),r.ConstantTwo=v(2),r.ConstantWeiPerEther=v("1000000000000000000")},{"./bytes":242,"./errors":243,"./properties":245,"./types":247,"bn.js":238}],242:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./types"),u=t("./errors");function a(t){return t instanceof n.BigNumber}function s(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 c(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 f(t){if(null==t&&u.throwError("cannot convert null value to array",u.INVALID_ARGUMENT,{arg:"value",value:t}),a(t)&&(t=t.toHexString()),"string"!=typeof t)return c(t)?s(new Uint8Array(t)):(u.throwError("invalid arrayify value",null,{arg:"value",value:t,type:void 0===t?"undefined":_typeof(t)}),null);var e=t.match(/^(0x)?[0-9a-fA-F]*$/);e||u.throwError("invalid hexidecimal string",u.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==e[1]&&u.throwError("hex string must have 0x prefix",u.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 s(new Uint8Array(r))}function i(t){for(var e=[],r=0,n=0;n<t.length;n++){var i=f(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 s(o)}function o(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=c,r.arrayify=f,r.concat=i,r.stripZeros=function(t){var e=f(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=f(t)).length)throw new Error("cannot pad");var r=new Uint8Array(e);return r.set(t,e-t.length),s(r)},r.isHexString=o;var l="0123456789abcdef";function h(t){if(a(t))return t.toHexString();if("number"==typeof t){t<0&&u.throwError("cannot hexlify negative value",u.INVALID_ARGUMENT,{arg:"value",value:t});for(var e="";t;)e=l[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||u.throwError("invalid hexidecimal string",u.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==r[1]&&u.throwError("hex string must have 0x prefix",u.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2&&(t="0x0"+t.substring(2)),t}if(c(t)){for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(l[(240&o)>>4]+l[15&o])}return"0x"+n.join("")}return u.throwError("invalid hexlify value",null,{arg:"value",value:t}),"never"}function d(t,e){for(o(t)||u.throwError("invalid hex string",u.INVALID_ARGUMENT,{arg:"value",value:t});t.length<2*e+2;)t="0x0"+t.substring(2);return t}function p(t){var e,r=0,n="0x",i="0x";if((e=t)&&null!=e.r&&null!=e.s){null==t.v&&null==t.recoveryParam&&u.throwError("at least on of recoveryParam or v must be specified",u.INVALID_ARGUMENT,{argument:"signature",value:t}),n=d(t.r,32),i=d(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=f(t);if(65!==a.length)throw new Error("invalid signature");n=h(a.slice(0,32)),i=h(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=h,r.hexDataLength=function(t){return o(t)&&t.length%2==0?(t.length-2)/2:null},r.hexDataSlice=function(t,e,r){return o(t)||u.throwError("invalid hex data",u.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2!=0&&u.throwError("hex data length must be even",u.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(o(t)||u.throwError("invalid hex string",u.INVALID_ARGUMENT,{arg:"value",value:t});3<t.length&&"0x0"===t.substring(0,3);)t="0x"+t.substring(3);return t},r.hexZeroPad=d,r.splitSignature=p,r.joinSignature=function(t){return h(i([(t=p(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},{"./errors":243,"./types":247}],243:[function(t,e,a){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"),u=!1;function n(t,e,r){if(u)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"}),u=!!t,r=!!e}},{}],244:[function(t,e,r){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":242,"js-sha3":249}],245:[function(t,e,r){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))}},{}],246:[function(t,e,r){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 u(t,e,r,n){for(var i=[];r<e+1+n;){var o=s(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 s(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 u(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 u(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=s(e,0);if(r.consumed!==e.length)throw new Error("invalid rlp data");return r.result}},{"./bytes":242}],247:[function(t,e,r){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 u=function(){};r.HDNode=u},{}],248:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var a,n,s=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 s.arrayify(r)},r.toUtf8String=function(t){t=s.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 u=t[r++];if(u>>6!=2)break;a=a<<6|63&u}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":242}],249:[function(t,_,e){(function(g,w){!function(){var t="object"===("undefined"==typeof window?"undefined":_typeof(window))?window:{};!t.JS_SHA3_NO_NODE_JS&&"object"===(void 0===g?"undefined":_typeof(g))&&g.versions&&g.versions.node&&(t=w);for(var e=!t.JS_SHA3_NO_COMMON_JS&&"object"===(void 0===_?"undefined":_typeof(_))&&_.exports,s="0123456789abcdef".split(""),f=[0,8,16,24],ft=[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 v(e,r,e).update(t)[n]()}},u=function(r,n,i){return function(t,e){return new v(r,n,e).update(t)[i]()}},n=function(t,e){var r=a(t,e,"hex");r.create=function(){return new v(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=u(e,r,"hex");n.create=function(t){return new v(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]=u(e,r,i)}return n}}],c={},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),c[b]=d.createMethod(p[y],d.padding)}function v(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}v.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,u=this.blockCount,s=0,c=this.s;s<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<u+1;++r)o[r]=0;if(e)for(r=this.start;s<i&&r<a;++s)o[r>>2]|=t[s]<<f[3&r++];else for(r=this.start;s<i&&r<a;++s)(n=t.charCodeAt(s))<128?o[r>>2]|=n<<f[3&r++]:(n<2048?o[r>>2]|=(192|n>>6)<<f[3&r++]:(n<55296||57344<=n?o[r>>2]|=(224|n>>12)<<f[3&r++]:(n=65536+((1023&n)<<10|1023&t.charCodeAt(++s)),o[r>>2]|=(240|n>>18)<<f[3&r++],o[r>>2]|=(128|n>>12&63)<<f[3&r++]),o[r>>2]|=(128|n>>6&63)<<f[3&r++]),o[r>>2]|=(128|63&n)<<f[3&r++]);if(a<=(this.lastByteIndex=r)){for(this.start=r-a,this.block=o[u],r=0;r<u;++r)c[r]^=o[r];m(c),this.reset=!0}else this.start=r}return this},v.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];m(n)},v.prototype.toString=v.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,u="";a<n;){for(o=0;o<e&&a<n;++o,++a)t=r[o],u+=s[t>>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e==0&&(m(r),o=0)}return i&&(t=r[o],0<i&&(u+=s[t>>4&15]+s[15&t]),1<i&&(u+=s[t>>12&15]+s[t>>8&15]),2<i&&(u+=s[t>>20&15]+s[t>>16&15])),u},v.prototype.buffer=v.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,u=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(u);for(var s=new Uint32Array(t);a<n;){for(o=0;o<e&&a<n;++o,++a)s[a]=r[o];a%e==0&&m(r)}return i&&(s[o]=r[o],t=t.slice(0,u)),t},v.prototype.digest=v.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,u=0,s=[];u<i;){for(a=0;a<r&&u<i;++a,++u)t=u<<2,e=n[a],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;u%r==0&&m(n)}return o&&(t=u<<2,e=n[a],0<o&&(s[t]=255&e),1<o&&(s[t+1]=e>>8&255),2<o&&(s[t+2]=e>>16&255)),s};var m=function(t){var e,r,n,i,o,a,u,s,c,f,l,h,d,p,y,b,v,m,g,w,_,A,x,k,S,M,E,j,U,I,O,T,N,B,P,C,R,F,L,q,D,z,H,K,$,V,W,G,X,J,Z,Y,Q,tt,et,rt,nt,it,ot,at,ut,st,ct;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],u=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],f=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|u>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<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^(s<<1|c>>>31),r=o^(c<<1|s>>>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^(f<<1|l>>>31),r=u^(l<<1|f>>>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=s^(h<<1|d>>>31),r=c^(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=f^(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],V=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,U=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,P=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,I=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,st=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,tt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,C=t[14]<<6|t[15]>>>26,R=t[15]<<6|t[14]>>>26,m=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,T=t[45]<<29|t[44]>>>3,N=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,L=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,Q=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,$=t[9]<<27|t[8]>>>5,M=t[18]<<20|t[19]>>>12,E=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,D=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,x=t[49]<<14|t[48]>>>18,t[0]=p^~b&m,t[1]=y^~v&g,t[10]=k^~M&j,t[11]=S^~E&U,t[20]=B^~C&F,t[21]=P^~R&L,t[30]=K^~V&G,t[31]=$^~W&X,t[40]=tt^~rt&it,t[41]=et^~nt&ot,t[2]=b^~m&w,t[3]=v^~g&_,t[12]=M^~j&I,t[13]=E^~U&O,t[22]=C^~F&q,t[23]=R^~L&D,t[32]=V^~G&J,t[33]=W^~X&Z,t[42]=rt^~it&at,t[43]=nt^~ot&ut,t[4]=m^~w&A,t[5]=g^~_&x,t[14]=j^~I&T,t[15]=U^~O&N,t[24]=F^~q&z,t[25]=L^~D&H,t[34]=G^~J&Y,t[35]=X^~Z&Q,t[44]=it^~at&st,t[45]=ot^~ut&ct,t[6]=w^~A&p,t[7]=_^~x&y,t[16]=I^~T&k,t[17]=O^~N&S,t[26]=q^~z&B,t[27]=D^~H&P,t[36]=J^~Y&K,t[37]=Z^~Q&$,t[46]=at^~st&tt,t[47]=ut^~ct&et,t[8]=A^~p&b,t[9]=x^~y&v,t[18]=T^~k&M,t[19]=N^~S&E,t[28]=z^~B&C,t[29]=H^~P&R,t[38]=Y^~K&V,t[39]=Q^~$&W,t[48]=st^~tt&rt,t[49]=ct^~et&nt,t[0]^=ft[n],t[1]^=ft[n+1]};if(e)_.exports=c;else for(h=0;h<l.length;++h)t[l[h]]=c[l[h]]}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:120}],250:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],251:[function(t,e,r){var f=t("underscore"),n=t("web3-utils"),o=new(t("ethers/utils/abi-coder").AbiCoder)(function(t,e){return!t.match(/^u?int/)||f.isArray(e)||f.isObject(e)&&"BN"===e.constructor.name?e:e.toString()});function l(){}var i=function(){};i.prototype.encodeFunctionSignature=function(t){return f.isObject(t)&&(t=n._jsonInterfaceMethodToString(t)),n.sha3(t).slice(0,10)},i.prototype.encodeEventSignature=function(t){return f.isObject(t)&&(t=n._jsonInterfaceMethodToString(t)),n.sha3(t)},i.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},i.prototype.encodeParameters=function(t,e){return o.encode(this.mapTypes(t),e)},i.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},i.prototype.isSimplifiedStructFormat=function(t){return"object"===(void 0===t?"undefined":_typeof(t))&&void 0===t.components&&void 0===t.name},i.prototype.mapStructNameAndType=function(t){var e="tuple";return-1<t.indexOf("[]")&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},i.prototype.mapStructToCoderFormat=function(e){var r=this,n=[];return Object.keys(e).forEach(function(t){"object"!==_typeof(e[t])?n.push({name:t,type:e[t]}):n.push(Object.assign(r.mapStructNameAndType(t),{components:r.mapStructToCoderFormat(e[t])}))}),n},i.prototype.encodeFunctionCall=function(t,e){return this.encodeFunctionSignature(t)+this.encodeParameters(t.inputs,e).replace("0x","")},i.prototype.decodeParameter=function(t,e){return this.decodeParameters([t],e)[0]},i.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?");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,f.isObject(t)&&t.name&&(i[t.name]=r),i.__length__++}),i},i.prototype.decodeLog=function(t,e,r){var n=this;r=f.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 u=e,s=u?this.decodeParameters(i,u):[],c=new l;return c.__length__=0,t.forEach(function(t,e){c[e]="string"===t.type?"":null,void 0!==s[e]&&(c[e]=s[e]),void 0!==o[e]&&(c[e]=o[e]),t.name&&(c[t.name]=c[e]),c.__length__++}),c};var a=new i;e.exports=a},{"ethers/utils/abi-coder":239,underscore:250,"web3-utils":443}],252:[function(t,e,r){arguments[4][222][0].apply(r,arguments)},{"./register":254,dup:222}],253:[function(t,e,r){arguments[4][223][0].apply(r,arguments)},{dup:223}],254:[function(t,e,r){arguments[4][224][0].apply(r,arguments)},{"./loader":253,dup:224}],255:[function(t,e,r){arguments[4][1][0].apply(r,arguments)},{"./asn1/api":256,"./asn1/base":258,"./asn1/constants":262,"./asn1/decoders":264,"./asn1/encoders":267,"bn.js":269,dup:1}],256:[function(t,e,r){arguments[4][2][0].apply(r,arguments)},{"../asn1":255,dup:2,inherits:353,vm:168}],257:[function(t,e,r){arguments[4][3][0].apply(r,arguments)},{"../base":258,buffer:47,dup:3,inherits:353}],258:[function(t,e,r){arguments[4][4][0].apply(r,arguments)},{"./buffer":257,"./node":259,"./reporter":260,dup:4}],259:[function(t,e,r){arguments[4][5][0].apply(r,arguments)},{"../base":258,dup:5,"minimalistic-assert":356}],260:[function(t,e,r){arguments[4][6][0].apply(r,arguments)},{dup:6,inherits:353}],261:[function(t,e,r){arguments[4][7][0].apply(r,arguments)},{"../constants":262,dup:7}],262:[function(t,e,r){arguments[4][8][0].apply(r,arguments)},{"./der":261,dup:8}],263:[function(t,e,r){arguments[4][9][0].apply(r,arguments)},{"../../asn1":255,dup:9,inherits:353}],264:[function(t,e,r){arguments[4][10][0].apply(r,arguments)},{"./der":263,"./pem":265,dup:10}],265:[function(t,e,r){arguments[4][11][0].apply(r,arguments)},{"./der":263,buffer:47,dup:11,inherits:353}],266:[function(t,e,r){arguments[4][12][0].apply(r,arguments)},{"../../asn1":255,buffer:47,dup:12,inherits:353}],267:[function(t,e,r){arguments[4][13][0].apply(r,arguments)},{"./der":266,"./pem":268,dup:13}],268:[function(t,e,r){arguments[4][14][0].apply(r,arguments)},{"./der":266,dup:14,inherits:353}],269:[function(t,e,r){arguments[4][238][0].apply(r,arguments)},{buffer:17,dup:238}],270:[function(t,e,r){arguments[4][16][0].apply(r,arguments)},{crypto:17,dup:16}],271:[function(t,e,r){arguments[4][18][0].apply(r,arguments)},{dup:18,"safe-buffer":377}],272:[function(t,e,r){arguments[4][19][0].apply(r,arguments)},{"./aes":271,"./ghash":276,"./incr32":277,"buffer-xor":298,"cipher-base":299,dup:19,inherits:353,"safe-buffer":377}],273:[function(t,e,r){arguments[4][20][0].apply(r,arguments)},{"./decrypter":274,"./encrypter":275,"./modes/list.json":285,dup:20}],274:[function(t,e,r){arguments[4][21][0].apply(r,arguments)},{"./aes":271,"./authCipher":272,"./modes":284,"./streamCipher":287,"cipher-base":299,dup:21,evp_bytestokey:338,inherits:353,"safe-buffer":377}],275:[function(t,e,r){arguments[4][22][0].apply(r,arguments)},{"./aes":271,"./authCipher":272,"./modes":284,"./streamCipher":287,"cipher-base":299,dup:22,evp_bytestokey:338,inherits:353,"safe-buffer":377}],276:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{dup:23,"safe-buffer":377}],277:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{dup:24}],278:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{"buffer-xor":298,dup:25}],279:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{"buffer-xor":298,dup:26,"safe-buffer":377}],280:[function(t,e,r){arguments[4][27][0].apply(r,arguments)},{dup:27,"safe-buffer":377}],281:[function(t,e,r){arguments[4][28][0].apply(r,arguments)},{dup:28,"safe-buffer":377}],282:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{"../incr32":277,"buffer-xor":298,dup:29,"safe-buffer":377}],283:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{dup:30}],284:[function(t,e,r){arguments[4][31][0].apply(r,arguments)},{"./cbc":278,"./cfb":279,"./cfb1":280,"./cfb8":281,"./ctr":282,"./ecb":283,"./list.json":285,"./ofb":286,dup:31}],285:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],286:[function(t,e,r){(function(i){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:47,"buffer-xor":298}],287:[function(t,e,r){arguments[4][34][0].apply(r,arguments)},{"./aes":271,"cipher-base":299,dup:34,inherits:353,"safe-buffer":377}],288:[function(t,e,r){arguments[4][35][0].apply(r,arguments)},{"browserify-aes/browser":273,"browserify-aes/modes":284,"browserify-des":289,"browserify-des/modes":290,dup:35,evp_bytestokey:338}],289:[function(t,e,r){arguments[4][36][0].apply(r,arguments)},{"cipher-base":299,"des.js":306,dup:36,inherits:353,"safe-buffer":377}],290:[function(t,e,r){arguments[4][37][0].apply(r,arguments)},{dup:37}],291:[function(e,r,t){(function(y){var b=e("bn.js"),n=e("randombytes");function t(t,e){var r,n,i={blinder:(n=v(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)),u=a.toRed(b.mont(e.prime1)),s=a.toRed(b.mont(e.prime2)),c=e.coefficient,f=e.prime1,l=e.prime2,h=u.redPow(e.exponent1),d=s.redPow(e.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(c).umod(f);return p.imul(l),d.iadd(p),new y(d.imul(i.unblinder).umod(e.modulus).toArray(!1,o))}function v(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=v}).call(this,e("buffer").Buffer)},{"bn.js":269,buffer:47,randombytes:374}],292:[function(t,e,r){arguments[4][39][0].apply(r,arguments)},{"./browser/algorithms.json":293,dup:39}],293:[function(t,e,r){arguments[4][40][0].apply(r,arguments)},{dup:40}],294:[function(t,e,r){arguments[4][41][0].apply(r,arguments)},{dup:41}],295:[function(l,h,t){(function(i){var r=l("create-hash"),n=l("stream"),t=l("inherits"),o=l("./sign"),a=l("./verify"),u=l("./algorithms.json");function e(t){n.Writable.call(this);var e=u[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 s(t){n.Writable.call(this);var e=u[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function c(t){return new e(t)}function f(t){return new s(t)}Object.keys(u).forEach(function(t){u[t].id=new i(u[t].id,"hex"),u[t.toLowerCase()]=u[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(s,n.Writable),s.prototype._write=function(t,e,r){this._hash.update(t),r()},s.prototype.update=function(t,e){return"string"==typeof t&&(t=new i(t,e)),this._hash.update(t),this},s.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:c,Verify:f,createSign:c,createVerify:f}}).call(this,l("buffer").Buffer)},{"./algorithms.json":293,"./sign":296,"./verify":297,buffer:47,"create-hash":301,inherits:353,stream:157}],296:[function(t,e,r){(function(y){var c=t("create-hmac"),f=t("browserify-rsa"),l=t("elliptic").ec,b=t("bn.js"),h=t("parse-asn1"),d=t("./curves.json");function v(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=m(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),u=new y(o);u.fill(1);var s=new y(o);return s.fill(0),s=c(n,s).update(u).update(new y([0])).update(t).update(a).digest(),u=c(n,s).update(u).digest(),{k:s=c(n,s).update(u).update(new y([1])).update(t).update(a).digest(),v:u=c(n,s).update(u).digest()}}function m(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=c(r,e.k).update(e.v).digest(),n=y.concat([n,e.v]);i=m(n,t),e.k=c(r,e.k).update(e.v).update(new y([0])).digest(),e.v=c(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,u=e.params.priv_key,s=e.params.p,c=e.params.q,f=e.params.g,l=new b(0),h=m(t,c).mod(c),d=!1,p=v(u,c,t,r);!1===d;)n=g(c,p,r),i=n,o=s,a=c,l=f.toRed(b.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(c).imul(h.add(u.mul(l))).mod(c)).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(),u=[0,1];t.length+u.length+1<a;)u.push(255);u.push(0);for(var s=-1;++s<t.length;)u.push(t[s]);return f(u,o)},e.exports.getKey=v,e.exports.makeKey=g}).call(this,t("buffer").Buffer)},{"./curves.json":294,"bn.js":269,"browserify-rsa":291,buffer:47,"create-hmac":303,elliptic:316,"parse-asn1":362}],297:[function(t,e,r){(function(h){var d=t("bn.js"),p=t("elliptic").ec,y=t("parse-asn1"),b=t("./curves.json");function v(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,u=y.signature.decode(t,"der"),s=u.s,c=u.r;v(s,i),v(c,i);var f=d.mont(n),l=s.invm(i);return 0===o.toRed(f).redPow(new d(e).mul(l).mod(i)).fromRed().mul(a.toRed(f).redPow(c.mul(l).mod(i)).fromRed()).mod(n).mod(i).cmp(c)}(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(),u=[1],s=0;e.length+u.length+2<a;)u.push(255),s++;u.push(0);for(var c=-1;++c<e.length;)u.push(e[c]);u=new h(u);var f=d.mont(o.modulus);t=(t=new d(t).toRed(f)).redPow(new d(o.publicExponent)),t=new h(t.fromRed().toArray());var l=s<8?1:0;for(a=Math.min(t.length,u.length),t.length!==u.length&&(l=1),c=-1;++c<a;)l|=t[c]^u[c];return 0===l}}).call(this,t("buffer").Buffer)},{"./curves.json":294,"bn.js":269,buffer:47,elliptic:316,"parse-asn1":362}],298:[function(t,e,r){(function(o){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:47}],299:[function(t,e,r){arguments[4][49][0].apply(r,arguments)},{dup:49,inherits:353,"safe-buffer":377,stream:157,string_decoder:162}],300:[function(t,u,e){(function(o){var e=t("elliptic"),n=t("bn.js");u.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":269,buffer:47,elliptic:316}],301:[function(t,e,r){arguments[4][52][0].apply(r,arguments)},{"cipher-base":299,dup:52,inherits:353,"md5.js":354,ripemd160:376,"sha.js":381}],302:[function(t,e,r){arguments[4][53][0].apply(r,arguments)},{dup:53,"md5.js":354}],303:[function(t,e,r){arguments[4][54][0].apply(r,arguments)},{"./legacy":304,"cipher-base":299,"create-hash/md5":302,dup:54,inherits:353,ripemd160:376,"safe-buffer":377,"sha.js":381}],304:[function(t,e,r){arguments[4][55][0].apply(r,arguments)},{"cipher-base":299,dup:55,inherits:353,"safe-buffer":377}],305:[function(t,e,r){arguments[4][56][0].apply(r,arguments)},{"browserify-cipher":288,"browserify-sign":295,"browserify-sign/algos":292,"create-ecdh":300,"create-hash":301,"create-hmac":303,"diffie-hellman":312,dup:56,pbkdf2:363,"public-encrypt":368,randombytes:374,randomfill:375}],306:[function(t,e,r){arguments[4][57][0].apply(r,arguments)},{"./des/cbc":307,"./des/cipher":308,"./des/des":309,"./des/ede":310,"./des/utils":311,dup:57}],307:[function(t,e,r){arguments[4][58][0].apply(r,arguments)},{dup:58,inherits:353,"minimalistic-assert":356}],308:[function(t,e,r){arguments[4][59][0].apply(r,arguments)},{dup:59,"minimalistic-assert":356}],309:[function(t,e,r){arguments[4][60][0].apply(r,arguments)},{"../des":306,dup:60,inherits:353,"minimalistic-assert":356}],310:[function(t,e,r){arguments[4][61][0].apply(r,arguments)},{"../des":306,dup:61,inherits:353,"minimalistic-assert":356}],311:[function(t,e,r){arguments[4][62][0].apply(r,arguments)},{dup:62}],312:[function(t,e,r){(function(o){var a=t("./lib/generatePrime"),n=t("./lib/primes.json"),u=t("./lib/dh");var s={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 u(e,r)},r.createDiffieHellman=r.DiffieHellman=function t(e,r,n,i){return o.isBuffer(r)||void 0===s[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 u(a(e,n),n,!0):(o.isBuffer(e)||(e=new o(e,r)),new u(e,n,!0)))}}).call(this,t("buffer").Buffer)},{"./lib/dh":313,"./lib/generatePrime":314,"./lib/primes.json":315,buffer:47}],313:[function(y,b,t){(function(o){var a=y("bn.js"),u=new(y("miller-rabin")),s=new a(24),c=new a(11),f=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)||!u.test(t))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(u.test(t.shrn(1))||(o+=2),r){case"02":t.mod(s).cmp(c)&&(o+=8);break;case"05":(i=t.mod(f)).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":314,"bn.js":269,buffer:47,"miller-rabin":355,randombytes:374}],314:[function(t,e,r){arguments[4][65][0].apply(r,arguments)},{"bn.js":269,dup:65,"miller-rabin":355,randombytes:374}],315:[function(t,e,r){arguments[4][66][0].apply(r,arguments)},{dup:66}],316:[function(t,e,r){arguments[4][67][0].apply(r,arguments)},{"../package.json":331,"./elliptic/curve":319,"./elliptic/curves":322,"./elliptic/ec":323,"./elliptic/eddsa":326,"./elliptic/utils":330,brorand:270,dup:67}],317:[function(t,e,r){arguments[4][68][0].apply(r,arguments)},{"../../elliptic":316,"bn.js":269,dup:68}],318:[function(t,e,r){arguments[4][69][0].apply(r,arguments)},{"../../elliptic":316,"../curve":319,"bn.js":269,dup:69,inherits:353}],319:[function(t,e,r){arguments[4][70][0].apply(r,arguments)},{"./base":317,"./edwards":318,"./mont":320,"./short":321,dup:70}],320:[function(t,e,r){arguments[4][71][0].apply(r,arguments)},{"../../elliptic":316,"../curve":319,"bn.js":269,dup:71,inherits:353}],321:[function(t,e,r){arguments[4][72][0].apply(r,arguments)},{"../../elliptic":316,"../curve":319,"bn.js":269,dup:72,inherits:353}],322:[function(t,e,r){arguments[4][73][0].apply(r,arguments)},{"../elliptic":316,"./precomputed/secp256k1":329,dup:73,"hash.js":340}],323:[function(t,e,r){arguments[4][74][0].apply(r,arguments)},{"../../elliptic":316,"./key":324,"./signature":325,"bn.js":269,dup:74,"hmac-drbg":352}],324:[function(t,e,r){arguments[4][75][0].apply(r,arguments)},{"../../elliptic":316,"bn.js":269,dup:75}],325:[function(t,e,r){arguments[4][76][0].apply(r,arguments)},{"../../elliptic":316,"bn.js":269,dup:76}],326:[function(t,e,r){arguments[4][77][0].apply(r,arguments)},{"../../elliptic":316,"./key":327,"./signature":328,dup:77,"hash.js":340}],327:[function(t,e,r){arguments[4][78][0].apply(r,arguments)},{"../../elliptic":316,dup:78}],328:[function(t,e,r){arguments[4][79][0].apply(r,arguments)},{"../../elliptic":316,"bn.js":269,dup:79}],329:[function(t,e,r){arguments[4][80][0].apply(r,arguments)},{dup:80}],330:[function(t,e,r){arguments[4][81][0].apply(r,arguments)},{"bn.js":269,dup:81,"minimalistic-assert":356,"minimalistic-crypto-utils":357}],331:[function(t,e,r){e.exports={_args:[["elliptic@6.4.1","/Users/work/Development/foundation/web3.js/packages/web3-eth-accounts"]],_from:"elliptic@6.4.1",_id:"elliptic@6.4.1",_inBundle:!1,_integrity:"sha1-wtC3d2kRuGcixjLDwGxg8vgZk5o=",_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:["/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",_spec:"6.4.1",_where:"/Users/work/Development/foundation/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:"^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"}},{}],332:[function(y,b,t){(function(a){var o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=y("./bytes"),i=y("./nat"),t=y("elliptic"),s=(y("./rlp"),new t.ec("secp256k1")),e=y("./hash"),c=e.keccak256,f=e.keccak256s,l=function(t){for(var e=f(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"+s.keyFromPrivate(e).getPublic(!1,"hex").slice(2),n=c(r);return{address:l("0x"+n.slice(-40)),privateKey:t}},d=function(t){var e=o(t,3),r=e[0],n=u.pad(32,e[1]),i=u.pad(32,e[2]);return u.flatten([n,i,r])},p=function(t){return[u.slice(64,u.length(t),t),u.slice(0,32,t),u.slice(32,64,t)]},r=function(n){return function(t,e){var r=s.keyFromPrivate(new a(e.slice(2),"hex")).sign(new a(t.slice(2),"hex"),{canonical:!0});return d([i.fromString(u.fromNumber(n+r.recoveryParam)),u.pad(32,u.fromNat("0x"+r.r.toString(16))),u.pad(32,u.fromNat("0x"+r.s.toString(16)))])}},n=r(27);b.exports={create:function(t){var e=c(u.concat(u.random(32),t||u.random(32))),r=u.concat(u.concat(u.random(32),e),u.random(32)),n=c(r);return h(n)},toChecksum:l,fromPrivate:h,sign:n,makeSigner:r,recover:function(t,e){var r=p(e),n={v:u.toNumber(r[0]),r:r[1].slice(2),s:r[2].slice(2)},i="0x"+s.recoverPubKey(new a(t.slice(2),"hex"),n,n.v<2?n.v:1-n.v%2).encode("hex",!1).slice(2),o=c(i);return l("0x"+o.slice(-40))},encodeSignature:d,decodeSignature:p}}).call(this,y("buffer").Buffer)},{"./bytes":334,"./hash":335,"./nat":336,"./rlp":337,buffer:47,elliptic:316}],333:[function(t,e,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],334:[function(t,e,r){arguments[4][182][0].apply(r,arguments)},{"./array.js":333,dup:182}],335:[function(t,e,r){arguments[4][183][0].apply(r,arguments)},{dup:183}],336:[function(t,e,r){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},u=function(t){return"string"==typeof t?/^0x/.test(t)?t:"0x"+t:"0x"+new n(t).toString("hex")},s=function(t){return o(t).toNumber()},c=function(r){return function(t,e){return"0x"+o(t)[r](o(e)).toString("hex")}},f=c("add"),l=c("mul"),h=c("div"),d=c("sub");e.exports={toString:function(t){return o(t).toString(10)},fromString:a,toNumber:s,fromNumber:u,toEther:function(t){return s(h(t,a("10000000000")))/1e8},fromEther:function(t){return l(u(Math.floor(1e8*t)),a("10000000000"))},toUint256:function(t){return i.pad(32,t)},add:f,mul:l,div:h,sub:d}},{"./bytes":334,"bn.js":269}],337:[function(t,e,r){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[]}}}},{}],338:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84,"md5.js":354,"safe-buffer":377}],339:[function(t,e,r){arguments[4][85][0].apply(r,arguments)},{dup:85,inherits:353,"safe-buffer":377,stream:157}],340:[function(t,e,r){arguments[4][86][0].apply(r,arguments)},{"./hash/common":341,"./hash/hmac":342,"./hash/ripemd":343,"./hash/sha":344,"./hash/utils":351,dup:86}],341:[function(t,e,r){arguments[4][87][0].apply(r,arguments)},{"./utils":351,dup:87,"minimalistic-assert":356}],342:[function(t,e,r){arguments[4][88][0].apply(r,arguments)},{"./utils":351,dup:88,"minimalistic-assert":356}],343:[function(t,e,r){arguments[4][89][0].apply(r,arguments)},{"./common":341,"./utils":351,dup:89}],344:[function(t,e,r){arguments[4][90][0].apply(r,arguments)},{"./sha/1":345,"./sha/224":346,"./sha/256":347,"./sha/384":348,"./sha/512":349,dup:90}],345:[function(t,e,r){arguments[4][91][0].apply(r,arguments)},{"../common":341,"../utils":351,"./common":350,dup:91}],346:[function(t,e,r){arguments[4][92][0].apply(r,arguments)},{"../utils":351,"./256":347,dup:92}],347:[function(t,e,r){arguments[4][93][0].apply(r,arguments)},{"../common":341,"../utils":351,"./common":350,dup:93,"minimalistic-assert":356}],348:[function(t,e,r){arguments[4][94][0].apply(r,arguments)},{"../utils":351,"./512":349,dup:94}],349:[function(t,e,r){arguments[4][95][0].apply(r,arguments)},{"../common":341,"../utils":351,dup:95,"minimalistic-assert":356}],350:[function(t,e,r){arguments[4][96][0].apply(r,arguments)},{"../utils":351,dup:96}],351:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97,inherits:353,"minimalistic-assert":356}],352:[function(t,e,r){arguments[4][98][0].apply(r,arguments)},{dup:98,"hash.js":340,"minimalistic-assert":356,"minimalistic-crypto-utils":357}],353:[function(t,e,r){arguments[4][101][0].apply(r,arguments)},{dup:101}],354:[function(t,e,r){arguments[4][104][0].apply(r,arguments)},{dup:104,"hash-base":339,inherits:353,"safe-buffer":377}],355:[function(t,e,r){arguments[4][105][0].apply(r,arguments)},{"bn.js":269,brorand:270,dup:105}],356:[function(t,e,r){arguments[4][106][0].apply(r,arguments)},{dup:106}],357:[function(t,e,r){arguments[4][107][0].apply(r,arguments)},{dup:107}],358:[function(t,e,r){arguments[4][109][0].apply(r,arguments)},{dup:109}],359:[function(t,e,r){arguments[4][110][0].apply(r,arguments)},{"./certificate":360,"asn1.js":255,dup:110}],360:[function(t,e,r){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())}),u=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),s=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(s)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),l=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(u),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":255}],361:[function(t,e,r){(function(h){var d=/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,p=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,y=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,b=t("evp_bytestokey"),v=t("browserify-aes");e.exports=function(t,e){var r,n=t.toString(),i=n.match(d);if(i){var o="aes"+i[1],a=new h(i[2],"hex"),u=new h(i[3].replace(/[\r\n]/g,""),"base64"),s=b(e,a.slice(0,8),parseInt(i[1],10)).key,c=[],f=v.createDecipheriv(o,s,a);c.push(f.update(u)),c.push(f.final()),r=h.concat(c)}else{var l=n.match(y);r=new h(l[2].replace(/[\r\n]/g,""),"base64")}return{tag:n.match(p)[1],data:r}}}).call(this,t("buffer").Buffer)},{"browserify-aes":273,buffer:47,evp_bytestokey:338}],362:[function(e,r,t){(function(m){var g=e("./asn1"),w=e("./aesid.json"),_=e("./fixProc"),A=e("browserify-aes"),x=e("pbkdf2");function t(t){var e;"object"!==(void 0===t?"undefined":_typeof(t))||m.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=new m(t));var r,n,i,o,a,u,s,c,f,l,h,d,p,y=_(t,e),b=y.tag,v=y.data;switch(b){case"CERTIFICATE":n=g.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=g.PublicKey.decode(v,"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":v=g.EncryptedPrivateKey.decode(v,"der"),o=e,a=(i=v).algorithm.decrypt.kde.kdeparams.salt,u=parseInt(i.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=w[i.algorithm.decrypt.cipher.algo.join(".")],c=i.algorithm.decrypt.cipher.iv,f=i.subjectPrivateKey,l=parseInt(s.split("-")[1],10)/8,h=x.pbkdf2Sync(o,a,u,l),d=A.createDecipheriv(s,h,c),(p=[]).push(d.update(f)),p.push(d.final()),v=m.concat(p);case"PRIVATE KEY":switch(r=(n=g.PrivateKey.decode(v,"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(v,"der");case"RSA PRIVATE KEY":return g.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:g.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=g.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+b)}}(r.exports=t).signature=g.signature}).call(this,e("buffer").Buffer)},{"./aesid.json":358,"./asn1":359,"./fixProc":361,"browserify-aes":273,buffer:47,pbkdf2:363}],363:[function(t,e,r){arguments[4][114][0].apply(r,arguments)},{"./lib/async":364,"./lib/sync":367,dup:114}],364:[function(t,e,r){(function(c,f){var l,h=t("./precondition"),d=t("./default-encoding"),p=t("./sync"),y=t("safe-buffer").Buffer,b=f.crypto&&f.crypto.subtle,v={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"},m=[];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,u,s=v[(o=o||"sha1").toLowerCase()];if(!s||"function"!=typeof f.Promise)return c.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(f.process&&!f.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(void 0!==m[t])return m[t];var e=g(l=l||y.alloc(8),l,10,128,t).then(function(){return!0}).catch(function(){return!1});return m[t]=e}(s).then(function(t){return t?g(e,r,n,i,s):p(e,r,n,i,o)}),u=a,t.then(function(t){c.nextTick(function(){u(null,t)})},function(t){c.nextTick(function(){u(t)})})}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":365,"./precondition":366,"./sync":367,_process:120,"safe-buffer":377}],365:[function(t,r,e){(function(t){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:120}],366:[function(t,e,r){(function(r){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":102}],367:[function(t,e,r){arguments[4][118][0].apply(r,arguments)},{"./default-encoding":365,"./precondition":366,"create-hash/md5":302,dup:118,ripemd160:376,"safe-buffer":377,"sha.js":381}],368:[function(t,e,r){arguments[4][121][0].apply(r,arguments)},{"./privateDecrypt":370,"./publicEncrypt":371,dup:121}],369:[function(t,e,r){arguments[4][122][0].apply(r,arguments)},{"create-hash":301,dup:122,"safe-buffer":377}],370:[function(t,e,r){arguments[4][123][0].apply(r,arguments)},{"./mgf":369,"./withPublic":372,"./xor":373,"bn.js":269,"browserify-rsa":291,"create-hash":301,dup:123,"parse-asn1":362,"safe-buffer":377}],371:[function(t,e,r){arguments[4][124][0].apply(r,arguments)},{"./mgf":369,"./withPublic":372,"./xor":373,"bn.js":269,"browserify-rsa":291,"create-hash":301,dup:124,"parse-asn1":362,randombytes:374,"safe-buffer":377}],372:[function(t,e,r){arguments[4][125][0].apply(r,arguments)},{"bn.js":269,dup:125,"safe-buffer":377}],373:[function(t,e,r){arguments[4][126][0].apply(r,arguments)},{dup:126}],374:[function(t,e,r){(function(i,o){var a=t("safe-buffer").Buffer,u=o.crypto||o.msCrypto;u&&u.getRandomValues?e.exports=function(t,e){if(65536<t)throw new Error("requested too many random bytes");var r=new o.Uint8Array(t);0<t&&u.getRandomValues(r);var n=a.from(r.buffer);return"function"!=typeof e?n:i.nextTick(function(){e(null,n)})}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:120,"safe-buffer":377}],375:[function(r,t,d){(function(a,i){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"),u=r("randombytes"),o=e.Buffer,n=e.kMaxLength,s=i.crypto||i.msCrypto,c=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(c<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(c<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 s.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return u(t).copy(r,n),r;u(t,function(t,e){if(t)return i(t);e.copy(r,n),i(null,r)})}s&&s.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 f(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');f(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:120,randombytes:374,"safe-buffer":377}],376:[function(t,e,r){arguments[4][147][0].apply(r,arguments)},{buffer:47,dup:147,"hash-base":339,inherits:353}],377:[function(t,e,r){arguments[4][148][0].apply(r,arguments)},{buffer:47,dup:148}],378:[function(t,e,r){e.exports=t("scryptsy")},{scryptsy:379}],379:[function(t,e,r){(function(A){var x=t("pbkdf2").pbkdf2Sync;function k(t,e,r,n,i){if(A.isBuffer(t)&&A.isBuffer(r))t.copy(r,n,e,e+i);else for(;i--;)r[n++]=t[e++]}e.exports=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 c,u=new A(256*n),s=new A(128*n*r),f=new Int32Array(16),l=new Int32Array(16),h=new A(64),d=x(t,e,1,128*i*n,"sha256");if(a){var p=i*r*2,y=0;c=function(){++y%1e3==0&&a({current:y,total:p,percent:y/p*100})}}for(var b=0;b<i;b++)v(d,128*b*n,n,r,s,u);return x(t,d,1,o,"sha256");function v(t,e,r,n,i,o){var a,u=128*r;for(t.copy(o,0,e,e+u),a=0;a<n;a++)o.copy(i,a*u,0,0+u),m(o,0,u,r),c&&c();for(a=0;a<n;a++){var s=0+64*(2*r-1);_(i,(o.readUInt32LE(s)&n-1)*u,o,0,u),m(o,0,u,r),c&&c()}o.copy(t,e,0,0+u)}function m(t,e,r,n){var i;for(k(t,e+64*(2*n-1),h,0,64),i=0;i<2*n;i++)_(t,64*i,h,0,64),w(h),k(h,0,t,r+64*i,64);for(i=0;i<n;i++)k(t,r+2*i*64,t,e+64*i,64);for(i=0;i<n;i++)k(t,r+64*(2*i+1),t,e+64*(i+n),64)}function g(t,e){return t<<e|t>>>32-e}function w(t){var e;for(e=0;e<16;e++)f[e]=(255&t[4*e+0])<<0,f[e]|=(255&t[4*e+1])<<8,f[e]|=(255&t[4*e+2])<<16,f[e]|=(255&t[4*e+3])<<24;for(k(f,0,l,0,16),e=8;0<e;e-=2)l[4]^=g(l[0]+l[12],7),l[8]^=g(l[4]+l[0],9),l[12]^=g(l[8]+l[4],13),l[0]^=g(l[12]+l[8],18),l[9]^=g(l[5]+l[1],7),l[13]^=g(l[9]+l[5],9),l[1]^=g(l[13]+l[9],13),l[5]^=g(l[1]+l[13],18),l[14]^=g(l[10]+l[6],7),l[2]^=g(l[14]+l[10],9),l[6]^=g(l[2]+l[14],13),l[10]^=g(l[6]+l[2],18),l[3]^=g(l[15]+l[11],7),l[7]^=g(l[3]+l[15],9),l[11]^=g(l[7]+l[3],13),l[15]^=g(l[11]+l[7],18),l[1]^=g(l[0]+l[3],7),l[2]^=g(l[1]+l[0],9),l[3]^=g(l[2]+l[1],13),l[0]^=g(l[3]+l[2],18),l[6]^=g(l[5]+l[4],7),l[7]^=g(l[6]+l[5],9),l[4]^=g(l[7]+l[6],13),l[5]^=g(l[4]+l[7],18),l[11]^=g(l[10]+l[9],7),l[8]^=g(l[11]+l[10],9),l[9]^=g(l[8]+l[11],13),l[10]^=g(l[9]+l[8],18),l[12]^=g(l[15]+l[14],7),l[13]^=g(l[12]+l[15],9),l[14]^=g(l[13]+l[12],13),l[15]^=g(l[14]+l[13],18);for(e=0;e<16;++e)f[e]=l[e]+f[e];for(e=0;e<16;e++){var r=4*e;t[r+0]=f[e]>>0&255,t[r+1]=f[e]>>8&255,t[r+2]=f[e]>>16&255,t[r+3]=f[e]>>24&255}}function _(t,e,r,n,i){for(var o=0;o<i;o++)r[n+o]^=t[e+o]}}}).call(this,t("buffer").Buffer)},{buffer:47,pbkdf2:363}],380:[function(t,e,r){arguments[4][149][0].apply(r,arguments)},{dup:149,"safe-buffer":377}],381:[function(t,e,r){arguments[4][150][0].apply(r,arguments)},{"./sha":382,"./sha1":383,"./sha224":384,"./sha256":385,"./sha384":386,"./sha512":387,dup:150}],382:[function(t,e,r){arguments[4][151][0].apply(r,arguments)},{"./hash":380,dup:151,inherits:353,"safe-buffer":377}],383:[function(t,e,r){arguments[4][152][0].apply(r,arguments)},{"./hash":380,dup:152,inherits:353,"safe-buffer":377}],384:[function(t,e,r){arguments[4][153][0].apply(r,arguments)},{"./hash":380,"./sha256":385,dup:153,inherits:353,"safe-buffer":377}],385:[function(t,e,r){arguments[4][154][0].apply(r,arguments)},{"./hash":380,dup:154,inherits:353,"safe-buffer":377}],386:[function(t,e,r){arguments[4][155][0].apply(r,arguments)},{"./hash":380,"./sha512":387,dup:155,inherits:353,"safe-buffer":377}],387:[function(t,e,r){arguments[4][156][0].apply(r,arguments)},{"./hash":380,dup:156,inherits:353,"safe-buffer":377}],388:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],389:[function(t,e,r){var n=t("./v1"),i=t("./v4"),o=i;o.v1=n,o.v4=i,e.exports=o},{"./v1":392,"./v4":393}],390:[function(t,e,r){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("")}},{}],391:[function(t,e,r){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}}},{}],392:[function(t,e,r){var p,y,b=t("./lib/rng"),v=t("./lib/bytesToUuid"),m=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 u=b();null==o&&(o=p=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==a&&(a=y=16383&(u[6]<<8|u[7]))}var s=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:g+1,f=s-m+(c-g)/1e4;if(f<0&&void 0===t.clockseq&&(a=a+1&16383),(f<0||m<s)&&void 0===t.nsecs&&(c=0),1e4<=c)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=s,y=a;var l=(1e4*(268435455&(s+=122192928e5))+(g=c))%4294967296;i[n++]=l>>>24&255,i[n++]=l>>>16&255,i[n++]=l>>>8&255,i[n++]=255&l;var h=s/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||v(i)}},{"./lib/bytesToUuid":390,"./lib/rng":391}],393:[function(t,e,r){var a=t("./lib/rng"),u=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||u(i)}},{"./lib/bytesToUuid":390,"./lib/rng":391}],394:[function(a,u,t){(function(t,h){var d=a("underscore"),r=a("web3-core"),n=a("web3-core-method"),p=a("any-promise"),y=a("eth-lib/lib/account"),b=a("eth-lib/lib/hash"),v=a("eth-lib/lib/rlp"),m=a("eth-lib/lib/nat"),g=a("eth-lib/lib/bytes"),w=a(void 0===t?"crypto-browserify":"crypto"),_=a("scrypt.js"),A=a("uuid"),x=a("web3-utils"),k=a("web3-core-helpers"),i=function(t){return d.isUndefined(t)||d.isNull(t)},S=function(t){for(;t&&t.startsWith("0x0");)t="0x"+t.slice(3);return t},M=function(t){return t.length%2==1&&(t=t.replace("0x","0x0")),t},e=function(){var e=this;r.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var t=[new n({name:"getId",call:"net_version",params:0,outputFormatter:x.hexToNumber}),new n({name:"getGasPrice",call:"eth_gasPrice",params:0}),new n({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(t){if(x.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(y.create(t||x.randomHex(32)))},e.prototype.privateKeyToAccount=function(t){return this._addAccountFunctions(y.fromPrivate(t))},e.prototype.signTransaction=function(e,s,c){var f,l=!1;if(c=c||function(){},!e)return l=new Error("No transaction object given!"),c(l),p.reject(l);function r(t){if(t.gas||t.gasLimit||(l=new Error('"gas" is missing')),(t.nonce<0||t.gas<0||t.gasPrice<0||t.chainId<0)&&(l=new Error("Gas, gasPrice, nonce or chainId is lower than 0")),l)return c(l),p.reject(l);try{var e=t=k.formatters.inputCallFormatter(t);e.to=t.to||"0x",e.data=t.data||"0x",e.value=t.value||"0x",e.chainId=x.numberToHex(t.chainId);var r=v.encode([g.fromNat(e.nonce),g.fromNat(e.gasPrice),g.fromNat(e.gas),e.to.toLowerCase(),g.fromNat(e.value),e.data,g.fromNat(e.chainId||"0x1"),"0x","0x"]),n=b.keccak256(r),i=y.makeSigner(2*m.toNumber(e.chainId||"0x1")+35)(b.keccak256(r),s),o=v.decode(r).slice(0,6).concat(y.decodeSignature(i));o[6]=M(S(o[6])),o[7]=M(S(o[7])),o[8]=M(S(o[8]));var a=v.encode(o),u=v.decode(a);f={messageHash:n,v:S(u[6]),r:S(u[7]),s:S(u[8]),rawTransaction:a}}catch(t){return c(t),p.reject(t)}return c(null,f),f}return void 0!==e.nonce&&void 0!==e.chainId&&void 0!==e.gasPrice?p.resolve(r(e)):p.all([i(e.chainId)?this._ethereumCall.getId():e.chainId,i(e.gasPrice)?this._ethereumCall.getGasPrice():e.gasPrice,i(e.nonce)?this._ethereumCall.getTransactionCount(this.privateKeyToAccount(s).address):e.nonce]).then(function(t){if(i(t[0])||i(t[1])||i(t[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t));return r(d.extend(e,{chainId:t[0],gasPrice:t[1],nonce:t[2]}))})},e.prototype.recoverTransaction=function(t){var e=v.decode(t),r=y.encodeSignature(e.slice(6,9)),n=g.toNumber(e[6]),i=n<35?[]:[g.fromNumber(n-35>>1),"0x","0x"],o=e.slice(0,6).concat(i),a=v.encode(o);return y.recover(b.keccak256(a),r)},e.prototype.hashMessage=function(t){var e=x.isHexStrict(t)?x.hexToBytes(t):t,r=h.from(e),n="Ethereum Signed Message:\n"+e.length,i=h.from(n),o=h.concat([i,r]);return b.keccak256s(o)},e.prototype.sign=function(t,e){var r=this.hashMessage(t),n=y.sign(r,e),i=y.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,y.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,y.encodeSignature(n.slice(1,4)),r)):y.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=_(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=w.pbkdf2Sync(h.from(e),h.from(i.salt,"hex"),i.c,i.dklen,"sha256")}var a=h.from(o.crypto.ciphertext,"hex");if(x.sha3(h.concat([n.slice(16,32),a])).replace("0x","")!==o.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var u=w.createDecipheriv(o.crypto.cipher,n.slice(0,16),h.from(o.crypto.cipherparams.iv,"hex")),s="0x"+h.concat([u.update(a),u.final()]).toString("hex");return this.privateKeyToAccount(s)},e.prototype.encrypt=function(t,e,r){var n,i=this.privateKeyToAccount(t),o=(r=r||{}).salt||w.randomBytes(32),a=r.iv||w.randomBytes(16),u=r.kdf||"scrypt",s={dklen:r.dklen||32,salt:o.toString("hex")};if("pbkdf2"===u)s.c=r.c||262144,s.prf="hmac-sha256",n=w.pbkdf2Sync(h.from(e),o,s.c,s.dklen,"sha256");else{if("scrypt"!==u)throw new Error("Unsupported kdf");s.n=r.n||8192,s.r=r.r||8,s.p=r.p||1,n=_(h.from(e),o,s.n,s.r,s.p,s.dklen)}var c=w.createCipheriv(r.cipher||"aes-128-ctr",n.slice(0,16),a);if(!c)throw new Error("Unsupported cipher");var f=h.concat([c.update(h.from(i.privateKey.replace("0x",""),"hex")),c.final()]),l=x.sha3(h.concat([n.slice(16,32),h.from(f,"hex")])).replace("0x","");return{version:3,id:A.v4({random:r.uuid||w.randomBytes(16)}),address:i.address.toLowerCase().replace("0x",""),crypto:{ciphertext:f.toString("hex"),cipherparams:{iv:a.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:u,kdfparams:s,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)},"undefined"==typeof localStorage&&(delete o.prototype.save,delete o.prototype.load),u.exports=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"any-promise":252,buffer:47,crypto:56,"crypto-browserify":305,"eth-lib/lib/account":332,"eth-lib/lib/bytes":334,"eth-lib/lib/hash":335,"eth-lib/lib/nat":336,"eth-lib/lib/rlp":337,"scrypt.js":378,underscore:388,uuid:389,"web3-core":237,"web3-core-helpers":219,"web3-core-method":221,"web3-utils":443}],395:[function(t,J,Z){(function(X){!function(){var t="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self.self===self&&self||"object"==(void 0===X?"undefined":_typeof(X))&&X.global===X&&X||this||{},e=t._,n=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,s=n.slice,h=a.toString,o=a.hasOwnProperty,r=Array.isArray,u=Object.keys,c=Object.create,f=function(){},d=function t(e){return e instanceof t?e:this instanceof t?void(this._wrapped=e):new t(e)};void 0===Z||Z.nodeType?t._=d:(void 0!==J&&!J.nodeType&&J.exports&&(Z=J.exports=d),Z._=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 v=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)}},m=function(t){if(!d.isObject(t))return{};if(c)return c(t);f.prototype=t;var e=new f;return f.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,x=g("length"),k=function(t){var e=x(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),k(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=!k(t)&&d.keys(t),i=(n||t).length,o=Array(i),a=0;a<i;a++){var u=n?n[a]:a;o[a]=e(t[u],u,t)}return o};var S=function(s){return function(t,e,r,n){var i=3<=arguments.length;return function(t,e,r,n){var i=!k(t)&&d.keys(t),o=(i||t).length,a=0<s?0:o-1;for(n||(r=t[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;r=e(r,t[u],u,t)}return r}(t,y(e,n,4),r,i)}};d.reduce=d.foldl=d.inject=S(1),d.reduceRight=d.foldr=S(-1),d.find=d.detect=function(t,e,r){var n=(k(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=!k(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=!k(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 k(t)||(t=d.values(t)),("number"!=typeof r||n)&&(r=0),0<=d.indexOf(t,e,r)},d.invoke=v(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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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"!=_typeof(t[0])&&null!=t)for(var u=0,s=(t=k(t)?t:d.values(t)).length;u<s;u++)null!=(r=t[u])&&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 k(t)||(t=d.values(t)),t[d.random(t.length-1)];var n=k(t)?d.clone(t):d.values(t),i=x(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=d.random(a,o),s=n[a];n[a]=n[u],n[u]=s}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 M=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=M(function(t,e,r){w(t,r)?t[r].push(e):t[r]=[e]}),d.indexBy=M(function(t,e,r){t[r]=e}),d.countBy=M(function(t,e,r){w(t,r)?t[r]++:t[r]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(t){return t?d.isArray(t)?s.call(t):d.isString(t)?t.match(E):k(t)?d.map(t,d.identity):d.values(t):[]},d.size=function(t){return null==t?0:k(t)?t.length:d.keys(t).length},d.partition=M(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 s.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 s.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,u=x(e);a<u;a++){var s=e[a];if(k(s)&&(d.isArray(s)||d.isArguments(s)))if(r)for(var c=0,f=s.length;c<f;)i[o++]=s[c++];else t(s,r,n,i),o=i.length;else n||(i[o++]=s)}return i};d.flatten=function(t,e){return j(t,e,!1)},d.without=v(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,u=x(t);a<u;a++){var s=t[a],c=r?r(s,a,t):s;e&&!r?(a&&o===c||i.push(s),o=c):r?d.contains(o,c)||(o.push(c),i.push(s)):d.contains(i,s)||i.push(s)}return i},d.union=v(function(t){return d.uniq(j(t,!0,!0))}),d.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=x(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=v(function(t,e){return e=j(e,!0,!0),d.filter(t,function(t){return!d.contains(e,t)})}),d.zip=v(d.unzip=function(t){for(var e=t&&d.max(t,x).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=x(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r};var U=function(o){return function(t,e,r){e=b(e,r);for(var n=x(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=U(1),d.findLastIndex=U(-1);var I=function(o,a,u){return function(t,e,r){var n=0,i=x(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(u&&r&&i)return t[r=u(t,e)]===e?r:-1;if(e!=e)return 0<=(r=a(s.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=I(1,d.findIndex,d.sortedIndex=function(t,e,r,n){for(var i=(r=b(r,n,1))(e),o=0,a=x(t);o<a;){var u=Math.floor((o+a)/2);r(t[u])<i?o=u+1:a=u}return o}),d.lastIndexOf=I(-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(s.call(t,n,n+=e));return r};var O=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=m(t.prototype),a=t.apply(o,i);return d.isObject(a)?a:o};d.bind=v(function(e,r,n){if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return O(e,i,r,this,n.concat(t))});return i}),((d.partial=v(function(o,a){var u=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]===u?arguments[e++]:a[i];for(;e<arguments.length;)n.push(arguments[e++]);return O(o,t,this,this,n)}})).placeholder=d).bindAll=v(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=v(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,u,s,c=0;i||(i={});var f=function(){c=!1===i.leading?0:d.now(),o=null,s=r.apply(a,u),o||(a=u=null)},t=function(){var t=d.now();c||!1!==i.leading||(c=t);var e=n-(t-c);return a=this,u=arguments,e<=0||n<e?(o&&(clearTimeout(o),o=null),c=t,s=r.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(f,e)),s};return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},d.debounce=function(r,n,i){var o,a,u=function(t,e){o=null,e&&(a=r.apply(t,e))},t=v(function(t){if(o&&clearTimeout(o),i){var e=!o;o=setTimeout(u,n),e&&(a=r.apply(this,t))}else o=d.delay(u,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=v;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(t,e){var r=N.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=N[r])in t&&t[o]!==i[o]&&!d.contains(e,o)&&e.push(o)};d.keys=function(t){if(!d.isObject(t))return[];if(u)return u(t);var e=[];for(var r in t)w(t,r)&&e.push(r);return T&&B(t,e),e},d.allKeys=function(t){if(!d.isObject(t))return[];var e=[];for(var r in t)e.push(r);return T&&B(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 u=n[a];o[u]=e(t[u],u,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 P=function(s,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var r=1;r<e;r++)for(var n=arguments[r],i=s(n),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=n[u])}return t}};d.extend=P(d.allKeys),d.extendOwn=d.assign=P(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 C,R,F=function(t,e,r){return e in r};d.pick=v(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=F,e=j(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];n(u,a,t)&&(r[a]=u)}return r}),d.omit=v(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=P(d.allKeys,!0),d.create=function(t,e){var r=m(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},C=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=void 0===t?"undefined":_typeof(t);return("function"===i||"object"===i||"object"==(void 0===e?"undefined":_typeof(e)))&&R(t,e,r,n)},R=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"!=(void 0===t?"undefined":_typeof(t))||"object"!=(void 0===e?"undefined":_typeof(e)))return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var s=(r=r||[]).length;s--;)if(r[s]===t)return n[s]===e;if(r.push(t),n.push(e),o){if((s=t.length)!==e.length)return!1;for(;s--;)if(!C(t[s],e[s],r,n))return!1}else{var c,f=d.keys(t);if(s=f.length,d.keys(e).length!==s)return!1;for(;s--;)if(c=f[s],!w(e,c)||!C(t[c],e[c],r,n))return!1}return r.pop(),n.pop(),!0},d.isEqual=function(t,e){return C(t,e)},d.isEmpty=function(t){return null==t||(k(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=void 0===t?"undefined":_typeof(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 L=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))&&"function"!=typeof L&&(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 q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(q),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(q),d.unescape=z(D),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=/(.)^/,$={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+$[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,u="__p+='";o.replace(n,function(t,e,r,n,i){return u+=o.slice(a,i).replace(V,W),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":n&&(u+="';\n"+n+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}var i=function(t){return r.call(this,t,d)},s=t.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},d.chain=function(t){var e=d(t);return e._chain=!0,e};var G=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),G(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],G(this,t)}}),d.each(["concat","join","slice"],function(t){var e=n[t];d.prototype[t]=function(){return G(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:{})},{}],396:[function(t,e,r){var c=t("underscore"),f=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,u=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(f.packageInit(this,[this.constructor.currentProvider]),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];c.isObject(a)&&!c.isArray(a)&&(n=a,this.options=c.extend(this.options,this._getOrSetDefaultOptions(n)),c.isObject(r)&&(r=null)),Object.defineProperty(this.options,"address",{set:function(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 u=this.constructor.defaultAccount,s=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"defaultAccount",{get:function(){return u},set:function(t){return t&&(u=l.toChecksumAddress(h.inputAddressFormatter(t))),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return s},set:function(t){return s=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){f.packageInit(this,[t]),this._ethAccounts=e},o.prototype._getCallback=function(t){if(t&&c.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])}),c.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?c.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);"ALLEVENTS"===t.name&&(t=t.jsonInterface.find(function(t){return t.signature===e.topics[0]})||{anonymous:!0}),t.inputs=t.inputs||[];var n=t.anonymous?e.topics:e.topics.slice(1);return r.returnValues=d.decodeLog(t.inputs,e.data,n),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=c.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),c.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)return i;throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".')},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=c.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=c.isObject(t[t.length-1])?t.pop():{},n=c.isString(t[0])?t[0]:"allevents";if(!(n="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",""))})))throw new Error('Event "'+n.name+"\" 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(n,r),event:n,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(),c.isFunction(n)&&n(t,e,r)})},o.prototype._on=function(){var t=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",t.event.name,t.callback),this._checkListener("removeListener",t.event.name,t.callback);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),c.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]&&(c.isString(t[t.length-1])||isFinite(t[t.length-1]))&&(r.defaultBlock=t.pop()),r.options=c.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=u("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}).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(c.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(c.isArray(e.logs)){var t=c.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,extraFormatters:o}).createFunction()(t.options,t.callback)}},e.exports=o},{underscore:395,"web3-core":237,"web3-core-helpers":219,"web3-core-method":221,"web3-core-promievent":226,"web3-core-subscriptions":234,"web3-eth-abi":251,"web3-utils":443}],397:[function(t,e,r){(function(o){var a=t("js-sha3").keccak_256,e=t("idna-uts46-hx");function u(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=u(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=u}).call(this,t("buffer").Buffer)},{buffer:47,"idna-uts46-hx":399,"js-sha3":400}],398:[function(t,e,r){var n,i;n=this,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,629145
@andysign
Copy link
Author

From //cdn.jsdelivr.net/gh/ethereum/web3.js@1.2.0/dist/web3.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment