-
Notifications
You must be signed in to change notification settings - Fork 3
/
terraria-research-tracker.js
2 lines (2 loc) · 804 KB
/
terraria-research-tracker.js
1
2
/*! For license information please see terraria-research-tracker.js.LICENSE.txt */
var terrariaResearchTracker;(()=>{var e={9809:(e,t,i)=>{"use strict";const n=t;n.bignum=i(4590),n.define=i(2500).define,n.base=i(1979),n.constants=i(6826),n.decoders=i(8307),n.encoders=i(6579)},2500:(e,t,i)=>{"use strict";const n=i(6579),r=i(8307),d=i(5717);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function i(e){this._initNamed(e,t)}return d(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},o.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},o.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},6625:(e,t,i)=>{"use strict";const n=i(5717),r=i(8465).b,d=i(2399).Buffer;function o(e,t){r.call(this,t),d.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=d.byteLength(e);else{if(!d.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(o,r),t.C=o,o.isDecoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&d.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(e){const t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=a,a.isEncoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=d.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):d.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},1979:(e,t,i)=>{"use strict";const n=t;n.Reporter=i(8465).b,n.DecoderBuffer=i(6625).C,n.EncoderBuffer=i(6625).R,n.Node=i(1949)},1949:(e,t,i)=>{"use strict";const n=i(8465).b,r=i(6625).R,d=i(6625).C,o=i(9746),a=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function h(e,t,i){const n={};this._baseState=n,n.name=i,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=h;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(i){t[i]=e[i]}));const i=new this.constructor(t.parent);return i._baseState=t,i},h.prototype._wrap=function(){const e=this._baseState;s.forEach((function(t){this[t]=function(){const i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},h.prototype._init=function(e){const t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(e){const t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(o(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);const n=e[i];t[n]=i})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){h.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){h.prototype[e]=function(){const t=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(i),this}})),h.prototype.use=function(e){o(e);const t=this._baseState;return o(null===t.use),t.use=e,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(e){const t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},h.prototype.explicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},h.prototype.implicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},h.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},h.prototype.key=function(e){const t=this._baseState;return o(null===t.key),t.key=e,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(e){const t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},h.prototype.contains=function(e){const t=this._baseState;return o(null===t.use),t.contains=e,this},h.prototype._decode=function(e,t){const i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let n,r=i.default,o=!0,a=null;if(null!==i.key&&(a=e.enterKey(i.key)),i.optional){let n=null;if(null!==i.explicit?n=i.explicit:null!==i.implicit?n=i.implicit:null!==i.tag&&(n=i.tag),null!==n||i.any){if(o=this._peekTag(e,n,i.any),e.isError(o))return o}else{const n=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),o=!0}catch(s){o=!1}e.restore(n)}}if(i.obj&&o&&(n=e.enterObject()),o){if(null!==i.explicit){const t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());const n=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(n))return n;i.any?r=e.raw(t):e=n}if(t&&t.track&&null!==i.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const n=new d(r);r=this._getUse(i.contains,e._reporterState.obj)._decode(n,t)}}return i.obj&&o&&(r=e.leaveObject(n)),null===i.key||null===r&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,i.key,r),r},h.prototype._decodeGeneric=function(e,t,i){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},h.prototype._getUse=function(e,t){const i=this._baseState;return i.useDecoder=this._use(e,t),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},h.prototype._decodeChoice=function(e,t){const i=this._baseState;let n=null,r=!1;return Object.keys(i.choice).some((function(d){const o=e.save(),a=i.choice[d];try{const i=a._decode(e,t);if(e.isError(i))return!1;n={type:d,value:i},r=!0}catch(s){return e.restore(o),!1}return!0}),this),r?n:e.error("Choice not matched")},h.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},h.prototype._encode=function(e,t,i){const n=this._baseState;if(null!==n.default&&n.default===e)return;const r=this._encodeValue(e,t,i);return void 0===r||this._skipDefault(r,t,i)?void 0:r},h.prototype._encodeValue=function(e,t,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new n);let d=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)d=this._createEncoderBuffer(e);else if(r.choice)d=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,i)._encode(e,t),a=!0;else if(r.children)o=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");const n=t.enterKey(i._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const r=i._encode(e[i._baseState.key],t,e);return t.leaveKey(n),r}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(i){const n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)}),i))}else null!==r.use?d=this._getUse(r.use,i)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(d=this._encodeComposite(e,a,i,o))}return null!==r.explicit&&(d=this._encodeComposite(r.explicit,!1,"context",d)),d},h.prototype._encodeChoice=function(e,t){const i=this._baseState,n=i.choice[e.type];return n||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,t)},h.prototype._encodePrimitive=function(e,t){const i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},h.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},h.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},8465:(e,t,i)=>{"use strict";const n=i(5717);function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function d(e,t){this.path=e,this.rethrow(t)}t.b=r,r.prototype.isError=function(e){return e instanceof d},r.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,i){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){const t=this._reporterState,i=t.obj;return t.obj=e,i},r.prototype.error=function(e){let t;const i=this._reporterState,n=e instanceof d;if(t=n?e:new d(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return n||i.errors.push(t),t},r.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(d,Error),d.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,d),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},160:(e,t)=>{"use strict";function i(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const n=e[i];t[n]=i})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=i(t.tagClass),t.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"},t.tagByName=i(t.tag)},6826:(e,t,i)=>{"use strict";const n=t;n._reverse=function(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const n=e[i];t[n]=i})),t},n.der=i(160)},1671:(e,t,i)=>{"use strict";const n=i(5717),r=i(4590),d=i(6625).C,o=i(1949),a=i(160);function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new h,this.tree._init(e.body)}function h(e){o.call(this,"der",e)}function u(e,t){let i=e.readUInt8(t);if(e.isError(i))return i;const n=a.tagClass[i>>6],r=0==(32&i);if(31==(31&i)){let n=i;for(i=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;i<<=7,i|=127&n}}else i&=31;return{cls:n,primitive:r,tag:i,tagStr:a.tag[i]}}function l(e,t,i){let n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const r=127&n;if(r>4)return e.error("length octect is too long");n=0;for(let d=0;d<r;d++){n<<=8;const t=e.readUInt8(i);if(e.isError(t))return t;n|=t}return n}e.exports=s,s.prototype.decode=function(e,t){return d.isDecoderBuffer(e)||(e=new d(e,t)),this.tree._decode(e,t)},n(h,o),h.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;const n=e.save(),r=u(e,'Failed to peek tag: "'+t+'"');return e.isError(r)?r:(e.restore(n),r.tag===t||r.tagStr===t||r.tagStr+"of"===t||i)},h.prototype._decodeTag=function(e,t,i){const n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let r=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(r))return r;if(!i&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==r)return e.skip(r,'Failed to match body of: "'+t+'"');const d=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(r=e.offset-d.offset,e.restore(d),e.skip(r,'Failed to match body of: "'+t+'"'))},h.prototype._skipUntilEnd=function(e,t){for(;;){const i=u(e,t);if(e.isError(i))return i;const n=l(e,i.primitive,t);if(e.isError(n))return n;let r;if(r=i.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===i.tagStr)break}},h.prototype._decodeList=function(e,t,i,n){const r=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const d=i.decode(e,"der",n);if(e.isError(d)&&t)break;r.push(d)}return r},h.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let i="";for(let e=0;e<t.length/2;e++)i+=String.fromCharCode(t.readUInt16BE(2*e));return i}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},h.prototype._decodeObjid=function(e,t,i){let n;const r=[];let d=0,o=0;for(;!e.isEmpty();)o=e.readUInt8(),d<<=7,d|=127&o,0==(128&o)&&(r.push(d),d=0);128&o&&r.push(d);const a=r[0]/40|0,s=r[0]%40;if(n=i?r:[a,s].concat(r.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},h.prototype._decodeTime=function(e,t){const i=e.raw().toString();let n,r,d,o,a,s;if("gentime"===t)n=0|i.slice(0,4),r=0|i.slice(4,6),d=0|i.slice(6,8),o=0|i.slice(8,10),a=0|i.slice(10,12),s=0|i.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|i.slice(0,2),r=0|i.slice(2,4),d=0|i.slice(4,6),o=0|i.slice(6,8),a=0|i.slice(8,10),s=0|i.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,d,o,a,s,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},h.prototype._decodeInt=function(e,t){const i=e.raw();let n=new r(i);return t&&(n=t[n.toString(10)]||n),n},h.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},8307:(e,t,i)=>{"use strict";const n=t;n.der=i(1671),n.pem=i(9631)},9631:(e,t,i)=>{"use strict";const n=i(5717),r=i(2399).Buffer,d=i(1671);function o(e){d.call(this,e),this.enc="pem"}n(o,d),e.exports=o,o.prototype.decode=function(e,t){const i=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,s=-1;for(let r=0;r<i.length;r++){const e=i[r].match(o);if(null!==e&&e[2]===n){if(-1!==a){if("END"!==e[1])break;s=r;break}if("BEGIN"!==e[1])break;a=r}}if(-1===a||-1===s)throw new Error("PEM section not found for: "+n);const h=i.slice(a+1,s).join("");h.replace(/[^a-z0-9+/=]+/gi,"");const u=r.from(h,"base64");return d.prototype.decode.call(this,u,t)}},6984:(e,t,i)=>{"use strict";const n=i(5717),r=i(2399).Buffer,d=i(1949),o=i(160);function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){d.call(this,"der",e)}function h(e){return e<10?"0"+e:e}e.exports=a,a.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(s,d),s.prototype._encodeComposite=function(e,t,i,n){const d=function(e,t,i,n){let r;"seqof"===e?e="seq":"setof"===e&&(e="set");if(o.tagByName.hasOwnProperty(e))r=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);r=e}if(r>=31)return n.error("Multi-octet tag encoding unsupported");t||(r|=32);return r|=o.tagClassByName[i||"universal"]<<6,r}(e,t,i,this.reporter);if(n.length<128){const e=r.alloc(2);return e[0]=d,e[1]=n.length,this._createEncoderBuffer([e,n])}let a=1;for(let r=n.length;r>=256;r>>=8)a++;const s=r.alloc(2+a);s[0]=d,s[1]=128|a;for(let r=1+a,o=n.length;o>0;r--,o>>=8)s[r]=255&o;return this._createEncoderBuffer([s,n])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=r.alloc(2*e.length);for(let i=0;i<e.length;i++)t.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},s.prototype._encodeObjid=function(e,t,i){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let r=0;r<e.length;r++){let t=e[r];for(n++;t>=128;t>>=7)n++}const d=r.alloc(n);let o=d.length-1;for(let r=e.length-1;r>=0;r--){let t=e[r];for(d[o--]=127&t;(t>>=7)>0;)d[o--]=128|127&t}return this._createEncoderBuffer(d)},s.prototype._encodeTime=function(e,t){let i;const n=new Date(e);return"gentime"===t?i=[h(n.getUTCFullYear()),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[h(n.getUTCFullYear()%100),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!r.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=r.from(t)}if(r.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=r.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let r=e;r>=256;r>>=8)i++;const n=new Array(i);for(let r=n.length-1;r>=0;r--)n[r]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(r.from(n))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,i){const n=this._baseState;let r;if(null===n.default)return!1;const d=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,i).join()),d.length!==n.defaultBuffer.length)return!1;for(r=0;r<d.length;r++)if(d[r]!==n.defaultBuffer[r])return!1;return!0}},6579:(e,t,i)=>{"use strict";const n=t;n.der=i(6984),n.pem=i(2883)},2883:(e,t,i)=>{"use strict";const n=i(5717),r=i(6984);function d(e){r.call(this,e),this.enc="pem"}n(d,r),e.exports=d,d.prototype.encode=function(e,t){const i=r.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let r=0;r<i.length;r+=64)n.push(i.slice(r,r+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},4590:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(k){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,n){for(var r=0,d=Math.min(e.length,i),o=t;o<d;o++){var a=e.charCodeAt(o)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this.strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this.strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},d.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 c(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],c=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(e);i=(p=p.idivn(c)).isZero()?m+i:u[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16)},d.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},d.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,h=new e(d),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[a]=o;for(;a<d;a++)h[a]=0}else{for(a=0;a<d-r;a++)h[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[d-a-1]=o}return h},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=c),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?c(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),m(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,d=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=d>>>26,this.words[i]=67108863&d}return 0!==t&&(this.words[i]=t,this.length++),this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this.strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},d.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new S(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}y.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,y),r(M,y),r(_,y),_.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new B(e)},r(B,S),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){var t,i,d=s(e),o=d[0],a=d[1],h=new r(function(e,t,i){return 3*(t+i)/4-i}(0,o,a)),u=0,l=a>0?o-4:o;for(i=0;i<l;i+=4)t=n[e.charCodeAt(i)]<<18|n[e.charCodeAt(i+1)]<<12|n[e.charCodeAt(i+2)]<<6|n[e.charCodeAt(i+3)],h[u++]=t>>16&255,h[u++]=t>>8&255,h[u++]=255&t;2===a&&(t=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,h[u++]=255&t);1===a&&(t=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,h[u++]=t>>8&255,h[u++]=255&t);return h},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,d=[],o=16383,a=0,s=n-r;a<s;a+=o)d.push(h(e,a,a+o>s?s:a+o));1===r?(t=e[n-1],d.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],d.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return d.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=d.length;o<a;++o)i[o]=d[o],n[d.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function h(e,t,n){for(var r,d,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(i[(d=r)>>18&63]+i[d>>12&63]+i[d>>6&63]+i[63&d]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},3550:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(P){}function a(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void n(!1,"Invalid character in "+e)}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,r){for(var d=0,o=0,a=Math.min(e.length,i),s=t;s<a;s++){var h=e.charCodeAt(s)-48;d*=r,o=h>=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&o<r,"Invalid character"),d+=o}return d}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this._strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this._strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this._strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype._move=function(e){u(e,this)},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{d.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(P){d.prototype.inspect=l}else d.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","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"],c=[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];d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?f[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=c[e],u=p[e];i="";var l=this.clone();for(l.negative=0;!l.isZero();){var m=l.modrn(u).toString(e);i=(l=l.idivn(u)).isZero()?m+i:f[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16,2)},o&&(d.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i._strip()}d.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,d);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,r),o},d.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,r=0,d=0;r<this.length;r++){var o=this.words[r]<<d|n;e[i++]=255&o,i<e.length&&(e[i++]=o>>8&255),i<e.length&&(e[i++]=o>>16&255),6===d?(i<e.length&&(e[i++]=o>>24&255),n=0,d=0):(n=o>>>24,d+=2)}if(i<e.length)for(e[i++]=n;i<e.length;)e[i++]=0},d.prototype._toArrayLikeBE=function(e,t){for(var i=e.length-1,n=0,r=0,d=0;r<this.length;r++){var o=this.words[r]<<d|n;e[i--]=255&o,i>=0&&(e[i--]=o>>8&255),i>=0&&(e[i--]=o>>16&255),6===d?(i>=0&&(e[i--]=o>>24&255),n=0,d=0):(n=o>>>24,d+=2)}if(i>=0)for(e[i--]=n;i>=0;)e[i--]=0},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this._strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this._strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this._strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function b(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i._strip()}function y(e,t,i){return b(e,t,i)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):i<63?m(this,e,t):i<1024?b(this,e,t):y(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},v.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},v.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},v.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},v.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},v.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},v.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},v.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},v.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},v.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i._strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),y(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var i=0,r=0;r<this.length;r++){var d=(0|this.words[r])*e,o=(67108863&d)+(67108863&i);i>>=26,i+=d/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=e.words[n]>>>r&1}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this._strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this._strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this._strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this._strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=(1<<26)%e,r=0,d=this.length-1;d>=0;d--)r=(i*r+(0|this.words[d]))%e;return t?-r:r},d.prototype.modn=function(e){return this.modrn(e)},d.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var d=(0|this.words[r])+67108864*i;this.words[r]=d/e|0,i=d%e}return this._strip(),t?this.ineg():this},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new C(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function M(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function B(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}M.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},M.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},M.prototype.split=function(e,t){e.iushrn(this.n,0,t)},M.prototype.imulK=function(e){return e.imul(this.k)},r(_,M),_.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(S,M),r(B,M),r(k,M),k.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new B;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return w[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new A(e)},r(A,C),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},9931:(e,t,i)=>{var n;function r(e){this.rand=e}if(e.exports=function(e){return n||(n=new r(null)),n.generate(e)},e.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var d=i(3906);if("function"!=typeof d.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return d.randomBytes(e)}}catch(o){}},4497:(e,t,i)=>{var n=i(9509).Buffer;function r(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,i=new Array(t),r=0;r<t;r++)i[r]=e.readUInt32BE(4*r);return i}function d(e){for(;0<e.length;e++)e[0]=0}function o(e,t,i,n,r){for(var d,o,a,s,h=i[0],u=i[1],l=i[2],f=i[3],c=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],b=4,y=1;y<r;y++)d=h[c>>>24]^u[p>>>16&255]^l[m>>>8&255]^f[255&g]^t[b++],o=h[p>>>24]^u[m>>>16&255]^l[g>>>8&255]^f[255&c]^t[b++],a=h[m>>>24]^u[g>>>16&255]^l[c>>>8&255]^f[255&p]^t[b++],s=h[g>>>24]^u[c>>>16&255]^l[p>>>8&255]^f[255&m]^t[b++],c=d,p=o,m=a,g=s;return d=(n[c>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[b++],o=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&c])^t[b++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[c>>>8&255]<<8|n[255&p])^t[b++],s=(n[g>>>24]<<24|n[c>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[b++],[d>>>=0,o>>>=0,a>>>=0,s>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],r=[[],[],[],[]],d=[[],[],[],[]],o=0,a=0,s=0;s<256;++s){var h=a^a<<1^a<<2^a<<3^a<<4;h=h>>>8^255&h^99,i[o]=h,n[h]=o;var u=e[o],l=e[u],f=e[l],c=257*e[h]^16843008*h;r[0][o]=c<<24|c>>>8,r[1][o]=c<<16|c>>>16,r[2][o]=c<<8|c>>>24,r[3][o]=c,c=16843009*f^65537*l^257*u^16843008*o,d[0][h]=c<<24|c>>>8,d[1][h]=c<<16|c>>>16,d[2][h]=c<<8|c>>>24,d[3][h]=c,0===o?o=a=1:(o=u^e[e[e[f^u]]],a^=e[e[a]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:r,INV_SUB_MIX:d}}();function h(e){this._key=r(e),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),r=[],d=0;d<t;d++)r[d]=e[d];for(d=t;d<n;d++){var o=r[d-1];d%t==0?(o=o<<8|o>>>24,o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o],o^=a[d/t|0]<<24):t>6&&d%t==4&&(o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o]),r[d]=r[d-t]^o}for(var h=[],u=0;u<n;u++){var l=n-u,f=r[l-(u%4?0:4)];h[u]=u<4||l<=4?f:s.INV_SUB_MIX[0][s.SBOX[f>>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&f]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(e){return o(e=r(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},h.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},h.prototype.decryptBlock=function(e){var t=(e=r(e))[1];e[1]=e[3],e[3]=t;var i=o(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),d=n.allocUnsafe(16);return d.writeUInt32BE(i[0],0),d.writeUInt32BE(i[3],4),d.writeUInt32BE(i[2],8),d.writeUInt32BE(i[1],12),d},h.prototype.scrub=function(){d(this._keySchedule),d(this._invKeySchedule),d(this._key)},e.exports.AES=h},2422:(e,t,i)=>{var n=i(4497),r=i(9509).Buffer,d=i(1027),o=i(5717),a=i(3288),s=i(7295),h=i(685);function u(e,t,i,o){d.call(this);var s=r.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(s);this._ghash=new a(u),i=function(e,t,i){if(12===t.length)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var n=new a(i),d=t.length,o=d%16;n.update(t),o&&(o=16-o,n.update(r.alloc(o,0))),n.update(r.alloc(8,0));var s=8*d,u=r.alloc(8);u.writeUIntBE(s,0,8),n.update(u),e._finID=n.state;var l=r.from(e._finID);return h(l),l}(this,i,u),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,d),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),r=0;r<n;++r)i+=e[r]^t[r];return i}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},4696:(e,t,i)=>{var n=i(1494),r=i(6193),d=i(5415);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=r.createDecipher,t.createDecipheriv=t.Decipheriv=r.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(d)}},6193:(e,t,i)=>{var n=i(2422),r=i(9509).Buffer,d=i(45),o=i(5969),a=i(1027),s=i(4497),h=i(3048);function u(e,t,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new s.AES(t),this._prev=r.from(i),this._mode=e,this._autopadding=!0}function l(){this.cache=r.allocUnsafe(0)}function f(e,t,i){var a=d[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=r.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof t&&(t=r.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,i,!0):"auth"===a.type?new n(a.module,t,i,!0):new u(a.module,t,i)}i(5717)(u,a),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,t),n.push(i);return r.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<t;)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=r.concat([this.cache,e])},l.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var i=d[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=h(t,!1,i.key,i.iv);return f(e,n.key,n.iv)},t.createDecipheriv=f},1494:(e,t,i)=>{var n=i(45),r=i(2422),d=i(9509).Buffer,o=i(5969),a=i(1027),s=i(4497),h=i(3048);function u(e,t,i){a.call(this),this._cache=new f,this._cipher=new s.AES(t),this._prev=d.from(i),this._mode=e,this._autopadding=!0}i(5717)(u,a),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get();)i=this._mode.encrypt(this,t),n.push(i);return d.concat(n)};var l=d.alloc(16,16);function f(){this.cache=d.allocUnsafe(0)}function c(e,t,i){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=d.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=d.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new o(a.module,t,i):"auth"===a.type?new r(a.module,t,i):new u(a.module,t,i)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=d.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=d.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return d.concat([this.cache,t])},t.createCipheriv=c,t.createCipher=function(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=h(t,!1,i.key,i.iv);return c(e,r.key,r.iv)}},3288:(e,t,i)=>{var n=i(9509).Buffer,r=n.alloc(16,0);function d(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,i,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],r=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),i=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=d(r)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(d([0,e,0,t])),this.state},e.exports=o},685:e=>{e.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},5292:(e,t,i)=>{var n=i(7295);t.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},t.decrypt=function(e,t){var i=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return n(r,i)}},6311:(e,t,i)=>{var n=i(9509).Buffer,r=i(7295);function d(e,t,i){var d=t.length,o=r(t,e._cache);return e._cache=e._cache.slice(d),e._prev=n.concat([e._prev,i?t:o]),o}t.encrypt=function(e,t,i){for(var r,o=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){o=n.concat([o,d(e,t,i)]);break}r=e._cache.length,o=n.concat([o,d(e,t.slice(0,r),i)]),t=t.slice(r)}return o}},1510:(e,t,i)=>{var n=i(9509).Buffer;function r(e,t,i){for(var n,r,o=-1,a=0;++o<8;)n=t&1<<7-o?128:0,a+=(128&(r=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=d(e._prev,i?n:r);return a}function d(e,t){var i=e.length,r=-1,d=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++r<i;)d[r]=e[r]<<1|e[r+1]>>7;return d}t.encrypt=function(e,t,i){for(var d=t.length,o=n.allocUnsafe(d),a=-1;++a<d;)o[a]=r(e,t[a],i);return o}},1964:(e,t,i)=>{var n=i(9509).Buffer;function r(e,t,i){var r=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([i?t:r])]),r}t.encrypt=function(e,t,i){for(var d=t.length,o=n.allocUnsafe(d),a=-1;++a<d;)o[a]=r(e,t[a],i);return o}},6009:(e,t,i)=>{var n=i(7295),r=i(9509).Buffer,d=i(685);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return d(e._prev),t}t.encrypt=function(e,t){var i=Math.ceil(t.length/16),d=e._cache.length;e._cache=r.concat([e._cache,r.allocUnsafe(16*i)]);for(var a=0;a<i;a++){var s=o(e),h=d+16*a;e._cache.writeUInt32BE(s[0],h+0),e._cache.writeUInt32BE(s[1],h+4),e._cache.writeUInt32BE(s[2],h+8),e._cache.writeUInt32BE(s[3],h+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},1084:(e,t)=>{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},45:(e,t,i)=>{var n={ECB:i(1084),CBC:i(5292),CFB:i(6311),CFB8:i(1964),CFB1:i(1510),OFB:i(8861),CTR:i(6009),GCM:i(6009)},r=i(5415);for(var d in r)r[d].module=n[r[d].mode];e.exports=r},5415:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8861:(e,t,i)=>{var n=i(8764).Buffer,r=i(7295);function d(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=n.concat([e._cache,d(e)]);var i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,i)}},5969:(e,t,i)=>{var n=i(4497),r=i(9509).Buffer,d=i(1027);function o(e,t,i,o){d.call(this),this._cipher=new n.AES(t),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=e}i(5717)(o,d),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},3614:(e,t,i)=>{var n=i(7667),r=i(4696),d=i(45),o=i(9715),a=i(3048);function s(e,t,i){if(e=e.toLowerCase(),d[e])return r.createCipheriv(e,t,i);if(o[e])return new n({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function h(e,t,i){if(e=e.toLowerCase(),d[e])return r.createDecipheriv(e,t,i);if(o[e])return new n({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var i,n;if(e=e.toLowerCase(),d[e])i=d[e].key,n=d[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");i=8*o[e].key,n=o[e].iv}var r=a(t,!1,i,n);return s(e,r.key,r.iv)},t.createCipheriv=t.Cipheriv=s,t.createDecipher=t.Decipher=function(e,t){var i,n;if(e=e.toLowerCase(),d[e])i=d[e].key,n=d[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");i=8*o[e].key,n=o[e].iv}var r=a(t,!1,i,n);return h(e,r.key,r.iv)},t.createDecipheriv=t.Decipheriv=h,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(r.getCiphers())}},7667:(e,t,i)=>{var n=i(1027),r=i(5251),d=i(5717),o=i(9509).Buffer,a={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function s(e){n.call(this);var t,i=e.mode.toLowerCase(),r=a[i];t=e.decrypt?"decrypt":"encrypt";var d=e.key;o.isBuffer(d)||(d=o.from(d)),"des-ede"!==i&&"des-ede-cbc"!==i||(d=o.concat([d,d.slice(0,8)]));var s=e.iv;o.isBuffer(s)||(s=o.from(s)),this._des=r.create({key:d,iv:s,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=s,d(s,n),s.prototype._update=function(e){return o.from(this._des.update(e))},s.prototype._final=function(){return o.from(this._des.final())}},9715:(e,t)=>{t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},3663:(e,t,i)=>{var n=i(8764).Buffer,r=i(3550),d=i(1798);function o(e){var t,i=e.modulus.byteLength();do{t=new r(d(i))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,t){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),d=t.modulus.byteLength(),a=new r(e).mul(i.blinder).umod(t.modulus),s=a.toRed(r.mont(t.prime1)),h=a.toRed(r.mont(t.prime2)),u=t.coefficient,l=t.prime1,f=t.prime2,c=s.redPow(t.exponent1).fromRed(),p=h.redPow(t.exponent2).fromRed(),m=c.isub(p).imul(u).umod(l).imul(f);return p.iadd(m).imul(i.unblinder).umod(t.modulus).toArrayLike(n,"be",d)}a.getr=o,e.exports=a},6042:(e,t,i)=>{e.exports=i(2063)},2063:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2236:e=>{"use strict";e.exports=JSON.parse('{"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"}')},4743:(e,t,i)=>{var n=i(5679).Buffer,r=i(3482),d=i(8473),o=i(5717),a=i(2957),s=i(7753),h=i(2063);function u(e){d.Writable.call(this);var t=h[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){d.Writable.call(this);var t=h[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function c(e){return new l(e)}Object.keys(h).forEach((function(e){h[e].id=n.from(h[e].id,"hex"),h[e.toLowerCase()]=h[e]})),o(u,d.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=a(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(l,d.Writable),l.prototype._write=function(e,t,i){this._hash.update(e),i()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,i){"string"==typeof t&&(t=n.from(t,i)),this.end();var r=this._hash.digest();return s(t,r,e,this._signType,this._tag)},e.exports={Sign:f,Verify:c,createSign:f,createVerify:c}},2957:(e,t,i)=>{var n=i(5679).Buffer,r=i(8355),d=i(3663),o=i(6266).ec,a=i(3550),s=i(980),h=i(2236);function u(e,t,i,d){if((e=n.from(e.toArray())).length<t.byteLength()){var o=n.alloc(t.byteLength()-e.length);e=n.concat([o,e])}var a=i.length,s=function(e,t){e=(e=l(e,t)).mod(t);var i=n.from(e.toArray());if(i.length<t.byteLength()){var r=n.alloc(t.byteLength()-i.length);i=n.concat([r,i])}return i}(i,t),h=n.alloc(a);h.fill(1);var u=n.alloc(a);return u=r(d,u).update(h).update(n.from([0])).update(e).update(s).digest(),h=r(d,u).update(h).digest(),{k:u=r(d,u).update(h).update(n.from([1])).update(e).update(s).digest(),v:h=r(d,u).update(h).digest()}}function l(e,t){var i=new a(e),n=(e.length<<3)-t.bitLength();return n>0&&i.ishrn(n),i}function f(e,t,i){var d,o;do{for(d=n.alloc(0);8*d.length<e.bitLength();)t.v=r(i,t.k).update(t.v).digest(),d=n.concat([d,t.v]);o=l(d,e),t.k=r(i,t.k).update(t.v).update(n.from([0])).digest(),t.v=r(i,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function c(e,t,i,n){return e.toRed(a.mont(i)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,i,r,p){var m=s(t);if(m.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return function(e,t){var i=h[t.curve.join(".")];if(!i)throw new Error("unknown curve "+t.curve.join("."));var r=new o(i).keyFromPrivate(t.privateKey).sign(e);return n.from(r.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==r)throw new Error("wrong private key type");return function(e,t,i){var r,d=t.params.priv_key,o=t.params.p,s=t.params.q,h=t.params.g,p=new a(0),m=l(e,s).mod(s),g=!1,b=u(d,s,e,i);for(;!1===g;)p=c(h,r=f(s,b,i),o,s),0===(g=r.invm(s).imul(m.add(d.mul(p))).mod(s)).cmpn(0)&&(g=!1,p=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var i=[48,e.length+t.length+4,2,e.length];return i=i.concat(e,[2,t.length],t),n.from(i)}(p,g)}(e,m,i)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");e=n.concat([p,e]);for(var g=m.modulus.byteLength(),b=[0,1];e.length+b.length+1<g;)b.push(255);b.push(0);for(var y=-1;++y<e.length;)b.push(e[y]);return d(b,m)},e.exports.getKey=u,e.exports.makeKey=f},7753:(e,t,i)=>{var n=i(5679).Buffer,r=i(3550),d=i(6266).ec,o=i(980),a=i(2236);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,i,h,u){var l=o(i);if("ec"===l.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(e,t,i){var n=a[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new d(n),o=i.data.subjectPrivateKey.data;return r.verify(t,e,o)}(e,t,l)}if("dsa"===l.type){if("dsa"!==h)throw new Error("wrong public key type");return function(e,t,i){var n=i.data.p,d=i.data.q,a=i.data.g,h=i.data.pub_key,u=o.signature.decode(e,"der"),l=u.s,f=u.r;s(l,d),s(f,d);var c=r.mont(n),p=l.invm(d);return 0===a.toRed(c).redPow(new r(t).mul(p).mod(d)).fromRed().mul(h.toRed(c).redPow(f.mul(p).mod(d)).fromRed()).mod(n).mod(d).cmp(f)}(e,t,l)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");t=n.concat([u,t]);for(var f=l.modulus.byteLength(),c=[1],p=0;t.length+c.length+2<f;)c.push(255),p++;c.push(0);for(var m=-1;++m<t.length;)c.push(t[m]);c=n.from(c);var g=r.mont(l.modulus);e=(e=new r(e).toRed(g)).redPow(new r(l.publicExponent)),e=n.from(e.fromRed().toArray());var b=p<8?1:0;for(f=Math.min(e.length,c.length),e.length!==c.length&&(b=1),m=-1;++m<f;)b|=e[m]^c[m];return 0===b}},5679:(e,t,i)=>{var n=i(8764),r=n.Buffer;function d(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(d(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),d(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},7295:(e,t,i)=>{var n=i(8764).Buffer;e.exports=function(e,t){for(var i=Math.min(e.length,t.length),r=new n(i),d=0;d<i;++d)r[d]=e[d]^t[d];return r}},8764:(e,t,i)=>{"use strict";const n=i(9742),r=i(645),d="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return h(e,t,i)}function h(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|m(e,t);let n=a(i);const r=n.write(e,t);r!==i&&(n=n.slice(0,r));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return c(e,t,i);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return c(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,i);const r=function(e){if(s.isBuffer(e)){const t=0|p(e.length),i=a(t);return 0===i.length||e.copy(i,0,0,t),i}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?a(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),a(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),i=a(t);for(let n=0;n<t;n+=1)i[n]=255&e[n];return i}function c(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),Object.setPrototypeOf(n,s.prototype),n}function p(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const i=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Z(e).length;default:if(r)return n?-1:K(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,i){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,i);case"utf8":case"utf-8":return C(this,t,i);case"ascii":return P(this,t,i);case"latin1":case"binary":return E(this,t,i);case"base64":return k(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function y(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Y(i=+i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,i,n,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):v(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,i,n,r){let d,o=1,a=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,i/=2}function h(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){let n=-1;for(d=i;d<a;d++)if(h(e,d)===h(t,-1===n?0:d-n)){if(-1===n&&(n=d),d-n+1===s)return n*o}else-1!==n&&(d-=d-n),n=-1}else for(i+s>a&&(i=a-s),d=i;d>=0;d--){let i=!0;for(let n=0;n<s;n++)if(h(e,d+n)!==h(t,n)){i=!1;break}if(i)return d}return-1}function w(e,t,i,n){i=Number(i)||0;const r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;const d=t.length;let o;for(n>d/2&&(n=d/2),o=0;o<n;++o){const n=parseInt(t.substr(2*o,2),16);if(Y(n))return o;e[i+o]=n}return o}function M(e,t,i,n){return V(K(t,e.length-i),e,i,n)}function _(e,t,i,n){return V(function(e){const t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function S(e,t,i,n){return V(Z(t),e,i,n)}function B(e,t,i,n){return V(function(e,t){let i,n,r;const d=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)i=e.charCodeAt(o),n=i>>8,r=i%256,d.push(r),d.push(n);return d}(t,e.length-i),e,i,n)}function k(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function C(e,t,i){i=Math.min(e.length,i);const n=[];let r=t;for(;r<i;){const t=e[r];let d=null,o=t>239?4:t>223?3:t>191?2:1;if(r+o<=i){let i,n,a,s;switch(o){case 1:t<128&&(d=t);break;case 2:i=e[r+1],128==(192&i)&&(s=(31&t)<<6|63&i,s>127&&(d=s));break;case 3:i=e[r+1],n=e[r+2],128==(192&i)&&128==(192&n)&&(s=(15&t)<<12|(63&i)<<6|63&n,s>2047&&(s<55296||s>57343)&&(d=s));break;case 4:i=e[r+1],n=e[r+2],a=e[r+3],128==(192&i)&&128==(192&n)&&128==(192&a)&&(s=(15&t)<<18|(63&i)<<12|(63&n)<<6|63&a,s>65535&&s<1114112&&(d=s))}}null===d?(d=65533,o=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),r+=o}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let i="",n=0;for(;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=A));return i}(n)}t.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,i){return h(e,t,i)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,i){return function(e,t,i){return u(e),e<=0?a(e):void 0!==t?"string"==typeof i?a(e).fill(t,i):a(e).fill(t):a(e)}(e,t,i)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,n=t.length;for(let r=0,d=Math.min(i,n);r<d;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const n=s.allocUnsafe(t);let r=0;for(i=0;i<e.length;++i){let t=e[i];if(J(t,Uint8Array))r+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,r)):Uint8Array.prototype.set.call(n,t,r);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,r)}r+=t.length}return n},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="";const i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},d&&(s.prototype[d]=s.prototype.inspect),s.prototype.compare=function(e,t,i,n,r){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;let d=(r>>>=0)-(n>>>=0),o=(i>>>=0)-(t>>>=0);const a=Math.min(d,o),h=this.slice(n,r),u=e.slice(t,i);for(let s=0;s<a;++s)if(h[s]!==u[s]){d=h[s],o=u[s];break}return d<o?-1:o<d?1:0},s.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},s.prototype.indexOf=function(e,t,i){return y(this,e,t,i,!0)},s.prototype.lastIndexOf=function(e,t,i){return y(this,e,t,i,!1)},s.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}const r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let d=!1;for(;;)switch(n){case"hex":return w(this,e,t,i);case"utf8":case"utf-8":return M(this,e,t,i);case"ascii":case"latin1":case"binary":return _(this,e,t,i);case"base64":return S(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,i);default:if(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function P(e,t,i){let n="";i=Math.min(e.length,i);for(let r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function E(e,t,i){let n="";i=Math.min(e.length,i);for(let r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function T(e,t,i){const n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);let r="";for(let d=t;d<i;++d)r+=$[e[d]];return r}function x(e,t,i){const n=e.slice(t,i);let r="";for(let d=0;d<n.length-1;d+=2)r+=String.fromCharCode(n[d]+256*n[d+1]);return r}function R(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,r,d){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<d)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function L(e,t,i,n,r){z(t,n,r,e,i,7);let d=Number(t&BigInt(4294967295));e[i++]=d,d>>=8,e[i++]=d,d>>=8,e[i++]=d,d>>=8,e[i++]=d;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,i}function I(e,t,i,n,r){z(t,n,r,e,i,7);let d=Number(t&BigInt(4294967295));e[i+7]=d,d>>=8,e[i+6]=d,d>>=8,e[i+5]=d,d>>=8,e[i+4]=d;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[i+3]=o,o>>=8,e[i+2]=o,o>>=8,e[i+1]=o,o>>=8,e[i]=o,i+8}function W(e,t,i,n,r,d){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function G(e,t,i,n,d){return t=+t,i>>>=0,d||W(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function F(e,t,i,n,d){return t=+t,i>>>=0,d||W(e,0,i,8),r.write(e,t,i,n,52,8),i+8}s.prototype.slice=function(e,t){const i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||R(e,t,this.length);let n=this[e],r=1,d=0;for(;++d<t&&(r*=256);)n+=this[e+d]*r;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||R(e,t,this.length);let n=this[e+--t],r=1;for(;t>0&&(r*=256);)n+=this[e+--t]*r;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=X((function(e){j(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+i*2**24;return BigInt(n)+(BigInt(r)<<BigInt(32))})),s.prototype.readBigUInt64BE=X((function(e){j(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+i;return(BigInt(n)<<BigInt(32))+BigInt(r)})),s.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||R(e,t,this.length);let n=this[e],r=1,d=0;for(;++d<t&&(r*=256);)n+=this[e+d]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||R(e,t,this.length);let n=t,r=1,d=this[e+--n];for(;n>0&&(r*=256);)d+=this[e+--n]*r;return r*=128,d>=r&&(d-=Math.pow(2,8*t)),d},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=X((function(e){j(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=X((function(e){j(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+i)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){D(this,e,t,i,Math.pow(2,8*i)-1,0)}let r=1,d=0;for(this[t]=255&e;++d<i&&(r*=256);)this[t+d]=e/r&255;return t+i},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t>>>=0,i>>>=0,!n){D(this,e,t,i,Math.pow(2,8*i)-1,0)}let r=i-1,d=1;for(this[t+r]=255&e;--r>=0&&(d*=256);)this[t+r]=e/d&255;return t+i},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=X((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=X((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}let r=0,d=1,o=0;for(this[t]=255&e;++r<i&&(d*=256);)e<0&&0===o&&0!==this[t+r-1]&&(o=1),this[t+r]=(e/d>>0)-o&255;return t+i},s.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*i-1);D(this,e,t,i,n-1,-n)}let r=i-1,d=1,o=0;for(this[t+r]=255&e;--r>=0&&(d*=256);)e<0&&0===o&&0!==this[t+r+1]&&(o=1),this[t+r]=(e/d>>0)-o&255;return t+i},s.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=X((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=X((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,i){return G(this,e,t,!0,i)},s.prototype.writeFloatBE=function(e,t,i){return G(this,e,t,!1,i)},s.prototype.writeDoubleLE=function(e,t,i){return F(this,e,t,!0,i)},s.prototype.writeDoubleBE=function(e,t,i){return F(this,e,t,!1,i)},s.prototype.copy=function(e,t,i,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);const r=n-i;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),t),r},s.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;let r;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(r=t;r<i;++r)this[r]=e;else{const d=s.isBuffer(e)?e:s.from(e,n),o=d.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<i-t;++r)this[r+t]=d[r%o]}return this};const O={};function H(e,t,i){O[e]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",i=e.length;const n="-"===e[0]?1:0;for(;i>=n+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function z(e,t,i,n,r,d){if(e>i||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=d>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(d+1)}${n}`:`>= -(2${n} ** ${8*(d+1)-1}${n}) and < 2 ** ${8*(d+1)-1}${n}`:`>= ${t}${n} and <= ${i}${n}`,new O.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,i){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+i]||q(t,e.length-(i+1))}(n,r,d)}function j(e,t){if("number"!=typeof e)throw new O.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,i){if(Math.floor(e)!==e)throw j(e,i),new O.ERR_OUT_OF_RANGE(i||"offset","an integer",e);if(t<0)throw new O.ERR_BUFFER_OUT_OF_BOUNDS;throw new O.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${t}`,e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,i){let n=`The value of "${e}" is out of range.`,r=i;return Number.isInteger(i)&&Math.abs(i)>2**32?r=N(String(i)):"bigint"==typeof i&&(r=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(r=N(r)),r+="n"),n+=` It must be ${t}. Received ${r}`,n}),RangeError);const U=/[^+/0-9A-Za-z-_]/g;function K(e,t){let i;t=t||1/0;const n=e.length;let r=null;const d=[];for(let o=0;o<n;++o){if(i=e.charCodeAt(o),i>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&d.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&d.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&d.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&d.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;d.push(i)}else if(i<2048){if((t-=2)<0)break;d.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;d.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;d.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return d}function Z(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,i,n){let r;for(r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const n=16*i;for(let r=0;r<16;++r)t[n+r]=e[i]+e[r]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},1027:(e,t,i)=>{var n=i(9509).Buffer,r=i(2830).Transform,d=i(2553).s;function o(e){r.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(5717)(o,r),o.prototype.update=function(e,t,i){"string"==typeof e&&(e=n.from(e,t));var r=this._update(e);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,i){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(r){n=r}finally{i(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(i){t=i}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new d(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return i&&(n+=this._decoder.end()),n},e.exports=o},6393:(e,t,i)=>{var n=i(8764).Buffer,r=i(6266),d=i(6426);e.exports=function(e){return new a(e)};var o={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 a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,i){Array.isArray(e)||(e=e.toArray());var r=new n(e);if(i&&r.length<i){var d=new n(i-r.length);d.fill(0),r=n.concat([d,r])}return t?r.toString(t):r}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,i){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var i=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(i[i.length-1]%2?i[0]=7:i[0]=6),s(i,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var i=new d(e);return i=i.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(i),this}},6426:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(k){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,n){for(var r=0,d=Math.min(e.length,i),o=t;o<d;o++){var a=e.charCodeAt(o)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this.strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this.strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},d.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 c(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],c=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(e);i=(p=p.idivn(c)).isZero()?m+i:u[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16)},d.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},d.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,h=new e(d),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[a]=o;for(;a<d;a++)h[a]=0}else{for(a=0;a<d-r;a++)h[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[d-a-1]=o}return h},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=c),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?c(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),m(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,d=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=d>>>26,this.words[i]=67108863&d}return 0!==t&&(this.words[i]=t,this.length++),this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this.strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},d.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new S(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}y.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,y),r(M,y),r(_,y),_.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new B(e)},r(B,S),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},3482:(e,t,i)=>{"use strict";var n=i(5717),r=i(2318),d=i(9785),o=i(9072),a=i(1027);function s(e){a.call(this,"digest"),this._hash=e}n(s,a),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new r:"rmd160"===e||"ripemd160"===e?new d:new s(o(e))}},8028:(e,t,i)=>{var n=i(2318);e.exports=function(e){return(new n).update(e).digest()}},8355:(e,t,i)=>{"use strict";var n=i(5717),r=i(1031),d=i(1027),o=i(9509).Buffer,a=i(8028),s=i(9785),h=i(9072),u=o.alloc(128);function l(e,t){d.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var i="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>i)?t=("rmd160"===e?new s:h(e)).update(t).digest():t.length<i&&(t=o.concat([t,u],i));for(var n=this._ipad=o.allocUnsafe(i),r=this._opad=o.allocUnsafe(i),a=0;a<i;a++)n[a]=54^t[a],r[a]=92^t[a];this._hash="rmd160"===e?new s:h(e),this._hash.update(n)}n(l,d),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new s:h(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new l("rmd160",t):"md5"===e?new r(a,t):new l(e,t)}},1031:(e,t,i)=>{"use strict";var n=i(5717),r=i(9509).Buffer,d=i(1027),o=r.alloc(128),a=64;function s(e,t){d.call(this,"digest"),"string"==typeof t&&(t=r.from(t)),this._alg=e,this._key=t,t.length>a?t=e(t):t.length<a&&(t=r.concat([t,o],a));for(var i=this._ipad=r.allocUnsafe(a),n=this._opad=r.allocUnsafe(a),s=0;s<a;s++)i[s]=54^t[s],n[s]=92^t[s];this._hash=[i]}n(s,d),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,e]))},e.exports=s},5835:(e,t,i)=>{"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=i(1798),t.createHash=t.Hash=i(3482),t.createHmac=t.Hmac=i(8355);var n=i(6042),r=Object.keys(n),d=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);t.getHashes=function(){return d};var o=i(5632);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var a=i(3614);t.Cipher=a.Cipher,t.createCipher=a.createCipher,t.Cipheriv=a.Cipheriv,t.createCipheriv=a.createCipheriv,t.Decipher=a.Decipher,t.createDecipher=a.createDecipher,t.Decipheriv=a.Decipheriv,t.createDecipheriv=a.createDecipheriv,t.getCiphers=a.getCiphers,t.listCiphers=a.listCiphers;var s=i(2607);t.DiffieHellmanGroup=s.DiffieHellmanGroup,t.createDiffieHellmanGroup=s.createDiffieHellmanGroup,t.getDiffieHellman=s.getDiffieHellman,t.createDiffieHellman=s.createDiffieHellman,t.DiffieHellman=s.DiffieHellman;var h=i(4743);t.createSign=h.createSign,t.Sign=h.Sign,t.createVerify=h.createVerify,t.Verify=h.Verify,t.createECDH=i(6393);var u=i(7900);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var l=i(7963);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.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}},5251:(e,t,i)=>{"use strict";t.utils=i(1278),t.Cipher=i(5756),t.DES=i(778),t.CBC=i(9051),t.EDE=i(651)},9051:(e,t,i)=>{"use strict";var n=i(9746),r=i(5717),d={};function o(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}r(t,e);for(var i=Object.keys(d),n=0;n<i.length;n++){var o=i[n];t.prototype[o]=d[o]}return t.create=function(e){return new t(e)},t},d._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},d._update=function(e,t,i,n){var r=this._cbcState,d=this.constructor.super_.prototype,o=r.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)o[a]^=e[t+a];d._update.call(this,o,0,i,n);for(a=0;a<this.blockSize;a++)o[a]=i[n+a]}else{d._update.call(this,e,t,i,n);for(a=0;a<this.blockSize;a++)i[n+a]^=o[a];for(a=0;a<this.blockSize;a++)o[a]=e[t+a]}}},5756:(e,t,i)=>{"use strict";var n=i(9746);function r(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=r,r.prototype._init=function(){},r.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},r.prototype._buffer=function(e,t){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=i,i},r.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(e){var t=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,r=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(r,i)));for(var d=e.length-(e.length-t)%this.blockSize;t<d;t+=this.blockSize)this._update(e,t,r,i),i+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return r},r.prototype._updateDecrypt=function(e){for(var t=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),i+=this._flushBuffer(r,i);return t+=this._buffer(e,t),r},r.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},r.prototype._unpad=function(e){return e},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},778:(e,t,i)=>{"use strict";var n=i(9746),r=i(5717),d=i(1278),o=i(5756);function a(){this.tmp=new Array(2),this.keys=null}function s(e){o.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}r(s,o),e.exports=s,s.create=function(e){return new s(e)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var i=d.readUInt32BE(t,0),r=d.readUInt32BE(t,4);d.pc1(i,r,e.tmp,0),i=e.tmp[0],r=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var a=h[o>>>1];i=d.r28shl(i,a),r=d.r28shl(r,a),d.pc2(i,r,e.keys,o)}},s.prototype._update=function(e,t,i,n){var r=this._desState,o=d.readUInt32BE(e,t),a=d.readUInt32BE(e,t+4);d.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],d.writeUInt32BE(i,o,n),d.writeUInt32BE(i,a,n+4)},s.prototype._pad=function(e,t){for(var i=e.length-t,n=t;n<e.length;n++)e[n]=i;return!0},s.prototype._unpad=function(e){for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)n.equal(e[i],t);return e.slice(0,e.length-t)},s.prototype._encrypt=function(e,t,i,n,r){for(var o=t,a=i,s=0;s<e.keys.length;s+=2){var h=e.keys[s],u=e.keys[s+1];d.expand(a,e.tmp,0),h^=e.tmp[0],u^=e.tmp[1];var l=d.substitute(h,u),f=a;a=(o^d.permute(l))>>>0,o=f}d.rip(a,o,n,r)},s.prototype._decrypt=function(e,t,i,n,r){for(var o=i,a=t,s=e.keys.length-2;s>=0;s-=2){var h=e.keys[s],u=e.keys[s+1];d.expand(o,e.tmp,0),h^=e.tmp[0],u^=e.tmp[1];var l=d.substitute(h,u),f=o;o=(a^d.permute(l))>>>0,a=f}d.rip(o,a,n,r)}},651:(e,t,i)=>{"use strict";var n=i(9746),r=i(5717),d=i(5756),o=i(778);function a(e,t){n.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),r=t.slice(8,16),d=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:d})]:[o.create({type:"decrypt",key:d}),o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:i})]}function s(e){d.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}r(s,d),e.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,i,n){var r=this._edeState;r.ciphers[0]._update(e,t,i,n),r.ciphers[1]._update(i,n,i,n),r.ciphers[2]._update(i,n,i,n)},s.prototype._pad=o.prototype._pad,s.prototype._unpad=o.prototype._unpad},1278:(e,t)=>{"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},t.ip=function(e,t,i,n){for(var r=0,d=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)d<<=1,d|=t>>>a+o&1;for(a=1;a<=25;a+=8)d<<=1,d|=e>>>a+o&1}i[n+0]=r>>>0,i[n+1]=d>>>0},t.rip=function(e,t,i,n){for(var r=0,d=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=t>>>a+o&1,r<<=1,r|=e>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)d<<=1,d|=t>>>a+o&1,d<<=1,d|=e>>>a+o&1;i[n+0]=r>>>0,i[n+1]=d>>>0},t.pc1=function(e,t,i,n){for(var r=0,d=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)d<<=1,d|=t>>a+o&1;for(a=0;a<=24;a+=8)d<<=1,d|=e>>a+o&1}for(a=0;a<=24;a+=8)d<<=1,d|=e>>a+o&1;i[n+0]=r>>>0,i[n+1]=d>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var i=[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];t.pc2=function(e,t,n,r){for(var d=0,o=0,a=i.length>>>1,s=0;s<a;s++)d<<=1,d|=e>>>i[s]&1;for(s=a;s<i.length;s++)o<<=1,o|=t>>>i[s]&1;n[r+0]=d>>>0,n[r+1]=o>>>0},t.expand=function(e,t,i){var n=0,r=0;n=(1&e)<<5|e>>>27;for(var d=23;d>=15;d-=4)n<<=6,n|=e>>>d&63;for(d=11;d>=3;d-=4)r|=e>>>d&63,r<<=6;r|=(31&e)<<1|e>>>31,t[i+0]=n>>>0,t[i+1]=r>>>0};var n=[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];t.substitute=function(e,t){for(var i=0,r=0;r<4;r++){i<<=4,i|=n[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){i<<=4,i|=n[256+64*r+(t>>>18-6*r&63)]}return i>>>0};var r=[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];t.permute=function(e){for(var t=0,i=0;i<r.length;i++)t<<=1,t|=e>>>r[i]&1;return t>>>0},t.padSplit=function(e,t,i){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var r=[],d=0;d<t;d+=i)r.push(n.slice(d,d+i));return r.join(" ")}},2607:(e,t,i)=>{var n=i(8764).Buffer,r=i(3590),d=i(1930),o=i(7426);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new n(d[e].prime,"hex"),i=new n(d[e].gen,"hex");return new o(t,i)},t.createDiffieHellman=t.DiffieHellman=function e(t,i,d,s){return n.isBuffer(i)||void 0===a[i]?e(t,"binary",i,d):(i=i||"binary",s=s||"binary",d=d||new n([2]),n.isBuffer(d)||(d=new n(d,s)),"number"==typeof t?new o(r(t,d),d,!0):(n.isBuffer(t)||(t=new n(t,i)),new o(t,d,!0)))}},7426:(e,t,i)=>{var n=i(8764).Buffer,r=i(3620),d=new(i(3047)),o=new r(24),a=new r(11),s=new r(10),h=new r(3),u=new r(7),l=i(3590),f=i(1798);function c(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new r(e),this}function p(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new r(e),this}e.exports=g;var m={};function g(e,t,i){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=c,this.setPrivateKey=p):this._primeCode=8}function b(e,t){var i=new n(e.toArray());return t?i.toString(t):i}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in m)return m[n];var r,f=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!d.test(e))return f+=1,f+="02"===i||"05"===i?8:4,m[n]=f,f;switch(d.test(e.shrn(1))||(f+=2),i){case"02":e.mod(o).cmp(a)&&(f+=8);break;case"05":(r=e.mod(s)).cmp(h)&&r.cmp(u)&&(f+=8);break;default:f+=4}return m[n]=f,f}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(t.toArray()),d=this.getPrime();if(i.length<d.length){var o=new n(d.length-i.length);o.fill(0),i=n.concat([o,i])}return i},g.prototype.getPublicKey=function(e){return b(this._pub,e)},g.prototype.getPrivateKey=function(e){return b(this._priv,e)},g.prototype.getPrime=function(e){return b(this.__prime,e)},g.prototype.getGenerator=function(e){return b(this._gen,e)},g.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new r(e),this}},3590:(e,t,i)=>{var n=i(1798);e.exports=y,y.simpleSieve=g,y.fermatTest=b;var r=i(3620),d=new r(24),o=new(i(3047)),a=new r(1),s=new r(2),h=new r(5),u=(new r(16),new r(8),new r(10)),l=new r(3),f=(new r(7),new r(11)),c=new r(4),p=(new r(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),r=0;r<t&&e[r]<=n&&i%e[r]!=0;r++);t!==r&&e[r]<=n||(e[t++]=i)}return p=e,e}function g(e){for(var t=m(),i=0;i<t.length;i++)if(0===e.modn(t[i]))return 0===e.cmpn(t[i]);return!0}function b(e){var t=r.mont(e);return 0===s.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new r(2===t||5===t?[140,123]:[140,39]);var i,p;for(t=new r(t);;){for(i=new r(n(Math.ceil(e/8)));i.bitLength()>e;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(s),t.cmp(s)){if(!t.cmp(h))for(;i.mod(u).cmp(l);)i.iadd(c)}else for(;i.mod(d).cmp(f);)i.iadd(c);if(g(p=i.shrn(1))&&g(i)&&b(p)&&b(i)&&o.test(p)&&o.test(i))return i}}},1930:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3620:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(k){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,n){for(var r=0,d=Math.min(e.length,i),o=t;o<d;o++){var a=e.charCodeAt(o)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this.strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this.strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},d.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 c(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],c=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(e);i=(p=p.idivn(c)).isZero()?m+i:u[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16)},d.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},d.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,h=new e(d),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[a]=o;for(;a<d;a++)h[a]=0}else{for(a=0;a<d-r;a++)h[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[d-a-1]=o}return h},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=c),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?c(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),m(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,d=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=d>>>26,this.words[i]=67108863&d}return 0!==t&&(this.words[i]=t,this.length++),this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this.strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},d.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new S(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}y.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,y),r(M,y),r(_,y),_.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new B(e)},r(B,S),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},6266:(e,t,i)=>{"use strict";var n=t;n.version=i(7519).i8,n.utils=i(953),n.rand=i(9931),n.curve=i(8254),n.curves=i(5427),n.ec=i(7954),n.eddsa=i(5980)},4918:(e,t,i)=>{"use strict";var n=i(3785),r=i(953),d=r.getNAF,o=r.getJSF,a=r.assert;function s(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){a(e.precomputed);var i=e._getDoubles(),n=d(t,1,this._bitLength),r=(1<<i.step+1)-(i.step%2==0?2:1);r/=3;var o,s,h=[];for(o=0;o<n.length;o+=i.step){s=0;for(var u=o+i.step-1;u>=o;u--)s=(s<<1)+n[u];h.push(s)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),c=r;c>0;c--){for(o=0;o<h.length;o++)(s=h[o])===c?f=f.mixedAdd(i.points[o]):s===-c&&(f=f.mixedAdd(i.points[o].neg()));l=l.add(f)}return l.toP()},s.prototype._wnafMul=function(e,t){var i=4,n=e._getNAFPoints(i);i=n.wnd;for(var r=n.points,o=d(t,i,this._bitLength),s=this.jpoint(null,null,null),h=o.length-1;h>=0;h--){for(var u=0;h>=0&&0===o[h];h--)u++;if(h>=0&&u++,s=s.dblp(u),h<0)break;var l=o[h];a(0!==l),s="affine"===e.type?l>0?s.mixedAdd(r[l-1>>1]):s.mixedAdd(r[-l-1>>1].neg()):l>0?s.add(r[l-1>>1]):s.add(r[-l-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,i,n,r){var a,s,h,u=this._wnafT1,l=this._wnafT2,f=this._wnafT3,c=0;for(a=0;a<n;a++){var p=(h=t[a])._getNAFPoints(e);u[a]=p.wnd,l[a]=p.points}for(a=n-1;a>=1;a-=2){var m=a-1,g=a;if(1===u[m]&&1===u[g]){var b=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(b[1]=t[m].add(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].add(t[g].neg())):(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=o(i[m],i[g]);for(c=Math.max(v[0].length,c),f[m]=new Array(c),f[g]=new Array(c),s=0;s<c;s++){var w=0|v[0][s],M=0|v[1][s];f[m][s]=y[3*(w+1)+(M+1)],f[g][s]=0,l[m]=b}}else f[m]=d(i[m],u[m],this._bitLength),f[g]=d(i[g],u[g],this._bitLength),c=Math.max(f[m].length,c),c=Math.max(f[g].length,c)}var _=this.jpoint(null,null,null),S=this._wnafT4;for(a=c;a>=0;a--){for(var B=0;a>=0;){var k=!0;for(s=0;s<n;s++)S[s]=0|f[s][a],0!==S[s]&&(k=!1);if(!k)break;B++,a--}if(a>=0&&B++,_=_.dblp(B),a<0)break;for(s=0;s<n;s++){var C=S[s];0!==C&&(C>0?h=l[s][C-1>>1]:C<0&&(h=l[s][-C-1>>1].neg()),_="affine"===h.type?_.mixedAdd(h):_.add(h))}}for(a=0;a<n;a++)l[a]=null;return r?_:_.toP()},s.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},s.prototype.decodePoint=function(e,t){e=r.toArray(e,t);var i=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*i)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));if((2===e[0]||3===e[0])&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),3===e[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(e){return this.encode(e,!0)},h.prototype._encode=function(e){var t=this.curve.p.byteLength(),i=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",t))},h.prototype.encode=function(e,t){return r.encode(this._encode(t),e)},h.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},h.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},h.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,r=0;r<t;r+=e){for(var d=0;d<e;d++)n=n.dbl();i.push(n)}return{step:e,points:i}},h.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],i=(1<<e)-1,n=1===i?null:this.dbl(),r=1;r<i;r++)t[r]=t[r-1].add(n);return{wnd:e,points:t}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},1138:(e,t,i)=>{"use strict";var n=i(953),r=i(3785),d=i(5717),o=i(4918),a=n.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new r(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function h(e,t,i,n,d){o.BasePoint.call(this,e,"projective"),null===t&&null===i&&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 r(t,16),this.y=new r(i,16),this.z=n?new r(n,16):this.curve.one,this.t=d&&new r(d,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()))))}d(s,o),e.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,i,n){return this.point(e,t,i,n)},s.prototype.pointFromX=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=this.c2.redSub(this.a.redMul(i)),d=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=n.redMul(d.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},s.prototype.pointFromY=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=i.redSub(this.c2),d=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(d.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),i=e.y.redSqr(),n=t.redMul(this.a).redAdd(i),r=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(i)));return 0===n.cmp(r)},d(h,o.BasePoint),s.prototype.pointFromJSON=function(e){return h.fromJSON(this,e)},s.prototype.point=function(e,t,i,n){return new h(this,e,t,i,n)},h.fromJSON=function(e,t){return new h(e,t[0],t[1],t[2])},h.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)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(e),r=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),d=n.redAdd(t),o=d.redSub(i),a=n.redSub(t),s=r.redMul(o),h=d.redMul(a),u=r.redMul(a),l=o.redMul(d);return this.curve.point(s,h,l,u)},h.prototype._projDbl=function(){var e,t,i,n,r,d,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var h=(n=this.curve._mulA(a)).redAdd(s);this.zOne?(e=o.redSub(a).redSub(s).redMul(h.redSub(this.curve.two)),t=h.redMul(n.redSub(s)),i=h.redSqr().redSub(h).redSub(h)):(r=this.z.redSqr(),d=h.redSub(r).redISub(r),e=o.redSub(a).redISub(s).redMul(d),t=h.redMul(n.redSub(s)),i=h.redMul(d))}else n=a.redAdd(s),r=this.curve._mulC(this.z).redSqr(),d=n.redSub(r).redSub(r),e=this.curve._mulC(o.redISub(n)).redMul(d),t=this.curve._mulC(n).redMul(a.redISub(s)),i=n.redMul(d);return this.curve.point(e,t,i)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),r=this.z.redMul(e.z.redAdd(e.z)),d=i.redSub(t),o=r.redSub(n),a=r.redAdd(n),s=i.redAdd(t),h=d.redMul(o),u=a.redMul(s),l=d.redMul(s),f=o.redMul(a);return this.curve.point(h,u,f,l)},h.prototype._projAdd=function(e){var t,i,n=this.z.redMul(e.z),r=n.redSqr(),d=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(d).redMul(o),s=r.redSub(a),h=r.redAdd(a),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(d).redISub(o),l=n.redMul(s).redMul(u);return this.curve.twisted?(t=n.redMul(h).redMul(o.redSub(this.curve._mulA(d))),i=s.redMul(h)):(t=n.redMul(h).redMul(o.redSub(d)),i=this.curve._mulC(s).redMul(h)),this.curve.point(l,t,i)},h.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},h.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},h.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},h.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},h.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},8254:(e,t,i)=>{"use strict";var n=t;n.base=i(4918),n.short=i(6673),n.mont=i(2881),n.edwards=i(1138)},2881:(e,t,i)=>{"use strict";var n=i(3785),r=i(5717),d=i(4918),o=i(953);function a(e){d.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,i){d.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,d),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),n=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},r(s,d.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},a.prototype.point=function(e,t){return new s(this,e,t)},a.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.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)+">"},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),n=e.redMul(t),r=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,r)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),r=e.x.redAdd(e.z),d=e.x.redSub(e.z).redMul(i),o=r.redMul(n),a=t.z.redMul(d.redAdd(o).redSqr()),s=t.x.redMul(d.redISub(o).redSqr());return this.curve.point(a,s)},s.prototype.mul=function(e){for(var t=e.clone(),i=this,n=this.curve.point(null,null),r=[];0!==t.cmpn(0);t.iushrn(1))r.push(t.andln(1));for(var d=r.length-1;d>=0;d--)0===r[d]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(e,t,i)=>{"use strict";var n=i(953),r=i(3785),d=i(5717),o=i(4918),a=n.assert;function s(e){o.call(this,"short",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(e,t,i,n){o.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(t,16),this.y=new r(i,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)),this.inf=!1)}function u(e,t,i,n){o.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(t,16),this.y=new r(i,16),this.z=new r(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}d(s,o),e.exports=s,s.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new r(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)i=new r(e.lambda,16);else{var d=this._getEndoRoots(this.n);0===this.g.mul(d[0]).x.cmp(this.g.x.redMul(t))?i=d[0]:(i=d[1],a(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map((function(e){return{a:new r(e.a,16),b:new r(e.b,16)}})):this._getEndoBasis(i)}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:r.mont(e),i=new r(2).toRed(t).redInvm(),n=i.redNeg(),d=new r(3).toRed(t).redNeg().redSqrt().redMul(i);return[n.redAdd(d).fromRed(),n.redSub(d).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,i,n,d,o,a,s,h,u,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,c=this.n.clone(),p=new r(1),m=new r(0),g=new r(0),b=new r(1),y=0;0!==f.cmpn(0);){var v=c.div(f);h=c.sub(v.mul(f)),u=g.sub(v.mul(p));var w=b.sub(v.mul(m));if(!n&&h.cmp(l)<0)t=s.neg(),i=p,n=h.neg(),d=u;else if(n&&2==++y)break;s=h,c=f,f=h,g=p,p=u,b=m,m=w}o=h.neg(),a=u;var M=n.sqr().add(d.sqr());return o.sqr().add(a.sqr()).cmp(M)>=0&&(o=t,a=i),n.negative&&(n=n.neg(),d=d.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:d},{a:o,b:a}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],n=t[1],r=n.b.mul(e).divRound(this.n),d=i.b.neg().mul(e).divRound(this.n),o=r.mul(i.a),a=d.mul(n.a),s=r.mul(i.b),h=d.mul(n.b);return{k1:e.sub(o).sub(a),k2:s.add(h).neg()}},s.prototype.pointFromX=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var d=n.fromRed().isOdd();return(t&&!d||!t&&d)&&(n=n.redNeg()),this.point(e,n)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,n=this.a.redMul(t),r=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,i){for(var n=this._endoWnafT1,r=this._endoWnafT2,d=0;d<e.length;d++){var o=this._endoSplit(t[d]),a=e[d],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*d]=a,n[2*d+1]=s,r[2*d]=o.k1,r[2*d+1]=o.k2}for(var h=this._wnafMulAdd(1,n,r,2*d,i),u=0;u<2*d;u++)n[u]=null,r[u]=null;return h},d(h,o.BasePoint),s.prototype.point=function(e,t,i){return new h(this,e,t,i)},s.prototype.pointFromJSON=function(e,t){return h.fromJSON(this,e,t)},h.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,n=function(e){return i.point(e.x.redMul(i.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},h.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]},h.fromJSON=function(e,t,i){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],i);if(!t[2])return n;function r(t){return e.point(t[0],t[1],i)}var d=t[2];return n.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[n].concat(d.doubles.points.map(r))},naf:d.naf&&{wnd:d.naf.wnd,points:[n].concat(d.naf.points.map(r))}},n},h.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)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},h.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),n=e.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(n),d=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,o)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(e){return e=new r(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},h.prototype.mulAdd=function(e,t,i){var n=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r):this.curve._wnafMulAdd(1,n,r,2)},h.prototype.jmulAdd=function(e,t,i){var n=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,r,!0):this.curve._wnafMulAdd(1,n,r,2,!0)},h.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},h.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return t},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},d(u,o.BasePoint),s.prototype.jpoint=function(e,t,i){return new u(this,e,t,i)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(i,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(t),r=e.x.redMul(i),d=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),a=n.redSub(r),s=d.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),u=h.redMul(a),l=n.redMul(h),f=s.redSqr().redIAdd(u).redISub(l).redISub(l),c=s.redMul(l.redISub(f)).redISub(d.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(f,c,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,n=e.x.redMul(t),r=this.y,d=e.y.redMul(t).redMul(this.z),o=i.redSub(n),a=r.redSub(d);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),h=s.redMul(o),u=i.redMul(s),l=a.redSqr().redIAdd(h).redISub(u).redISub(u),f=a.redMul(u.redISub(l)).redISub(r.redMul(h)),c=this.z.redMul(o);return this.curve.jpoint(l,f,c)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var i=this;for(t=0;t<e;t++)i=i.dbl();return i}var n=this.curve.a,r=this.curve.tinv,d=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),h=o.redAdd(o);for(t=0;t<e;t++){var u=d.redSqr(),l=h.redSqr(),f=l.redSqr(),c=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(s)),p=d.redMul(l),m=c.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=c.redMul(g);b=b.redIAdd(b).redISub(f);var y=h.redMul(a);t+1<e&&(s=s.redMul(f)),d=m,a=y,h=b}return this.curve.jpoint(d,h.redMul(r),a)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),d=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(n).redISub(d);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),h=d.redIAdd(d);h=(h=h.redIAdd(h)).redIAdd(h),e=s,t=a.redMul(o.redISub(s)).redISub(h),i=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),l=this.y.redSqr(),f=l.redSqr(),c=this.x.redAdd(l).redSqr().redISub(u).redISub(f);c=c.redIAdd(c);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(c).redISub(c),t=p.redMul(c.redISub(e)).redISub(g),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(e,t,i)},u.prototype._threeDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),r=this.y.redSqr(),d=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(n).redISub(d);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);e=s;var h=d.redIAdd(d);h=(h=h.redIAdd(h)).redIAdd(h),t=a.redMul(o.redISub(s)).redISub(h),i=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),l=this.y.redSqr(),f=this.x.redMul(l),c=this.x.redSub(u).redMul(this.x.redAdd(u));c=c.redAdd(c).redIAdd(c);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=c.redSqr().redISub(m),i=this.y.redAdd(this.z).redSqr().redISub(l).redISub(u);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=c.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,i)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,i=this.y,n=this.z,r=n.redSqr().redSqr(),d=t.redSqr(),o=i.redSqr(),a=d.redAdd(d).redIAdd(d).redIAdd(e.redMul(r)),s=t.redAdd(t),h=(s=s.redIAdd(s)).redMul(o),u=a.redSqr().redISub(h.redAdd(h)),l=h.redISub(u),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var c=a.redMul(l).redISub(f),p=i.redAdd(i).redMul(n);return this.curve.jpoint(u,c,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr(),n=t.redSqr(),r=e.redAdd(e).redIAdd(e),d=r.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(d)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var h=r.redIAdd(o).redSqr().redISub(d).redISub(a).redISub(s),u=t.redMul(h);u=(u=u.redIAdd(u)).redIAdd(u);var l=this.x.redMul(a).redISub(u);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.y.redMul(h.redMul(s.redISub(h)).redISub(o.redMul(a)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var c=this.z.redAdd(o).redSqr().redISub(i).redISub(a);return this.curve.jpoint(l,f,c)},u.prototype.mul=function(e,t){return e=new r(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),i=e.z.redSqr();if(0!==this.x.redMul(i).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),r=i.redMul(e.z);return 0===this.y.redMul(r).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(i))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},5427:(e,t,i)=>{"use strict";var n,r=t,d=i(3715),o=i(8254),a=i(953).assert;function s(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new s(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=s,h("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:d.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:d.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:d.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:d.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"]}),h("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:d.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:d.sha256,gRed:!1,g:["9"]}),h("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:d.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i(1037)}catch(u){n=void 0}h("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:d.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},7954:(e,t,i)=>{"use strict";var n=i(3785),r=i(2156),d=i(953),o=i(5427),a=i(9931),s=d.assert,h=i(1251),u=i(611);function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(s(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new h(this,e)},l.prototype.keyFromPrivate=function(e,t){return h.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return h.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new r({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),d=this.n.sub(new n(2));;){var o=new n(t.generate(i));if(!(o.cmp(d)>0))return o.iaddn(1),this.keyFromPrivate(o)}},l.prototype._truncateToN=function(e,t){var i=8*e.byteLength()-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,i,d){"object"==typeof i&&(d=i,i=null),d||(d={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new n(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),h=new r({hash:this.hash,entropy:a,nonce:s,pers:d.pers,persEnc:d.persEnc||"utf8"}),l=this.n.sub(new n(1)),f=0;;f++){var c=d.k?d.k(f):new n(h.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||c.cmp(l)>=0)){var p=this.g.mul(c);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var b=c.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return d.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new u({r:g,s:b,recoveryParam:y})}}}}}},l.prototype.verify=function(e,t,i,r){e=this._truncateToN(new n(e,16)),i=this.keyFromPublic(i,r);var d=(t=new u(t,"hex")).r,o=t.s;if(d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),h=s.mul(e).umod(this.n),l=s.mul(d).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(h,i.getPublic(),l)).isInfinity()&&a.eqXToP(d):!(a=this.g.mulAdd(h,i.getPublic(),l)).isInfinity()&&0===a.getX().umod(this.n).cmp(d)},l.prototype.recoverPubKey=function(e,t,i,r){s((3&i)===i,"The recovery param is more than two bits"),t=new u(t,r);var d=this.n,o=new n(e),a=t.r,h=t.s,l=1&i,f=i>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");a=f?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var c=t.r.invm(d),p=d.sub(o).mul(c).umod(d),m=h.mul(c).umod(d);return this.g.mulAdd(p,a,m)},l.prototype.getKeyRecoveryParam=function(e,t,i,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var d;try{d=this.recoverPubKey(e,t,r)}catch(e){continue}if(d.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},1251:(e,t,i)=>{"use strict";var n=i(3785),r=i(953).assert;function d(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=d,d.fromPublic=function(e,t,i){return t instanceof d?t:new d(e,{pub:t,pubEnc:i})},d.fromPrivate=function(e,t,i){return t instanceof d?t:new d(e,{priv:t,privEnc:i})},d.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},d.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},d.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},d.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},d.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?r(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},d.prototype.derive=function(e){return e.validate()||r(e.validate(),"public point not validated"),e.mul(this.priv).getX()},d.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},d.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},d.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},611:(e,t,i)=>{"use strict";var n=i(3785),r=i(953),d=r.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function s(e,t){var i=e[t.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;for(var r=0,d=0,o=t.place;d<n;d++,o++)r<<=8,r|=e[o],r>>>=0;return!(r<=127)&&(t.place=o,r)}function h(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t<i;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var i=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=r.toArray(e,t);var i=new a;if(48!==e[i.place++])return!1;var d=s(e,i);if(!1===d)return!1;if(d+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var o=s(e,i);if(!1===o)return!1;var h=e.slice(i.place,o+i.place);if(i.place+=o,2!==e[i.place++])return!1;var u=s(e,i);if(!1===u)return!1;if(e.length!==u+i.place)return!1;var l=e.slice(i.place,u+i.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(h),this.s=new n(l),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=h(t),i=h(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,i.length);var d=n.concat(i),o=[48];return u(o,d.length),o=o.concat(d),r.encode(o,e)}},5980:(e,t,i)=>{"use strict";var n=i(3715),r=i(5427),d=i(953),o=d.assert,a=d.parseBytes,s=i(9087),h=i(3622);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=r[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=a(e);var i=this.keyFromSecret(t),n=this.hashInt(i.messagePrefix(),e),r=this.g.mul(n),d=this.encodePoint(r),o=this.hashInt(d,i.pubBytes(),e).mul(i.priv()),s=n.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:s,Rencoded:d})},u.prototype.verify=function(e,t,i){e=a(e),t=this.makeSignature(t);var n=this.keyFromPublic(i),r=this.hashInt(t.Rencoded(),n.pubBytes(),e),d=this.g.mul(t.S());return t.R().add(n.pub().mul(r)).eq(d)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return d.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof h?e:new h(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=d.parseBytes(e)).length-1,i=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),r=d.intFromLE(i);return this.curve.pointFromY(r,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return d.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},9087:(e,t,i)=>{"use strict";var n=i(953),r=n.assert,d=n.parseBytes,o=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=d(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=d(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),i=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n})),o(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return r(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=a},3622:(e,t,i)=>{"use strict";var n=i(3785),r=i(953),d=r.assert,o=r.cachedProperty,a=r.parseBytes;function s(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),d(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(s,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(s,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(s,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(s,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},e.exports=s},1037:e=>{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"]]}}},953:(e,t,i)=>{"use strict";var n=t,r=i(3785),d=i(9746),o=i(4504);n.assert=d,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t,i){var n=new Array(Math.max(e.bitLength(),i)+1);n.fill(0);for(var r=1<<t+1,d=e.clone(),o=0;o<n.length;o++){var a,s=d.andln(r-1);d.isOdd()?(a=s>(r>>1)-1?(r>>1)-s:s,d.isubn(a)):a=0,n[o]=a,d.iushrn(1)}return n},n.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var n,r=0,d=0;e.cmpn(-r)>0||t.cmpn(-d)>0;){var o,a,s=e.andln(3)+r&3,h=t.andln(3)+d&3;3===s&&(s=-1),3===h&&(h=-1),o=0==(1&s)?0:3!==(n=e.andln(7)+r&7)&&5!==n||2!==h?s:-s,i[0].push(o),a=0==(1&h)?0:3!==(n=t.andln(7)+d&7)&&5!==n||2!==s?h:-h,i[1].push(a),2*r===o+1&&(r=1-r),2*d===a+1&&(d=1-d),e.iushrn(1),t.iushrn(1)}return i},n.cachedProperty=function(e,t,i){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new r(e,"hex","le")}},3785:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(k){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,n){for(var r=0,d=Math.min(e.length,i),o=t;o<d;o++){var a=e.charCodeAt(o)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this.strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this.strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},d.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 c(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],c=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(e);i=(p=p.idivn(c)).isZero()?m+i:u[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16)},d.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},d.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,h=new e(d),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[a]=o;for(;a<d;a++)h[a]=0}else{for(a=0;a<d-r;a++)h[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[d-a-1]=o}return h},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=c),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?c(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),m(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,d=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=d>>>26,this.words[i]=67108863&d}return 0!==t&&(this.words[i]=t,this.length++),this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this.strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},d.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new S(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}y.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,y),r(M,y),r(_,y),_.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new B(e)},r(B,S),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},7519:e=>{"use strict";e.exports={i8:"6.5.4"}},7187:e=>{"use strict";var t,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};t=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function d(){d.init.call(this)}e.exports=d,e.exports.once=function(e,t){return new Promise((function(i,n){function r(i){e.removeListener(t,d),n(i)}function d(){"function"==typeof e.removeListener&&e.removeListener("error",r),i([].slice.call(arguments))}m(e,t,d,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&m(e,"error",t,i)}(e,r,{once:!0})}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?d.defaultMaxListeners:e._maxListeners}function h(e,t,i,n){var r,d,o,h;if(a(i),void 0===(d=e._events)?(d=e._events=Object.create(null),e._eventsCount=0):(void 0!==d.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),d=e._events),o=d[t]),void 0===o)o=d[t]=i,++e._eventsCount;else if("function"==typeof o?o=d[t]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=s(e))>0&&o.length>r&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,h=u,console&&console.warn&&console.warn(h)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=u.bind(n);return r.listener=i,n.wrapFn=r,r}function f(e,t,i){var n=e._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(r):p(r,r.length)}function c(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function p(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}function m(e,t,i,n){if("function"==typeof e.on)n.once?e.once(t,i):e.on(t,i);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(d){n.once&&e.removeEventListener(t,r),i(d)}))}}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),d.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},d.prototype.getMaxListeners=function(){return s(this)},d.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,d=this._events;if(void 0!==d)r=r&&void 0===d.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=d[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var h=s.length,u=p(s,h);for(i=0;i<h;++i)n(u[i],this,t)}return!0},d.prototype.addListener=function(e,t){return h(this,e,t,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(e,t){return h(this,e,t,!0)},d.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},d.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},d.prototype.removeListener=function(e,t){var i,n,r,d,o;if(a(t),void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(r=-1,d=i.length-1;d>=0;d--)if(i[d]===t||i[d].listener===t){o=i[d].listener,r=d;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,r),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var r,d=Object.keys(i);for(n=0;n<d.length;++n)"removeListener"!==(r=d[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},d.prototype.listeners=function(e){return f(this,e,!0)},d.prototype.rawListeners=function(e){return f(this,e,!1)},d.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):c.call(e,t)},d.prototype.listenerCount=c,d.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3048:(e,t,i)=>{var n=i(9509).Buffer,r=i(2318);e.exports=function(e,t,i,d){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,a=n.alloc(o),s=n.alloc(d||0),h=n.alloc(0);o>0||d>0;){var u=new r;u.update(h),u.update(e),t&&u.update(t),h=u.digest();var l=0;if(o>0){var f=a.length-o;l=Math.min(o,h.length),h.copy(a,f,0,l),o-=l}if(l<h.length&&d>0){var c=s.length-d,p=Math.min(d,h.length-l);h.copy(s,c,l,l+p),d-=p}}return h.fill(0),{key:a,iv:s}}},3349:(e,t,i)=>{"use strict";var n=i(213).Buffer,r=i(8473).Transform;function d(e){r.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(5717)(d,r),d.prototype._transform=function(e,t,i){var n=null;try{this.update(e,t)}catch(r){n=r}i(n)},d.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(i){t=i}e(t)},d.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var i=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var d=this._blockOffset;d<this._blockSize;)i[d++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)i[this._blockOffset++]=e[r++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},d.prototype._update=function(){throw new Error("_update is not implemented")},d.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},d.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=d},213:(e,t,i)=>{var n=i(8764),r=n.Buffer;function d(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(d(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),d(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},3715:(e,t,i)=>{var n=t;n.utils=i(6436),n.common=i(5772),n.sha=i(9041),n.ripemd=i(2949),n.hmac=i(2344),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},5772:(e,t,i)=>{"use strict";var n=i(6436),r=i(9746);function d(){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}t.BlockHash=d,d.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var i=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-i,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-i,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},d.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},d.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,i=t-(e+this.padLength)%t,n=new Array(i+this.padLength);n[0]=128;for(var r=1;r<i;r++)n[r]=0;if(e<<=3,"big"===this.endian){for(var d=8;d<this.padLength;d++)n[r++]=0;n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=e>>>24&255,n[r++]=e>>>16&255,n[r++]=e>>>8&255,n[r++]=255&e}else for(n[r++]=255&e,n[r++]=e>>>8&255,n[r++]=e>>>16&255,n[r++]=e>>>24&255,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=0,d=8;d<this.padLength;d++)n[r++]=0;return n}},2344:(e,t,i)=>{"use strict";var n=i(6436),r=i(9746);function d(e,t,i){if(!(this instanceof d))return new d(e,t,i);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,i))}e.exports=d,d.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),r(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},d.prototype.update=function(e,t){return this.inner.update(e,t),this},d.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},2949:(e,t,i)=>{"use strict";var n=i(6436),r=i(5772),d=n.rotl32,o=n.sum32,a=n.sum32_3,s=n.sum32_4,h=r.BlockHash;function u(){if(!(this instanceof u))return new u;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,i,n){return e<=15?t^i^n:e<=31?t&i|~t&n:e<=47?(t|~i)^n:e<=63?t&n|i&~n:t^(i|~n)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function c(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,h),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var i=this.h[0],n=this.h[1],r=this.h[2],h=this.h[3],u=this.h[4],y=i,v=n,w=r,M=h,_=u,S=0;S<80;S++){var B=o(d(s(i,l(S,n,r,h),e[p[S]+t],f(S)),g[S]),u);i=u,u=h,h=d(r,10),r=n,n=B,B=o(d(s(y,l(79-S,v,w,M),e[m[S]+t],c(S)),b[S]),_),y=_,_=M,M=d(w,10),w=v,v=B}B=a(this.h[1],r,M),this.h[1]=a(this.h[2],h,_),this.h[2]=a(this.h[3],u,y),this.h[3]=a(this.h[4],i,v),this.h[4]=a(this.h[0],n,w),this.h[0]=B},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],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],b=[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]},9041:(e,t,i)=>{"use strict";t.sha1=i(4761),t.sha224=i(799),t.sha256=i(9344),t.sha384=i(772),t.sha512=i(5900)},4761:(e,t,i)=>{"use strict";var n=i(6436),r=i(5772),d=i(7038),o=n.rotl32,a=n.sum32,s=n.sum32_5,h=d.ft_1,u=r.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=o(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var r=this.h[0],d=this.h[1],u=this.h[2],f=this.h[3],c=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),m=s(o(r,5),h(p,d,u,f),c,i[n],l[p]);c=f,f=u,u=o(d,30),d=r,r=m}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],d),this.h[2]=a(this.h[2],u),this.h[3]=a(this.h[3],f),this.h[4]=a(this.h[4],c)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},799:(e,t,i)=>{"use strict";var n=i(6436),r=i(9344);function d(){if(!(this instanceof d))return new d;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(d,r),e.exports=d,d.blockSize=512,d.outSize=224,d.hmacStrength=192,d.padLength=64,d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},9344:(e,t,i)=>{"use strict";var n=i(6436),r=i(5772),d=i(7038),o=i(9746),a=n.sum32,s=n.sum32_4,h=n.sum32_5,u=d.ch32,l=d.maj32,f=d.s0_256,c=d.s1_256,p=d.g0_256,m=d.g1_256,g=r.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=s(m(i[n-2]),i[n-7],p(i[n-15]),i[n-16]);var r=this.h[0],d=this.h[1],g=this.h[2],b=this.h[3],y=this.h[4],v=this.h[5],w=this.h[6],M=this.h[7];for(o(this.k.length===i.length),n=0;n<i.length;n++){var _=h(M,c(y),u(y,v,w),this.k[n],i[n]),S=a(f(r),l(r,d,g));M=w,w=v,v=y,y=a(b,_),b=g,g=d,d=r,r=a(_,S)}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],d),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],b),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],M)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},772:(e,t,i)=>{"use strict";var n=i(6436),r=i(5900);function d(){if(!(this instanceof d))return new d;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(d,r),e.exports=d,d.blockSize=1024,d.outSize=384,d.hmacStrength=192,d.padLength=128,d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},5900:(e,t,i)=>{"use strict";var n=i(6436),r=i(5772),d=i(9746),o=n.rotr64_hi,a=n.rotr64_lo,s=n.shr64_hi,h=n.shr64_lo,u=n.sum64,l=n.sum64_hi,f=n.sum64_lo,c=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=r.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(e,t,i,n,r){var d=e&i^~e&r;return d<0&&(d+=4294967296),d}function M(e,t,i,n,r,d){var o=t&n^~t&d;return o<0&&(o+=4294967296),o}function _(e,t,i,n,r){var d=e&i^e&r^i&r;return d<0&&(d+=4294967296),d}function S(e,t,i,n,r,d){var o=t&n^t&d^n&d;return o<0&&(o+=4294967296),o}function B(e,t){var i=o(e,t,28)^o(t,e,2)^o(t,e,7);return i<0&&(i+=4294967296),i}function k(e,t){var i=a(e,t,28)^a(t,e,2)^a(t,e,7);return i<0&&(i+=4294967296),i}function C(e,t){var i=o(e,t,14)^o(e,t,18)^o(t,e,9);return i<0&&(i+=4294967296),i}function A(e,t){var i=a(e,t,14)^a(e,t,18)^a(t,e,9);return i<0&&(i+=4294967296),i}function P(e,t){var i=o(e,t,1)^o(e,t,8)^s(e,t,7);return i<0&&(i+=4294967296),i}function E(e,t){var i=a(e,t,1)^a(e,t,8)^h(e,t,7);return i<0&&(i+=4294967296),i}function T(e,t){var i=o(e,t,19)^o(t,e,29)^s(e,t,6);return i<0&&(i+=4294967296),i}function x(e,t){var i=a(e,t,19)^a(t,e,29)^h(e,t,6);return i<0&&(i+=4294967296),i}n.inherits(v,b),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var i=this.W,n=0;n<32;n++)i[n]=e[t+n];for(;n<i.length;n+=2){var r=T(i[n-4],i[n-3]),d=x(i[n-4],i[n-3]),o=i[n-14],a=i[n-13],s=P(i[n-30],i[n-29]),h=E(i[n-30],i[n-29]),u=i[n-32],l=i[n-31];i[n]=c(r,d,o,a,s,h,u,l),i[n+1]=p(r,d,o,a,s,h,u,l)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var i=this.W,n=this.h[0],r=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],h=this.h[5],c=this.h[6],p=this.h[7],b=this.h[8],y=this.h[9],v=this.h[10],P=this.h[11],E=this.h[12],T=this.h[13],x=this.h[14],R=this.h[15];d(this.k.length===i.length);for(var D=0;D<i.length;D+=2){var L=x,I=R,W=C(b,y),G=A(b,y),F=w(b,y,v,P,E),O=M(b,y,v,P,E,T),H=this.k[D],N=this.k[D+1],z=i[D],j=i[D+1],q=m(L,I,W,G,F,O,H,N,z,j),U=g(L,I,W,G,F,O,H,N,z,j);L=B(n,r),I=k(n,r),W=_(n,r,o,a,s),G=S(n,r,o,a,s,h);var K=l(L,I,W,G),Z=f(L,I,W,G);x=E,R=T,E=v,T=P,v=b,P=y,b=l(c,p,q,U),y=f(p,p,q,U),c=s,p=h,s=o,h=a,o=n,a=r,n=l(q,U,K,Z),r=f(q,U,K,Z)}u(this.h,0,n,r),u(this.h,2,o,a),u(this.h,4,s,h),u(this.h,6,c,p),u(this.h,8,b,y),u(this.h,10,v,P),u(this.h,12,E,T),u(this.h,14,x,R)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7038:(e,t,i)=>{"use strict";var n=i(6436).rotr32;function r(e,t,i){return e&t^~e&i}function d(e,t,i){return e&t^e&i^t&i}function o(e,t,i){return e^t^i}t.ft_1=function(e,t,i,n){return 0===e?r(t,i,n):1===e||3===e?o(t,i,n):2===e?d(t,i,n):void 0},t.ch32=r,t.maj32=d,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},6436:(e,t,i)=>{"use strict";var n=i(9746),r=i(5717);function d(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=r,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)i.push(parseInt(e[r]+e[r+1],16))}else for(var n=0,r=0;r<e.length;r++){var o=e.charCodeAt(r);o<128?i[n++]=o:o<2048?(i[n++]=o>>6|192,i[n++]=63&o|128):d(e,r)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),i[n++]=o>>18|240,i[n++]=o>>12&63|128,i[n++]=o>>6&63|128,i[n++]=63&o|128):(i[n++]=o>>12|224,i[n++]=o>>6&63|128,i[n++]=63&o|128)}else for(r=0;r<e.length;r++)i[r]=0|e[r];return i},t.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=a(e[i].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e[n];"little"===t&&(r=o(r)),i+=s(r.toString(16))}return i},t.zero2=a,t.zero8=s,t.join32=function(e,t,i,r){var d=i-t;n(d%4==0);for(var o=new Array(d/4),a=0,s=t;a<o.length;a++,s+=4){var h;h="big"===r?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[a]=h>>>0}return o},t.split32=function(e,t){for(var i=new Array(4*e.length),n=0,r=0;n<e.length;n++,r+=4){var d=e[n];"big"===t?(i[r]=d>>>24,i[r+1]=d>>>16&255,i[r+2]=d>>>8&255,i[r+3]=255&d):(i[r+3]=d>>>24,i[r+2]=d>>>16&255,i[r+1]=d>>>8&255,i[r]=255&d)}return i},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,i){return e+t+i>>>0},t.sum32_4=function(e,t,i,n){return e+t+i+n>>>0},t.sum32_5=function(e,t,i,n,r){return e+t+i+n+r>>>0},t.sum64=function(e,t,i,n){var r=e[t],d=n+e[t+1]>>>0,o=(d<n?1:0)+i+r;e[t]=o>>>0,e[t+1]=d},t.sum64_hi=function(e,t,i,n){return(t+n>>>0<t?1:0)+e+i>>>0},t.sum64_lo=function(e,t,i,n){return t+n>>>0},t.sum64_4_hi=function(e,t,i,n,r,d,o,a){var s=0,h=t;return s+=(h=h+n>>>0)<t?1:0,s+=(h=h+d>>>0)<d?1:0,e+i+r+o+(s+=(h=h+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,i,n,r,d,o,a){return t+n+d+a>>>0},t.sum64_5_hi=function(e,t,i,n,r,d,o,a,s,h){var u=0,l=t;return u+=(l=l+n>>>0)<t?1:0,u+=(l=l+d>>>0)<d?1:0,u+=(l=l+a>>>0)<a?1:0,e+i+r+o+s+(u+=(l=l+h>>>0)<h?1:0)>>>0},t.sum64_5_lo=function(e,t,i,n,r,d,o,a,s,h){return t+n+d+a+h>>>0},t.rotr64_hi=function(e,t,i){return(t<<32-i|e>>>i)>>>0},t.rotr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0},t.shr64_hi=function(e,t,i){return e>>>i},t.shr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0}},2156:(e,t,i)=>{"use strict";var n=i(3715),r=i(4504),d=i(9746);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=r.toArray(e.entropy,e.entropyEnc||"hex"),i=r.toArray(e.nonce,e.nonceEnc||"hex"),n=r.toArray(e.pers,e.persEnc||"hex");d(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,i,n)}e.exports=o,o.prototype._init=function(e,t,i){var n=e.concat(t).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,i,n){"string"!=typeof t&&(n=i,i=t,t=null),e=r.toArray(e,t),i=r.toArray(i,n),d(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},o.prototype.generate=function(e,t,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=i,i=t,t=null),i&&(i=r.toArray(i,n||"hex"),this._update(i));for(var d=[];d.length<e;)this.V=this._hmac().update(this.V).digest(),d=d.concat(this.V);var o=d.slice(0,e);return this._update(i),this._reseed++,r.encode(o,t)}},645:(e,t)=>{t.read=function(e,t,i,n,r){var d,o,a=8*r-n-1,s=(1<<a)-1,h=s>>1,u=-7,l=i?r-1:0,f=i?-1:1,c=e[t+l];for(l+=f,d=c&(1<<-u)-1,c>>=-u,u+=a;u>0;d=256*d+e[t+l],l+=f,u-=8);for(o=d&(1<<-u)-1,d>>=-u,u+=n;u>0;o=256*o+e[t+l],l+=f,u-=8);if(0===d)d=1-h;else{if(d===s)return o?NaN:1/0*(c?-1:1);o+=Math.pow(2,n),d-=h}return(c?-1:1)*o*Math.pow(2,d-n)},t.write=function(e,t,i,n,r,d){var o,a,s,h=8*d-r-1,u=(1<<h)-1,l=u>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?0:d-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+l>=1?f/s:f*Math.pow(2,1-l))*s>=2&&(o++,s/=2),o+l>=u?(a=0,o=u):o+l>=1?(a=(t*s-1)*Math.pow(2,r),o+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,r),o=0));r>=8;e[i+c]=255&a,c+=p,a/=256,r-=8);for(o=o<<r|a,h+=r;h>0;e[i+c]=255&o,c+=p,o/=256,h-=8);e[i+c-p]|=128*m}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},6486:function(e,t,i){var n;e=i.nmd(e),function(){var r,d="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=16,h=32,u=64,l=128,f=256,c=1/0,p=9007199254740991,m=NaN,g=4294967295,b=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",h],["partialRight",u],["rearg",f]],y="[object Arguments]",v="[object Array]",w="[object Boolean]",M="[object Date]",_="[object Error]",S="[object Function]",B="[object GeneratorFunction]",k="[object Map]",C="[object Number]",A="[object Object]",P="[object Promise]",E="[object RegExp]",T="[object Set]",x="[object String]",R="[object Symbol]",D="[object WeakMap]",L="[object ArrayBuffer]",I="[object DataView]",W="[object Float32Array]",G="[object Float64Array]",F="[object Int8Array]",O="[object Int16Array]",H="[object Int32Array]",N="[object Uint8Array]",z="[object Uint8ClampedArray]",j="[object Uint16Array]",q="[object Uint32Array]",U=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(V.source),$=RegExp(J.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,de=RegExp(re.source),oe=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,Me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",xe="[\\ud800-\\udfff]",Re="["+Ee+"]",De="["+Be+"]",Le="\\d+",Ie="[\\u2700-\\u27bf]",We="["+Ce+"]",Ge="[^\\ud800-\\udfff"+Ee+Le+ke+Ce+Ae+"]",Fe="\\ud83c[\\udffb-\\udfff]",Oe="[^\\ud800-\\udfff]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Ae+"]",je="(?:"+We+"|"+Ge+")",qe="(?:"+ze+"|"+Ge+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+De+"|"+Fe+")"+"?",Ve="[\\ufe0e\\ufe0f]?",Je=Ve+Ze+("(?:\\u200d(?:"+[Oe,He,Ne].join("|")+")"+Ve+Ze+")*"),Ye="(?:"+[Ie,He,Ne].join("|")+")"+Je,$e="(?:"+[Oe+De+"?",De,He,Ne,xe].join("|")+")",Xe=RegExp(Te,"g"),Qe=RegExp(De,"g"),et=RegExp(Fe+"(?="+Fe+")|"+$e+Je,"g"),tt=RegExp([ze+"?"+We+"+"+Ue+"(?="+[Re,ze,"$"].join("|")+")",qe+"+"+Ke+"(?="+[Re,ze+je,"$"].join("|")+")",ze+"?"+je+"+"+Ue,ze+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ye].join("|"),"g"),it=RegExp("[\\u200d\\ud800-\\udfff"+Be+Pe+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],dt=-1,ot={};ot[W]=ot[G]=ot[F]=ot[O]=ot[H]=ot[N]=ot[z]=ot[j]=ot[q]=!0,ot[y]=ot[v]=ot[L]=ot[w]=ot[I]=ot[M]=ot[_]=ot[S]=ot[k]=ot[C]=ot[A]=ot[E]=ot[T]=ot[x]=ot[D]=!1;var at={};at[y]=at[v]=at[L]=at[I]=at[w]=at[M]=at[W]=at[G]=at[F]=at[O]=at[H]=at[k]=at[C]=at[A]=at[E]=at[T]=at[x]=at[R]=at[N]=at[z]=at[j]=at[q]=!0,at[_]=at[S]=at[D]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,ut=parseInt,lt="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,ft="object"==typeof self&&self&&self.Object===Object&&self,ct=lt||ft||Function("return this")(),pt=t&&!t.nodeType&&t,mt=pt&&e&&!e.nodeType&&e,gt=mt&&mt.exports===pt,bt=gt&<.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),vt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,Mt=yt&&yt.isMap,_t=yt&&yt.isRegExp,St=yt&&yt.isSet,Bt=yt&&yt.isTypedArray;function kt(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Ct(e,t,i,n){for(var r=-1,d=null==e?0:e.length;++r<d;){var o=e[r];t(n,o,i(o),e)}return n}function At(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function Pt(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function Et(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}function Tt(e,t){for(var i=-1,n=null==e?0:e.length,r=0,d=[];++i<n;){var o=e[i];t(o,i,e)&&(d[r++]=o)}return d}function xt(e,t){return!!(null==e?0:e.length)&&Nt(e,t,0)>-1}function Rt(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1}function Dt(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}function Lt(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}function It(e,t,i,n){var r=-1,d=null==e?0:e.length;for(n&&d&&(i=e[++r]);++r<d;)i=t(i,e[r],r,e);return i}function Wt(e,t,i,n){var r=null==e?0:e.length;for(n&&r&&(i=e[--r]);r--;)i=t(i,e[r],r,e);return i}function Gt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}var Ft=Ut("length");function Ot(e,t,i){var n;return i(e,(function(e,i,r){if(t(e,i,r))return n=i,!1})),n}function Ht(e,t,i,n){for(var r=e.length,d=i+(n?1:-1);n?d--:++d<r;)if(t(e[d],d,e))return d;return-1}function Nt(e,t,i){return t==t?function(e,t,i){var n=i-1,r=e.length;for(;++n<r;)if(e[n]===t)return n;return-1}(e,t,i):Ht(e,jt,i)}function zt(e,t,i,n){for(var r=i-1,d=e.length;++r<d;)if(n(e[r],t))return r;return-1}function jt(e){return e!=e}function qt(e,t){var i=null==e?0:e.length;return i?Vt(e,t)/i:m}function Ut(e){return function(t){return null==t?r:t[e]}}function Kt(e){return function(t){return null==e?r:e[t]}}function Zt(e,t,i,n,r){return r(e,(function(e,r,d){i=n?(n=!1,e):t(i,e,r,d)})),i}function Vt(e,t){for(var i,n=-1,d=e.length;++n<d;){var o=t(e[n]);o!==r&&(i=i===r?o:i+o)}return i}function Jt(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function Yt(e){return e?e.slice(0,pi(e)+1).replace(oe,""):e}function $t(e){return function(t){return e(t)}}function Xt(e,t){return Dt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function ei(e,t){for(var i=-1,n=e.length;++i<n&&Nt(t,e[i],0)>-1;);return i}function ti(e,t){for(var i=e.length;i--&&Nt(t,e[i],0)>-1;);return i}function ii(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}var ni=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ri=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function di(e){return"\\"+st[e]}function oi(e){return it.test(e)}function ai(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function si(e,t){return function(i){return e(t(i))}}function hi(e,t){for(var i=-1,n=e.length,r=0,d=[];++i<n;){var o=e[i];o!==t&&o!==a||(e[i]=a,d[r++]=i)}return d}function ui(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}function li(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i}function fi(e){return oi(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Ft(e)}function ci(e){return oi(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function pi(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var mi=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gi=function e(t){var i,n=(t=null==t?ct:gi.defaults(ct.Object(),t,gi.pick(ct,rt))).Array,ae=t.Date,Be=t.Error,ke=t.Function,Ce=t.Math,Ae=t.Object,Pe=t.RegExp,Ee=t.String,Te=t.TypeError,xe=n.prototype,Re=ke.prototype,De=Ae.prototype,Le=t["__core-js_shared__"],Ie=Re.toString,We=De.hasOwnProperty,Ge=0,Fe=(i=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Oe=De.toString,He=Ie.call(Ae),Ne=ct._,ze=Pe("^"+Ie.call(We).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=gt?t.Buffer:r,qe=t.Symbol,Ue=t.Uint8Array,Ke=je?je.allocUnsafe:r,Ze=si(Ae.getPrototypeOf,Ae),Ve=Ae.create,Je=De.propertyIsEnumerable,Ye=xe.splice,$e=qe?qe.isConcatSpreadable:r,et=qe?qe.iterator:r,it=qe?qe.toStringTag:r,st=function(){try{var e=cd(Ae,"defineProperty");return e({},"",{}),e}catch(t){}}(),lt=t.clearTimeout!==ct.clearTimeout&&t.clearTimeout,ft=ae&&ae.now!==ct.Date.now&&ae.now,pt=t.setTimeout!==ct.setTimeout&&t.setTimeout,mt=Ce.ceil,bt=Ce.floor,yt=Ae.getOwnPropertySymbols,Ft=je?je.isBuffer:r,Kt=t.isFinite,bi=xe.join,yi=si(Ae.keys,Ae),vi=Ce.max,wi=Ce.min,Mi=ae.now,_i=t.parseInt,Si=Ce.random,Bi=xe.reverse,ki=cd(t,"DataView"),Ci=cd(t,"Map"),Ai=cd(t,"Promise"),Pi=cd(t,"Set"),Ei=cd(t,"WeakMap"),Ti=cd(Ae,"create"),xi=Ei&&new Ei,Ri={},Di=Hd(ki),Li=Hd(Ci),Ii=Hd(Ai),Wi=Hd(Pi),Gi=Hd(Ei),Fi=qe?qe.prototype:r,Oi=Fi?Fi.valueOf:r,Hi=Fi?Fi.toString:r;function Ni(e){if(ra(e)&&!Zo(e)&&!(e instanceof Ui)){if(e instanceof qi)return e;if(We.call(e,"__wrapped__"))return Nd(e)}return new qi(e)}var zi=function(){function e(){}return function(t){if(!na(t))return{};if(Ve)return Ve(t);e.prototype=t;var i=new e;return e.prototype=r,i}}();function ji(){}function qi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Ui(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Ki(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Zi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Vi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Ji(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Vi;++t<i;)this.add(e[t])}function Yi(e){var t=this.__data__=new Zi(e);this.size=t.size}function $i(e,t){var i=Zo(e),n=!i&&Ko(e),r=!i&&!n&&$o(e),d=!i&&!n&&!r&&fa(e),o=i||n||r||d,a=o?Jt(e.length,Ee):[],s=a.length;for(var h in e)!t&&!We.call(e,h)||o&&("length"==h||r&&("offset"==h||"parent"==h)||d&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||wd(h,s))||a.push(h);return a}function Xi(e){var t=e.length;return t?e[Yn(0,t-1)]:r}function Qi(e,t){return Gd(xr(e),hn(t,0,e.length))}function en(e){return Gd(xr(e))}function tn(e,t,i){(i!==r&&!jo(e[t],i)||i===r&&!(t in e))&&an(e,t,i)}function nn(e,t,i){var n=e[t];We.call(e,t)&&jo(n,i)&&(i!==r||t in e)||an(e,t,i)}function rn(e,t){for(var i=e.length;i--;)if(jo(e[i][0],t))return i;return-1}function dn(e,t,i,n){return pn(e,(function(e,r,d){t(n,e,i(e),d)})),n}function on(e,t){return e&&Rr(t,La(t),e)}function an(e,t,i){"__proto__"==t&&st?st(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function sn(e,t){for(var i=-1,d=t.length,o=n(d),a=null==e;++i<d;)o[i]=a?r:Ea(e,t[i]);return o}function hn(e,t,i){return e==e&&(i!==r&&(e=e<=i?e:i),t!==r&&(e=e>=t?e:t)),e}function un(e,t,i,n,d,o){var a,s=1&t,h=2&t,u=4&t;if(i&&(a=d?i(e,n,d,o):i(e)),a!==r)return a;if(!na(e))return e;var l=Zo(e);if(l){if(a=function(e){var t=e.length,i=new e.constructor(t);t&&"string"==typeof e[0]&&We.call(e,"index")&&(i.index=e.index,i.input=e.input);return i}(e),!s)return xr(e,a)}else{var f=gd(e),c=f==S||f==B;if($o(e))return kr(e,s);if(f==A||f==y||c&&!d){if(a=h||c?{}:yd(e),!s)return h?function(e,t){return Rr(e,md(e),t)}(e,function(e,t){return e&&Rr(t,Ia(t),e)}(a,e)):function(e,t){return Rr(e,pd(e),t)}(e,on(a,e))}else{if(!at[f])return d?e:{};a=function(e,t,i){var n=e.constructor;switch(t){case L:return Cr(e);case w:case M:return new n(+e);case I:return function(e,t){var i=t?Cr(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case W:case G:case F:case O:case H:case N:case z:case j:case q:return Ar(e,i);case k:return new n;case C:case x:return new n(e);case E:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new n;case R:return r=e,Oi?Ae(Oi.call(r)):{}}var r}(e,f,s)}}o||(o=new Yi);var p=o.get(e);if(p)return p;o.set(e,a),ha(e)?e.forEach((function(n){a.add(un(n,t,i,n,e,o))})):da(e)&&e.forEach((function(n,r){a.set(r,un(n,t,i,r,e,o))}));var m=l?r:(u?h?od:dd:h?Ia:La)(e);return At(m||e,(function(n,r){m&&(n=e[r=n]),nn(a,r,un(n,t,i,r,e,o))})),a}function ln(e,t,i){var n=i.length;if(null==e)return!n;for(e=Ae(e);n--;){var d=i[n],o=t[d],a=e[d];if(a===r&&!(d in e)||!o(a))return!1}return!0}function fn(e,t,i){if("function"!=typeof e)throw new Te(d);return Dd((function(){e.apply(r,i)}),t)}function cn(e,t,i,n){var r=-1,d=xt,o=!0,a=e.length,s=[],h=t.length;if(!a)return s;i&&(t=Dt(t,$t(i))),n?(d=Rt,o=!1):t.length>=200&&(d=Qt,o=!1,t=new Ji(t));e:for(;++r<a;){var u=e[r],l=null==i?u:i(u);if(u=n||0!==u?u:0,o&&l==l){for(var f=h;f--;)if(t[f]===l)continue e;s.push(u)}else d(t,l,n)||s.push(u)}return s}Ni.templateSettings={escape:X,evaluate:Q,interpolate:ee,variable:"",imports:{_:Ni}},Ni.prototype=ji.prototype,Ni.prototype.constructor=Ni,qi.prototype=zi(ji.prototype),qi.prototype.constructor=qi,Ui.prototype=zi(ji.prototype),Ui.prototype.constructor=Ui,Ki.prototype.clear=function(){this.__data__=Ti?Ti(null):{},this.size=0},Ki.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ki.prototype.get=function(e){var t=this.__data__;if(Ti){var i=t[e];return i===o?r:i}return We.call(t,e)?t[e]:r},Ki.prototype.has=function(e){var t=this.__data__;return Ti?t[e]!==r:We.call(t,e)},Ki.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ti&&t===r?o:t,this},Zi.prototype.clear=function(){this.__data__=[],this.size=0},Zi.prototype.delete=function(e){var t=this.__data__,i=rn(t,e);return!(i<0)&&(i==t.length-1?t.pop():Ye.call(t,i,1),--this.size,!0)},Zi.prototype.get=function(e){var t=this.__data__,i=rn(t,e);return i<0?r:t[i][1]},Zi.prototype.has=function(e){return rn(this.__data__,e)>-1},Zi.prototype.set=function(e,t){var i=this.__data__,n=rn(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},Vi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ki,map:new(Ci||Zi),string:new Ki}},Vi.prototype.delete=function(e){var t=ld(this,e).delete(e);return this.size-=t?1:0,t},Vi.prototype.get=function(e){return ld(this,e).get(e)},Vi.prototype.has=function(e){return ld(this,e).has(e)},Vi.prototype.set=function(e,t){var i=ld(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},Ji.prototype.add=Ji.prototype.push=function(e){return this.__data__.set(e,o),this},Ji.prototype.has=function(e){return this.__data__.has(e)},Yi.prototype.clear=function(){this.__data__=new Zi,this.size=0},Yi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Yi.prototype.get=function(e){return this.__data__.get(e)},Yi.prototype.has=function(e){return this.__data__.has(e)},Yi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Zi){var n=i.__data__;if(!Ci||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Vi(n)}return i.set(e,t),this.size=i.size,this};var pn=Ir(_n),mn=Ir(Sn,!0);function gn(e,t){var i=!0;return pn(e,(function(e,n,r){return i=!!t(e,n,r)})),i}function bn(e,t,i){for(var n=-1,d=e.length;++n<d;){var o=e[n],a=t(o);if(null!=a&&(s===r?a==a&&!la(a):i(a,s)))var s=a,h=o}return h}function yn(e,t){var i=[];return pn(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i}function vn(e,t,i,n,r){var d=-1,o=e.length;for(i||(i=vd),r||(r=[]);++d<o;){var a=e[d];t>0&&i(a)?t>1?vn(a,t-1,i,n,r):Lt(r,a):n||(r[r.length]=a)}return r}var wn=Wr(),Mn=Wr(!0);function _n(e,t){return e&&wn(e,t,La)}function Sn(e,t){return e&&Mn(e,t,La)}function Bn(e,t){return Tt(t,(function(t){return ea(e[t])}))}function kn(e,t){for(var i=0,n=(t=Mr(t,e)).length;null!=e&&i<n;)e=e[Od(t[i++])];return i&&i==n?e:r}function Cn(e,t,i){var n=t(e);return Zo(e)?n:Lt(n,i(e))}function An(e){return null==e?e===r?"[object Undefined]":"[object Null]":it&&it in Ae(e)?function(e){var t=We.call(e,it),i=e[it];try{e[it]=r;var n=!0}catch(o){}var d=Oe.call(e);n&&(t?e[it]=i:delete e[it]);return d}(e):function(e){return Oe.call(e)}(e)}function Pn(e,t){return e>t}function En(e,t){return null!=e&&We.call(e,t)}function Tn(e,t){return null!=e&&t in Ae(e)}function xn(e,t,i){for(var d=i?Rt:xt,o=e[0].length,a=e.length,s=a,h=n(a),u=1/0,l=[];s--;){var f=e[s];s&&t&&(f=Dt(f,$t(t))),u=wi(f.length,u),h[s]=!i&&(t||o>=120&&f.length>=120)?new Ji(s&&f):r}f=e[0];var c=-1,p=h[0];e:for(;++c<o&&l.length<u;){var m=f[c],g=t?t(m):m;if(m=i||0!==m?m:0,!(p?Qt(p,g):d(l,g,i))){for(s=a;--s;){var b=h[s];if(!(b?Qt(b,g):d(e[s],g,i)))continue e}p&&p.push(g),l.push(m)}}return l}function Rn(e,t,i){var n=null==(e=Ed(e,t=Mr(t,e)))?e:e[Od(Xd(t))];return null==n?r:kt(n,e,i)}function Dn(e){return ra(e)&&An(e)==y}function Ln(e,t,i,n,d){return e===t||(null==e||null==t||!ra(e)&&!ra(t)?e!=e&&t!=t:function(e,t,i,n,d,o){var a=Zo(e),s=Zo(t),h=a?v:gd(e),u=s?v:gd(t),l=(h=h==y?A:h)==A,f=(u=u==y?A:u)==A,c=h==u;if(c&&$o(e)){if(!$o(t))return!1;a=!0,l=!1}if(c&&!l)return o||(o=new Yi),a||fa(e)?nd(e,t,i,n,d,o):function(e,t,i,n,r,d,o){switch(i){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!d(new Ue(e),new Ue(t)));case w:case M:case C:return jo(+e,+t);case _:return e.name==t.name&&e.message==t.message;case E:case x:return e==t+"";case k:var a=ai;case T:var s=1&n;if(a||(a=ui),e.size!=t.size&&!s)return!1;var h=o.get(e);if(h)return h==t;n|=2,o.set(e,t);var u=nd(a(e),a(t),n,r,d,o);return o.delete(e),u;case R:if(Oi)return Oi.call(e)==Oi.call(t)}return!1}(e,t,h,i,n,d,o);if(!(1&i)){var p=l&&We.call(e,"__wrapped__"),m=f&&We.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,b=m?t.value():t;return o||(o=new Yi),d(g,b,i,n,o)}}if(!c)return!1;return o||(o=new Yi),function(e,t,i,n,d,o){var a=1&i,s=dd(e),h=s.length,u=dd(t).length;if(h!=u&&!a)return!1;var l=h;for(;l--;){var f=s[l];if(!(a?f in t:We.call(t,f)))return!1}var c=o.get(e),p=o.get(t);if(c&&p)return c==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);var g=a;for(;++l<h;){var b=e[f=s[l]],y=t[f];if(n)var v=a?n(y,b,f,t,e,o):n(b,y,f,e,t,o);if(!(v===r?b===y||d(b,y,i,n,o):v)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,M=t.constructor;w==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof M&&M instanceof M||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,i,n,d,o)}(e,t,i,n,Ln,d))}function In(e,t,i,n){var d=i.length,o=d,a=!n;if(null==e)return!o;for(e=Ae(e);d--;){var s=i[d];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++d<o;){var h=(s=i[d])[0],u=e[h],l=s[1];if(a&&s[2]){if(u===r&&!(h in e))return!1}else{var f=new Yi;if(n)var c=n(u,l,h,e,t,f);if(!(c===r?Ln(l,u,3,n,f):c))return!1}}return!0}function Wn(e){return!(!na(e)||(t=e,Fe&&Fe in t))&&(ea(e)?ze:ye).test(Hd(e));var t}function Gn(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?Zo(e)?jn(e[0],e[1]):zn(e):ms(e)}function Fn(e){if(!kd(e))return yi(e);var t=[];for(var i in Ae(e))We.call(e,i)&&"constructor"!=i&&t.push(i);return t}function On(e){if(!na(e))return function(e){var t=[];if(null!=e)for(var i in Ae(e))t.push(i);return t}(e);var t=kd(e),i=[];for(var n in e)("constructor"!=n||!t&&We.call(e,n))&&i.push(n);return i}function Hn(e,t){return e<t}function Nn(e,t){var i=-1,r=Jo(e)?n(e.length):[];return pn(e,(function(e,n,d){r[++i]=t(e,n,d)})),r}function zn(e){var t=fd(e);return 1==t.length&&t[0][2]?Ad(t[0][0],t[0][1]):function(i){return i===e||In(i,e,t)}}function jn(e,t){return _d(e)&&Cd(t)?Ad(Od(e),t):function(i){var n=Ea(i,e);return n===r&&n===t?Ta(i,e):Ln(t,n,3)}}function qn(e,t,i,n,d){e!==t&&wn(t,(function(o,a){if(d||(d=new Yi),na(o))!function(e,t,i,n,d,o,a){var s=xd(e,i),h=xd(t,i),u=a.get(h);if(u)return void tn(e,i,u);var l=o?o(s,h,i+"",e,t,a):r,f=l===r;if(f){var c=Zo(h),p=!c&&$o(h),m=!c&&!p&&fa(h);l=h,c||p||m?Zo(s)?l=s:Yo(s)?l=xr(s):p?(f=!1,l=kr(h,!0)):m?(f=!1,l=Ar(h,!0)):l=[]:aa(h)||Ko(h)?(l=s,Ko(s)?l=wa(s):na(s)&&!ea(s)||(l=yd(h))):f=!1}f&&(a.set(h,l),d(l,h,n,o,a),a.delete(h));tn(e,i,l)}(e,t,a,i,qn,n,d);else{var s=n?n(xd(e,a),o,a+"",e,t,d):r;s===r&&(s=o),tn(e,a,s)}}),Ia)}function Un(e,t){var i=e.length;if(i)return wd(t+=t<0?i:0,i)?e[t]:r}function Kn(e,t,i){t=t.length?Dt(t,(function(e){return Zo(e)?function(t){return kn(t,1===e.length?e[0]:e)}:e})):[os];var n=-1;return t=Dt(t,$t(ud())),function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(Nn(e,(function(e,i,r){return{criteria:Dt(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,i){var n=-1,r=e.criteria,d=t.criteria,o=r.length,a=i.length;for(;++n<o;){var s=Pr(r[n],d[n]);if(s)return n>=a?s:s*("desc"==i[n]?-1:1)}return e.index-t.index}(e,t,i)}))}function Zn(e,t,i){for(var n=-1,r=t.length,d={};++n<r;){var o=t[n],a=kn(e,o);i(a,o)&&tr(d,Mr(o,e),a)}return d}function Vn(e,t,i,n){var r=n?zt:Nt,d=-1,o=t.length,a=e;for(e===t&&(t=xr(t)),i&&(a=Dt(e,$t(i)));++d<o;)for(var s=0,h=t[d],u=i?i(h):h;(s=r(a,u,s,n))>-1;)a!==e&&Ye.call(a,s,1),Ye.call(e,s,1);return e}function Jn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var r=t[i];if(i==n||r!==d){var d=r;wd(r)?Ye.call(e,r,1):cr(e,r)}}return e}function Yn(e,t){return e+bt(Si()*(t-e+1))}function $n(e,t){var i="";if(!e||t<1||t>p)return i;do{t%2&&(i+=e),(t=bt(t/2))&&(e+=e)}while(t);return i}function Xn(e,t){return Ld(Pd(e,t,os),e+"")}function Qn(e){return Xi(ja(e))}function er(e,t){var i=ja(e);return Gd(i,hn(t,0,i.length))}function tr(e,t,i,n){if(!na(e))return e;for(var d=-1,o=(t=Mr(t,e)).length,a=o-1,s=e;null!=s&&++d<o;){var h=Od(t[d]),u=i;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(d!=a){var l=s[h];(u=n?n(l,h,s):r)===r&&(u=na(l)?l:wd(t[d+1])?[]:{})}nn(s,h,u),s=s[h]}return e}var ir=xi?function(e,t){return xi.set(e,t),e}:os,nr=st?function(e,t){return st(e,"toString",{configurable:!0,enumerable:!1,value:ns(t),writable:!0})}:os;function rr(e){return Gd(ja(e))}function dr(e,t,i){var r=-1,d=e.length;t<0&&(t=-t>d?0:d+t),(i=i>d?d:i)<0&&(i+=d),d=t>i?0:i-t>>>0,t>>>=0;for(var o=n(d);++r<d;)o[r]=e[r+t];return o}function or(e,t){var i;return pn(e,(function(e,n,r){return!(i=t(e,n,r))})),!!i}function ar(e,t,i){var n=0,r=null==e?n:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;n<r;){var d=n+r>>>1,o=e[d];null!==o&&!la(o)&&(i?o<=t:o<t)?n=d+1:r=d}return r}return sr(e,t,os,i)}function sr(e,t,i,n){var d=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=i(t))!=t,s=null===t,h=la(t),u=t===r;d<o;){var l=bt((d+o)/2),f=i(e[l]),c=f!==r,p=null===f,m=f==f,g=la(f);if(a)var b=n||m;else b=u?m&&(n||c):s?m&&c&&(n||!p):h?m&&c&&!p&&(n||!g):!p&&!g&&(n?f<=t:f<t);b?d=l+1:o=l}return wi(o,4294967294)}function hr(e,t){for(var i=-1,n=e.length,r=0,d=[];++i<n;){var o=e[i],a=t?t(o):o;if(!i||!jo(a,s)){var s=a;d[r++]=0===o?0:o}}return d}function ur(e){return"number"==typeof e?e:la(e)?m:+e}function lr(e){if("string"==typeof e)return e;if(Zo(e))return Dt(e,lr)+"";if(la(e))return Hi?Hi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fr(e,t,i){var n=-1,r=xt,d=e.length,o=!0,a=[],s=a;if(i)o=!1,r=Rt;else if(d>=200){var h=t?null:$r(e);if(h)return ui(h);o=!1,r=Qt,s=new Ji}else s=t?[]:a;e:for(;++n<d;){var u=e[n],l=t?t(u):u;if(u=i||0!==u?u:0,o&&l==l){for(var f=s.length;f--;)if(s[f]===l)continue e;t&&s.push(l),a.push(u)}else r(s,l,i)||(s!==a&&s.push(l),a.push(u))}return a}function cr(e,t){return null==(e=Ed(e,t=Mr(t,e)))||delete e[Od(Xd(t))]}function pr(e,t,i,n){return tr(e,t,i(kn(e,t)),n)}function mr(e,t,i,n){for(var r=e.length,d=n?r:-1;(n?d--:++d<r)&&t(e[d],d,e););return i?dr(e,n?0:d,n?d+1:r):dr(e,n?d+1:0,n?r:d)}function gr(e,t){var i=e;return i instanceof Ui&&(i=i.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),i)}function br(e,t,i){var r=e.length;if(r<2)return r?fr(e[0]):[];for(var d=-1,o=n(r);++d<r;)for(var a=e[d],s=-1;++s<r;)s!=d&&(o[d]=cn(o[d]||a,e[s],t,i));return fr(vn(o,1),t,i)}function yr(e,t,i){for(var n=-1,d=e.length,o=t.length,a={};++n<d;){var s=n<o?t[n]:r;i(a,e[n],s)}return a}function vr(e){return Yo(e)?e:[]}function wr(e){return"function"==typeof e?e:os}function Mr(e,t){return Zo(e)?e:_d(e,t)?[e]:Fd(Ma(e))}var _r=Xn;function Sr(e,t,i){var n=e.length;return i=i===r?n:i,!t&&i>=n?e:dr(e,t,i)}var Br=lt||function(e){return ct.clearTimeout(e)};function kr(e,t){if(t)return e.slice();var i=e.length,n=Ke?Ke(i):new e.constructor(i);return e.copy(n),n}function Cr(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ar(e,t){var i=t?Cr(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Pr(e,t){if(e!==t){var i=e!==r,n=null===e,d=e==e,o=la(e),a=t!==r,s=null===t,h=t==t,u=la(t);if(!s&&!u&&!o&&e>t||o&&a&&h&&!s&&!u||n&&a&&h||!i&&h||!d)return 1;if(!n&&!o&&!u&&e<t||u&&i&&d&&!n&&!o||s&&i&&d||!a&&d||!h)return-1}return 0}function Er(e,t,i,r){for(var d=-1,o=e.length,a=i.length,s=-1,h=t.length,u=vi(o-a,0),l=n(h+u),f=!r;++s<h;)l[s]=t[s];for(;++d<a;)(f||d<o)&&(l[i[d]]=e[d]);for(;u--;)l[s++]=e[d++];return l}function Tr(e,t,i,r){for(var d=-1,o=e.length,a=-1,s=i.length,h=-1,u=t.length,l=vi(o-s,0),f=n(l+u),c=!r;++d<l;)f[d]=e[d];for(var p=d;++h<u;)f[p+h]=t[h];for(;++a<s;)(c||d<o)&&(f[p+i[a]]=e[d++]);return f}function xr(e,t){var i=-1,r=e.length;for(t||(t=n(r));++i<r;)t[i]=e[i];return t}function Rr(e,t,i,n){var d=!i;i||(i={});for(var o=-1,a=t.length;++o<a;){var s=t[o],h=n?n(i[s],e[s],s,i,e):r;h===r&&(h=e[s]),d?an(i,s,h):nn(i,s,h)}return i}function Dr(e,t){return function(i,n){var r=Zo(i)?Ct:dn,d=t?t():{};return r(i,e,ud(n,2),d)}}function Lr(e){return Xn((function(t,i){var n=-1,d=i.length,o=d>1?i[d-1]:r,a=d>2?i[2]:r;for(o=e.length>3&&"function"==typeof o?(d--,o):r,a&&Md(i[0],i[1],a)&&(o=d<3?r:o,d=1),t=Ae(t);++n<d;){var s=i[n];s&&e(t,s,n,o)}return t}))}function Ir(e,t){return function(i,n){if(null==i)return i;if(!Jo(i))return e(i,n);for(var r=i.length,d=t?r:-1,o=Ae(i);(t?d--:++d<r)&&!1!==n(o[d],d,o););return i}}function Wr(e){return function(t,i,n){for(var r=-1,d=Ae(t),o=n(t),a=o.length;a--;){var s=o[e?a:++r];if(!1===i(d[s],s,d))break}return t}}function Gr(e){return function(t){var i=oi(t=Ma(t))?ci(t):r,n=i?i[0]:t.charAt(0),d=i?Sr(i,1).join(""):t.slice(1);return n[e]()+d}}function Fr(e){return function(t){return It(es(Ka(t).replace(Xe,"")),e,"")}}function Or(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=zi(e.prototype),n=e.apply(i,t);return na(n)?n:i}}function Hr(e){return function(t,i,n){var d=Ae(t);if(!Jo(t)){var o=ud(i,3);t=La(t),i=function(e){return o(d[e],e,d)}}var a=e(t,i,n);return a>-1?d[o?t[a]:a]:r}}function Nr(e){return rd((function(t){var i=t.length,n=i,o=qi.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Te(d);if(o&&!s&&"wrapper"==sd(a))var s=new qi([],!0)}for(n=s?n:i;++n<i;){var h=sd(a=t[n]),u="wrapper"==h?ad(a):r;s=u&&Sd(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[sd(u[0])].apply(s,u[3]):1==a.length&&Sd(a)?s[h]():s.thru(a)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Zo(n))return s.plant(n).value();for(var r=0,d=i?t[r].apply(this,e):n;++r<i;)d=t[r].call(this,d);return d}}))}function zr(e,t,i,d,o,a,s,h,u,f){var c=t&l,p=1&t,m=2&t,g=24&t,b=512&t,y=m?r:Or(e);return function r(){for(var l=arguments.length,v=n(l),w=l;w--;)v[w]=arguments[w];if(g)var M=hd(r),_=ii(v,M);if(d&&(v=Er(v,d,o,g)),a&&(v=Tr(v,a,s,g)),l-=_,g&&l<f){var S=hi(v,M);return Jr(e,t,zr,r.placeholder,i,v,S,h,u,f-l)}var B=p?i:this,k=m?B[e]:e;return l=v.length,h?v=Td(v,h):b&&l>1&&v.reverse(),c&&u<l&&(v.length=u),this&&this!==ct&&this instanceof r&&(k=y||Or(k)),k.apply(B,v)}}function jr(e,t){return function(i,n){return function(e,t,i,n){return _n(e,(function(e,r,d){t(n,i(e),r,d)})),n}(i,e,t(n),{})}}function qr(e,t){return function(i,n){var d;if(i===r&&n===r)return t;if(i!==r&&(d=i),n!==r){if(d===r)return n;"string"==typeof i||"string"==typeof n?(i=lr(i),n=lr(n)):(i=ur(i),n=ur(n)),d=e(i,n)}return d}}function Ur(e){return rd((function(t){return t=Dt(t,$t(ud())),Xn((function(i){var n=this;return e(t,(function(e){return kt(e,n,i)}))}))}))}function Kr(e,t){var i=(t=t===r?" ":lr(t)).length;if(i<2)return i?$n(t,e):t;var n=$n(t,mt(e/fi(t)));return oi(t)?Sr(ci(n),0,e).join(""):n.slice(0,e)}function Zr(e){return function(t,i,d){return d&&"number"!=typeof d&&Md(t,i,d)&&(i=d=r),t=ga(t),i===r?(i=t,t=0):i=ga(i),function(e,t,i,r){for(var d=-1,o=vi(mt((t-e)/(i||1)),0),a=n(o);o--;)a[r?o:++d]=e,e+=i;return a}(t,i,d=d===r?t<i?1:-1:ga(d),e)}}function Vr(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=va(t),i=va(i)),e(t,i)}}function Jr(e,t,i,n,d,o,a,s,l,f){var c=8&t;t|=c?h:u,4&(t&=~(c?u:h))||(t&=-4);var p=[e,t,d,c?o:r,c?a:r,c?r:o,c?r:a,s,l,f],m=i.apply(r,p);return Sd(e)&&Rd(m,p),m.placeholder=n,Id(m,e,t)}function Yr(e){var t=Ce[e];return function(e,i){if(e=va(e),(i=null==i?0:wi(ba(i),292))&&Kt(e)){var n=(Ma(e)+"e").split("e");return+((n=(Ma(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}var $r=Pi&&1/ui(new Pi([,-0]))[1]==c?function(e){return new Pi(e)}:ls;function Xr(e){return function(t){var i=gd(t);return i==k?ai(t):i==T?li(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qr(e,t,i,o,c,p,m,g){var b=2&t;if(!b&&"function"!=typeof e)throw new Te(d);var y=o?o.length:0;if(y||(t&=-97,o=c=r),m=m===r?m:vi(ba(m),0),g=g===r?g:ba(g),y-=c?c.length:0,t&u){var v=o,w=c;o=c=r}var M=b?r:ad(e),_=[e,t,i,o,c,v,w,p,m,g];if(M&&function(e,t){var i=e[1],n=t[1],r=i|n,d=r<131,o=n==l&&8==i||n==l&&i==f&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==i;if(!d&&!o)return e;1&n&&(e[2]=t[2],r|=1&i?0:4);var s=t[3];if(s){var h=e[3];e[3]=h?Er(h,s,t[4]):s,e[4]=h?hi(e[3],a):t[4]}(s=t[5])&&(h=e[5],e[5]=h?Tr(h,s,t[6]):s,e[6]=h?hi(e[5],a):t[6]);(s=t[7])&&(e[7]=s);n&l&&(e[8]=null==e[8]?t[8]:wi(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(_,M),e=_[0],t=_[1],i=_[2],o=_[3],c=_[4],!(g=_[9]=_[9]===r?b?0:e.length:vi(_[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==s?function(e,t,i){var d=Or(e);return function o(){for(var a=arguments.length,s=n(a),h=a,u=hd(o);h--;)s[h]=arguments[h];var l=a<3&&s[0]!==u&&s[a-1]!==u?[]:hi(s,u);return(a-=l.length)<i?Jr(e,t,zr,o.placeholder,r,s,l,r,r,i-a):kt(this&&this!==ct&&this instanceof o?d:e,this,s)}}(e,t,g):t!=h&&33!=t||c.length?zr.apply(r,_):function(e,t,i,r){var d=1&t,o=Or(e);return function t(){for(var a=-1,s=arguments.length,h=-1,u=r.length,l=n(u+s),f=this&&this!==ct&&this instanceof t?o:e;++h<u;)l[h]=r[h];for(;s--;)l[h++]=arguments[++a];return kt(f,d?i:this,l)}}(e,t,i,o);else var S=function(e,t,i){var n=1&t,r=Or(e);return function t(){return(this&&this!==ct&&this instanceof t?r:e).apply(n?i:this,arguments)}}(e,t,i);return Id((M?ir:Rd)(S,_),e,t)}function ed(e,t,i,n){return e===r||jo(e,De[i])&&!We.call(n,i)?t:e}function td(e,t,i,n,d,o){return na(e)&&na(t)&&(o.set(t,e),qn(e,t,r,td,o),o.delete(t)),e}function id(e){return aa(e)?r:e}function nd(e,t,i,n,d,o){var a=1&i,s=e.length,h=t.length;if(s!=h&&!(a&&h>s))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var f=-1,c=!0,p=2&i?new Ji:r;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],g=t[f];if(n)var b=a?n(g,m,f,t,e,o):n(m,g,f,e,t,o);if(b!==r){if(b)continue;c=!1;break}if(p){if(!Gt(t,(function(e,t){if(!Qt(p,t)&&(m===e||d(m,e,i,n,o)))return p.push(t)}))){c=!1;break}}else if(m!==g&&!d(m,g,i,n,o)){c=!1;break}}return o.delete(e),o.delete(t),c}function rd(e){return Ld(Pd(e,r,Zd),e+"")}function dd(e){return Cn(e,La,pd)}function od(e){return Cn(e,Ia,md)}var ad=xi?function(e){return xi.get(e)}:ls;function sd(e){for(var t=e.name+"",i=Ri[t],n=We.call(Ri,t)?i.length:0;n--;){var r=i[n],d=r.func;if(null==d||d==e)return r.name}return t}function hd(e){return(We.call(Ni,"placeholder")?Ni:e).placeholder}function ud(){var e=Ni.iteratee||as;return e=e===as?Gn:e,arguments.length?e(arguments[0],arguments[1]):e}function ld(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function fd(e){for(var t=La(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,Cd(r)]}return t}function cd(e,t){var i=function(e,t){return null==e?r:e[t]}(e,t);return Wn(i)?i:r}var pd=yt?function(e){return null==e?[]:(e=Ae(e),Tt(yt(e),(function(t){return Je.call(e,t)})))}:ys,md=yt?function(e){for(var t=[];e;)Lt(t,pd(e)),e=Ze(e);return t}:ys,gd=An;function bd(e,t,i){for(var n=-1,r=(t=Mr(t,e)).length,d=!1;++n<r;){var o=Od(t[n]);if(!(d=null!=e&&i(e,o)))break;e=e[o]}return d||++n!=r?d:!!(r=null==e?0:e.length)&&ia(r)&&wd(o,r)&&(Zo(e)||Ko(e))}function yd(e){return"function"!=typeof e.constructor||kd(e)?{}:zi(Ze(e))}function vd(e){return Zo(e)||Ko(e)||!!($e&&e&&e[$e])}function wd(e,t){var i=typeof e;return!!(t=null==t?p:t)&&("number"==i||"symbol"!=i&&we.test(e))&&e>-1&&e%1==0&&e<t}function Md(e,t,i){if(!na(i))return!1;var n=typeof t;return!!("number"==n?Jo(i)&&wd(t,i.length):"string"==n&&t in i)&&jo(i[t],e)}function _d(e,t){if(Zo(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!la(e))||(ie.test(e)||!te.test(e)||null!=t&&e in Ae(t))}function Sd(e){var t=sd(e),i=Ni[t];if("function"!=typeof i||!(t in Ui.prototype))return!1;if(e===i)return!0;var n=ad(i);return!!n&&e===n[0]}(ki&&gd(new ki(new ArrayBuffer(1)))!=I||Ci&&gd(new Ci)!=k||Ai&&gd(Ai.resolve())!=P||Pi&&gd(new Pi)!=T||Ei&&gd(new Ei)!=D)&&(gd=function(e){var t=An(e),i=t==A?e.constructor:r,n=i?Hd(i):"";if(n)switch(n){case Di:return I;case Li:return k;case Ii:return P;case Wi:return T;case Gi:return D}return t});var Bd=Le?ea:vs;function kd(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Cd(e){return e==e&&!na(e)}function Ad(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==r||e in Ae(i)))}}function Pd(e,t,i){return t=vi(t===r?e.length-1:t,0),function(){for(var r=arguments,d=-1,o=vi(r.length-t,0),a=n(o);++d<o;)a[d]=r[t+d];d=-1;for(var s=n(t+1);++d<t;)s[d]=r[d];return s[t]=i(a),kt(e,this,s)}}function Ed(e,t){return t.length<2?e:kn(e,dr(t,0,-1))}function Td(e,t){for(var i=e.length,n=wi(t.length,i),d=xr(e);n--;){var o=t[n];e[n]=wd(o,i)?d[o]:r}return e}function xd(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Rd=Wd(ir),Dd=pt||function(e,t){return ct.setTimeout(e,t)},Ld=Wd(nr);function Id(e,t,i){var n=t+"";return Ld(e,function(e,t){var i=t.length;if(!i)return e;var n=i-1;return t[n]=(i>1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return At(b,(function(i){var n="_."+i[0];t&i[1]&&!xt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(he);return t?t[1].split(ue):[]}(n),i)))}function Wd(e){var t=0,i=0;return function(){var n=Mi(),d=16-(n-i);if(i=n,d>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Gd(e,t){var i=-1,n=e.length,d=n-1;for(t=t===r?n:t;++i<t;){var o=Yn(i,d),a=e[o];e[o]=e[i],e[i]=a}return e.length=t,e}var Fd=function(e){var t=Go(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,i,n,r){t.push(n?r.replace(ce,"$1"):i||e)})),t}));function Od(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Hd(e){if(null!=e){try{return Ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Nd(e){if(e instanceof Ui)return e.clone();var t=new qi(e.__wrapped__,e.__chain__);return t.__actions__=xr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zd=Xn((function(e,t){return Yo(e)?cn(e,vn(t,1,Yo,!0)):[]})),jd=Xn((function(e,t){var i=Xd(t);return Yo(i)&&(i=r),Yo(e)?cn(e,vn(t,1,Yo,!0),ud(i,2)):[]})),qd=Xn((function(e,t){var i=Xd(t);return Yo(i)&&(i=r),Yo(e)?cn(e,vn(t,1,Yo,!0),r,i):[]}));function Ud(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:ba(i);return r<0&&(r=vi(n+r,0)),Ht(e,ud(t,3),r)}function Kd(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var d=n-1;return i!==r&&(d=ba(i),d=i<0?vi(n+d,0):wi(d,n-1)),Ht(e,ud(t,3),d,!0)}function Zd(e){return(null==e?0:e.length)?vn(e,1):[]}function Vd(e){return e&&e.length?e[0]:r}var Jd=Xn((function(e){var t=Dt(e,vr);return t.length&&t[0]===e[0]?xn(t):[]})),Yd=Xn((function(e){var t=Xd(e),i=Dt(e,vr);return t===Xd(i)?t=r:i.pop(),i.length&&i[0]===e[0]?xn(i,ud(t,2)):[]})),$d=Xn((function(e){var t=Xd(e),i=Dt(e,vr);return(t="function"==typeof t?t:r)&&i.pop(),i.length&&i[0]===e[0]?xn(i,r,t):[]}));function Xd(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Qd=Xn(eo);function eo(e,t){return e&&e.length&&t&&t.length?Vn(e,t):e}var to=rd((function(e,t){var i=null==e?0:e.length,n=sn(e,t);return Jn(e,Dt(t,(function(e){return wd(e,i)?+e:e})).sort(Pr)),n}));function io(e){return null==e?e:Bi.call(e)}var no=Xn((function(e){return fr(vn(e,1,Yo,!0))})),ro=Xn((function(e){var t=Xd(e);return Yo(t)&&(t=r),fr(vn(e,1,Yo,!0),ud(t,2))})),oo=Xn((function(e){var t=Xd(e);return t="function"==typeof t?t:r,fr(vn(e,1,Yo,!0),r,t)}));function ao(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Yo(e))return t=vi(e.length,t),!0})),Jt(t,(function(t){return Dt(e,Ut(t))}))}function so(e,t){if(!e||!e.length)return[];var i=ao(e);return null==t?i:Dt(i,(function(e){return kt(t,r,e)}))}var ho=Xn((function(e,t){return Yo(e)?cn(e,t):[]})),uo=Xn((function(e){return br(Tt(e,Yo))})),lo=Xn((function(e){var t=Xd(e);return Yo(t)&&(t=r),br(Tt(e,Yo),ud(t,2))})),fo=Xn((function(e){var t=Xd(e);return t="function"==typeof t?t:r,br(Tt(e,Yo),r,t)})),co=Xn(ao);var po=Xn((function(e){var t=e.length,i=t>1?e[t-1]:r;return i="function"==typeof i?(e.pop(),i):r,so(e,i)}));function mo(e){var t=Ni(e);return t.__chain__=!0,t}function go(e,t){return t(e)}var bo=rd((function(e){var t=e.length,i=t?e[0]:0,n=this.__wrapped__,d=function(t){return sn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Ui&&wd(i)?((n=n.slice(i,+i+(t?1:0))).__actions__.push({func:go,args:[d],thisArg:r}),new qi(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(d)}));var yo=Dr((function(e,t,i){We.call(e,i)?++e[i]:an(e,i,1)}));var vo=Hr(Ud),wo=Hr(Kd);function Mo(e,t){return(Zo(e)?At:pn)(e,ud(t,3))}function _o(e,t){return(Zo(e)?Pt:mn)(e,ud(t,3))}var So=Dr((function(e,t,i){We.call(e,i)?e[i].push(t):an(e,i,[t])}));var Bo=Xn((function(e,t,i){var r=-1,d="function"==typeof t,o=Jo(e)?n(e.length):[];return pn(e,(function(e){o[++r]=d?kt(t,e,i):Rn(e,t,i)})),o})),ko=Dr((function(e,t,i){an(e,i,t)}));function Co(e,t){return(Zo(e)?Dt:Nn)(e,ud(t,3))}var Ao=Dr((function(e,t,i){e[i?0:1].push(t)}),(function(){return[[],[]]}));var Po=Xn((function(e,t){if(null==e)return[];var i=t.length;return i>1&&Md(e,t[0],t[1])?t=[]:i>2&&Md(t[0],t[1],t[2])&&(t=[t[0]]),Kn(e,vn(t,1),[])})),Eo=ft||function(){return ct.Date.now()};function To(e,t,i){return t=i?r:t,t=e&&null==t?e.length:t,Qr(e,l,r,r,r,r,t)}function xo(e,t){var i;if("function"!=typeof t)throw new Te(d);return e=ba(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var Ro=Xn((function(e,t,i){var n=1;if(i.length){var r=hi(i,hd(Ro));n|=h}return Qr(e,n,t,i,r)})),Do=Xn((function(e,t,i){var n=3;if(i.length){var r=hi(i,hd(Do));n|=h}return Qr(t,n,e,i,r)}));function Lo(e,t,i){var n,o,a,s,h,u,l=0,f=!1,c=!1,p=!0;if("function"!=typeof e)throw new Te(d);function m(t){var i=n,d=o;return n=o=r,l=t,s=e.apply(d,i)}function g(e){return l=e,h=Dd(y,t),f?m(e):s}function b(e){var i=e-u;return u===r||i>=t||i<0||c&&e-l>=a}function y(){var e=Eo();if(b(e))return v(e);h=Dd(y,function(e){var i=t-(e-u);return c?wi(i,a-(e-l)):i}(e))}function v(e){return h=r,p&&n?m(e):(n=o=r,s)}function w(){var e=Eo(),i=b(e);if(n=arguments,o=this,u=e,i){if(h===r)return g(u);if(c)return Br(h),h=Dd(y,t),m(u)}return h===r&&(h=Dd(y,t)),s}return t=va(t)||0,na(i)&&(f=!!i.leading,a=(c="maxWait"in i)?vi(va(i.maxWait)||0,t):a,p="trailing"in i?!!i.trailing:p),w.cancel=function(){h!==r&&Br(h),l=0,n=u=o=h=r},w.flush=function(){return h===r?s:v(Eo())},w}var Io=Xn((function(e,t){return fn(e,1,t)})),Wo=Xn((function(e,t,i){return fn(e,va(t)||0,i)}));function Go(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(d);var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],d=i.cache;if(d.has(r))return d.get(r);var o=e.apply(this,n);return i.cache=d.set(r,o)||d,o};return i.cache=new(Go.Cache||Vi),i}function Fo(e){if("function"!=typeof e)throw new Te(d);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Go.Cache=Vi;var Oo=_r((function(e,t){var i=(t=1==t.length&&Zo(t[0])?Dt(t[0],$t(ud())):Dt(vn(t,1),$t(ud()))).length;return Xn((function(n){for(var r=-1,d=wi(n.length,i);++r<d;)n[r]=t[r].call(this,n[r]);return kt(e,this,n)}))})),Ho=Xn((function(e,t){var i=hi(t,hd(Ho));return Qr(e,h,r,t,i)})),No=Xn((function(e,t){var i=hi(t,hd(No));return Qr(e,u,r,t,i)})),zo=rd((function(e,t){return Qr(e,f,r,r,r,t)}));function jo(e,t){return e===t||e!=e&&t!=t}var qo=Vr(Pn),Uo=Vr((function(e,t){return e>=t})),Ko=Dn(function(){return arguments}())?Dn:function(e){return ra(e)&&We.call(e,"callee")&&!Je.call(e,"callee")},Zo=n.isArray,Vo=vt?$t(vt):function(e){return ra(e)&&An(e)==L};function Jo(e){return null!=e&&ia(e.length)&&!ea(e)}function Yo(e){return ra(e)&&Jo(e)}var $o=Ft||vs,Xo=wt?$t(wt):function(e){return ra(e)&&An(e)==M};function Qo(e){if(!ra(e))return!1;var t=An(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!na(e))return!1;var t=An(e);return t==S||t==B||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ba(e)}function ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function na(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var da=Mt?$t(Mt):function(e){return ra(e)&&gd(e)==k};function oa(e){return"number"==typeof e||ra(e)&&An(e)==C}function aa(e){if(!ra(e)||An(e)!=A)return!1;var t=Ze(e);if(null===t)return!0;var i=We.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Ie.call(i)==He}var sa=_t?$t(_t):function(e){return ra(e)&&An(e)==E};var ha=St?$t(St):function(e){return ra(e)&&gd(e)==T};function ua(e){return"string"==typeof e||!Zo(e)&&ra(e)&&An(e)==x}function la(e){return"symbol"==typeof e||ra(e)&&An(e)==R}var fa=Bt?$t(Bt):function(e){return ra(e)&&ia(e.length)&&!!ot[An(e)]};var ca=Vr(Hn),pa=Vr((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Jo(e))return ua(e)?ci(e):xr(e);if(et&&e[et])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[et]());var t=gd(e);return(t==k?ai:t==T?ui:ja)(e)}function ga(e){return e?(e=va(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ba(e){var t=ga(e),i=t%1;return t==t?i?t-i:t:0}function ya(e){return e?hn(ba(e),0,g):0}function va(e){if("number"==typeof e)return e;if(la(e))return m;if(na(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=na(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var i=be.test(e);return i||ve.test(e)?ut(e.slice(2),i?2:8):ge.test(e)?m:+e}function wa(e){return Rr(e,Ia(e))}function Ma(e){return null==e?"":lr(e)}var _a=Lr((function(e,t){if(kd(t)||Jo(t))Rr(t,La(t),e);else for(var i in t)We.call(t,i)&&nn(e,i,t[i])})),Sa=Lr((function(e,t){Rr(t,Ia(t),e)})),Ba=Lr((function(e,t,i,n){Rr(t,Ia(t),e,n)})),ka=Lr((function(e,t,i,n){Rr(t,La(t),e,n)})),Ca=rd(sn);var Aa=Xn((function(e,t){e=Ae(e);var i=-1,n=t.length,d=n>2?t[2]:r;for(d&&Md(t[0],t[1],d)&&(n=1);++i<n;)for(var o=t[i],a=Ia(o),s=-1,h=a.length;++s<h;){var u=a[s],l=e[u];(l===r||jo(l,De[u])&&!We.call(e,u))&&(e[u]=o[u])}return e})),Pa=Xn((function(e){return e.push(r,td),kt(Ga,r,e)}));function Ea(e,t,i){var n=null==e?r:kn(e,t);return n===r?i:n}function Ta(e,t){return null!=e&&bd(e,t,Tn)}var xa=jr((function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),e[t]=i}),ns(os)),Ra=jr((function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),We.call(e,t)?e[t].push(i):e[t]=[i]}),ud),Da=Xn(Rn);function La(e){return Jo(e)?$i(e):Fn(e)}function Ia(e){return Jo(e)?$i(e,!0):On(e)}var Wa=Lr((function(e,t,i){qn(e,t,i)})),Ga=Lr((function(e,t,i,n){qn(e,t,i,n)})),Fa=rd((function(e,t){var i={};if(null==e)return i;var n=!1;t=Dt(t,(function(t){return t=Mr(t,e),n||(n=t.length>1),t})),Rr(e,od(e),i),n&&(i=un(i,7,id));for(var r=t.length;r--;)cr(i,t[r]);return i}));var Oa=rd((function(e,t){return null==e?{}:function(e,t){return Zn(e,t,(function(t,i){return Ta(e,i)}))}(e,t)}));function Ha(e,t){if(null==e)return{};var i=Dt(od(e),(function(e){return[e]}));return t=ud(t),Zn(e,i,(function(e,i){return t(e,i[0])}))}var Na=Xr(La),za=Xr(Ia);function ja(e){return null==e?[]:Xt(e,La(e))}var qa=Fr((function(e,t,i){return t=t.toLowerCase(),e+(i?Ua(t):t)}));function Ua(e){return Qa(Ma(e).toLowerCase())}function Ka(e){return(e=Ma(e))&&e.replace(Me,ni).replace(Qe,"")}var Za=Fr((function(e,t,i){return e+(i?"-":"")+t.toLowerCase()})),Va=Fr((function(e,t,i){return e+(i?" ":"")+t.toLowerCase()})),Ja=Gr("toLowerCase");var Ya=Fr((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));var $a=Fr((function(e,t,i){return e+(i?" ":"")+Qa(t)}));var Xa=Fr((function(e,t,i){return e+(i?" ":"")+t.toUpperCase()})),Qa=Gr("toUpperCase");function es(e,t,i){return e=Ma(e),(t=i?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var ts=Xn((function(e,t){try{return kt(e,r,t)}catch(i){return Qo(i)?i:new Be(i)}})),is=rd((function(e,t){return At(t,(function(t){t=Od(t),an(e,t,Ro(e[t],e))})),e}));function ns(e){return function(){return e}}var rs=Nr(),ds=Nr(!0);function os(e){return e}function as(e){return Gn("function"==typeof e?e:un(e,1))}var ss=Xn((function(e,t){return function(i){return Rn(i,e,t)}})),hs=Xn((function(e,t){return function(i){return Rn(e,i,t)}}));function us(e,t,i){var n=La(t),r=Bn(t,n);null!=i||na(t)&&(r.length||!n.length)||(i=t,t=e,e=this,r=Bn(t,La(t)));var d=!(na(i)&&"chain"in i&&!i.chain),o=ea(e);return At(r,(function(i){var n=t[i];e[i]=n,o&&(e.prototype[i]=function(){var t=this.__chain__;if(d||t){var i=e(this.__wrapped__),r=i.__actions__=xr(this.__actions__);return r.push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,Lt([this.value()],arguments))})})),e}function ls(){}var fs=Ur(Dt),cs=Ur(Et),ps=Ur(Gt);function ms(e){return _d(e)?Ut(Od(e)):function(e){return function(t){return kn(t,e)}}(e)}var gs=Zr(),bs=Zr(!0);function ys(){return[]}function vs(){return!1}var ws=qr((function(e,t){return e+t}),0),Ms=Yr("ceil"),_s=qr((function(e,t){return e/t}),1),Ss=Yr("floor");var Bs,ks=qr((function(e,t){return e*t}),1),Cs=Yr("round"),As=qr((function(e,t){return e-t}),0);return Ni.after=function(e,t){if("function"!=typeof t)throw new Te(d);return e=ba(e),function(){if(--e<1)return t.apply(this,arguments)}},Ni.ary=To,Ni.assign=_a,Ni.assignIn=Sa,Ni.assignInWith=Ba,Ni.assignWith=ka,Ni.at=Ca,Ni.before=xo,Ni.bind=Ro,Ni.bindAll=is,Ni.bindKey=Do,Ni.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Zo(e)?e:[e]},Ni.chain=mo,Ni.chunk=function(e,t,i){t=(i?Md(e,t,i):t===r)?1:vi(ba(t),0);var d=null==e?0:e.length;if(!d||t<1)return[];for(var o=0,a=0,s=n(mt(d/t));o<d;)s[a++]=dr(e,o,o+=t);return s},Ni.compact=function(e){for(var t=-1,i=null==e?0:e.length,n=0,r=[];++t<i;){var d=e[t];d&&(r[n++]=d)}return r},Ni.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Lt(Zo(i)?xr(i):[i],vn(t,1))},Ni.cond=function(e){var t=null==e?0:e.length,i=ud();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Te(d);return[i(e[0]),e[1]]})):[],Xn((function(i){for(var n=-1;++n<t;){var r=e[n];if(kt(r[0],this,i))return kt(r[1],this,i)}}))},Ni.conforms=function(e){return function(e){var t=La(e);return function(i){return ln(i,e,t)}}(un(e,1))},Ni.constant=ns,Ni.countBy=yo,Ni.create=function(e,t){var i=zi(e);return null==t?i:on(i,t)},Ni.curry=function e(t,i,n){var d=Qr(t,8,r,r,r,r,r,i=n?r:i);return d.placeholder=e.placeholder,d},Ni.curryRight=function e(t,i,n){var d=Qr(t,s,r,r,r,r,r,i=n?r:i);return d.placeholder=e.placeholder,d},Ni.debounce=Lo,Ni.defaults=Aa,Ni.defaultsDeep=Pa,Ni.defer=Io,Ni.delay=Wo,Ni.difference=zd,Ni.differenceBy=jd,Ni.differenceWith=qd,Ni.drop=function(e,t,i){var n=null==e?0:e.length;return n?dr(e,(t=i||t===r?1:ba(t))<0?0:t,n):[]},Ni.dropRight=function(e,t,i){var n=null==e?0:e.length;return n?dr(e,0,(t=n-(t=i||t===r?1:ba(t)))<0?0:t):[]},Ni.dropRightWhile=function(e,t){return e&&e.length?mr(e,ud(t,3),!0,!0):[]},Ni.dropWhile=function(e,t){return e&&e.length?mr(e,ud(t,3),!0):[]},Ni.fill=function(e,t,i,n){var d=null==e?0:e.length;return d?(i&&"number"!=typeof i&&Md(e,t,i)&&(i=0,n=d),function(e,t,i,n){var d=e.length;for((i=ba(i))<0&&(i=-i>d?0:d+i),(n=n===r||n>d?d:ba(n))<0&&(n+=d),n=i>n?0:ya(n);i<n;)e[i++]=t;return e}(e,t,i,n)):[]},Ni.filter=function(e,t){return(Zo(e)?Tt:yn)(e,ud(t,3))},Ni.flatMap=function(e,t){return vn(Co(e,t),1)},Ni.flatMapDeep=function(e,t){return vn(Co(e,t),c)},Ni.flatMapDepth=function(e,t,i){return i=i===r?1:ba(i),vn(Co(e,t),i)},Ni.flatten=Zd,Ni.flattenDeep=function(e){return(null==e?0:e.length)?vn(e,c):[]},Ni.flattenDepth=function(e,t){return(null==e?0:e.length)?vn(e,t=t===r?1:ba(t)):[]},Ni.flip=function(e){return Qr(e,512)},Ni.flow=rs,Ni.flowRight=ds,Ni.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var r=e[t];n[r[0]]=r[1]}return n},Ni.functions=function(e){return null==e?[]:Bn(e,La(e))},Ni.functionsIn=function(e){return null==e?[]:Bn(e,Ia(e))},Ni.groupBy=So,Ni.initial=function(e){return(null==e?0:e.length)?dr(e,0,-1):[]},Ni.intersection=Jd,Ni.intersectionBy=Yd,Ni.intersectionWith=$d,Ni.invert=xa,Ni.invertBy=Ra,Ni.invokeMap=Bo,Ni.iteratee=as,Ni.keyBy=ko,Ni.keys=La,Ni.keysIn=Ia,Ni.map=Co,Ni.mapKeys=function(e,t){var i={};return t=ud(t,3),_n(e,(function(e,n,r){an(i,t(e,n,r),e)})),i},Ni.mapValues=function(e,t){var i={};return t=ud(t,3),_n(e,(function(e,n,r){an(i,n,t(e,n,r))})),i},Ni.matches=function(e){return zn(un(e,1))},Ni.matchesProperty=function(e,t){return jn(e,un(t,1))},Ni.memoize=Go,Ni.merge=Wa,Ni.mergeWith=Ga,Ni.method=ss,Ni.methodOf=hs,Ni.mixin=us,Ni.negate=Fo,Ni.nthArg=function(e){return e=ba(e),Xn((function(t){return Un(t,e)}))},Ni.omit=Fa,Ni.omitBy=function(e,t){return Ha(e,Fo(ud(t)))},Ni.once=function(e){return xo(2,e)},Ni.orderBy=function(e,t,i,n){return null==e?[]:(Zo(t)||(t=null==t?[]:[t]),Zo(i=n?r:i)||(i=null==i?[]:[i]),Kn(e,t,i))},Ni.over=fs,Ni.overArgs=Oo,Ni.overEvery=cs,Ni.overSome=ps,Ni.partial=Ho,Ni.partialRight=No,Ni.partition=Ao,Ni.pick=Oa,Ni.pickBy=Ha,Ni.property=ms,Ni.propertyOf=function(e){return function(t){return null==e?r:kn(e,t)}},Ni.pull=Qd,Ni.pullAll=eo,Ni.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?Vn(e,t,ud(i,2)):e},Ni.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Vn(e,t,r,i):e},Ni.pullAt=to,Ni.range=gs,Ni.rangeRight=bs,Ni.rearg=zo,Ni.reject=function(e,t){return(Zo(e)?Tt:yn)(e,Fo(ud(t,3)))},Ni.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,r=[],d=e.length;for(t=ud(t,3);++n<d;){var o=e[n];t(o,n,e)&&(i.push(o),r.push(n))}return Jn(e,r),i},Ni.rest=function(e,t){if("function"!=typeof e)throw new Te(d);return Xn(e,t=t===r?t:ba(t))},Ni.reverse=io,Ni.sampleSize=function(e,t,i){return t=(i?Md(e,t,i):t===r)?1:ba(t),(Zo(e)?Qi:er)(e,t)},Ni.set=function(e,t,i){return null==e?e:tr(e,t,i)},Ni.setWith=function(e,t,i,n){return n="function"==typeof n?n:r,null==e?e:tr(e,t,i,n)},Ni.shuffle=function(e){return(Zo(e)?en:rr)(e)},Ni.slice=function(e,t,i){var n=null==e?0:e.length;return n?(i&&"number"!=typeof i&&Md(e,t,i)?(t=0,i=n):(t=null==t?0:ba(t),i=i===r?n:ba(i)),dr(e,t,i)):[]},Ni.sortBy=Po,Ni.sortedUniq=function(e){return e&&e.length?hr(e):[]},Ni.sortedUniqBy=function(e,t){return e&&e.length?hr(e,ud(t,2)):[]},Ni.split=function(e,t,i){return i&&"number"!=typeof i&&Md(e,t,i)&&(t=i=r),(i=i===r?g:i>>>0)?(e=Ma(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=lr(t))&&oi(e)?Sr(ci(e),0,i):e.split(t,i):[]},Ni.spread=function(e,t){if("function"!=typeof e)throw new Te(d);return t=null==t?0:vi(ba(t),0),Xn((function(i){var n=i[t],r=Sr(i,0,t);return n&&Lt(r,n),kt(e,this,r)}))},Ni.tail=function(e){var t=null==e?0:e.length;return t?dr(e,1,t):[]},Ni.take=function(e,t,i){return e&&e.length?dr(e,0,(t=i||t===r?1:ba(t))<0?0:t):[]},Ni.takeRight=function(e,t,i){var n=null==e?0:e.length;return n?dr(e,(t=n-(t=i||t===r?1:ba(t)))<0?0:t,n):[]},Ni.takeRightWhile=function(e,t){return e&&e.length?mr(e,ud(t,3),!1,!0):[]},Ni.takeWhile=function(e,t){return e&&e.length?mr(e,ud(t,3)):[]},Ni.tap=function(e,t){return t(e),e},Ni.throttle=function(e,t,i){var n=!0,r=!0;if("function"!=typeof e)throw new Te(d);return na(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),Lo(e,t,{leading:n,maxWait:t,trailing:r})},Ni.thru=go,Ni.toArray=ma,Ni.toPairs=Na,Ni.toPairsIn=za,Ni.toPath=function(e){return Zo(e)?Dt(e,Od):la(e)?[e]:xr(Fd(Ma(e)))},Ni.toPlainObject=wa,Ni.transform=function(e,t,i){var n=Zo(e),r=n||$o(e)||fa(e);if(t=ud(t,4),null==i){var d=e&&e.constructor;i=r?n?new d:[]:na(e)&&ea(d)?zi(Ze(e)):{}}return(r?At:_n)(e,(function(e,n,r){return t(i,e,n,r)})),i},Ni.unary=function(e){return To(e,1)},Ni.union=no,Ni.unionBy=ro,Ni.unionWith=oo,Ni.uniq=function(e){return e&&e.length?fr(e):[]},Ni.uniqBy=function(e,t){return e&&e.length?fr(e,ud(t,2)):[]},Ni.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?fr(e,r,t):[]},Ni.unset=function(e,t){return null==e||cr(e,t)},Ni.unzip=ao,Ni.unzipWith=so,Ni.update=function(e,t,i){return null==e?e:pr(e,t,wr(i))},Ni.updateWith=function(e,t,i,n){return n="function"==typeof n?n:r,null==e?e:pr(e,t,wr(i),n)},Ni.values=ja,Ni.valuesIn=function(e){return null==e?[]:Xt(e,Ia(e))},Ni.without=ho,Ni.words=es,Ni.wrap=function(e,t){return Ho(wr(t),e)},Ni.xor=uo,Ni.xorBy=lo,Ni.xorWith=fo,Ni.zip=co,Ni.zipObject=function(e,t){return yr(e||[],t||[],nn)},Ni.zipObjectDeep=function(e,t){return yr(e||[],t||[],tr)},Ni.zipWith=po,Ni.entries=Na,Ni.entriesIn=za,Ni.extend=Sa,Ni.extendWith=Ba,us(Ni,Ni),Ni.add=ws,Ni.attempt=ts,Ni.camelCase=qa,Ni.capitalize=Ua,Ni.ceil=Ms,Ni.clamp=function(e,t,i){return i===r&&(i=t,t=r),i!==r&&(i=(i=va(i))==i?i:0),t!==r&&(t=(t=va(t))==t?t:0),hn(va(e),t,i)},Ni.clone=function(e){return un(e,4)},Ni.cloneDeep=function(e){return un(e,5)},Ni.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:r)},Ni.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:r)},Ni.conformsTo=function(e,t){return null==t||ln(e,t,La(t))},Ni.deburr=Ka,Ni.defaultTo=function(e,t){return null==e||e!=e?t:e},Ni.divide=_s,Ni.endsWith=function(e,t,i){e=Ma(e),t=lr(t);var n=e.length,d=i=i===r?n:hn(ba(i),0,n);return(i-=t.length)>=0&&e.slice(i,d)==t},Ni.eq=jo,Ni.escape=function(e){return(e=Ma(e))&&$.test(e)?e.replace(J,ri):e},Ni.escapeRegExp=function(e){return(e=Ma(e))&&de.test(e)?e.replace(re,"\\$&"):e},Ni.every=function(e,t,i){var n=Zo(e)?Et:gn;return i&&Md(e,t,i)&&(t=r),n(e,ud(t,3))},Ni.find=vo,Ni.findIndex=Ud,Ni.findKey=function(e,t){return Ot(e,ud(t,3),_n)},Ni.findLast=wo,Ni.findLastIndex=Kd,Ni.findLastKey=function(e,t){return Ot(e,ud(t,3),Sn)},Ni.floor=Ss,Ni.forEach=Mo,Ni.forEachRight=_o,Ni.forIn=function(e,t){return null==e?e:wn(e,ud(t,3),Ia)},Ni.forInRight=function(e,t){return null==e?e:Mn(e,ud(t,3),Ia)},Ni.forOwn=function(e,t){return e&&_n(e,ud(t,3))},Ni.forOwnRight=function(e,t){return e&&Sn(e,ud(t,3))},Ni.get=Ea,Ni.gt=qo,Ni.gte=Uo,Ni.has=function(e,t){return null!=e&&bd(e,t,En)},Ni.hasIn=Ta,Ni.head=Vd,Ni.identity=os,Ni.includes=function(e,t,i,n){e=Jo(e)?e:ja(e),i=i&&!n?ba(i):0;var r=e.length;return i<0&&(i=vi(r+i,0)),ua(e)?i<=r&&e.indexOf(t,i)>-1:!!r&&Nt(e,t,i)>-1},Ni.indexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var r=null==i?0:ba(i);return r<0&&(r=vi(n+r,0)),Nt(e,t,r)},Ni.inRange=function(e,t,i){return t=ga(t),i===r?(i=t,t=0):i=ga(i),function(e,t,i){return e>=wi(t,i)&&e<vi(t,i)}(e=va(e),t,i)},Ni.invoke=Da,Ni.isArguments=Ko,Ni.isArray=Zo,Ni.isArrayBuffer=Vo,Ni.isArrayLike=Jo,Ni.isArrayLikeObject=Yo,Ni.isBoolean=function(e){return!0===e||!1===e||ra(e)&&An(e)==w},Ni.isBuffer=$o,Ni.isDate=Xo,Ni.isElement=function(e){return ra(e)&&1===e.nodeType&&!aa(e)},Ni.isEmpty=function(e){if(null==e)return!0;if(Jo(e)&&(Zo(e)||"string"==typeof e||"function"==typeof e.splice||$o(e)||fa(e)||Ko(e)))return!e.length;var t=gd(e);if(t==k||t==T)return!e.size;if(kd(e))return!Fn(e).length;for(var i in e)if(We.call(e,i))return!1;return!0},Ni.isEqual=function(e,t){return Ln(e,t)},Ni.isEqualWith=function(e,t,i){var n=(i="function"==typeof i?i:r)?i(e,t):r;return n===r?Ln(e,t,r,i):!!n},Ni.isError=Qo,Ni.isFinite=function(e){return"number"==typeof e&&Kt(e)},Ni.isFunction=ea,Ni.isInteger=ta,Ni.isLength=ia,Ni.isMap=da,Ni.isMatch=function(e,t){return e===t||In(e,t,fd(t))},Ni.isMatchWith=function(e,t,i){return i="function"==typeof i?i:r,In(e,t,fd(t),i)},Ni.isNaN=function(e){return oa(e)&&e!=+e},Ni.isNative=function(e){if(Bd(e))throw new Be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Wn(e)},Ni.isNil=function(e){return null==e},Ni.isNull=function(e){return null===e},Ni.isNumber=oa,Ni.isObject=na,Ni.isObjectLike=ra,Ni.isPlainObject=aa,Ni.isRegExp=sa,Ni.isSafeInteger=function(e){return ta(e)&&e>=-9007199254740991&&e<=p},Ni.isSet=ha,Ni.isString=ua,Ni.isSymbol=la,Ni.isTypedArray=fa,Ni.isUndefined=function(e){return e===r},Ni.isWeakMap=function(e){return ra(e)&&gd(e)==D},Ni.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==An(e)},Ni.join=function(e,t){return null==e?"":bi.call(e,t)},Ni.kebabCase=Za,Ni.last=Xd,Ni.lastIndexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var d=n;return i!==r&&(d=(d=ba(i))<0?vi(n+d,0):wi(d,n-1)),t==t?function(e,t,i){for(var n=i+1;n--;)if(e[n]===t)return n;return n}(e,t,d):Ht(e,jt,d,!0)},Ni.lowerCase=Va,Ni.lowerFirst=Ja,Ni.lt=ca,Ni.lte=pa,Ni.max=function(e){return e&&e.length?bn(e,os,Pn):r},Ni.maxBy=function(e,t){return e&&e.length?bn(e,ud(t,2),Pn):r},Ni.mean=function(e){return qt(e,os)},Ni.meanBy=function(e,t){return qt(e,ud(t,2))},Ni.min=function(e){return e&&e.length?bn(e,os,Hn):r},Ni.minBy=function(e,t){return e&&e.length?bn(e,ud(t,2),Hn):r},Ni.stubArray=ys,Ni.stubFalse=vs,Ni.stubObject=function(){return{}},Ni.stubString=function(){return""},Ni.stubTrue=function(){return!0},Ni.multiply=ks,Ni.nth=function(e,t){return e&&e.length?Un(e,ba(t)):r},Ni.noConflict=function(){return ct._===this&&(ct._=Ne),this},Ni.noop=ls,Ni.now=Eo,Ni.pad=function(e,t,i){e=Ma(e);var n=(t=ba(t))?fi(e):0;if(!t||n>=t)return e;var r=(t-n)/2;return Kr(bt(r),i)+e+Kr(mt(r),i)},Ni.padEnd=function(e,t,i){e=Ma(e);var n=(t=ba(t))?fi(e):0;return t&&n<t?e+Kr(t-n,i):e},Ni.padStart=function(e,t,i){e=Ma(e);var n=(t=ba(t))?fi(e):0;return t&&n<t?Kr(t-n,i)+e:e},Ni.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),_i(Ma(e).replace(oe,""),t||0)},Ni.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Md(e,t,i)&&(t=i=r),i===r&&("boolean"==typeof t?(i=t,t=r):"boolean"==typeof e&&(i=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ga(e),t===r?(t=e,e=0):t=ga(t)),e>t){var n=e;e=t,t=n}if(i||e%1||t%1){var d=Si();return wi(e+d*(t-e+ht("1e-"+((d+"").length-1))),t)}return Yn(e,t)},Ni.reduce=function(e,t,i){var n=Zo(e)?It:Zt,r=arguments.length<3;return n(e,ud(t,4),i,r,pn)},Ni.reduceRight=function(e,t,i){var n=Zo(e)?Wt:Zt,r=arguments.length<3;return n(e,ud(t,4),i,r,mn)},Ni.repeat=function(e,t,i){return t=(i?Md(e,t,i):t===r)?1:ba(t),$n(Ma(e),t)},Ni.replace=function(){var e=arguments,t=Ma(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ni.result=function(e,t,i){var n=-1,d=(t=Mr(t,e)).length;for(d||(d=1,e=r);++n<d;){var o=null==e?r:e[Od(t[n])];o===r&&(n=d,o=i),e=ea(o)?o.call(e):o}return e},Ni.round=Cs,Ni.runInContext=e,Ni.sample=function(e){return(Zo(e)?Xi:Qn)(e)},Ni.size=function(e){if(null==e)return 0;if(Jo(e))return ua(e)?fi(e):e.length;var t=gd(e);return t==k||t==T?e.size:Fn(e).length},Ni.snakeCase=Ya,Ni.some=function(e,t,i){var n=Zo(e)?Gt:or;return i&&Md(e,t,i)&&(t=r),n(e,ud(t,3))},Ni.sortedIndex=function(e,t){return ar(e,t)},Ni.sortedIndexBy=function(e,t,i){return sr(e,t,ud(i,2))},Ni.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var n=ar(e,t);if(n<i&&jo(e[n],t))return n}return-1},Ni.sortedLastIndex=function(e,t){return ar(e,t,!0)},Ni.sortedLastIndexBy=function(e,t,i){return sr(e,t,ud(i,2),!0)},Ni.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var i=ar(e,t,!0)-1;if(jo(e[i],t))return i}return-1},Ni.startCase=$a,Ni.startsWith=function(e,t,i){return e=Ma(e),i=null==i?0:hn(ba(i),0,e.length),t=lr(t),e.slice(i,i+t.length)==t},Ni.subtract=As,Ni.sum=function(e){return e&&e.length?Vt(e,os):0},Ni.sumBy=function(e,t){return e&&e.length?Vt(e,ud(t,2)):0},Ni.template=function(e,t,i){var n=Ni.templateSettings;i&&Md(e,t,i)&&(t=r),e=Ma(e),t=Ba({},t,n,ed);var d,o,a=Ba({},t.imports,n.imports,ed),s=La(a),h=Xt(a,s),u=0,l=t.interpolate||_e,f="__p += '",c=Pe((t.escape||_e).source+"|"+l.source+"|"+(l===ee?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),p="//# sourceURL="+(We.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dt+"]")+"\n";e.replace(c,(function(t,i,n,r,a,s){return n||(n=r),f+=e.slice(u,s).replace(Se,di),i&&(d=!0,f+="' +\n__e("+i+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),f+="';\n";var m=We.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new Be("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(U,""):f).replace(K,"$1").replace(Z,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(d?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=ts((function(){return ke(s,p+"return "+f).apply(r,h)}));if(g.source=f,Qo(g))throw g;return g},Ni.times=function(e,t){if((e=ba(e))<1||e>p)return[];var i=g,n=wi(e,g);t=ud(t),e-=g;for(var r=Jt(n,t);++i<e;)t(i);return r},Ni.toFinite=ga,Ni.toInteger=ba,Ni.toLength=ya,Ni.toLower=function(e){return Ma(e).toLowerCase()},Ni.toNumber=va,Ni.toSafeInteger=function(e){return e?hn(ba(e),-9007199254740991,p):0===e?e:0},Ni.toString=Ma,Ni.toUpper=function(e){return Ma(e).toUpperCase()},Ni.trim=function(e,t,i){if((e=Ma(e))&&(i||t===r))return Yt(e);if(!e||!(t=lr(t)))return e;var n=ci(e),d=ci(t);return Sr(n,ei(n,d),ti(n,d)+1).join("")},Ni.trimEnd=function(e,t,i){if((e=Ma(e))&&(i||t===r))return e.slice(0,pi(e)+1);if(!e||!(t=lr(t)))return e;var n=ci(e);return Sr(n,0,ti(n,ci(t))+1).join("")},Ni.trimStart=function(e,t,i){if((e=Ma(e))&&(i||t===r))return e.replace(oe,"");if(!e||!(t=lr(t)))return e;var n=ci(e);return Sr(n,ei(n,ci(t))).join("")},Ni.truncate=function(e,t){var i=30,n="...";if(na(t)){var d="separator"in t?t.separator:d;i="length"in t?ba(t.length):i,n="omission"in t?lr(t.omission):n}var o=(e=Ma(e)).length;if(oi(e)){var a=ci(e);o=a.length}if(i>=o)return e;var s=i-fi(n);if(s<1)return n;var h=a?Sr(a,0,s).join(""):e.slice(0,s);if(d===r)return h+n;if(a&&(s+=h.length-s),sa(d)){if(e.slice(s).search(d)){var u,l=h;for(d.global||(d=Pe(d.source,Ma(me.exec(d))+"g")),d.lastIndex=0;u=d.exec(l);)var f=u.index;h=h.slice(0,f===r?s:f)}}else if(e.indexOf(lr(d),s)!=s){var c=h.lastIndexOf(d);c>-1&&(h=h.slice(0,c))}return h+n},Ni.unescape=function(e){return(e=Ma(e))&&Y.test(e)?e.replace(V,mi):e},Ni.uniqueId=function(e){var t=++Ge;return Ma(e)+t},Ni.upperCase=Xa,Ni.upperFirst=Qa,Ni.each=Mo,Ni.eachRight=_o,Ni.first=Vd,us(Ni,(Bs={},_n(Ni,(function(e,t){We.call(Ni.prototype,t)||(Bs[t]=e)})),Bs),{chain:!1}),Ni.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ni[e].placeholder=Ni})),At(["drop","take"],(function(e,t){Ui.prototype[e]=function(i){i=i===r?1:vi(ba(i),0);var n=this.__filtered__&&!t?new Ui(this):this.clone();return n.__filtered__?n.__takeCount__=wi(i,n.__takeCount__):n.__views__.push({size:wi(i,g),type:e+(n.__dir__<0?"Right":"")}),n},Ui.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var i=t+1,n=1==i||3==i;Ui.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ud(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}})),At(["head","last"],(function(e,t){var i="take"+(t?"Right":"");Ui.prototype[e]=function(){return this[i](1).value()[0]}})),At(["initial","tail"],(function(e,t){var i="drop"+(t?"":"Right");Ui.prototype[e]=function(){return this.__filtered__?new Ui(this):this[i](1)}})),Ui.prototype.compact=function(){return this.filter(os)},Ui.prototype.find=function(e){return this.filter(e).head()},Ui.prototype.findLast=function(e){return this.reverse().find(e)},Ui.prototype.invokeMap=Xn((function(e,t){return"function"==typeof e?new Ui(this):this.map((function(i){return Rn(i,e,t)}))})),Ui.prototype.reject=function(e){return this.filter(Fo(ud(e)))},Ui.prototype.slice=function(e,t){e=ba(e);var i=this;return i.__filtered__&&(e>0||t<0)?new Ui(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==r&&(i=(t=ba(t))<0?i.dropRight(-t):i.take(t-e)),i)},Ui.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ui.prototype.toArray=function(){return this.take(g)},_n(Ui.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),d=Ni[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);d&&(Ni.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,s=t instanceof Ui,h=a[0],u=s||Zo(t),l=function(e){var t=d.apply(Ni,Lt([e],a));return n&&f?t[0]:t};u&&i&&"function"==typeof h&&1!=h.length&&(s=u=!1);var f=this.__chain__,c=!!this.__actions__.length,p=o&&!f,m=s&&!c;if(!o&&u){t=m?t:new Ui(this);var g=e.apply(t,a);return g.__actions__.push({func:go,args:[l],thisArg:r}),new qi(g,f)}return p&&m?e.apply(this,a):(g=this.thru(l),p?n?g.value()[0]:g.value():g)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xe[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ni.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var r=this.value();return t.apply(Zo(r)?r:[],e)}return this[i]((function(i){return t.apply(Zo(i)?i:[],e)}))}})),_n(Ui.prototype,(function(e,t){var i=Ni[t];if(i){var n=i.name+"";We.call(Ri,n)||(Ri[n]=[]),Ri[n].push({name:t,func:i})}})),Ri[zr(r,2).name]=[{name:"wrapper",func:r}],Ui.prototype.clone=function(){var e=new Ui(this.__wrapped__);return e.__actions__=xr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xr(this.__views__),e},Ui.prototype.reverse=function(){if(this.__filtered__){var e=new Ui(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ui.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=Zo(e),n=t<0,r=i?e.length:0,d=function(e,t,i){var n=-1,r=i.length;for(;++n<r;){var d=i[n],o=d.size;switch(d.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=wi(t,e+o);break;case"takeRight":e=vi(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=d.start,a=d.end,s=a-o,h=n?a:o-1,u=this.__iteratees__,l=u.length,f=0,c=wi(s,this.__takeCount__);if(!i||!n&&r==s&&c==s)return gr(e,this.__actions__);var p=[];e:for(;s--&&f<c;){for(var m=-1,g=e[h+=t];++m<l;){var b=u[m],y=b.iteratee,v=b.type,w=y(g);if(2==v)g=w;else if(!w){if(1==v)continue e;break e}}p[f++]=g}return p},Ni.prototype.at=bo,Ni.prototype.chain=function(){return mo(this)},Ni.prototype.commit=function(){return new qi(this.value(),this.__chain__)},Ni.prototype.next=function(){this.__values__===r&&(this.__values__=ma(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Ni.prototype.plant=function(e){for(var t,i=this;i instanceof ji;){var n=Nd(i);n.__index__=0,n.__values__=r,t?d.__wrapped__=n:t=n;var d=n;i=i.__wrapped__}return d.__wrapped__=e,t},Ni.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ui){var t=e;return this.__actions__.length&&(t=new Ui(this)),(t=t.reverse()).__actions__.push({func:go,args:[io],thisArg:r}),new qi(t,this.__chain__)}return this.thru(io)},Ni.prototype.toJSON=Ni.prototype.valueOf=Ni.prototype.value=function(){return gr(this.__wrapped__,this.__actions__)},Ni.prototype.first=Ni.prototype.head,et&&(Ni.prototype[et]=function(){return this}),Ni}();ct._=gi,(n=function(){return gi}.call(t,i,t,e))===r||(e.exports=n)}.call(this)},2318:(e,t,i)=>{"use strict";var n=i(5717),r=i(3349),d=i(9509).Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function h(e,t,i,n,r,d,o){return s(e+(t&i|~t&n)+r+d|0,o)+t|0}function u(e,t,i,n,r,d,o){return s(e+(t&n|i&~n)+r+d|0,o)+t|0}function l(e,t,i,n,r,d,o){return s(e+(t^i^n)+r+d|0,o)+t|0}function f(e,t,i,n,r,d,o){return s(e+(i^(t|~n))+r+d|0,o)+t|0}n(a,r),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,n=this._b,r=this._c,d=this._d;i=h(i,n,r,d,e[0],3614090360,7),d=h(d,i,n,r,e[1],3905402710,12),r=h(r,d,i,n,e[2],606105819,17),n=h(n,r,d,i,e[3],3250441966,22),i=h(i,n,r,d,e[4],4118548399,7),d=h(d,i,n,r,e[5],1200080426,12),r=h(r,d,i,n,e[6],2821735955,17),n=h(n,r,d,i,e[7],4249261313,22),i=h(i,n,r,d,e[8],1770035416,7),d=h(d,i,n,r,e[9],2336552879,12),r=h(r,d,i,n,e[10],4294925233,17),n=h(n,r,d,i,e[11],2304563134,22),i=h(i,n,r,d,e[12],1804603682,7),d=h(d,i,n,r,e[13],4254626195,12),r=h(r,d,i,n,e[14],2792965006,17),i=u(i,n=h(n,r,d,i,e[15],1236535329,22),r,d,e[1],4129170786,5),d=u(d,i,n,r,e[6],3225465664,9),r=u(r,d,i,n,e[11],643717713,14),n=u(n,r,d,i,e[0],3921069994,20),i=u(i,n,r,d,e[5],3593408605,5),d=u(d,i,n,r,e[10],38016083,9),r=u(r,d,i,n,e[15],3634488961,14),n=u(n,r,d,i,e[4],3889429448,20),i=u(i,n,r,d,e[9],568446438,5),d=u(d,i,n,r,e[14],3275163606,9),r=u(r,d,i,n,e[3],4107603335,14),n=u(n,r,d,i,e[8],1163531501,20),i=u(i,n,r,d,e[13],2850285829,5),d=u(d,i,n,r,e[2],4243563512,9),r=u(r,d,i,n,e[7],1735328473,14),i=l(i,n=u(n,r,d,i,e[12],2368359562,20),r,d,e[5],4294588738,4),d=l(d,i,n,r,e[8],2272392833,11),r=l(r,d,i,n,e[11],1839030562,16),n=l(n,r,d,i,e[14],4259657740,23),i=l(i,n,r,d,e[1],2763975236,4),d=l(d,i,n,r,e[4],1272893353,11),r=l(r,d,i,n,e[7],4139469664,16),n=l(n,r,d,i,e[10],3200236656,23),i=l(i,n,r,d,e[13],681279174,4),d=l(d,i,n,r,e[0],3936430074,11),r=l(r,d,i,n,e[3],3572445317,16),n=l(n,r,d,i,e[6],76029189,23),i=l(i,n,r,d,e[9],3654602809,4),d=l(d,i,n,r,e[12],3873151461,11),r=l(r,d,i,n,e[15],530742520,16),i=f(i,n=l(n,r,d,i,e[2],3299628645,23),r,d,e[0],4096336452,6),d=f(d,i,n,r,e[7],1126891415,10),r=f(r,d,i,n,e[14],2878612391,15),n=f(n,r,d,i,e[5],4237533241,21),i=f(i,n,r,d,e[12],1700485571,6),d=f(d,i,n,r,e[3],2399980690,10),r=f(r,d,i,n,e[10],4293915773,15),n=f(n,r,d,i,e[1],2240044497,21),i=f(i,n,r,d,e[8],1873313359,6),d=f(d,i,n,r,e[15],4264355552,10),r=f(r,d,i,n,e[6],2734768916,15),n=f(n,r,d,i,e[13],1309151649,21),i=f(i,n,r,d,e[4],4149444226,6),d=f(d,i,n,r,e[11],3174756917,10),r=f(r,d,i,n,e[2],718787259,15),n=f(n,r,d,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+r|0,this._d=this._d+d|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=d.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},3047:(e,t,i)=>{var n=i(6240),r=i(9931);function d(e){this.rand=e||new r.Rand}e.exports=d,d.create=function(e){return new d(e)},d.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var r=new n(this.rand.generate(i))}while(r.cmp(e)>=0);return r},d.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},d.prototype.test=function(e,t,i){var r=e.bitLength(),d=n.mont(e),o=new n(1).toRed(d);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var h=e.shrn(s),u=a.toRed(d);t>0;t--){var l=this._randrange(new n(2),a);i&&i(l);var f=l.toRed(d).redPow(h);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var c=1;c<s;c++){if(0===(f=f.redSqr()).cmp(o))return!1;if(0===f.cmp(u))break}if(c===s)return!1}}return!0},d.prototype.getDivisor=function(e,t){var i=e.bitLength(),r=n.mont(e),d=new n(1).toRed(r);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var s=e.shrn(a),h=o.toRed(r);t>0;t--){var u=this._randrange(new n(2),o),l=e.gcd(u);if(0!==l.cmpn(1))return l;var f=u.toRed(r).redPow(s);if(0!==f.cmp(d)&&0!==f.cmp(h)){for(var c=1;c<a;c++){if(0===(f=f.redSqr()).cmp(d))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(h))break}if(c===a)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},6240:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(k){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,n){for(var r=0,d=Math.min(e.length,i),o=t;o<d;o++){var a=e.charCodeAt(o)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this.strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this.strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},d.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 c(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],c=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(e);i=(p=p.idivn(c)).isZero()?m+i:u[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16)},d.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},d.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,h=new e(d),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[a]=o;for(;a<d;a++)h[a]=0}else{for(a=0;a<d-r;a++)h[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[d-a-1]=o}return h},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=c),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?c(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),m(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,d=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=d>>>26,this.words[i]=67108863&d}return 0!==t&&(this.words[i]=t,this.length++),this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this.strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},d.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new S(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}y.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,y),r(M,y),r(_,y),_.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new B(e)},r(B,S),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},9746:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,i){if(e!=t)throw new Error(i||"Assertion failed: "+e+" != "+t)}},4504:(e,t)=>{"use strict";var i=t;function n(e){return 1===e.length?"0"+e:e}function r(e){for(var t="",i=0;i<e.length;i++)t+=n(e[i].toString(16));return t}i.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)i[n]=0|e[n];return i}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)i.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var r=e.charCodeAt(n),d=r>>8,o=255&r;d?i.push(d,o):i.push(o)}return i},i.zero2=n,i.toHex=r,i.encode=function(e,t){return"hex"===t?r(e):e}},873:e=>{"use strict";e.exports=JSON.parse('{"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"}')},2818:(e,t,i)=>{"use strict";var n=i(9809);t.certificate=i(1934);var r=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())}));t.RSAPrivateKey=r;var d=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=d;var o=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var a=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(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=s;var h=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())}));t.EncryptedPrivateKey=h;var u=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())}));t.DSAPrivateKey=u,t.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(f),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=l;var f=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},1934:(e,t,i)=>{"use strict";var n=i(9809),r=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),d=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),s=n.define("RelativeDistinguishedName",(function(){this.setof(d)})),h=n.define("RDNSequence",(function(){this.seqof(s)})),u=n.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),c=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(l),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(c),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=p},7631:(e,t,i)=>{var n=/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,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,d=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=i(3048),a=i(4696),s=i(9509).Buffer;e.exports=function(e,t){var i,h=e.toString(),u=h.match(n);if(u){var l="aes"+u[1],f=s.from(u[2],"hex"),c=s.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(t,f.slice(0,8),parseInt(u[1],10)).key,m=[],g=a.createDecipheriv(l,p,f);m.push(g.update(c)),m.push(g.final()),i=s.concat(m)}else{var b=h.match(d);i=s.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(r)[1],data:i}}},980:(e,t,i)=>{var n=i(2818),r=i(873),d=i(7631),o=i(4696),a=i(5632),s=i(9509).Buffer;function h(e){var t;"object"!=typeof e||s.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=s.from(e));var i,h,u=d(e,t),l=u.tag,f=u.data;switch(l){case"CERTIFICATE":h=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=n.PublicKey.decode(f,"der")),i=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=n.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":f=function(e,t){var i=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),d=r[e.algorithm.decrypt.cipher.algo.join(".")],h=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,l=parseInt(d.split("-")[1],10)/8,f=a.pbkdf2Sync(t,i,n,l,"sha1"),c=o.createDecipheriv(d,f,h),p=[];return p.push(c.update(u)),p.push(c.final()),s.concat(p)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(i=(h=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:n.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=n.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=h,h.signature=n.signature},5632:(e,t,i)=>{t.pbkdf2=i(8638),t.pbkdf2Sync=i(1257)},8638:(e,t,i)=>{var n,r=i(4155),d=i(9509).Buffer,o=i(7357),a=i(2368),s=i(1257),h=i(7777),u=i.g.crypto&&i.g.crypto.subtle,l={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"},f=[];function c(e,t,i,n,r){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:r}},e,n<<3)})).then((function(e){return d.from(e)}))}e.exports=function(e,t,p,m,g,b){"function"==typeof g&&(b=g,g=void 0);var y=l[(g=g||"sha1").toLowerCase()];if(!y||"function"!=typeof i.g.Promise)return r.nextTick((function(){var i;try{i=s(e,t,p,m,g)}catch(n){return b(n)}b(null,i)}));if(o(p,m),e=h(e,a,"Password"),t=h(t,a,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(i.g.process&&!i.g.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=c(n=n||d.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(y).then((function(i){return i?c(e,t,p,m,y):s(e,t,p,m,g)})),b)}},2368:(e,t,i)=>{var n,r=i(4155);if(r.browser)n="utf-8";else if(r.version){n=parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n},7357:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,i){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>t||i!=i)throw new TypeError("Bad key length")}},1257:(e,t,i)=>{var n=i(8028),r=i(9785),d=i(9072),o=i(9509).Buffer,a=i(7357),s=i(2368),h=i(7777),u=o.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,i){var a=function(e){function t(t){return d(e).update(t).digest()}function i(e){return(new r).update(e).digest()}return"rmd160"===e||"ripemd160"===e?i:"md5"===e?n:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length<s&&(t=o.concat([t,u],s));for(var h=o.allocUnsafe(s+l[e]),f=o.allocUnsafe(s+l[e]),c=0;c<s;c++)h[c]=54^t[c],f[c]=92^t[c];var p=o.allocUnsafe(s+i+4);h.copy(p,0,0,s),this.ipad1=p,this.ipad2=h,this.opad=f,this.alg=e,this.blocksize=s,this.hash=a,this.size=l[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,i,n,r){a(i,n);var d=new f(r=r||"sha1",e=h(e,s,"Password"),(t=h(t,s,"Salt")).length),u=o.allocUnsafe(n),c=o.allocUnsafe(t.length+4);t.copy(c,0,0,t.length);for(var p=0,m=l[r],g=Math.ceil(n/m),b=1;b<=g;b++){c.writeUInt32BE(b,t.length);for(var y=d.run(c,d.ipad1),v=y,w=1;w<i;w++){v=d.run(v,d.ipad2);for(var M=0;M<m;M++)y[M]^=v[M]}y.copy(u,p),p+=m}return u}},7777:(e,t,i)=>{var n=i(9509).Buffer;e.exports=function(e,t,i){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},4155:e=>{var t,i,n=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{i="function"==typeof clearTimeout?clearTimeout:d}catch(e){i=d}}();var a,s=[],h=!1,u=-1;function l(){h&&a&&(h=!1,a.length?s=a.concat(s):u=-1,s.length&&f())}function f(){if(!h){var e=o(l);h=!0;for(var t=s.length;t;){for(a=s,s=[];++u<t;)a&&a[u].run();u=-1,t=s.length}a=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===d||!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)}}}(e)}}function c(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];s.push(new c(e,t)),1!==s.length||h||o(f)},c.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},7900:(e,t,i)=>{t.publicEncrypt=i(6559),t.privateDecrypt=i(6138),t.privateEncrypt=function(e,i){return t.publicEncrypt(e,i,!0)},t.publicDecrypt=function(e,i){return t.privateDecrypt(e,i,!0)}},9199:(e,t,i)=>{var n=i(3482),r=i(9509).Buffer;function d(e){var t=r.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var i,o=r.alloc(0),a=0;o.length<t;)i=d(a++),o=r.concat([o,n("sha1").update(e).update(i).digest()]);return o.slice(0,t)}},2144:function(e,t,i){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function d(e,t,i){if(d.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof e?e.exports=d:t.BN=d,d.BN=d,d.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(2574).Buffer}catch(k){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var n=a(e,i);return i-1>=t&&(n|=a(e,i-1)<<4),n}function h(e,t,i,n){for(var r=0,d=Math.min(e.length,i),o=t;o<d;o++){var a=e.charCodeAt(o)-48;r*=n,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}d.isBN=function(e){return e instanceof d||null!==e&&"object"==typeof e&&e.constructor.wordSize===d.wordSize&&Array.isArray(e.words)},d.max=function(e,t){return e.cmp(t)>0?e:t},d.min=function(e,t){return e.cmp(t)<0?e:t},d.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r<e.length&&(16===t?this._parseHex(e,r,i):(this._parseBase(e,t,r),"le"===i&&this._initArray(this.toArray(),t,i)))},d.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},d.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var d,o,a=0;if("be"===i)for(r=e.length-1,d=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);else if("le"===i)for(r=0,d=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[d]|=o<<a&67108863,this.words[d+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,d++);return this.strip()},d.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,d=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<d,this.words[o]|=67108863&r,d>=18?(d-=18,o+=1,this.words[o]|=r>>>26):d+=8;this.strip()},d.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=t)n++;n--,r=r/t|0;for(var d=e.length-i,o=d%n,a=Math.min(d,d-o)+i,s=0,u=i;u<a;u+=n)s=h(e,u,u+n,t),this.imuln(r),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==o){var l=1;for(s=h(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},d.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},d.prototype.clone=function(){var e=new d(null);return this.copy(e),e},d.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},d.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},d.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},d.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 c(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var r=0|e.words[0],d=0|t.words[0],o=r*d,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var h=1;h<n;h++){for(var u=s>>>26,l=67108863&s,f=Math.min(h,t.length-1),c=Math.max(0,h-e.length+1);c<=f;c++){var p=h-c|0;u+=(o=(r=0|e.words[p])*(d=0|t.words[c])+l)/67108864|0,l=67108863&o}i.words[h]=0|l,s=0|u}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}d.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,d=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<r|d)).toString(16);i=0!==(d=a>>>24-r&16777215)||o!==this.length-1?u[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==d&&(i=d.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=l[e],c=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(e);i=(p=p.idivn(c)).isZero()?m+i:u[h-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},d.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},d.prototype.toJSON=function(){return this.toString(16)},d.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},d.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},d.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),d=i||Math.max(1,r);n(r<=d,"byte array longer than desired length"),n(d>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,h=new e(d),u=this.clone();if(s){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[a]=o;for(;a<d;a++)h[a]=0}else{for(a=0;a<d-r;a++)h[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),h[d-a-1]=o}return h},Math.clz32?d.prototype._countBits=function(e){return 32-Math.clz32(e)}:d.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},d.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},d.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},d.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},d.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},d.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},d.prototype.isNeg=function(){return 0!==this.negative},d.prototype.neg=function(){return this.clone().ineg()},d.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},d.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},d.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},d.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},d.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},d.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},d.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},d.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},d.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},d.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},d.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},d.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},d.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},d.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return i>0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},d.prototype.notn=function(e){return this.clone().inotn(e)},d.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},d.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var r=0,d=0;d<n.length;d++)t=(0|i.words[d])+(0|n.words[d])+r,this.words[d]=67108863&t,r=t>>>26;for(;0!==r&&d<i.length;d++)t=(0|i.words[d])+r,this.words[d]=67108863&t,r=t>>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;d<i.length;d++)this.words[d]=i.words[d];return this},d.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},d.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,n=e):(i=e,n=this);for(var d=0,o=0;o<n.length;o++)d=(t=(0|i.words[o])-(0|n.words[o])+d)>>26,this.words[o]=67108863&t;for(;0!==d&&o<i.length;o++)d=(t=(0|i.words[o])+d)>>26,this.words[o]=67108863&t;if(0===d&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},d.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,r,d,o=e.words,a=t.words,s=i.words,h=0,u=0|o[0],l=8191&u,f=u>>>13,c=0|o[1],p=8191&c,m=c>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,_=0|o[4],S=8191&_,B=_>>>13,k=0|o[5],C=8191&k,A=k>>>13,P=0|o[6],E=8191&P,T=P>>>13,x=0|o[7],R=8191&x,D=x>>>13,L=0|o[8],I=8191&L,W=L>>>13,G=0|o[9],F=8191&G,O=G>>>13,H=0|a[0],N=8191&H,z=H>>>13,j=0|a[1],q=8191&j,U=j>>>13,K=0|a[2],Z=8191&K,V=K>>>13,J=0|a[3],Y=8191&J,$=J>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ie=8191&te,ne=te>>>13,re=0|a[6],de=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,he=ae>>>13,ue=0|a[8],le=8191&ue,fe=ue>>>13,ce=0|a[9],pe=8191&ce,me=ce>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(n=Math.imul(l,N))|0)+((8191&(r=(r=Math.imul(l,z))+Math.imul(f,N)|0))<<13)|0;h=((d=Math.imul(f,z))+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,N),r=(r=Math.imul(p,z))+Math.imul(m,N)|0,d=Math.imul(m,z);var be=(h+(n=n+Math.imul(l,q)|0)|0)+((8191&(r=(r=r+Math.imul(l,U)|0)+Math.imul(f,q)|0))<<13)|0;h=((d=d+Math.imul(f,U)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,N),r=(r=Math.imul(b,z))+Math.imul(y,N)|0,d=Math.imul(y,z),n=n+Math.imul(p,q)|0,r=(r=r+Math.imul(p,U)|0)+Math.imul(m,q)|0,d=d+Math.imul(m,U)|0;var ye=(h+(n=n+Math.imul(l,Z)|0)|0)+((8191&(r=(r=r+Math.imul(l,V)|0)+Math.imul(f,Z)|0))<<13)|0;h=((d=d+Math.imul(f,V)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,N),r=(r=Math.imul(w,z))+Math.imul(M,N)|0,d=Math.imul(M,z),n=n+Math.imul(b,q)|0,r=(r=r+Math.imul(b,U)|0)+Math.imul(y,q)|0,d=d+Math.imul(y,U)|0,n=n+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(m,Z)|0,d=d+Math.imul(m,V)|0;var ve=(h+(n=n+Math.imul(l,Y)|0)|0)+((8191&(r=(r=r+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;h=((d=d+Math.imul(f,$)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,N),r=(r=Math.imul(S,z))+Math.imul(B,N)|0,d=Math.imul(B,z),n=n+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(M,q)|0,d=d+Math.imul(M,U)|0,n=n+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,V)|0)+Math.imul(y,Z)|0,d=d+Math.imul(y,V)|0,n=n+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,Y)|0,d=d+Math.imul(m,$)|0;var we=(h+(n=n+Math.imul(l,Q)|0)|0)+((8191&(r=(r=r+Math.imul(l,ee)|0)+Math.imul(f,Q)|0))<<13)|0;h=((d=d+Math.imul(f,ee)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,N),r=(r=Math.imul(C,z))+Math.imul(A,N)|0,d=Math.imul(A,z),n=n+Math.imul(S,q)|0,r=(r=r+Math.imul(S,U)|0)+Math.imul(B,q)|0,d=d+Math.imul(B,U)|0,n=n+Math.imul(w,Z)|0,r=(r=r+Math.imul(w,V)|0)+Math.imul(M,Z)|0,d=d+Math.imul(M,V)|0,n=n+Math.imul(b,Y)|0,r=(r=r+Math.imul(b,$)|0)+Math.imul(y,Y)|0,d=d+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,r=(r=r+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,d=d+Math.imul(m,ee)|0;var Me=(h+(n=n+Math.imul(l,ie)|0)|0)+((8191&(r=(r=r+Math.imul(l,ne)|0)+Math.imul(f,ie)|0))<<13)|0;h=((d=d+Math.imul(f,ne)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(E,N),r=(r=Math.imul(E,z))+Math.imul(T,N)|0,d=Math.imul(T,z),n=n+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(A,q)|0,d=d+Math.imul(A,U)|0,n=n+Math.imul(S,Z)|0,r=(r=r+Math.imul(S,V)|0)+Math.imul(B,Z)|0,d=d+Math.imul(B,V)|0,n=n+Math.imul(w,Y)|0,r=(r=r+Math.imul(w,$)|0)+Math.imul(M,Y)|0,d=d+Math.imul(M,$)|0,n=n+Math.imul(b,Q)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Q)|0,d=d+Math.imul(y,ee)|0,n=n+Math.imul(p,ie)|0,r=(r=r+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,d=d+Math.imul(m,ne)|0;var _e=(h+(n=n+Math.imul(l,de)|0)|0)+((8191&(r=(r=r+Math.imul(l,oe)|0)+Math.imul(f,de)|0))<<13)|0;h=((d=d+Math.imul(f,oe)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,N),r=(r=Math.imul(R,z))+Math.imul(D,N)|0,d=Math.imul(D,z),n=n+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(T,q)|0,d=d+Math.imul(T,U)|0,n=n+Math.imul(C,Z)|0,r=(r=r+Math.imul(C,V)|0)+Math.imul(A,Z)|0,d=d+Math.imul(A,V)|0,n=n+Math.imul(S,Y)|0,r=(r=r+Math.imul(S,$)|0)+Math.imul(B,Y)|0,d=d+Math.imul(B,$)|0,n=n+Math.imul(w,Q)|0,r=(r=r+Math.imul(w,ee)|0)+Math.imul(M,Q)|0,d=d+Math.imul(M,ee)|0,n=n+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,ne)|0)+Math.imul(y,ie)|0,d=d+Math.imul(y,ne)|0,n=n+Math.imul(p,de)|0,r=(r=r+Math.imul(p,oe)|0)+Math.imul(m,de)|0,d=d+Math.imul(m,oe)|0;var Se=(h+(n=n+Math.imul(l,se)|0)|0)+((8191&(r=(r=r+Math.imul(l,he)|0)+Math.imul(f,se)|0))<<13)|0;h=((d=d+Math.imul(f,he)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(I,N),r=(r=Math.imul(I,z))+Math.imul(W,N)|0,d=Math.imul(W,z),n=n+Math.imul(R,q)|0,r=(r=r+Math.imul(R,U)|0)+Math.imul(D,q)|0,d=d+Math.imul(D,U)|0,n=n+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(T,Z)|0,d=d+Math.imul(T,V)|0,n=n+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(A,Y)|0,d=d+Math.imul(A,$)|0,n=n+Math.imul(S,Q)|0,r=(r=r+Math.imul(S,ee)|0)+Math.imul(B,Q)|0,d=d+Math.imul(B,ee)|0,n=n+Math.imul(w,ie)|0,r=(r=r+Math.imul(w,ne)|0)+Math.imul(M,ie)|0,d=d+Math.imul(M,ne)|0,n=n+Math.imul(b,de)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(y,de)|0,d=d+Math.imul(y,oe)|0,n=n+Math.imul(p,se)|0,r=(r=r+Math.imul(p,he)|0)+Math.imul(m,se)|0,d=d+Math.imul(m,he)|0;var Be=(h+(n=n+Math.imul(l,le)|0)|0)+((8191&(r=(r=r+Math.imul(l,fe)|0)+Math.imul(f,le)|0))<<13)|0;h=((d=d+Math.imul(f,fe)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,N),r=(r=Math.imul(F,z))+Math.imul(O,N)|0,d=Math.imul(O,z),n=n+Math.imul(I,q)|0,r=(r=r+Math.imul(I,U)|0)+Math.imul(W,q)|0,d=d+Math.imul(W,U)|0,n=n+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(D,Z)|0,d=d+Math.imul(D,V)|0,n=n+Math.imul(E,Y)|0,r=(r=r+Math.imul(E,$)|0)+Math.imul(T,Y)|0,d=d+Math.imul(T,$)|0,n=n+Math.imul(C,Q)|0,r=(r=r+Math.imul(C,ee)|0)+Math.imul(A,Q)|0,d=d+Math.imul(A,ee)|0,n=n+Math.imul(S,ie)|0,r=(r=r+Math.imul(S,ne)|0)+Math.imul(B,ie)|0,d=d+Math.imul(B,ne)|0,n=n+Math.imul(w,de)|0,r=(r=r+Math.imul(w,oe)|0)+Math.imul(M,de)|0,d=d+Math.imul(M,oe)|0,n=n+Math.imul(b,se)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(y,se)|0,d=d+Math.imul(y,he)|0,n=n+Math.imul(p,le)|0,r=(r=r+Math.imul(p,fe)|0)+Math.imul(m,le)|0,d=d+Math.imul(m,fe)|0;var ke=(h+(n=n+Math.imul(l,pe)|0)|0)+((8191&(r=(r=r+Math.imul(l,me)|0)+Math.imul(f,pe)|0))<<13)|0;h=((d=d+Math.imul(f,me)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,q),r=(r=Math.imul(F,U))+Math.imul(O,q)|0,d=Math.imul(O,U),n=n+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(W,Z)|0,d=d+Math.imul(W,V)|0,n=n+Math.imul(R,Y)|0,r=(r=r+Math.imul(R,$)|0)+Math.imul(D,Y)|0,d=d+Math.imul(D,$)|0,n=n+Math.imul(E,Q)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(T,Q)|0,d=d+Math.imul(T,ee)|0,n=n+Math.imul(C,ie)|0,r=(r=r+Math.imul(C,ne)|0)+Math.imul(A,ie)|0,d=d+Math.imul(A,ne)|0,n=n+Math.imul(S,de)|0,r=(r=r+Math.imul(S,oe)|0)+Math.imul(B,de)|0,d=d+Math.imul(B,oe)|0,n=n+Math.imul(w,se)|0,r=(r=r+Math.imul(w,he)|0)+Math.imul(M,se)|0,d=d+Math.imul(M,he)|0,n=n+Math.imul(b,le)|0,r=(r=r+Math.imul(b,fe)|0)+Math.imul(y,le)|0,d=d+Math.imul(y,fe)|0;var Ce=(h+(n=n+Math.imul(p,pe)|0)|0)+((8191&(r=(r=r+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((d=d+Math.imul(m,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),r=(r=Math.imul(F,V))+Math.imul(O,Z)|0,d=Math.imul(O,V),n=n+Math.imul(I,Y)|0,r=(r=r+Math.imul(I,$)|0)+Math.imul(W,Y)|0,d=d+Math.imul(W,$)|0,n=n+Math.imul(R,Q)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,d=d+Math.imul(D,ee)|0,n=n+Math.imul(E,ie)|0,r=(r=r+Math.imul(E,ne)|0)+Math.imul(T,ie)|0,d=d+Math.imul(T,ne)|0,n=n+Math.imul(C,de)|0,r=(r=r+Math.imul(C,oe)|0)+Math.imul(A,de)|0,d=d+Math.imul(A,oe)|0,n=n+Math.imul(S,se)|0,r=(r=r+Math.imul(S,he)|0)+Math.imul(B,se)|0,d=d+Math.imul(B,he)|0,n=n+Math.imul(w,le)|0,r=(r=r+Math.imul(w,fe)|0)+Math.imul(M,le)|0,d=d+Math.imul(M,fe)|0;var Ae=(h+(n=n+Math.imul(b,pe)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;h=((d=d+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,Y),r=(r=Math.imul(F,$))+Math.imul(O,Y)|0,d=Math.imul(O,$),n=n+Math.imul(I,Q)|0,r=(r=r+Math.imul(I,ee)|0)+Math.imul(W,Q)|0,d=d+Math.imul(W,ee)|0,n=n+Math.imul(R,ie)|0,r=(r=r+Math.imul(R,ne)|0)+Math.imul(D,ie)|0,d=d+Math.imul(D,ne)|0,n=n+Math.imul(E,de)|0,r=(r=r+Math.imul(E,oe)|0)+Math.imul(T,de)|0,d=d+Math.imul(T,oe)|0,n=n+Math.imul(C,se)|0,r=(r=r+Math.imul(C,he)|0)+Math.imul(A,se)|0,d=d+Math.imul(A,he)|0,n=n+Math.imul(S,le)|0,r=(r=r+Math.imul(S,fe)|0)+Math.imul(B,le)|0,d=d+Math.imul(B,fe)|0;var Pe=(h+(n=n+Math.imul(w,pe)|0)|0)+((8191&(r=(r=r+Math.imul(w,me)|0)+Math.imul(M,pe)|0))<<13)|0;h=((d=d+Math.imul(M,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,Q),r=(r=Math.imul(F,ee))+Math.imul(O,Q)|0,d=Math.imul(O,ee),n=n+Math.imul(I,ie)|0,r=(r=r+Math.imul(I,ne)|0)+Math.imul(W,ie)|0,d=d+Math.imul(W,ne)|0,n=n+Math.imul(R,de)|0,r=(r=r+Math.imul(R,oe)|0)+Math.imul(D,de)|0,d=d+Math.imul(D,oe)|0,n=n+Math.imul(E,se)|0,r=(r=r+Math.imul(E,he)|0)+Math.imul(T,se)|0,d=d+Math.imul(T,he)|0,n=n+Math.imul(C,le)|0,r=(r=r+Math.imul(C,fe)|0)+Math.imul(A,le)|0,d=d+Math.imul(A,fe)|0;var Ee=(h+(n=n+Math.imul(S,pe)|0)|0)+((8191&(r=(r=r+Math.imul(S,me)|0)+Math.imul(B,pe)|0))<<13)|0;h=((d=d+Math.imul(B,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,ie),r=(r=Math.imul(F,ne))+Math.imul(O,ie)|0,d=Math.imul(O,ne),n=n+Math.imul(I,de)|0,r=(r=r+Math.imul(I,oe)|0)+Math.imul(W,de)|0,d=d+Math.imul(W,oe)|0,n=n+Math.imul(R,se)|0,r=(r=r+Math.imul(R,he)|0)+Math.imul(D,se)|0,d=d+Math.imul(D,he)|0,n=n+Math.imul(E,le)|0,r=(r=r+Math.imul(E,fe)|0)+Math.imul(T,le)|0,d=d+Math.imul(T,fe)|0;var Te=(h+(n=n+Math.imul(C,pe)|0)|0)+((8191&(r=(r=r+Math.imul(C,me)|0)+Math.imul(A,pe)|0))<<13)|0;h=((d=d+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,de),r=(r=Math.imul(F,oe))+Math.imul(O,de)|0,d=Math.imul(O,oe),n=n+Math.imul(I,se)|0,r=(r=r+Math.imul(I,he)|0)+Math.imul(W,se)|0,d=d+Math.imul(W,he)|0,n=n+Math.imul(R,le)|0,r=(r=r+Math.imul(R,fe)|0)+Math.imul(D,le)|0,d=d+Math.imul(D,fe)|0;var xe=(h+(n=n+Math.imul(E,pe)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(T,pe)|0))<<13)|0;h=((d=d+Math.imul(T,me)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,se),r=(r=Math.imul(F,he))+Math.imul(O,se)|0,d=Math.imul(O,he),n=n+Math.imul(I,le)|0,r=(r=r+Math.imul(I,fe)|0)+Math.imul(W,le)|0,d=d+Math.imul(W,fe)|0;var Re=(h+(n=n+Math.imul(R,pe)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(D,pe)|0))<<13)|0;h=((d=d+Math.imul(D,me)|0)+(r>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,le),r=(r=Math.imul(F,fe))+Math.imul(O,le)|0,d=Math.imul(O,fe);var De=(h+(n=n+Math.imul(I,pe)|0)|0)+((8191&(r=(r=r+Math.imul(I,me)|0)+Math.imul(W,pe)|0))<<13)|0;h=((d=d+Math.imul(W,me)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863;var Le=(h+(n=Math.imul(F,pe))|0)+((8191&(r=(r=Math.imul(F,me))+Math.imul(O,pe)|0))<<13)|0;return h=((d=Math.imul(O,me))+(r>>>13)|0)+(Le>>>26)|0,Le&=67108863,s[0]=ge,s[1]=be,s[2]=ye,s[3]=ve,s[4]=we,s[5]=Me,s[6]=_e,s[7]=Se,s[8]=Be,s[9]=ke,s[10]=Ce,s[11]=Ae,s[12]=Pe,s[13]=Ee,s[14]=Te,s[15]=xe,s[16]=Re,s[17]=De,s[18]=Le,0!==h&&(s[19]=h,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=c),d.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?c(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,r=0,d=0;d<i.length-1;d++){var o=r;r=0;for(var a=67108863&n,s=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=s;h++){var u=d-h,l=(0|e.words[u])*(0|t.words[h]),f=67108863&l;a=67108863&(f=f+a|0),r+=(o=(o=o+(l/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[d]=a,n=o,o=r}return 0!==n?i.words[d]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=d.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,r=0;r<t;r++)n|=(1&e)<<t-r-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,r,d){for(var o=0;o<d;o++)n[o]=t[e[o]],r[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,r,d){this.permute(d,e,t,i,n,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),h=Math.sin(2*Math.PI/a),u=0;u<r;u+=a)for(var l=s,f=h,c=0;c<o;c++){var p=i[u+c],m=n[u+c],g=i[u+c+o],b=n[u+c+o],y=l*g-f*b;b=l*b+f*g,g=y,i[u+c]=p+g,n[u+c]=m+b,i[u+c+o]=p-g,n[u+c+o]=m-b,c!==a&&(y=s*l-h*f,f=s*f+h*l,l=y)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,r=0;for(i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var r=e[n];e[n]=e[i-n-1],e[i-n-1]=r,r=t[n],t[n]=-t[i-n-1],t[i-n-1]=-r}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var r=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&r,i=r<67108864?0:r/67108864|0}return e},g.prototype.convert13b=function(e,t,i,r){for(var d=0,o=0;o<t;o++)d+=0|e[o],i[2*o]=8191&d,d>>>=13,i[2*o+1]=8191&d,d>>>=13;for(o=2*t;o<r;++o)i[o]=0;n(0===d),n(0==(-8192&d))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(n),d=this.stub(n),o=new Array(n),a=new Array(n),s=new Array(n),h=new Array(n),u=new Array(n),l=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,h,n),this.transform(o,d,a,s,n,r),this.transform(h,d,u,l,n,r);for(var c=0;c<n;c++){var p=a[c]*u[c]-s[c]*l[c];s[c]=a[c]*l[c]+s[c]*u[c],a[c]=p}return this.conjugate(a,s,n),this.transform(a,s,f,d,n,r),this.conjugate(f,d,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},d.prototype.mul=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},d.prototype.mulf=function(e){var t=new d(null);return t.words=new Array(this.length+e.length),m(this,e,t)},d.prototype.imul=function(e){return this.clone().mulTo(e,this)},d.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,d=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=d>>>26,this.words[i]=67108863&d}return 0!==t&&(this.words[i]=t,this.length++),this},d.prototype.muln=function(e){return this.clone().imuln(e)},d.prototype.sqr=function(){return this.mul(this)},d.prototype.isqr=function(){return this.imul(this.clone())},d.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,r=i%26;t[i]=(e.words[n]&1<<r)>>>r}return t}(e);if(0===t.length)return new d(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var r=i.sqr();n<t.length;n++,r=r.sqr())0!==t[n]&&(i=i.mul(r));return i},d.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,r=(e-i)/26,d=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&d,s=(0|this.words[t])-a<<i;this.words[t]=s|o,o=a>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},d.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},d.prototype.iushrn=function(e,t,i){var r;n("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var d=e%26,o=Math.min((e-d)/26,this.length),a=67108863^67108863>>>d<<d,s=i;if(r-=o,r=Math.max(0,r),s){for(var h=0;h<o;h++)s.words[h]=this.words[h];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,h=0;h<this.length;h++)this.words[h]=this.words[h+o];else this.words[0]=0,this.length=1;var u=0;for(h=this.length-1;h>=0&&(0!==u||h>=r);h--){var l=0|this.words[h];this.words[h]=u<<26-d|l>>>d,u=l&a}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},d.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},d.prototype.shln=function(e){return this.clone().ishln(e)},d.prototype.ushln=function(e){return this.clone().iushln(e)},d.prototype.shrn=function(e){return this.clone().ishrn(e)},d.prototype.ushrn=function(e){return this.clone().iushrn(e)},d.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},d.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},d.prototype.maskn=function(e){return this.clone().imaskn(e)},d.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},d.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},d.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},d.prototype.addn=function(e){return this.clone().iaddn(e)},d.prototype.subn=function(e){return this.clone().isubn(e)},d.prototype.iabs=function(){return this.negative=0,this},d.prototype.abs=function(){return this.clone().iabs()},d.prototype._ishlnsubmul=function(e,t,i){var r,d,o=e.length+i;this._expand(o);var a=0;for(r=0;r<e.length;r++){d=(0|this.words[r+i])+a;var s=(0|e.words[r])*t;a=((d-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&d}for(;r<this.length-i;r++)a=(d=(0|this.words[r+i])+a)>>26,this.words[r+i]=67108863&d;if(0===a)return this.strip();for(n(-1===a),a=0,r=0;r<this.length;r++)a=(d=-(0|this.words[r])+a)>>26,this.words[r]=67108863&d;return this.negative=1,this.strip()},d.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),n.iushln(i),o=0|r.words[r.length-1]);var a,s=n.length-r.length;if("mod"!==t){(a=new d(null)).length=s+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var u=n.clone()._ishlnsubmul(r,1,s);0===u.negative&&(n=u,a&&(a.words[s]=1));for(var l=s-1;l>=0;l--){var f=67108864*(0|n.words[r.length+l])+(0|n.words[r.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(r,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(r,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:a||null,mod:n}},d.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new d(0),mod:new d(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new d(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new d(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new d(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},d.prototype.div=function(e){return this.divmod(e,"div",!1).div},d.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},d.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},d.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),r=e.andln(1),d=i.cmp(n);return d<0||1===r&&0===d?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},d.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},d.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},d.prototype.divn=function(e){return this.clone().idivn(e)},d.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new d(1),o=new d(0),a=new d(0),s=new d(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var u=i.clone(),l=t.clone();!t.isZero();){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(l)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a,b:s,gcd:i.iushln(h)}},d.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new d(1),a=new d(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,u=1;0==(t.words[0]&u)&&h<26;++h,u<<=1);if(h>0)for(t.iushrn(h);h-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var l=0,f=1;0==(i.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(i.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},d.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var d=t;t=i,i=d}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},d.prototype.invm=function(e){return this.egcd(e).a.umod(e)},d.prototype.isEven=function(){return 0==(1&this.words[0])},d.prototype.isOdd=function(){return 1==(1&this.words[0])},d.prototype.andln=function(e){return this.words[0]&e},d.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var d=r,o=i;0!==d&&o<this.length;o++){var a=0|this.words[o];d=(a+=d)>>>26,a&=67108863,this.words[o]=a}return 0!==d&&(this.words[o]=d,this.length++),this},d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},d.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},d.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},d.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],r=0|e.words[i];if(n!==r){n<r?t=-1:n>r&&(t=1);break}}return t},d.prototype.gtn=function(e){return 1===this.cmpn(e)},d.prototype.gt=function(e){return 1===this.cmp(e)},d.prototype.gten=function(e){return this.cmpn(e)>=0},d.prototype.gte=function(e){return this.cmp(e)>=0},d.prototype.ltn=function(e){return-1===this.cmpn(e)},d.prototype.lt=function(e){return-1===this.cmp(e)},d.prototype.lten=function(e){return this.cmpn(e)<=0},d.prototype.lte=function(e){return this.cmp(e)<=0},d.prototype.eqn=function(e){return 0===this.cmpn(e)},d.prototype.eq=function(e){return 0===this.cmp(e)},d.red=function(e){return new S(e)},d.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},d.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},d.prototype._forceRed=function(e){return this.red=e,this},d.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},d.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},d.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},d.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},d.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},d.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},d.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},d.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},d.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},d.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},d.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},d.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},d.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},d.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new d(t,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=d._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new d(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)}y.prototype._tmp=function(){var e=new d(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var d=e.words[9];for(t.words[t.length++]=d&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(o&i)<<4|d>>>22,d=o}d>>>=22,e.words[r-10]=d,0===d&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,y),r(M,y),r(_,y),_.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},d._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},S.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new d(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);n(!r.isZero());var a=new d(1).toRed(this),s=a.redNeg(),h=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);0!==this.pow(u,h).cmp(s);)u.redIAdd(s);for(var l=this.pow(u,r),f=this.pow(e,r.addn(1).iushrn(1)),c=this.pow(e,r),p=o;0!==c.cmp(a);){for(var m=c,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(l,new d(1).iushln(p-g-1));f=f.redMul(b),l=b.redSqr(),c=c.redMul(l),p=g}return f},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new d(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new d(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var r=i[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var h=t.words[n],u=s-1;u>=0;u--){var l=h>>u&1;r!==i[0]&&(r=this.sqr(r)),0!==l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===u)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},d.mont=function(e){return new B(e)},r(B,S),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),d=r;return r.cmp(this.m)>=0?d=r.isub(this.m):r.cmpn(0)<0&&(d=r.iadd(this.m)),d._forceRed(this)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new d(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(n).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},6138:(e,t,i)=>{var n=i(980),r=i(9199),d=i(7859),o=i(2144),a=i(3663),s=i(3482),h=i(4818),u=i(9509).Buffer;e.exports=function(e,t,i){var l;l=e.padding?e.padding:i?1:4;var f,c=n(e),p=c.modulus.byteLength();if(t.length>p||new o(t).cmp(c.modulus)>=0)throw new Error("decryption error");f=i?h(new o(t),c):a(t,c);var m=u.alloc(p-f.length);if(f=u.concat([m,f],p),4===l)return function(e,t){var i=e.modulus.byteLength(),n=s("sha1").update(u.alloc(0)).digest(),o=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,o+1),h=t.slice(o+1),l=d(a,r(h,o)),f=d(h,r(l,i-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var i=0,n=e.length;e.length!==t.length&&(i++,n=Math.min(e.length,t.length));var r=-1;for(;++r<n;)i+=e[r]^t[r];return i}(n,f.slice(0,o)))throw new Error("decryption error");var c=o;for(;0===f[c];)c++;if(1!==f[c++])throw new Error("decryption error");return f.slice(c)}(c,f);if(1===l)return function(e,t,i){var n=t.slice(0,2),r=2,d=0;for(;0!==t[r++];)if(r>=t.length){d++;break}var o=t.slice(2,r-1);("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&d++;o.length<8&&d++;if(d)throw new Error("decryption error");return t.slice(r)}(0,f,i);if(3===l)return f;throw new Error("unknown padding")}},6559:(e,t,i)=>{var n=i(980),r=i(1798),d=i(3482),o=i(9199),a=i(7859),s=i(2144),h=i(4818),u=i(3663),l=i(9509).Buffer;e.exports=function(e,t,i){var f;f=e.padding?e.padding:i?1:4;var c,p=n(e);if(4===f)c=function(e,t){var i=e.modulus.byteLength(),n=t.length,h=d("sha1").update(l.alloc(0)).digest(),u=h.length,f=2*u;if(n>i-f-2)throw new Error("message too long");var c=l.alloc(i-n-f-2),p=i-u-1,m=r(u),g=a(l.concat([h,c,l.alloc(1,1),t],p),o(m,p)),b=a(m,o(g,u));return new s(l.concat([l.alloc(1),b,g],i))}(p,t);else if(1===f)c=function(e,t,i){var n,d=t.length,o=e.modulus.byteLength();if(d>o-11)throw new Error("message too long");n=i?l.alloc(o-d-3,255):function(e){var t,i=l.allocUnsafe(e),n=0,d=r(2*e),o=0;for(;n<e;)o===d.length&&(d=r(2*e),o=0),(t=d[o++])&&(i[n++]=t);return i}(o-d-3);return new s(l.concat([l.from([0,i?1:2]),n,l.alloc(1),t],o))}(p,t,i);else{if(3!==f)throw new Error("unknown padding");if((c=new s(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return i?u(c,p):h(c,p)}},4818:(e,t,i)=>{var n=i(2144),r=i(9509).Buffer;e.exports=function(e,t){return r.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},7859:e=>{e.exports=function(e,t){for(var i=e.length,n=-1;++n<i;)e[n]^=t[n];return e}},1798:(e,t,i)=>{"use strict";var n=i(4155),r=65536,d=4294967295;var o=i(9509).Buffer,a=i.g.crypto||i.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>d)throw new RangeError("requested too many random bytes");var i=o.allocUnsafe(e);if(e>0)if(e>r)for(var s=0;s<e;s+=r)a.getRandomValues(i.slice(s,s+r));else a.getRandomValues(i);if("function"==typeof t)return n.nextTick((function(){t(null,i)}));return i}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},7963:(e,t,i)=>{"use strict";var n=i(4155);function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var d=i(9509),o=i(1798),a=d.Buffer,s=d.kMaxLength,h=i.g.crypto||i.g.msCrypto,u=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>s)throw new RangeError("buffer too small")}function c(e,t,i,r){if(n.browser){var d=e.buffer,a=new Uint8Array(d,t,i);return h.getRandomValues(a),r?void n.nextTick((function(){r(null,e)})):e}if(!r)return o(i).copy(e,t),e;o(i,(function(i,n){if(i)return r(i);n.copy(e,t),r(null,e)}))}h&&h.getRandomValues||!n.browser?(t.randomFill=function(e,t,n,r){if(!(a.isBuffer(e)||e instanceof i.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return l(t,e.length),f(n,t,e.length),c(e,t,n,r)},t.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof i.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),void 0===n&&(n=e.length-t);return f(n,t,e.length),c(e,t,n)}):(t.randomFill=r,t.randomFillSync=r)},4281:e=>{"use strict";var t={};function i(e,i,n){n||(n=Error);var r=function(e){var t,n;function r(t,n,r){return e.call(this,function(e,t,n){return"string"==typeof i?i:i(e,t,n)}(t,n,r))||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n);r.prototype.name=n.name,r.prototype.code=e,t[e]=r}function n(e,t){if(Array.isArray(e)){var i=e.length;return e=e.map((function(e){return String(e)})),i>2?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,i){var r,d,o,a;if("string"==typeof t&&(d="not ",t.substr(!o||o<0?0:+o,d.length)===d)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(n(t,"type"));else{var s=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof i)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},6753:(e,t,i)=>{"use strict";var n=i(4155),r=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};e.exports=u;var d=i(9481),o=i(4229);i(5717)(u,d);for(var a=r(o.prototype),s=0;s<a.length;s++){var h=a[s];u.prototype[h]||(u.prototype[h]=o.prototype[h])}function u(e){if(!(this instanceof u))return new u(e);d.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},2725:(e,t,i)=>{"use strict";e.exports=r;var n=i(4605);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}i(5717)(r,n),r.prototype._transform=function(e,t,i){i(null,e)}},9481:(e,t,i)=>{"use strict";var n,r=i(4155);e.exports=k,k.ReadableState=B;i(7187).EventEmitter;var d=function(e,t){return e.listeners(t).length},o=i(2503),a=i(8764).Buffer,s=i.g.Uint8Array||function(){};var h,u=i(1758);h=u&&u.debuglog?u.debuglog("stream"):function(){};var l,f,c,p=i(7327),m=i(1195),g=i(2457).getHighWaterMark,b=i(4281).q,y=b.ERR_INVALID_ARG_TYPE,v=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,M=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(5717)(k,o);var _=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function B(e,t,r){n=n||i(6753),e=e||{},"boolean"!=typeof r&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=i(2553).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||i(6753),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new B(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function C(e,t,i,n,r){h("readableAddChunk",t);var d,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(h("onEofChunk"),t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,x(e)))}(e,o);else if(r||(d=function(e,t){var i;n=t,a.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(i=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return i}(o,t)),d)_(e,d);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)o.endEmitted?_(e,new M):A(e,o,t,!0);else if(o.ended)_(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(t=o.decoder.write(t),o.objectMode||0!==t.length?A(e,o,t,!1):R(e,o)):A(e,o,t,!1)}else n||(o.reading=!1,R(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function A(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",i)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&T(e)),R(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),i=!0),C(this,e,t,!1,i)},k.prototype.unshift=function(e){return C(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){l||(l=i(2553).s);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var P=1073741824;function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(x,e))}function x(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var i=t.length;if(h("maybeReadMore read 0"),e.read(0),i===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){h("readable nexttick read 0"),e.read(0)}function W(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function O(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(H,t,e))}function H(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function N(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}k.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):T(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&O(this),null;var n,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",r=!0),t.ended||t.reading?h("reading or ended",r=!1):r&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(i,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&O(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){_(this,new w("_read()"))},k.prototype.pipe=function(e,t){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,h("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?s:g;function a(t,r){h("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",c),e.removeListener("unpipe",a),i.removeListener("end",s),i.removeListener("end",g),i.removeListener("data",f),l=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){h("onend"),e.end()}n.endEmitted?r.nextTick(o):i.once("end",o),e.on("unpipe",a);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&d(e,"data")&&(t.flowing=!0,G(e))}}(i);e.on("drain",u);var l=!1;function f(t){h("ondata");var r=e.write(t);h("dest.write",r),!1===r&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==N(n.pipes,e))&&!l&&(h("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function c(t){h("onerror",t),g(),e.removeListener("error",c),0===d(e,"error")&&_(e,t)}function p(){e.removeListener("finish",m),g()}function m(){h("onfinish"),e.removeListener("close",p),g()}function g(){h("unpipe"),i.unpipe(e)}return i.on("data",f),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",c),e.once("close",p),e.once("finish",m),e.emit("pipe",i),n.flowing||(h("pipe resume"),i.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var d=0;d<r;d++)n[d].emit("unpipe",this,{hasUnpiped:!1});return this}var o=N(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},k.prototype.on=function(e,t){var i=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,h("on readable",n.length,n.reading),n.length?T(this):n.reading||r.nextTick(I,this))),i},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var i=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(L,this),i},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(L,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(W,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var r in e.on("end",(function(){if(h("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(h("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(t.push(r)||(n=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var d=0;d<S.length;d++)e.on(S[d],this.emit.bind(this,S[d]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=i(5850)),f(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=F,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(e,t){return void 0===c&&(c=i(5167)),c(k,e,t)})},4605:(e,t,i)=>{"use strict";e.exports=u;var n=i(4281).q,r=n.ERR_METHOD_NOT_IMPLEMENTED,d=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,s=i(6753);function h(e,t){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new d);i.writechunk=null,i.writecb=null,null!=t&&this.push(t),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,i){f(e,t,i)}))}function f(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}i(5717)(u,s),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,i){i(new r("_transform()"))},u.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,(function(e){t(e)}))}},4229:(e,t,i)=>{"use strict";var n,r=i(4155);function d(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;e.entry=null;for(;n;){var r=n.callback;t.pendingcb--,r(i),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=k,k.WritableState=B;var o={deprecate:i(4927)},a=i(2503),s=i(8764).Buffer,h=i.g.Uint8Array||function(){};var u,l=i(1195),f=i(2457).getHighWaterMark,c=i(4281).q,p=c.ERR_INVALID_ARG_TYPE,m=c.ERR_METHOD_NOT_IMPLEMENTED,g=c.ERR_MULTIPLE_CALLBACK,b=c.ERR_STREAM_CANNOT_PIPE,y=c.ERR_STREAM_DESTROYED,v=c.ERR_STREAM_NULL_VALUES,w=c.ERR_STREAM_WRITE_AFTER_END,M=c.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function S(){}function B(e,t,o){n=n||i(6753),e=e||{},"boolean"!=typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,n=i.sync,d=i.writecb;if("function"!=typeof d)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,n,d){--t.pendingcb,i?(r.nextTick(d,n),r.nextTick(x,e,t),e._writableState.errorEmitted=!0,_(e,n)):(d(n),e._writableState.errorEmitted=!0,_(e,n),x(e,t))}(e,i,n,t,d);else{var o=E(i)||e.destroyed;o||i.corked||i.bufferProcessing||!i.bufferedRequest||P(e,i),n?r.nextTick(A,e,i,o,d):A(e,i,o,d)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}function k(e){var t=this instanceof(n=n||i(6753));if(!t&&!u.call(k,this))return new k(e);this._writableState=new B(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function C(e,t,i,n,r,d,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):i?e._writev(r,t.onwrite):e._write(r,d,t.onwrite),t.sync=!1}function A(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function P(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var n=t.bufferedRequestCount,r=new Array(n),o=t.corkedRequestsFree;o.entry=i;for(var a=0,s=!0;i;)r[a]=i,i.isBuf||(s=!1),i=i.next,a+=1;r.allBuffers=s,C(e,t,!0,t.length,r,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new d(t),t.bufferedRequestCount=0}else{for(;i;){var h=i.chunk,u=i.encoding,l=i.callback;if(C(e,t,!1,t.objectMode?1:h.length,h,u,l),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(i){t.pendingcb--,i&&_(e,i),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var i=E(t);if(i&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return i}i(5717)(k,a),B.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(B.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===k&&(e&&e._writableState instanceof B)}})):u=function(e){return e instanceof this},k.prototype.pipe=function(){_(this,new b)},k.prototype.write=function(e,t,i){var n,d=this._writableState,o=!1,a=!d.objectMode&&(n=e,s.isBuffer(n)||n instanceof h);return a&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(i=t,t=null),a?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof i&&(i=S),d.ending?function(e,t){var i=new w;_(e,i),r.nextTick(t,i)}(this,i):(a||function(e,t,i,n){var d;return null===i?d=new v:"string"==typeof i||t.objectMode||(d=new p("chunk",["string","Buffer"],i)),!d||(_(e,d),r.nextTick(n,d),!1)}(this,d,e,i))&&(d.pendingcb++,o=function(e,t,i,n,r,d){if(!i){var o=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,i));return t}(t,n,r);n!==o&&(i=!0,r="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var h=t.length<t.highWaterMark;h||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:d,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,a,n,r,d);return h}(this,d,a,e,t,i)),o},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||P(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,i){i(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,i){var n=this._writableState;return"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,i){t.ending=!0,x(e,t),i&&(t.finished?r.nextTick(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,n,i),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=l.destroy,k.prototype._undestroy=l.undestroy,k.prototype._destroy=function(e,t){t(e)}},5850:(e,t,i)=>{"use strict";var n,r=i(4155);function d(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o=i(8610),a=Symbol("lastResolve"),s=Symbol("lastReject"),h=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),c=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[a];if(null!==t){var i=e[c].read();null!==i&&(e[l]=null,e[a]=null,e[s]=null,t(p(i,!1)))}}function g(e){r.nextTick(m,e)}var b=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((d(n={get stream(){return this[c]},next:function(){var e=this,t=this[h];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[c].destroyed)return new Promise((function(t,i){r.nextTick((function(){e[h]?i(e[h]):t(p(void 0,!0))}))}));var i,n=this[l];if(n)i=new Promise(function(e,t){return function(i,n){e.then((function(){t[u]?i(p(void 0,!0)):t[f](i,n)}),n)}}(n,this));else{var d=this[c].read();if(null!==d)return Promise.resolve(p(d,!1));i=new Promise(this[f])}return this[l]=i,i}},Symbol.asyncIterator,(function(){return this})),d(n,"return",(function(){var e=this;return new Promise((function(t,i){e[c].destroy(null,(function(e){e?i(e):t(p(void 0,!0))}))}))})),n),b);e.exports=function(e){var t,i=Object.create(y,(d(t={},c,{value:e,writable:!0}),d(t,a,{value:null,writable:!0}),d(t,s,{value:null,writable:!0}),d(t,h,{value:null,writable:!0}),d(t,u,{value:e._readableState.endEmitted,writable:!0}),d(t,f,{value:function(e,t){var n=i[c].read();n?(i[l]=null,i[a]=null,i[s]=null,e(p(n,!1))):(i[a]=e,i[s]=t)},writable:!0}),t));return i[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[s];return null!==t&&(i[l]=null,i[a]=null,i[s]=null,t(e)),void(i[h]=e)}var n=i[a];null!==n&&(i[l]=null,i[a]=null,i[s]=null,n(p(void 0,!0))),i[u]=!0})),e.on("readable",g.bind(null,i)),i}},7327:(e,t,i)=>{"use strict";function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function d(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=i(8764).Buffer,a=i(1758).inspect,s=a&&a.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,i,h;return t=e,(i=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,i,n,r=o.allocUnsafe(e>>>0),d=this.head,a=0;d;)t=d.data,i=r,n=a,o.prototype.copy.call(t,i,n),a+=d.data.length,d=d.next;return r}},{key:"consume",value:function(e,t){var i;return e<this.head.data.length?(i=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):i=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,i=1,n=t.data;for(e-=n.length;t=t.next;){var r=t.data,d=e>r.length?r.length:e;if(d===r.length?n+=r:n+=r.slice(0,e),0==(e-=d)){d===r.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(d));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),i=this.head,n=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var r=i.data,d=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,d),0==(e-=d)){d===r.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(d));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&d(t.prototype,i),h&&d(t,h),e}()},1195:(e,t,i)=>{"use strict";var n=i(4155);function r(e,t){o(e,t),d(e)}function d(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?i._writableState?i._writableState.errorEmitted?n.nextTick(d,i):(i._writableState.errorEmitted=!0,n.nextTick(r,i,e)):n.nextTick(r,i,e):t?(n.nextTick(d,i),t(e)):n.nextTick(d,i)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var i=e._readableState,n=e._writableState;i&&i.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:(e,t,i)=>{"use strict";var n=i(4281).q.ERR_STREAM_PREMATURE_CLOSE;function r(){}e.exports=function e(t,i,d){if("function"==typeof i)return e(t,null,i);i||(i={}),d=function(e){var t=!1;return function(){if(!t){t=!0;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];e.apply(this,n)}}}(d||r);var o=i.readable||!1!==i.readable&&t.readable,a=i.writable||!1!==i.writable&&t.writable,s=function(){t.writable||u()},h=t._writableState&&t._writableState.finished,u=function(){a=!1,h=!0,o||d.call(t)},l=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,l=!0,a||d.call(t)},c=function(e){d.call(t,e)},p=function(){var e;return o&&!l?(t._readableState&&t._readableState.ended||(e=new n),d.call(t,e)):a&&!h?(t._writableState&&t._writableState.ended||(e=new n),d.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",s),t.on("close",s)):(t.on("complete",u),t.on("abort",p),t.req?m():t.on("request",m)),t.on("end",f),t.on("finish",u),!1!==i.error&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",c),t.removeListener("close",p)}}},5167:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(e,t,i)=>{"use strict";var n;var r=i(4281).q,d=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function s(e,t,r,d){d=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(d);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=i(8610)),n(e,{readable:t,writable:r},(function(e){if(e)return d(e);a=!0,d()}));var s=!1;return function(t){if(!a&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void d(t||new o("pipe"))}}function h(e){e()}function u(e,t){return e.pipe(t)}function l(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,r=l(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new d("streams");var o=t.map((function(e,i){var d=i<t.length-1;return s(e,d,i>0,(function(e){n||(n=e),e&&o.forEach(h),d||(o.forEach(h),r(n))}))}));return t.reduce(u)}},2457:(e,t,i)=>{"use strict";var n=i(4281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,i,r){var d=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,r,i);if(null!=d){if(!isFinite(d)||Math.floor(d)!==d||d<0)throw new n(r?i:"highWaterMark",d);return Math.floor(d)}return e.objectMode?16:16384}}},2503:(e,t,i)=>{e.exports=i(7187).EventEmitter},8473:(e,t,i)=>{(t=e.exports=i(9481)).Stream=t,t.Readable=t,t.Writable=i(4229),t.Duplex=i(6753),t.Transform=i(4605),t.PassThrough=i(2725),t.finished=i(8610),t.pipeline=i(9946)},9785:(e,t,i)=>{"use strict";var n=i(8764).Buffer,r=i(5717),d=i(3349),o=new Array(16),a=[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],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function c(){d.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,i,n,r,d,o,a){return p(e+(t^i^n)+d+o|0,a)+r|0}function g(e,t,i,n,r,d,o,a){return p(e+(t&i|~t&n)+d+o|0,a)+r|0}function b(e,t,i,n,r,d,o,a){return p(e+((t|~i)^n)+d+o|0,a)+r|0}function y(e,t,i,n,r,d,o,a){return p(e+(t&n|i&~n)+d+o|0,a)+r|0}function v(e,t,i,n,r,d,o,a){return p(e+(t^(i|~n))+d+o|0,a)+r|0}r(c,d),c.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,n=0|this._b,r=0|this._c,d=0|this._d,c=0|this._e,w=0|this._a,M=0|this._b,_=0|this._c,S=0|this._d,B=0|this._e,k=0;k<80;k+=1){var C,A;k<16?(C=m(i,n,r,d,c,e[a[k]],l[0],h[k]),A=v(w,M,_,S,B,e[s[k]],f[0],u[k])):k<32?(C=g(i,n,r,d,c,e[a[k]],l[1],h[k]),A=y(w,M,_,S,B,e[s[k]],f[1],u[k])):k<48?(C=b(i,n,r,d,c,e[a[k]],l[2],h[k]),A=b(w,M,_,S,B,e[s[k]],f[2],u[k])):k<64?(C=y(i,n,r,d,c,e[a[k]],l[3],h[k]),A=g(w,M,_,S,B,e[s[k]],f[3],u[k])):(C=v(i,n,r,d,c,e[a[k]],l[4],h[k]),A=m(w,M,_,S,B,e[s[k]],f[4],u[k])),i=c,c=d,d=p(r,10),r=n,n=C,w=B,B=S,S=p(_,10),_=M,M=A}var P=this._b+r+S|0;this._b=this._c+d+B|0,this._c=this._d+c+w|0,this._d=this._e+i+M|0,this._e=this._a+n+_|0,this._a=P},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=c},9509:(e,t,i)=>{var n=i(8764),r=n.Buffer;function d(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(d(n,t),t.Buffer=o),d(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},2399:(e,t,i)=>{"use strict";var n,r=i(4155),d=i(8764),o=d.Buffer,a={};for(n in d)d.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=d[n]);var s=a.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=o[n]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,i){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,i)}),s.alloc||(s.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=o(e);return t&&0!==t.length?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(h){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a},4189:(e,t,i)=>{var n=i(9509).Buffer;function r(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var i=this._block,r=this._blockSize,d=e.length,o=this._len,a=0;a<d;){for(var s=o%r,h=Math.min(d-a,r-s),u=0;u<h;u++)i[s+u]=e[a+u];a+=h,(o+=h)%r==0&&this._update(i)}return this._len+=d,this},r.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,r=(i-n)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var d=this._hash();return e?d.toString(e):d},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=r},9072:(e,t,i)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=i(4448),n.sha1=i(8336),n.sha224=i(8432),n.sha256=i(7499),n.sha384=i(1686),n.sha512=i(7816)},4448:(e,t,i)=>{var n=i(5717),r=i(4189),d=i(9509).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function h(e){return e<<30|e>>>2}function u(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,r=0|this._b,d=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)i[l]=e.readInt32BE(4*l);for(;l<80;++l)i[l]=i[l-3]^i[l-8]^i[l-14]^i[l-16];for(var f=0;f<80;++f){var c=~~(f/20),p=0|((t=n)<<5|t>>>27)+u(c,r,d,a)+s+i[f]+o[c];s=a,a=d,d=h(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=d+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=d.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},8336:(e,t,i)=>{var n=i(5717),r=i(4189),d=i(9509).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function h(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function l(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,r=0|this._b,d=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=(t=i[f-3]^i[f-8]^i[f-14]^i[f-16])<<1|t>>>31;for(var c=0;c<80;++c){var p=~~(c/20),m=h(n)+l(p,r,d,a)+s+i[c]+o[p]|0;s=a,a=d,d=u(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=d+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=d.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},8432:(e,t,i)=>{var n=i(5717),r=i(7499),d=i(4189),o=i(9509).Buffer,a=new Array(64);function s(){this.init(),this._w=a,d.call(this,64,56)}n(s,r),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 e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},7499:(e,t,i)=>{var n=i(5717),r=i(4189),d=i(9509).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function s(){this.init(),this._w=a,r.call(this,64,56)}function h(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function c(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(s,r),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,r=0|this._b,d=0|this._c,a=0|this._d,s=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)i[b]=e.readInt32BE(4*b);for(;b<64;++b)i[b]=0|(((t=i[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[b-7]+c(i[b-15])+i[b-16];for(var y=0;y<64;++y){var v=g+f(s)+h(s,p,m)+o[y]+i[y]|0,w=l(n)+u(n,r,d)|0;g=m,m=p,p=s,s=a+v|0,a=d,d=r,r=n,n=v+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=d+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=d.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},1686:(e,t,i)=>{var n=i(5717),r=i(7816),d=i(4189),o=i(9509).Buffer,a=new Array(160);function s(){this.init(),this._w=a,d.call(this,128,112)}n(s,r),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 e=o.allocUnsafe(48);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+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),e},e.exports=s},7816:(e,t,i)=>{var n=i(5717),r=i(4189),d=i(9509).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function s(){this.init(),this._w=a,r.call(this,128,112)}function h(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}n(s,r),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,r=0|this._ch,d=0|this._dh,a=0|this._eh,s=0|this._fh,y=0|this._gh,v=0|this._hh,w=0|this._al,M=0|this._bl,_=0|this._cl,S=0|this._dl,B=0|this._el,k=0|this._fl,C=0|this._gl,A=0|this._hl,P=0;P<32;P+=2)t[P]=e.readInt32BE(4*P),t[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var E=t[P-30],T=t[P-30+1],x=c(E,T),R=p(T,E),D=m(E=t[P-4],T=t[P-4+1]),L=g(T,E),I=t[P-14],W=t[P-14+1],G=t[P-32],F=t[P-32+1],O=R+W|0,H=x+I+b(O,R)|0;H=(H=H+D+b(O=O+L|0,L)|0)+G+b(O=O+F|0,F)|0,t[P]=H,t[P+1]=O}for(var N=0;N<160;N+=2){H=t[N],O=t[N+1];var z=u(i,n,r),j=u(w,M,_),q=l(i,w),U=l(w,i),K=f(a,B),Z=f(B,a),V=o[N],J=o[N+1],Y=h(a,s,y),$=h(B,k,C),X=A+Z|0,Q=v+K+b(X,A)|0;Q=(Q=(Q=Q+Y+b(X=X+$|0,$)|0)+V+b(X=X+J|0,J)|0)+H+b(X=X+O|0,O)|0;var ee=U+j|0,te=q+z+b(ee,U)|0;v=y,A=C,y=s,C=k,s=a,k=B,a=d+Q+b(B=S+X|0,S)|0,d=r,S=_,r=n,_=M,n=i,M=w,i=Q+te+b(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+M|0,this._cl=this._cl+_|0,this._dl=this._dl+S|0,this._el=this._el+B|0,this._fl=this._fl+k|0,this._gl=this._gl+C|0,this._hl=this._hl+A|0,this._ah=this._ah+i+b(this._al,w)|0,this._bh=this._bh+n+b(this._bl,M)|0,this._ch=this._ch+r+b(this._cl,_)|0,this._dh=this._dh+d+b(this._dl,S)|0,this._eh=this._eh+a+b(this._el,B)|0,this._fh=this._fh+s+b(this._fl,k)|0,this._gh=this._gh+y+b(this._gl,C)|0,this._hh=this._hh+v+b(this._hl,A)|0},s.prototype._hash=function(){var e=d.allocUnsafe(64);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+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),e},e.exports=s},2830:(e,t,i)=>{e.exports=r;var n=i(7187).EventEmitter;function r(){n.call(this)}i(5717)(r,n),r.Readable=i(9481),r.Writable=i(4229),r.Duplex=i(6753),r.Transform=i(4605),r.PassThrough=i(2725),r.finished=i(8610),r.pipeline=i(9946),r.Stream=r,r.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function d(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",d),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",r),e.removeListener("drain",d),i.removeListener("end",a),i.removeListener("close",s),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},2553:(e,t,i)=>{"use strict";var n=i(396).Buffer,r=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=h,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=l,t=3;break;default:return this.write=f,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function u(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}t.s=d,d.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},d.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},d.prototype.text=function(e,t){var i=function(e,t,i){var n=t.length-1;if(n<i)return 0;var r=o(t[n]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if((r=o(t[n]))>=0)return r>0&&(e.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if((r=o(t[n]))>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var n=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},d.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},396:(e,t,i)=>{var n=i(8764),r=n.Buffer;function d(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(d(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),d(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},4927:(e,t,i)=>{function n(e){try{if(!i.g.localStorage)return!1}catch(n){return!1}var t=i.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}},2574:()=>{},3906:()=>{},1758:()=>{}},t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";i.r(n),i.d(n,{get_research_data:()=>u,not_researched:()=>f,not_researched_ids:()=>p,researched:()=>l,researched_ids:()=>c});var e=i(5835),t=i(6486);const r={IronPickaxe:{needed:1,id:1},DirtBlock:{needed:100,id:2},StoneBlock:{needed:100,id:3},IronBroadsword:{needed:1,id:4},Mushroom:{needed:30,id:5},IronShortsword:{needed:1,id:6},IronHammer:{needed:1,id:7},Torch:{needed:100,id:8},Wood:{needed:100,id:9},IronAxe:{needed:1,id:10},IronOre:{needed:100,id:11},CopperOre:{needed:100,id:12},GoldOre:{needed:100,id:13},SilverOre:{needed:100,id:14},CopperWatch:{needed:1,id:15},SilverWatch:{needed:1,id:16},GoldWatch:{needed:1,id:17},DepthMeter:{needed:1,id:18},GoldBar:{needed:25,id:19},CopperBar:{needed:25,id:20},SilverBar:{needed:25,id:21},IronBar:{needed:25,id:22},Gel:{needed:99,id:23},WoodenSword:{needed:1,id:24},WoodenDoor:{needed:1,id:25},StoneWall:{needed:400,id:26},Acorn:{needed:50,id:27},LesserHealingPotion:{needed:30,id:28},LifeCrystal:{needed:10,id:29},DirtWall:{needed:400,id:30},Bottle:{needed:25,id:31},WoodenTable:{needed:1,id:32},Furnace:{needed:1,id:33},WoodenChair:{needed:1,id:34},IronAnvil:{needed:1,id:35},WorkBench:{needed:1,id:36},Goggles:{needed:1,id:37},Lens:{needed:25,id:38},WoodenBow:{needed:1,id:39},WoodenArrow:{needed:99,id:40},FlamingArrow:{needed:99,id:41},Shuriken:{needed:99,id:42},SuspiciousLookingEye:{needed:3,id:43},DemonBow:{needed:1,id:44},WarAxeoftheNight:{needed:1,id:45},LightsBane:{needed:1,id:46},UnholyArrow:{needed:99,id:47},Chest:{needed:1,id:48},BandofRegeneration:{needed:1,id:49},MagicMirror:{needed:1,id:50},JestersArrow:{needed:99,id:51},AngelStatue:{needed:1,id:52},CloudinaBottle:{needed:1,id:53},HermesBoots:{needed:1,id:54},EnchantedBoomerang:{needed:1,id:55},DemoniteOre:{needed:100,id:56},DemoniteBar:{needed:25,id:57},CorruptSeeds:{needed:25,id:59},VileMushroom:{needed:25,id:60},EbonstoneBlock:{needed:100,id:61},GrassSeeds:{needed:25,id:62},Sunflower:{needed:5,id:63},Vilethorn:{needed:1,id:64},Starfury:{needed:1,id:65},PurificationPowder:{needed:99,id:66},VilePowder:{needed:99,id:67},RottenChunk:{needed:25,id:68},WormTooth:{needed:25,id:69},WormFood:{needed:3,id:70},CopperCoin:{needed:100,id:71},SilverCoin:{needed:100,id:72},GoldCoin:{needed:100,id:73},PlatinumCoin:{needed:100,id:74},FallenStar:{needed:50,id:75},CopperGreaves:{needed:1,id:76},IronGreaves:{needed:1,id:77},SilverGreaves:{needed:1,id:78},GoldGreaves:{needed:1,id:79},CopperChainmail:{needed:1,id:80},IronChainmail:{needed:1,id:81},SilverChainmail:{needed:1,id:82},GoldChainmail:{needed:1,id:83},GrapplingHook:{needed:1,id:84},Chain:{needed:100,id:85},ShadowScale:{needed:25,id:86},PiggyBank:{needed:1,id:87},MiningHelmet:{needed:1,id:88},CopperHelmet:{needed:1,id:89},IronHelmet:{needed:1,id:90},SilverHelmet:{needed:1,id:91},GoldHelmet:{needed:1,id:92},WoodWall:{needed:400,id:93},WoodPlatform:{needed:200,id:94},FlintlockPistol:{needed:1,id:95},Musket:{needed:1,id:96},MusketBall:{needed:99,id:97},Minishark:{needed:1,id:98},IronBow:{needed:1,id:99},ShadowGreaves:{needed:1,id:100},ShadowScalemail:{needed:1,id:101},ShadowHelmet:{needed:1,id:102},NightmarePickaxe:{needed:1,id:103},TheBreaker:{needed:1,id:104},Candle:{needed:1,id:105},CopperChandelier:{needed:1,id:106},SilverChandelier:{needed:1,id:107},GoldChandelier:{needed:1,id:108},ManaCrystal:{needed:10,id:109},LesserManaPotion:{needed:30,id:110},BandofStarpower:{needed:1,id:111},FlowerofFire:{needed:1,id:112},MagicMissile:{needed:1,id:113},DirtRod:{needed:1,id:114},ShadowOrb:{needed:1,id:115},Meteorite:{needed:100,id:116},MeteoriteBar:{needed:25,id:117},Hook:{needed:1,id:118},Flamarang:{needed:1,id:119},MoltenFury:{needed:1,id:120},FieryGreatsword:{needed:1,id:121},MoltenPickaxe:{needed:1,id:122},MeteorHelmet:{needed:1,id:123},MeteorSuit:{needed:1,id:124},MeteorLeggings:{needed:1,id:125},BottledWater:{needed:30,id:126},SpaceGun:{needed:1,id:127},RocketBoots:{needed:1,id:128},GrayBrick:{needed:100,id:129},GrayBrickWall:{needed:400,id:130},RedBrick:{needed:100,id:131},RedBrickWall:{needed:400,id:132},ClayBlock:{needed:100,id:133},BlueBrick:{needed:100,id:134},BlueBrickWall:{needed:400,id:135},ChainLantern:{needed:1,id:136},GreenBrick:{needed:100,id:137},GreenBrickWall:{needed:400,id:138},PinkBrick:{needed:100,id:139},PinkBrickWall:{needed:400,id:140},GoldBrick:{needed:100,id:141},GoldBrickWall:{needed:400,id:142},SilverBrick:{needed:100,id:143},SilverBrickWall:{needed:400,id:144},CopperBrick:{needed:100,id:145},CopperBrickWall:{needed:400,id:146},Spike:{needed:100,id:147},WaterCandle:{needed:1,id:148},Book:{needed:25,id:149},Cobweb:{needed:50,id:150},NecroHelmet:{needed:1,id:151},NecroBreastplate:{needed:1,id:152},NecroGreaves:{needed:1,id:153},Bone:{needed:99,id:154},Muramasa:{needed:1,id:155},CobaltShield:{needed:1,id:156},AquaScepter:{needed:1,id:157},LuckyHorseshoe:{needed:1,id:158},ShinyRedBalloon:{needed:1,id:159},Harpoon:{needed:1,id:160},SpikyBall:{needed:99,id:161},BallOHurt:{needed:1,id:162},BlueMoon:{needed:1,id:163},Handgun:{needed:1,id:164},WaterBolt:{needed:1,id:165},Bomb:{needed:99,id:166},Dynamite:{needed:99,id:167},Grenade:{needed:99,id:168},SandBlock:{needed:100,id:169},Glass:{needed:100,id:170},Sign:{needed:1,id:171},AshBlock:{needed:100,id:172},Obsidian:{needed:100,id:173},Hellstone:{needed:100,id:174},HellstoneBar:{needed:25,id:175},MudBlock:{needed:100,id:176},Sapphire:{needed:15,id:177},Ruby:{needed:15,id:178},Emerald:{needed:15,id:179},Topaz:{needed:15,id:180},Amethyst:{needed:15,id:181},Diamond:{needed:15,id:182},GlowingMushroom:{needed:100,id:183},IvyWhip:{needed:1,id:185},BreathingReed:{needed:1,id:186},Flipper:{needed:1,id:187},HealingPotion:{needed:30,id:188},ManaPotion:{needed:30,id:189},BladeofGrass:{needed:1,id:190},ThornChakram:{needed:1,id:191},ObsidianBrick:{needed:100,id:192},ObsidianSkull:{needed:1,id:193},MushroomGrassSeeds:{needed:25,id:194},JungleGrassSeeds:{needed:25,id:195},WoodenHammer:{needed:1,id:196},StarCannon:{needed:1,id:197},BluePhaseblade:{needed:1,id:198},RedPhaseblade:{needed:1,id:199},GreenPhaseblade:{needed:1,id:200},PurplePhaseblade:{needed:1,id:201},WhitePhaseblade:{needed:1,id:202},YellowPhaseblade:{needed:1,id:203},MeteorHamaxe:{needed:1,id:204},EmptyBucket:{needed:1,id:205},WaterBucket:{needed:1,id:206},LavaBucket:{needed:1,id:207},JungleRose:{needed:1,id:208},Stinger:{needed:25,id:209},Vine:{needed:5,id:210},FeralClaws:{needed:1,id:211},AnkletoftheWind:{needed:1,id:212},StaffofRegrowth:{needed:1,id:213},HellstoneBrick:{needed:100,id:214},WhoopieCushion:{needed:1,id:215},Shackle:{needed:1,id:216},MoltenHamaxe:{needed:1,id:217},Flamelash:{needed:1,id:218},PhoenixBlaster:{needed:1,id:219},Sunfury:{needed:1,id:220},Hellforge:{needed:1,id:221},ClayPot:{needed:1,id:222},NaturesGift:{needed:1,id:223},Bed:{needed:1,id:224},Silk:{needed:25,id:225},LesserRestorationPotion:{needed:30,id:226},RestorationPotion:{needed:30,id:227},JungleHat:{needed:1,id:228},JungleShirt:{needed:1,id:229},JunglePants:{needed:1,id:230},MoltenHelmet:{needed:1,id:231},MoltenBreastplate:{needed:1,id:232},MoltenGreaves:{needed:1,id:233},MeteorShot:{needed:99,id:234},StickyBomb:{needed:99,id:235},BlackLens:{needed:1,id:236},Sunglasses:{needed:1,id:237},WizardHat:{needed:1,id:238},TopHat:{needed:1,id:239},TuxedoShirt:{needed:1,id:240},TuxedoPants:{needed:1,id:241},SummerHat:{needed:1,id:242},BunnyHood:{needed:1,id:243},PlumbersHat:{needed:1,id:244},PlumbersShirt:{needed:1,id:245},PlumbersPants:{needed:1,id:246},HerosHat:{needed:1,id:247},HerosShirt:{needed:1,id:248},HerosPants:{needed:1,id:249},FishBowl:{needed:1,id:250},ArchaeologistsHat:{needed:1,id:251},ArchaeologistsJacket:{needed:1,id:252},ArchaeologistsPants:{needed:1,id:253},BlackThread:{needed:5,id:254},GreenThread:{needed:5,id:255},NinjaHood:{needed:1,id:256},NinjaShirt:{needed:1,id:257},NinjaPants:{needed:1,id:258},Leather:{needed:5,id:259},RedHat:{needed:1,id:260},Goldfish:{needed:5,id:261},Robe:{needed:1,id:262},RobotHat:{needed:1,id:263},GoldCrown:{needed:1,id:264},HellfireArrow:{needed:99,id:265},Sandgun:{needed:1,id:266},GuideVoodooDoll:{needed:1,id:267},DivingHelmet:{needed:1,id:268},FamiliarShirt:{needed:1,id:269},FamiliarPants:{needed:1,id:270},FamiliarWig:{needed:1,id:271},DemonScythe:{needed:1,id:272},NightsEdge:{needed:1,id:273},DarkLance:{needed:1,id:274},Coral:{needed:25,id:275},Cactus:{needed:100,id:276},Trident:{needed:1,id:277},SilverBullet:{needed:99,id:278},ThrowingKnife:{needed:99,id:279},Spear:{needed:1,id:280},Blowpipe:{needed:1,id:281},Glowstick:{needed:100,id:282},Seed:{needed:99,id:283},WoodenBoomerang:{needed:1,id:284},Aglet:{needed:1,id:285},StickyGlowstick:{needed:100,id:286},PoisonedKnife:{needed:99,id:287},ObsidianSkinPotion:{needed:20,id:288},RegenerationPotion:{needed:20,id:289},SwiftnessPotion:{needed:20,id:290},GillsPotion:{needed:20,id:291},IronskinPotion:{needed:20,id:292},ManaRegenerationPotion:{needed:20,id:293},MagicPowerPotion:{needed:20,id:294},FeatherfallPotion:{needed:20,id:295},SpelunkerPotion:{needed:20,id:296},InvisibilityPotion:{needed:20,id:297},ShinePotion:{needed:20,id:298},NightOwlPotion:{needed:20,id:299},BattlePotion:{needed:20,id:300},ThornsPotion:{needed:20,id:301},WaterWalkingPotion:{needed:20,id:302},ArcheryPotion:{needed:20,id:303},HunterPotion:{needed:20,id:304},GravitationPotion:{needed:20,id:305},GoldChest:{needed:1,id:306},DaybloomSeeds:{needed:25,id:307},MoonglowSeeds:{needed:25,id:308},BlinkrootSeeds:{needed:25,id:309},DeathweedSeeds:{needed:25,id:310},WaterleafSeeds:{needed:25,id:311},FireblossomSeeds:{needed:25,id:312},Daybloom:{needed:25,id:313},Moonglow:{needed:25,id:314},Blinkroot:{needed:25,id:315},Deathweed:{needed:25,id:316},Waterleaf:{needed:25,id:317},Fireblossom:{needed:25,id:318},SharkFin:{needed:25,id:319},Feather:{needed:25,id:320},Tombstone:{needed:2,id:321},MimeMask:{needed:1,id:322},AntlionMandible:{needed:5,id:323},IllegalGunParts:{needed:1,id:324},TheDoctorsShirt:{needed:1,id:325},TheDoctorsPants:{needed:1,id:326},GoldenKey:{needed:3,id:327},ShadowChest:{needed:1,id:328},ShadowKey:{needed:1,id:329},ObsidianBrickWall:{needed:400,id:330},JungleSpores:{needed:25,id:331},Loom:{needed:1,id:332},Piano:{needed:1,id:333},Dresser:{needed:1,id:334},Bench:{needed:1,id:335},Bathtub:{needed:1,id:336},RedBanner:{needed:1,id:337},GreenBanner:{needed:1,id:338},BlueBanner:{needed:1,id:339},YellowBanner:{needed:1,id:340},LampPost:{needed:1,id:341},TikiTorch:{needed:1,id:342},Barrel:{needed:1,id:343},ChineseLantern:{needed:1,id:344},CookingPot:{needed:1,id:345},Safe:{needed:1,id:346},SkullLantern:{needed:1,id:347},TrashCan:{needed:1,id:348},Candelabra:{needed:1,id:349},PinkVase:{needed:1,id:350},Mug:{needed:1,id:351},Keg:{needed:1,id:352},Ale:{needed:20,id:353},Bookcase:{needed:1,id:354},Throne:{needed:1,id:355},Bowl:{needed:1,id:356},BowlofSoup:{needed:10,id:357},Toilet:{needed:1,id:358},GrandfatherClock:{needed:1,id:359},ArmorStatue:{needed:1,id:360},GoblinBattleStandard:{needed:3,id:361},TatteredCloth:{needed:25,id:362},Sawmill:{needed:1,id:363},CobaltOre:{needed:100,id:364},MythrilOre:{needed:100,id:365},AdamantiteOre:{needed:100,id:366},Pwnhammer:{needed:1,id:367},Excalibur:{needed:1,id:368},HallowedSeeds:{needed:25,id:369},EbonsandBlock:{needed:100,id:370},CobaltHat:{needed:1,id:371},CobaltHelmet:{needed:1,id:372},CobaltMask:{needed:1,id:373},CobaltBreastplate:{needed:1,id:374},CobaltLeggings:{needed:1,id:375},MythrilHood:{needed:1,id:376},MythrilHelmet:{needed:1,id:377},MythrilHat:{needed:1,id:378},MythrilChainmail:{needed:1,id:379},MythrilGreaves:{needed:1,id:380},CobaltBar:{needed:25,id:381},MythrilBar:{needed:25,id:382},CobaltChainsaw:{needed:1,id:383},MythrilChainsaw:{needed:1,id:384},CobaltDrill:{needed:1,id:385},MythrilDrill:{needed:1,id:386},AdamantiteChainsaw:{needed:1,id:387},AdamantiteDrill:{needed:1,id:388},DaoofPow:{needed:1,id:389},MythrilHalberd:{needed:1,id:390},AdamantiteBar:{needed:25,id:391},GlassWall:{needed:400,id:392},Compass:{needed:1,id:393},DivingGear:{needed:1,id:394},GPS:{needed:1,id:395},ObsidianHorseshoe:{needed:1,id:396},ObsidianShield:{needed:1,id:397},TinkerersWorkshop:{needed:1,id:398},CloudinaBalloon:{needed:1,id:399},AdamantiteHeadgear:{needed:1,id:400},AdamantiteHelmet:{needed:1,id:401},AdamantiteMask:{needed:1,id:402},AdamantiteBreastplate:{needed:1,id:403},AdamantiteLeggings:{needed:1,id:404},SpectreBoots:{needed:1,id:405},AdamantiteGlaive:{needed:1,id:406},Toolbelt:{needed:1,id:407},PearlsandBlock:{needed:100,id:408},PearlstoneBlock:{needed:100,id:409},MiningShirt:{needed:1,id:410},MiningPants:{needed:1,id:411},PearlstoneBrick:{needed:100,id:412},IridescentBrick:{needed:100,id:413},MudstoneBlock:{needed:100,id:414},CobaltBrick:{needed:100,id:415},MythrilBrick:{needed:100,id:416},PearlstoneBrickWall:{needed:400,id:417},IridescentBrickWall:{needed:400,id:418},MudstoneBrickWall:{needed:400,id:419},CobaltBrickWall:{needed:400,id:420},MythrilBrickWall:{needed:400,id:421},HolyWater:{needed:99,id:422},UnholyWater:{needed:99,id:423},SiltBlock:{needed:200,id:424},FairyBell:{needed:1,id:425},BreakerBlade:{needed:1,id:426},BlueTorch:{needed:100,id:427},RedTorch:{needed:100,id:428},GreenTorch:{needed:100,id:429},PurpleTorch:{needed:100,id:430},WhiteTorch:{needed:100,id:431},YellowTorch:{needed:100,id:432},DemonTorch:{needed:100,id:433},ClockworkAssaultRifle:{needed:1,id:434},CobaltRepeater:{needed:1,id:435},MythrilRepeater:{needed:1,id:436},DualHook:{needed:1,id:437},StarStatue:{needed:1,id:438},SwordStatue:{needed:1,id:439},SlimeStatue:{needed:1,id:440},GoblinStatue:{needed:1,id:441},ShieldStatue:{needed:1,id:442},BatStatue:{needed:1,id:443},FishStatue:{needed:1,id:444},BunnyStatue:{needed:1,id:445},SkeletonStatue:{needed:1,id:446},ReaperStatue:{needed:1,id:447},WomanStatue:{needed:1,id:448},ImpStatue:{needed:1,id:449},GargoyleStatue:{needed:1,id:450},GloomStatue:{needed:1,id:451},HornetStatue:{needed:1,id:452},BombStatue:{needed:1,id:453},CrabStatue:{needed:1,id:454},HammerStatue:{needed:1,id:455},PotionStatue:{needed:1,id:456},SpearStatue:{needed:1,id:457},CrossStatue:{needed:1,id:458},JellyfishStatue:{needed:1,id:459},BowStatue:{needed:1,id:460},BoomerangStatue:{needed:1,id:461},BootStatue:{needed:1,id:462},ChestStatue:{needed:1,id:463},BirdStatue:{needed:1,id:464},AxeStatue:{needed:1,id:465},CorruptStatue:{needed:1,id:466},TreeStatue:{needed:1,id:467},AnvilStatue:{needed:1,id:468},PickaxeStatue:{needed:1,id:469},MushroomStatue:{needed:1,id:470},EyeballStatue:{needed:1,id:471},PillarStatue:{needed:1,id:472},HeartStatue:{needed:1,id:473},PotStatue:{needed:1,id:474},SunflowerStatue:{needed:1,id:475},KingStatue:{needed:1,id:476},QueenStatue:{needed:1,id:477},PiranhaStatue:{needed:1,id:478},PlankedWall:{needed:400,id:479},WoodenBeam:{needed:50,id:480},AdamantiteRepeater:{needed:1,id:481},AdamantiteSword:{needed:1,id:482},CobaltSword:{needed:1,id:483},MythrilSword:{needed:1,id:484},MoonCharm:{needed:1,id:485},Ruler:{needed:1,id:486},CrystalBall:{needed:1,id:487},DiscoBall:{needed:1,id:488},SorcererEmblem:{needed:1,id:489},WarriorEmblem:{needed:1,id:490},RangerEmblem:{needed:1,id:491},DemonWings:{needed:1,id:492},AngelWings:{needed:1,id:493},MagicalHarp:{needed:1,id:494},RainbowRod:{needed:1,id:495},IceRod:{needed:1,id:496},NeptunesShell:{needed:1,id:497},Mannequin:{needed:1,id:498},GreaterHealingPotion:{needed:30,id:499},GreaterManaPotion:{needed:30,id:500},PixieDust:{needed:25,id:501},CrystalShard:{needed:25,id:502},ClownHat:{needed:1,id:503},ClownShirt:{needed:1,id:504},ClownPants:{needed:1,id:505},Flamethrower:{needed:1,id:506},Bell:{needed:1,id:507},Harp:{needed:1,id:508},Wrench:{needed:1,id:509},WireCutter:{needed:1,id:510},ActiveStoneBlock:{needed:100,id:511},InactiveStoneBlock:{needed:100,id:512},Lever:{needed:5,id:513},LaserRifle:{needed:1,id:514},CrystalBullet:{needed:99,id:515},HolyArrow:{needed:99,id:516},MagicDagger:{needed:1,id:517},CrystalStorm:{needed:1,id:518},CursedFlames:{needed:1,id:519},SoulofLight:{needed:25,id:520},SoulofNight:{needed:25,id:521},CursedFlame:{needed:25,id:522},CursedTorch:{needed:100,id:523},AdamantiteForge:{needed:1,id:524},MythrilAnvil:{needed:1,id:525},UnicornHorn:{needed:5,id:526},DarkShard:{needed:1,id:527},LightShard:{needed:1,id:528},RedPressurePlate:{needed:5,id:529},Wire:{needed:100,id:530},SpellTome:{needed:1,id:531},StarCloak:{needed:1,id:532},Megashark:{needed:1,id:533},Shotgun:{needed:1,id:534},PhilosophersStone:{needed:1,id:535},TitanGlove:{needed:1,id:536},CobaltNaginata:{needed:1,id:537},Switch:{needed:5,id:538},DartTrap:{needed:5,id:539},Boulder:{needed:5,id:540},GreenPressurePlate:{needed:5,id:541},GrayPressurePlate:{needed:5,id:542},BrownPressurePlate:{needed:5,id:543},MechanicalEye:{needed:3,id:544},CursedArrow:{needed:99,id:545},CursedBullet:{needed:99,id:546},SoulofFright:{needed:25,id:547},SoulofMight:{needed:25,id:548},SoulofSight:{needed:25,id:549},Gungnir:{needed:1,id:550},HallowedPlateMail:{needed:1,id:551},HallowedGreaves:{needed:1,id:552},HallowedHelmet:{needed:1,id:553},CrossNecklace:{needed:1,id:554},ManaFlower:{needed:1,id:555},MechanicalWorm:{needed:3,id:556},MechanicalSkull:{needed:3,id:557},HallowedHeadgear:{needed:1,id:558},HallowedMask:{needed:1,id:559},SlimeCrown:{needed:3,id:560},LightDisc:{needed:1,id:561},MusicBoxOverworldDay:{needed:1,id:562},MusicBoxEerie:{needed:1,id:563},MusicBoxNight:{needed:1,id:564},MusicBoxTitle:{needed:1,id:565},MusicBoxUnderground:{needed:1,id:566},MusicBoxBoss1:{needed:1,id:567},MusicBoxJungle:{needed:1,id:568},MusicBoxCorruption:{needed:1,id:569},MusicBoxUndergroundCorruption:{needed:1,id:570},MusicBoxTheHallow:{needed:1,id:571},MusicBoxBoss2:{needed:1,id:572},MusicBoxUndergroundHallow:{needed:1,id:573},MusicBoxBoss3:{needed:1,id:574},SoulofFlight:{needed:25,id:575},MusicBox:{needed:1,id:576},DemoniteBrick:{needed:100,id:577},HallowedRepeater:{needed:1,id:578},Drax:{needed:1,id:579},Explosives:{needed:5,id:580},InletPump:{needed:1,id:581},OutletPump:{needed:1,id:582},Timer1Second:{needed:1,id:583},Timer3Second:{needed:1,id:584},Timer5Second:{needed:1,id:585},CandyCaneBlock:{needed:100,id:586},CandyCaneWall:{needed:400,id:587},SantaHat:{needed:1,id:588},SantaShirt:{needed:1,id:589},SantaPants:{needed:1,id:590},GreenCandyCaneBlock:{needed:100,id:591},GreenCandyCaneWall:{needed:400,id:592},SnowBlock:{needed:100,id:593},SnowBrick:{needed:100,id:594},SnowBrickWall:{needed:400,id:595},BlueLight:{needed:25,id:596},RedLight:{needed:25,id:597},GreenLight:{needed:25,id:598},SnowGlobe:{needed:3,id:602},Carrot:{needed:1,id:603},AdamantiteBeam:{needed:100,id:604},AdamantiteBeamWall:{needed:400,id:605},DemoniteBrickWall:{needed:400,id:606},SandstoneBrick:{needed:100,id:607},SandstoneBrickWall:{needed:400,id:608},EbonstoneBrick:{needed:100,id:609},EbonstoneBrickWall:{needed:400,id:610},RedStucco:{needed:100,id:611},YellowStucco:{needed:100,id:612},GreenStucco:{needed:100,id:613},GrayStucco:{needed:100,id:614},RedStuccoWall:{needed:400,id:615},YellowStuccoWall:{needed:400,id:616},GreenStuccoWall:{needed:400,id:617},GrayStuccoWall:{needed:400,id:618},Ebonwood:{needed:100,id:619},RichMahogany:{needed:100,id:620},Pearlwood:{needed:100,id:621},EbonwoodWall:{needed:400,id:622},RichMahoganyWall:{needed:400,id:623},PearlwoodWall:{needed:400,id:624},EbonwoodChest:{needed:1,id:625},RichMahoganyChest:{needed:1,id:626},PearlwoodChest:{needed:1,id:627},EbonwoodChair:{needed:1,id:628},RichMahoganyChair:{needed:1,id:629},PearlwoodChair:{needed:1,id:630},EbonwoodPlatform:{needed:200,id:631},RichMahoganyPlatform:{needed:200,id:632},PearlwoodPlatform:{needed:200,id:633},BonePlatform:{needed:200,id:634},EbonwoodWorkBench:{needed:1,id:635},RichMahoganyWorkBench:{needed:1,id:636},PearlwoodWorkBench:{needed:1,id:637},EbonwoodTable:{needed:1,id:638},RichMahoganyTable:{needed:1,id:639},PearlwoodTable:{needed:1,id:640},EbonwoodPiano:{needed:1,id:641},RichMahoganyPiano:{needed:1,id:642},PearlwoodPiano:{needed:1,id:643},EbonwoodBed:{needed:1,id:644},RichMahoganyBed:{needed:1,id:645},PearlwoodBed:{needed:1,id:646},EbonwoodDresser:{needed:1,id:647},RichMahoganyDresser:{needed:1,id:648},PearlwoodDresser:{needed:1,id:649},EbonwoodDoor:{needed:1,id:650},RichMahoganyDoor:{needed:1,id:651},PearlwoodDoor:{needed:1,id:652},EbonwoodSword:{needed:1,id:653},EbonwoodHammer:{needed:1,id:654},EbonwoodBow:{needed:1,id:655},RichMahoganySword:{needed:1,id:656},RichMahoganyHammer:{needed:1,id:657},RichMahoganyBow:{needed:1,id:658},PearlwoodSword:{needed:1,id:659},PearlwoodHammer:{needed:1,id:660},PearlwoodBow:{needed:1,id:661},RainbowBrick:{needed:100,id:662},RainbowBrickWall:{needed:400,id:663},IceBlock:{needed:100,id:664},RedsWings:{needed:1,id:665},RedsHelmet:{needed:1,id:666},RedsBreastplate:{needed:1,id:667},RedsLeggings:{needed:1,id:668},Fish:{needed:1,id:669},IceBoomerang:{needed:1,id:670},Keybrand:{needed:1,id:671},Cutlass:{needed:1,id:672},BorealWoodWorkBench:{needed:1,id:673},TrueExcalibur:{needed:1,id:674},TrueNightsEdge:{needed:1,id:675},Frostbrand:{needed:1,id:676},BorealWoodTable:{needed:1,id:677},RedPotion:{needed:10,id:678},TacticalShotgun:{needed:1,id:679},IvyChest:{needed:1,id:680},IceChest:{needed:1,id:681},Marrow:{needed:1,id:682},UnholyTrident:{needed:1,id:683},FrostHelmet:{needed:1,id:684},FrostBreastplate:{needed:1,id:685},FrostLeggings:{needed:1,id:686},TinHelmet:{needed:1,id:687},TinChainmail:{needed:1,id:688},TinGreaves:{needed:1,id:689},LeadHelmet:{needed:1,id:690},LeadChainmail:{needed:1,id:691},LeadGreaves:{needed:1,id:692},TungstenHelmet:{needed:1,id:693},TungstenChainmail:{needed:1,id:694},TungstenGreaves:{needed:1,id:695},PlatinumHelmet:{needed:1,id:696},PlatinumChainmail:{needed:1,id:697},PlatinumGreaves:{needed:1,id:698},TinOre:{needed:100,id:699},LeadOre:{needed:100,id:700},TungstenOre:{needed:100,id:701},PlatinumOre:{needed:100,id:702},TinBar:{needed:25,id:703},LeadBar:{needed:25,id:704},TungstenBar:{needed:25,id:705},PlatinumBar:{needed:25,id:706},TinWatch:{needed:1,id:707},TungstenWatch:{needed:1,id:708},PlatinumWatch:{needed:1,id:709},TinChandelier:{needed:1,id:710},TungstenChandelier:{needed:1,id:711},PlatinumChandelier:{needed:1,id:712},PlatinumCandle:{needed:1,id:713},PlatinumCandelabra:{needed:1,id:714},PlatinumCrown:{needed:1,id:715},LeadAnvil:{needed:1,id:716},TinBrick:{needed:100,id:717},TungstenBrick:{needed:100,id:718},PlatinumBrick:{needed:100,id:719},TinBrickWall:{needed:400,id:720},TungstenBrickWall:{needed:400,id:721},PlatinumBrickWall:{needed:400,id:722},BeamSword:{needed:1,id:723},IceBlade:{needed:1,id:724},IceBow:{needed:1,id:725},FrostStaff:{needed:1,id:726},WoodHelmet:{needed:1,id:727},WoodBreastplate:{needed:1,id:728},WoodGreaves:{needed:1,id:729},EbonwoodHelmet:{needed:1,id:730},EbonwoodBreastplate:{needed:1,id:731},EbonwoodGreaves:{needed:1,id:732},RichMahoganyHelmet:{needed:1,id:733},RichMahoganyBreastplate:{needed:1,id:734},RichMahoganyGreaves:{needed:1,id:735},PearlwoodHelmet:{needed:1,id:736},PearlwoodBreastplate:{needed:1,id:737},PearlwoodGreaves:{needed:1,id:738},AmethystStaff:{needed:1,id:739},TopazStaff:{needed:1,id:740},SapphireStaff:{needed:1,id:741},EmeraldStaff:{needed:1,id:742},RubyStaff:{needed:1,id:743},DiamondStaff:{needed:1,id:744},GrassWall:{needed:400,id:745},JungleWall:{needed:400,id:746},FlowerWall:{needed:400,id:747},Jetpack:{needed:1,id:748},ButterflyWings:{needed:1,id:749},CactusWall:{needed:400,id:750},Cloud:{needed:100,id:751},CloudWall:{needed:400,id:752},Seaweed:{needed:1,id:753},RuneHat:{needed:1,id:754},RuneRobe:{needed:1,id:755},MushroomSpear:{needed:1,id:756},TerraBlade:{needed:1,id:757},GrenadeLauncher:{needed:1,id:758},RocketLauncher:{needed:1,id:759},ProximityMineLauncher:{needed:1,id:760},FairyWings:{needed:1,id:761},SlimeBlock:{needed:100,id:762},FleshBlock:{needed:100,id:763},MushroomWall:{needed:400,id:764},RainCloud:{needed:100,id:765},BoneBlock:{needed:100,id:766},FrozenSlimeBlock:{needed:100,id:767},BoneBlockWall:{needed:400,id:768},SlimeBlockWall:{needed:400,id:769},FleshBlockWall:{needed:400,id:770},RocketI:{needed:99,id:771},RocketII:{needed:99,id:772},RocketIII:{needed:99,id:773},RocketIV:{needed:99,id:774},AsphaltBlock:{needed:100,id:775},CobaltPickaxe:{needed:1,id:776},MythrilPickaxe:{needed:1,id:777},AdamantitePickaxe:{needed:1,id:778},Clentaminator:{needed:1,id:779},GreenSolution:{needed:99,id:780},BlueSolution:{needed:99,id:781},PurpleSolution:{needed:99,id:782},DarkBlueSolution:{needed:99,id:783},RedSolution:{needed:99,id:784},HarpyWings:{needed:1,id:785},BoneWings:{needed:1,id:786},Hammush:{needed:1,id:787},NettleBurst:{needed:1,id:788},AnkhBanner:{needed:1,id:789},SnakeBanner:{needed:1,id:790},OmegaBanner:{needed:1,id:791},CrimsonHelmet:{needed:1,id:792},CrimsonScalemail:{needed:1,id:793},CrimsonGreaves:{needed:1,id:794},BloodButcherer:{needed:1,id:795},TendonBow:{needed:1,id:796},FleshGrinder:{needed:1,id:797},DeathbringerPickaxe:{needed:1,id:798},BloodLustCluster:{needed:1,id:799},TheUndertaker:{needed:1,id:800},TheMeatball:{needed:1,id:801},TheRottedFork:{needed:1,id:802},EskimoHood:{needed:1,id:803},EskimoCoat:{needed:1,id:804},EskimoPants:{needed:1,id:805},LivingWoodChair:{needed:1,id:806},CactusChair:{needed:1,id:807},BoneChair:{needed:1,id:808},FleshChair:{needed:1,id:809},MushroomChair:{needed:1,id:810},BoneWorkBench:{needed:1,id:811},CactusWorkBench:{needed:1,id:812},FleshWorkBench:{needed:1,id:813},MushroomWorkBench:{needed:1,id:814},SlimeWorkBench:{needed:1,id:815},CactusDoor:{needed:1,id:816},FleshDoor:{needed:1,id:817},MushroomDoor:{needed:1,id:818},LivingWoodDoor:{needed:1,id:819},BoneDoor:{needed:1,id:820},FlameWings:{needed:1,id:821},FrozenWings:{needed:1,id:822},GhostWings:{needed:1,id:823},SunplateBlock:{needed:100,id:824},DiscWall:{needed:400,id:825},SkywareChair:{needed:1,id:826},BoneTable:{needed:1,id:827},FleshTable:{needed:1,id:828},LivingWoodTable:{needed:1,id:829},SkywareTable:{needed:1,id:830},LivingWoodChest:{needed:1,id:831},LivingWoodWand:{needed:1,id:832},PurpleIceBlock:{needed:100,id:833},PinkIceBlock:{needed:100,id:834},RedIceBlock:{needed:100,id:835},CrimstoneBlock:{needed:100,id:836},SkywareDoor:{needed:1,id:837},SkywareChest:{needed:1,id:838},SteampunkHat:{needed:1,id:839},SteampunkShirt:{needed:1,id:840},SteampunkPants:{needed:1,id:841},BeeHat:{needed:1,id:842},BeeShirt:{needed:1,id:843},BeePants:{needed:1,id:844},WorldBanner:{needed:1,id:845},SunBanner:{needed:1,id:846},GravityBanner:{needed:1,id:847},PharaohsMask:{needed:1,id:848},Actuator:{needed:50,id:849},BlueWrench:{needed:1,id:850},GreenWrench:{needed:1,id:851},BluePressurePlate:{needed:5,id:852},YellowPressurePlate:{needed:5,id:853},DiscountCard:{needed:1,id:854},LuckyCoin:{needed:1,id:855},UnicornonaStick:{needed:1,id:856},SandstorminaBottle:{needed:1,id:857},BorealWoodSofa:{needed:1,id:858},BeachBall:{needed:1,id:859},CharmofMyths:{needed:1,id:860},MoonShell:{needed:1,id:861},StarVeil:{needed:1,id:862},WaterWalkingBoots:{needed:1,id:863},Tiara:{needed:1,id:864},PrincessDress:{needed:1,id:865},PharaohsRobe:{needed:1,id:866},GreenCap:{needed:1,id:867},MushroomCap:{needed:1,id:868},TamOShanter:{needed:1,id:869},MummyMask:{needed:1,id:870},MummyShirt:{needed:1,id:871},MummyPants:{needed:1,id:872},CowboyHat:{needed:1,id:873},CowboyJacket:{needed:1,id:874},CowboyPants:{needed:1,id:875},PirateHat:{needed:1,id:876},PirateShirt:{needed:1,id:877},PiratePants:{needed:1,id:878},VikingHelmet:{needed:1,id:879},CrimtaneOre:{needed:100,id:880},CactusSword:{needed:1,id:881},CactusPickaxe:{needed:1,id:882},IceBrick:{needed:100,id:883},IceBrickWall:{needed:400,id:884},AdhesiveBandage:{needed:1,id:885},ArmorPolish:{needed:1,id:886},Bezoar:{needed:1,id:887},Blindfold:{needed:1,id:888},FastClock:{needed:1,id:889},Megaphone:{needed:1,id:890},Nazar:{needed:1,id:891},Vitamins:{needed:1,id:892},TrifoldMap:{needed:1,id:893},CactusHelmet:{needed:1,id:894},CactusBreastplate:{needed:1,id:895},CactusLeggings:{needed:1,id:896},PowerGlove:{needed:1,id:897},LightningBoots:{needed:1,id:898},SunStone:{needed:1,id:899},MoonStone:{needed:1,id:900},ArmorBracing:{needed:1,id:901},MedicatedBandage:{needed:1,id:902},ThePlan:{needed:1,id:903},CountercurseMantra:{needed:1,id:904},CoinGun:{needed:1,id:905},LavaCharm:{needed:1,id:906},ObsidianWaterWalkingBoots:{needed:1,id:907},LavaWaders:{needed:1,id:908},PureWaterFountain:{needed:1,id:909},DesertWaterFountain:{needed:1,id:910},Shadewood:{needed:100,id:911},ShadewoodDoor:{needed:1,id:912},ShadewoodPlatform:{needed:200,id:913},ShadewoodChest:{needed:1,id:914},ShadewoodChair:{needed:1,id:915},ShadewoodWorkBench:{needed:1,id:916},ShadewoodTable:{needed:1,id:917},ShadewoodDresser:{needed:1,id:918},ShadewoodPiano:{needed:1,id:919},ShadewoodBed:{needed:1,id:920},ShadewoodSword:{needed:1,id:921},ShadewoodHammer:{needed:1,id:922},ShadewoodBow:{needed:1,id:923},ShadewoodHelmet:{needed:1,id:924},ShadewoodBreastplate:{needed:1,id:925},ShadewoodGreaves:{needed:1,id:926},ShadewoodWall:{needed:400,id:927},Cannon:{needed:1,id:928},Cannonball:{needed:25,id:929},FlareGun:{needed:1,id:930},Flare:{needed:99,id:931},BoneWand:{needed:1,id:932},LeafWand:{needed:1,id:933},FlyingCarpet:{needed:1,id:934},AvengerEmblem:{needed:1,id:935},MechanicalGlove:{needed:1,id:936},LandMine:{needed:5,id:937},PaladinsShield:{needed:1,id:938},WebSlinger:{needed:1,id:939},JungleWaterFountain:{needed:1,id:940},IcyWaterFountain:{needed:1,id:941},CorruptWaterFountain:{needed:1,id:942},CrimsonWaterFountain:{needed:1,id:943},HallowedWaterFountain:{needed:1,id:944},BloodWaterFountain:{needed:1,id:945},Umbrella:{needed:1,id:946},ChlorophyteOre:{needed:100,id:947},SteampunkWings:{needed:1,id:948},Snowball:{needed:99,id:949},IceSkates:{needed:1,id:950},SnowballLauncher:{needed:1,id:951},WebCoveredChest:{needed:1,id:952},ClimbingClaws:{needed:1,id:953},AncientIronHelmet:{needed:1,id:954},AncientGoldHelmet:{needed:1,id:955},AncientShadowHelmet:{needed:1,id:956},AncientShadowScalemail:{needed:1,id:957},AncientShadowGreaves:{needed:1,id:958},AncientNecroHelmet:{needed:1,id:959},AncientCobaltHelmet:{needed:1,id:960},AncientCobaltBreastplate:{needed:1,id:961},AncientCobaltLeggings:{needed:1,id:962},BlackBelt:{needed:1,id:963},Boomstick:{needed:1,id:964},Rope:{needed:100,id:965},Campfire:{needed:1,id:966},Marshmallow:{needed:10,id:967},MarshmallowonaStick:{needed:10,id:968},CookedMarshmallow:{needed:10,id:969},RedRocket:{needed:5,id:970},GreenRocket:{needed:5,id:971},BlueRocket:{needed:5,id:972},YellowRocket:{needed:5,id:973},IceTorch:{needed:100,id:974},ShoeSpikes:{needed:1,id:975},TigerClimbingGear:{needed:1,id:976},Tabi:{needed:1,id:977},PinkEskimoHood:{needed:1,id:978},PinkEskimoCoat:{needed:1,id:979},PinkEskimoPants:{needed:1,id:980},PinkThread:{needed:5,id:981},ManaRegenerationBand:{needed:1,id:982},SandstorminaBalloon:{needed:1,id:983},MasterNinjaGear:{needed:1,id:984},RopeCoil:{needed:10,id:985},Blowgun:{needed:1,id:986},BlizzardinaBottle:{needed:1,id:987},FrostburnArrow:{needed:99,id:988},EnchantedSword:{needed:1,id:989},PickaxeAxe:{needed:1,id:990},CobaltWaraxe:{needed:1,id:991},MythrilWaraxe:{needed:1,id:992},AdamantiteWaraxe:{needed:1,id:993},EatersBone:{needed:1,id:994},BlendOMatic:{needed:1,id:995},MeatGrinder:{needed:1,id:996},Extractinator:{needed:1,id:997},Solidifier:{needed:1,id:998},Amber:{needed:15,id:999},ConfettiGun:{needed:5,id:1e3},ChlorophyteMask:{needed:1,id:1001},ChlorophyteHelmet:{needed:1,id:1002},ChlorophyteHeadgear:{needed:1,id:1003},ChlorophytePlateMail:{needed:1,id:1004},ChlorophyteGreaves:{needed:1,id:1005},ChlorophyteBar:{needed:25,id:1006},RedDye:{needed:3,id:1007},OrangeDye:{needed:3,id:1008},YellowDye:{needed:3,id:1009},LimeDye:{needed:3,id:1010},GreenDye:{needed:3,id:1011},TealDye:{needed:3,id:1012},CyanDye:{needed:3,id:1013},SkyBlueDye:{needed:3,id:1014},BlueDye:{needed:3,id:1015},PurpleDye:{needed:3,id:1016},VioletDye:{needed:3,id:1017},PinkDye:{needed:3,id:1018},RedandBlackDye:{needed:3,id:1019},OrangeandBlackDye:{needed:3,id:1020},YellowandBlackDye:{needed:3,id:1021},LimeandBlackDye:{needed:3,id:1022},GreenandBlackDye:{needed:3,id:1023},TealandBlackDye:{needed:3,id:1024},CyanandBlackDye:{needed:3,id:1025},SkyBlueandBlackDye:{needed:3,id:1026},BlueandBlackDye:{needed:3,id:1027},PurpleandBlackDye:{needed:3,id:1028},VioletandBlackDye:{needed:3,id:1029},PinkandBlackDye:{needed:3,id:1030},FlameDye:{needed:3,id:1031},FlameAndBlackDye:{needed:3,id:1032},GreenFlameDye:{needed:3,id:1033},GreenFlameAndBlackDye:{needed:3,id:1034},BlueFlameDye:{needed:3,id:1035},BlueFlameAndBlackDye:{needed:3,id:1036},SilverDye:{needed:3,id:1037},BrightRedDye:{needed:3,id:1038},BrightOrangeDye:{needed:3,id:1039},BrightYellowDye:{needed:3,id:1040},BrightLimeDye:{needed:3,id:1041},BrightGreenDye:{needed:3,id:1042},BrightTealDye:{needed:3,id:1043},BrightCyanDye:{needed:3,id:1044},BrightSkyBlueDye:{needed:3,id:1045},BrightBlueDye:{needed:3,id:1046},BrightPurpleDye:{needed:3,id:1047},BrightVioletDye:{needed:3,id:1048},BrightPinkDye:{needed:3,id:1049},BlackDye:{needed:3,id:1050},RedandSilverDye:{needed:3,id:1051},OrangeandSilverDye:{needed:3,id:1052},YellowandSilverDye:{needed:3,id:1053},LimeandSilverDye:{needed:3,id:1054},GreenandSilverDye:{needed:3,id:1055},TealandSilverDye:{needed:3,id:1056},CyanandSilverDye:{needed:3,id:1057},SkyBlueandSilverDye:{needed:3,id:1058},BlueandSilverDye:{needed:3,id:1059},PurpleandSilverDye:{needed:3,id:1060},VioletandSilverDye:{needed:3,id:1061},PinkandSilverDye:{needed:3,id:1062},IntenseFlameDye:{needed:3,id:1063},IntenseGreenFlameDye:{needed:3,id:1064},IntenseBlueFlameDye:{needed:3,id:1065},RainbowDye:{needed:3,id:1066},IntenseRainbowDye:{needed:3,id:1067},YellowGradientDye:{needed:3,id:1068},CyanGradientDye:{needed:3,id:1069},VioletGradientDye:{needed:3,id:1070},Paintbrush:{needed:1,id:1071},PaintRoller:{needed:1,id:1072},RedPaint:{needed:100,id:1073},OrangePaint:{needed:100,id:1074},YellowPaint:{needed:100,id:1075},LimePaint:{needed:100,id:1076},GreenPaint:{needed:100,id:1077},TealPaint:{needed:100,id:1078},CyanPaint:{needed:100,id:1079},SkyBluePaint:{needed:100,id:1080},BluePaint:{needed:100,id:1081},PurplePaint:{needed:100,id:1082},VioletPaint:{needed:100,id:1083},PinkPaint:{needed:100,id:1084},DeepRedPaint:{needed:100,id:1085},DeepOrangePaint:{needed:100,id:1086},DeepYellowPaint:{needed:100,id:1087},DeepLimePaint:{needed:100,id:1088},DeepGreenPaint:{needed:100,id:1089},DeepTealPaint:{needed:100,id:1090},DeepCyanPaint:{needed:100,id:1091},DeepSkyBluePaint:{needed:100,id:1092},DeepBluePaint:{needed:100,id:1093},DeepPurplePaint:{needed:100,id:1094},DeepVioletPaint:{needed:100,id:1095},DeepPinkPaint:{needed:100,id:1096},BlackPaint:{needed:100,id:1097},WhitePaint:{needed:100,id:1098},GrayPaint:{needed:100,id:1099},PaintScraper:{needed:1,id:1100},LihzahrdBrick:{needed:100,id:1101},LihzahrdBrickWall:{needed:400,id:1102},SlushBlock:{needed:200,id:1103},PalladiumOre:{needed:100,id:1104},OrichalcumOre:{needed:100,id:1105},TitaniumOre:{needed:100,id:1106},TealMushroom:{needed:3,id:1107},GreenMushroom:{needed:3,id:1108},SkyBlueFlower:{needed:3,id:1109},YellowMarigold:{needed:3,id:1110},BlueBerries:{needed:3,id:1111},LimeKelp:{needed:3,id:1112},PinkPricklyPear:{needed:3,id:1113},OrangeBloodroot:{needed:3,id:1114},RedHusk:{needed:3,id:1115},CyanHusk:{needed:3,id:1116},VioletHusk:{needed:3,id:1117},PurpleMucos:{needed:3,id:1118},BlackInk:{needed:3,id:1119},DyeVat:{needed:1,id:1120},BeeGun:{needed:1,id:1121},PossessedHatchet:{needed:1,id:1122},BeeKeeper:{needed:1,id:1123},Hive:{needed:100,id:1124},HoneyBlock:{needed:100,id:1125},HiveWall:{needed:400,id:1126},CrispyHoneyBlock:{needed:100,id:1127},HoneyBucket:{needed:1,id:1128},HiveWand:{needed:1,id:1129},Beenade:{needed:99,id:1130},GravityGlobe:{needed:1,id:1131},HoneyComb:{needed:1,id:1132},Abeemination:{needed:3,id:1133},BottledHoney:{needed:30,id:1134},RainHat:{needed:1,id:1135},RainCoat:{needed:1,id:1136},LihzahrdDoor:{needed:1,id:1137},DungeonDoor:{needed:1,id:1138},LeadDoor:{needed:1,id:1139},IronDoor:{needed:1,id:1140},TempleKey:{needed:1,id:1141},LihzahrdChest:{needed:1,id:1142},LihzahrdChair:{needed:1,id:1143},LihzahrdTable:{needed:1,id:1144},LihzahrdWorkBench:{needed:1,id:1145},SuperDartTrap:{needed:5,id:1146},FlameTrap:{needed:5,id:1147},SpikyBallTrap:{needed:5,id:1148},SpearTrap:{needed:5,id:1149},WoodenSpike:{needed:100,id:1150},LihzahrdPressurePlate:{needed:5,id:1151},LihzahrdStatue:{needed:1,id:1152},LihzahrdWatcherStatue:{needed:1,id:1153},LihzahrdGuardianStatue:{needed:1,id:1154},WaspGun:{needed:1,id:1155},PiranhaGun:{needed:1,id:1156},PygmyStaff:{needed:1,id:1157},PygmyNecklace:{needed:1,id:1158},TikiMask:{needed:1,id:1159},TikiShirt:{needed:1,id:1160},TikiPants:{needed:1,id:1161},LeafWings:{needed:1,id:1162},BlizzardinaBalloon:{needed:1,id:1163},BundleofBalloons:{needed:1,id:1164},BatWings:{needed:1,id:1165},BoneSword:{needed:1,id:1166},HerculesBeetle:{needed:1,id:1167},SmokeBomb:{needed:25,id:1168},BoneKey:{needed:1,id:1169},Nectar:{needed:1,id:1170},TikiTotem:{needed:1,id:1171},LizardEgg:{needed:1,id:1172},GraveMarker:{needed:2,id:1173},CrossGraveMarker:{needed:2,id:1174},Headstone:{needed:2,id:1175},Gravestone:{needed:2,id:1176},Obelisk:{needed:2,id:1177},LeafBlower:{needed:1,id:1178},ChlorophyteBullet:{needed:99,id:1179},ParrotCracker:{needed:1,id:1180},StrangeGlowingMushroom:{needed:1,id:1181},Seedling:{needed:1,id:1182},WispinaBottle:{needed:1,id:1183},PalladiumBar:{needed:25,id:1184},PalladiumSword:{needed:1,id:1185},PalladiumPike:{needed:1,id:1186},PalladiumRepeater:{needed:1,id:1187},PalladiumPickaxe:{needed:1,id:1188},PalladiumDrill:{needed:1,id:1189},PalladiumChainsaw:{needed:1,id:1190},OrichalcumBar:{needed:25,id:1191},OrichalcumSword:{needed:1,id:1192},OrichalcumHalberd:{needed:1,id:1193},OrichalcumRepeater:{needed:1,id:1194},OrichalcumPickaxe:{needed:1,id:1195},OrichalcumDrill:{needed:1,id:1196},OrichalcumChainsaw:{needed:1,id:1197},TitaniumBar:{needed:25,id:1198},TitaniumSword:{needed:1,id:1199},TitaniumTrident:{needed:1,id:1200},TitaniumRepeater:{needed:1,id:1201},TitaniumPickaxe:{needed:1,id:1202},TitaniumDrill:{needed:1,id:1203},TitaniumChainsaw:{needed:1,id:1204},PalladiumMask:{needed:1,id:1205},PalladiumHelmet:{needed:1,id:1206},PalladiumHeadgear:{needed:1,id:1207},PalladiumBreastplate:{needed:1,id:1208},PalladiumLeggings:{needed:1,id:1209},OrichalcumMask:{needed:1,id:1210},OrichalcumHelmet:{needed:1,id:1211},OrichalcumHeadgear:{needed:1,id:1212},OrichalcumBreastplate:{needed:1,id:1213},OrichalcumLeggings:{needed:1,id:1214},TitaniumMask:{needed:1,id:1215},TitaniumHelmet:{needed:1,id:1216},TitaniumHeadgear:{needed:1,id:1217},TitaniumBreastplate:{needed:1,id:1218},TitaniumLeggings:{needed:1,id:1219},OrichalcumAnvil:{needed:1,id:1220},TitaniumForge:{needed:1,id:1221},PalladiumWaraxe:{needed:1,id:1222},OrichalcumWaraxe:{needed:1,id:1223},TitaniumWaraxe:{needed:1,id:1224},HallowedBar:{needed:25,id:1225},ChlorophyteClaymore:{needed:1,id:1226},ChlorophyteSaber:{needed:1,id:1227},ChlorophytePartisan:{needed:1,id:1228},ChlorophyteShotbow:{needed:1,id:1229},ChlorophytePickaxe:{needed:1,id:1230},ChlorophyteDrill:{needed:1,id:1231},ChlorophyteChainsaw:{needed:1,id:1232},ChlorophyteGreataxe:{needed:1,id:1233},ChlorophyteWarhammer:{needed:1,id:1234},ChlorophyteArrow:{needed:99,id:1235},AmethystHook:{needed:1,id:1236},TopazHook:{needed:1,id:1237},SapphireHook:{needed:1,id:1238},EmeraldHook:{needed:1,id:1239},RubyHook:{needed:1,id:1240},DiamondHook:{needed:1,id:1241},AmberMosquito:{needed:1,id:1242},UmbrellaHat:{needed:1,id:1243},NimbusRod:{needed:1,id:1244},OrangeTorch:{needed:100,id:1245},CrimsandBlock:{needed:100,id:1246},BeeCloak:{needed:1,id:1247},EyeoftheGolem:{needed:1,id:1248},HoneyBalloon:{needed:1,id:1249},BlueHorseshoeBalloon:{needed:1,id:1250},WhiteHorseshoeBalloon:{needed:1,id:1251},YellowHorseshoeBalloon:{needed:1,id:1252},FrozenTurtleShell:{needed:1,id:1253},SniperRifle:{needed:1,id:1254},VenusMagnum:{needed:1,id:1255},CrimsonRod:{needed:1,id:1256},CrimtaneBar:{needed:25,id:1257},Stynger:{needed:1,id:1258},FlowerPow:{needed:1,id:1259},RainbowGun:{needed:1,id:1260},StyngerBolt:{needed:99,id:1261},ChlorophyteJackhammer:{needed:1,id:1262},Teleporter:{needed:1,id:1263},FlowerofFrost:{needed:1,id:1264},Uzi:{needed:1,id:1265},MagnetSphere:{needed:1,id:1266},PurpleStainedGlass:{needed:400,id:1267},YellowStainedGlass:{needed:400,id:1268},BlueStainedGlass:{needed:400,id:1269},GreenStainedGlass:{needed:400,id:1270},RedStainedGlass:{needed:400,id:1271},MulticoloredStainedGlass:{needed:400,id:1272},SkeletronHand:{needed:1,id:1273},Skull:{needed:1,id:1274},BallaHat:{needed:1,id:1275},GangstaHat:{needed:1,id:1276},SailorHat:{needed:1,id:1277},EyePatch:{needed:1,id:1278},SailorShirt:{needed:1,id:1279},SailorPants:{needed:1,id:1280},SkeletronMask:{needed:1,id:1281},AmethystRobe:{needed:1,id:1282},TopazRobe:{needed:1,id:1283},SapphireRobe:{needed:1,id:1284},EmeraldRobe:{needed:1,id:1285},RubyRobe:{needed:1,id:1286},DiamondRobe:{needed:1,id:1287},WhiteTuxedoShirt:{needed:1,id:1288},WhiteTuxedoPants:{needed:1,id:1289},PanicNecklace:{needed:1,id:1290},LifeFruit:{needed:10,id:1291},LihzahrdAltar:{needed:1,id:1292},LihzahrdPowerCell:{needed:3,id:1293},Picksaw:{needed:1,id:1294},HeatRay:{needed:1,id:1295},StaffofEarth:{needed:1,id:1296},GolemFist:{needed:1,id:1297},WaterChest:{needed:1,id:1298},Binoculars:{needed:1,id:1299},RifleScope:{needed:1,id:1300},DestroyerEmblem:{needed:1,id:1301},HighVelocityBullet:{needed:99,id:1302},JellyfishNecklace:{needed:1,id:1303},ZombieArm:{needed:1,id:1304},TheAxe:{needed:1,id:1305},IceSickle:{needed:1,id:1306},ClothierVoodooDoll:{needed:1,id:1307},PoisonStaff:{needed:1,id:1308},SlimeStaff:{needed:1,id:1309},PoisonDart:{needed:99,id:1310},EyeSpring:{needed:1,id:1311},ToySled:{needed:1,id:1312},BookofSkulls:{needed:1,id:1313},KOCannon:{needed:1,id:1314},PirateMap:{needed:3,id:1315},TurtleHelmet:{needed:1,id:1316},TurtleScaleMail:{needed:1,id:1317},TurtleLeggings:{needed:1,id:1318},SnowballCannon:{needed:1,id:1319},BonePickaxe:{needed:1,id:1320},MagicQuiver:{needed:1,id:1321},MagmaStone:{needed:1,id:1322},ObsidianRose:{needed:1,id:1323},Bananarang:{needed:1,id:1324},ChainKnife:{needed:1,id:1325},RodofDiscord:{needed:1,id:1326},DeathSickle:{needed:1,id:1327},TurtleShell:{needed:3,id:1328},TissueSample:{needed:25,id:1329},Vertebrae:{needed:25,id:1330},BloodySpine:{needed:3,id:1331},Ichor:{needed:25,id:1332},IchorTorch:{needed:100,id:1333},IchorArrow:{needed:99,id:1334},IchorBullet:{needed:99,id:1335},GoldenShower:{needed:1,id:1336},BunnyCannon:{needed:1,id:1337},ExplosiveBunny:{needed:25,id:1338},VialofVenom:{needed:25,id:1339},FlaskofVenom:{needed:20,id:1340},VenomArrow:{needed:99,id:1341},VenomBullet:{needed:99,id:1342},FireGauntlet:{needed:1,id:1343},Cog:{needed:100,id:1344},Confetti:{needed:25,id:1345},Nanites:{needed:25,id:1346},ExplosivePowder:{needed:25,id:1347},GoldDust:{needed:25,id:1348},PartyBullet:{needed:99,id:1349},NanoBullet:{needed:99,id:1350},ExplodingBullet:{needed:99,id:1351},GoldenBullet:{needed:99,id:1352},FlaskofCursedFlames:{needed:20,id:1353},FlaskofFire:{needed:20,id:1354},FlaskofGold:{needed:20,id:1355},FlaskofIchor:{needed:20,id:1356},FlaskofNanites:{needed:20,id:1357},FlaskofParty:{needed:20,id:1358},FlaskofPoison:{needed:20,id:1359},EyeofCthulhuTrophy:{needed:1,id:1360},EaterofWorldsTrophy:{needed:1,id:1361},BrainofCthulhuTrophy:{needed:1,id:1362},SkeletronTrophy:{needed:1,id:1363},QueenBeeTrophy:{needed:1,id:1364},WallofFleshTrophy:{needed:1,id:1365},DestroyerTrophy:{needed:1,id:1366},SkeletronPrimeTrophy:{needed:1,id:1367},RetinazerTrophy:{needed:1,id:1368},SpazmatismTrophy:{needed:1,id:1369},PlanteraTrophy:{needed:1,id:1370},GolemTrophy:{needed:1,id:1371},BloodMoonRising:{needed:1,id:1372},TheHangedMan:{needed:1,id:1373},GloryoftheFire:{needed:1,id:1374},BoneWarp:{needed:1,id:1375},WallSkeleton:{needed:1,id:1376},HangingSkeleton:{needed:1,id:1377},BlueSlabWall:{needed:400,id:1378},BlueTiledWall:{needed:400,id:1379},PinkSlabWall:{needed:400,id:1380},PinkTiledWall:{needed:400,id:1381},GreenSlabWall:{needed:400,id:1382},GreenTiledWall:{needed:400,id:1383},BlueBrickPlatform:{needed:25,id:1384},PinkBrickPlatform:{needed:25,id:1385},GreenBrickPlatform:{needed:25,id:1386},MetalShelf:{needed:25,id:1387},BrassShelf:{needed:25,id:1388},WoodShelf:{needed:25,id:1389},BrassLantern:{needed:1,id:1390},CagedLantern:{needed:1,id:1391},CarriageLantern:{needed:1,id:1392},AlchemyLantern:{needed:1,id:1393},DiablostLamp:{needed:1,id:1394},OilRagSconse:{needed:1,id:1395},BlueDungeonChair:{needed:1,id:1396},BlueDungeonTable:{needed:1,id:1397},BlueDungeonWorkBench:{needed:1,id:1398},GreenDungeonChair:{needed:1,id:1399},GreenDungeonTable:{needed:1,id:1400},GreenDungeonWorkBench:{needed:1,id:1401},PinkDungeonChair:{needed:1,id:1402},PinkDungeonTable:{needed:1,id:1403},PinkDungeonWorkBench:{needed:1,id:1404},BlueDungeonCandle:{needed:1,id:1405},GreenDungeonCandle:{needed:1,id:1406},PinkDungeonCandle:{needed:1,id:1407},BlueDungeonVase:{needed:1,id:1408},GreenDungeonVase:{needed:1,id:1409},PinkDungeonVase:{needed:1,id:1410},BlueDungeonDoor:{needed:1,id:1411},GreenDungeonDoor:{needed:1,id:1412},PinkDungeonDoor:{needed:1,id:1413},BlueDungeonBookcase:{needed:1,id:1414},GreenDungeonBookcase:{needed:1,id:1415},PinkDungeonBookcase:{needed:1,id:1416},Catacomb:{needed:1,id:1417},DungeonShelf:{needed:25,id:1418},SkellingtonJSkellingsworth:{needed:1,id:1419},TheCursedMan:{needed:1,id:1420},TheEyeSeestheEnd:{needed:1,id:1421},SomethingEvilisWatchingYou:{needed:1,id:1422},TheTwinsHaveAwoken:{needed:1,id:1423},TheScreamer:{needed:1,id:1424},GoblinsPlayingPoker:{needed:1,id:1425},Dryadisque:{needed:1,id:1426},Sunflowers:{needed:1,id:1427},TerrarianGothic:{needed:1,id:1428},Beanie:{needed:1,id:1429},ImbuingStation:{needed:1,id:1430},StarinaBottle:{needed:1,id:1431},EmptyBullet:{needed:100,id:1432},Impact:{needed:1,id:1433},PoweredbyBirds:{needed:1,id:1434},TheDestroyer:{needed:1,id:1435},ThePersistencyofEyes:{needed:1,id:1436},UnicornCrossingtheHallows:{needed:1,id:1437},GreatWave:{needed:1,id:1438},StarryNight:{needed:1,id:1439},GuidePicasso:{needed:1,id:1440},TheGuardiansGaze:{needed:1,id:1441},FatherofSomeone:{needed:1,id:1442},NurseLisa:{needed:1,id:1443},ShadowbeamStaff:{needed:1,id:1444},InfernoFork:{needed:1,id:1445},SpectreStaff:{needed:1,id:1446},WoodenFence:{needed:400,id:1447},LeadFence:{needed:400,id:1448},BubbleMachine:{needed:1,id:1449},BubbleWand:{needed:1,id:1450},MarchingBonesBanner:{needed:1,id:1451},NecromanticSign:{needed:1,id:1452},RustedCompanyStandard:{needed:1,id:1453},RaggedBrotherhoodSigil:{needed:1,id:1454},MoltenLegionFlag:{needed:1,id:1455},DiabolicSigil:{needed:1,id:1456},ObsidianPlatform:{needed:200,id:1457},ObsidianDoor:{needed:1,id:1458},ObsidianChair:{needed:1,id:1459},ObsidianTable:{needed:1,id:1460},ObsidianWorkBench:{needed:1,id:1461},ObsidianVase:{needed:1,id:1462},ObsidianBookcase:{needed:1,id:1463},HellboundBanner:{needed:1,id:1464},HellHammerBanner:{needed:1,id:1465},HelltowerBanner:{needed:1,id:1466},LostHopesofManBanner:{needed:1,id:1467},ObsidianWatcherBanner:{needed:1,id:1468},LavaEruptsBanner:{needed:1,id:1469},BlueDungeonBed:{needed:1,id:1470},GreenDungeonBed:{needed:1,id:1471},PinkDungeonBed:{needed:1,id:1472},ObsidianBed:{needed:1,id:1473},Waldo:{needed:1,id:1474},Darkness:{needed:1,id:1475},DarkSoulReaper:{needed:1,id:1476},Land:{needed:1,id:1477},TrappedGhost:{needed:1,id:1478},DemonsEye:{needed:1,id:1479},FindingGold:{needed:1,id:1480},FirstEncounter:{needed:1,id:1481},GoodMorning:{needed:1,id:1482},UndergroundReward:{needed:1,id:1483},ThroughtheWindow:{needed:1,id:1484},PlaceAbovetheClouds:{needed:1,id:1485},DoNotStepontheGrass:{needed:1,id:1486},ColdWatersintheWhiteLand:{needed:1,id:1487},LightlessChasms:{needed:1,id:1488},TheLandofDeceivingLooks:{needed:1,id:1489},Daylight:{needed:1,id:1490},SecretoftheSands:{needed:1,id:1491},DeadlandComesAlive:{needed:1,id:1492},EvilPresence:{needed:1,id:1493},SkyGuardian:{needed:1,id:1494},AmericanExplosive:{needed:1,id:1495},Discover:{needed:1,id:1496},HandEarth:{needed:1,id:1497},OldMiner:{needed:1,id:1498},Skelehead:{needed:1,id:1499},FacingtheCerebralMastermind:{needed:1,id:1500},LakeofFire:{needed:1,id:1501},TrioSuperHeroes:{needed:1,id:1502},SpectreHood:{needed:1,id:1503},SpectreRobe:{needed:1,id:1504},SpectrePants:{needed:1,id:1505},SpectrePickaxe:{needed:1,id:1506},SpectreHamaxe:{needed:1,id:1507},Ectoplasm:{needed:25,id:1508},GothicChair:{needed:1,id:1509},GothicTable:{needed:1,id:1510},GothicWorkBench:{needed:1,id:1511},GothicBookcase:{needed:1,id:1512},PaladinsHammer:{needed:1,id:1513},SWATHelmet:{needed:1,id:1514},BeeWings:{needed:1,id:1515},GiantHarpyFeather:{needed:1,id:1516},BoneFeather:{needed:1,id:1517},FireFeather:{needed:1,id:1518},IceFeather:{needed:1,id:1519},BrokenBatWing:{needed:1,id:1520},TatteredBeeWing:{needed:1,id:1521},LargeAmethyst:{needed:1,id:1522},LargeTopaz:{needed:1,id:1523},LargeSapphire:{needed:1,id:1524},LargeEmerald:{needed:1,id:1525},LargeRuby:{needed:1,id:1526},LargeDiamond:{needed:1,id:1527},JungleChest:{needed:1,id:1528},CorruptionChest:{needed:1,id:1529},CrimsonChest:{needed:1,id:1530},HallowedChest:{needed:1,id:1531},FrozenChest:{needed:1,id:1532},JungleKey:{needed:1,id:1533},CorruptionKey:{needed:1,id:1534},CrimsonKey:{needed:1,id:1535},HallowedKey:{needed:1,id:1536},FrozenKey:{needed:1,id:1537},ImpFace:{needed:1,id:1538},OminousPresence:{needed:1,id:1539},ShiningMoon:{needed:1,id:1540},LivingGore:{needed:1,id:1541},FlowingMagma:{needed:1,id:1542},SpectrePaintbrush:{needed:1,id:1543},SpectrePaintRoller:{needed:1,id:1544},SpectrePaintScraper:{needed:1,id:1545},ShroomiteHeadgear:{needed:1,id:1546},ShroomiteMask:{needed:1,id:1547},ShroomiteHelmet:{needed:1,id:1548},ShroomiteBreastplate:{needed:1,id:1549},ShroomiteLeggings:{needed:1,id:1550},Autohammer:{needed:1,id:1551},ShroomiteBar:{needed:25,id:1552},SDMG:{needed:1,id:1553},CenxsTiara:{needed:1,id:1554},CenxsBreastplate:{needed:1,id:1555},CenxsLeggings:{needed:1,id:1556},CrownosMask:{needed:1,id:1557},CrownosBreastplate:{needed:1,id:1558},CrownosLeggings:{needed:1,id:1559},WillsHelmet:{needed:1,id:1560},WillsBreastplate:{needed:1,id:1561},WillsLeggings:{needed:1,id:1562},JimsHelmet:{needed:1,id:1563},JimsBreastplate:{needed:1,id:1564},JimsLeggings:{needed:1,id:1565},AaronsHelmet:{needed:1,id:1566},AaronsBreastplate:{needed:1,id:1567},AaronsLeggings:{needed:1,id:1568},VampireKnives:{needed:1,id:1569},BrokenHeroSword:{needed:1,id:1570},ScourgeoftheCorruptor:{needed:1,id:1571},StaffoftheFrostHydra:{needed:1,id:1572},TheCreationoftheGuide:{needed:1,id:1573},TheMerchant:{needed:1,id:1574},CrownoDevoursHisLunch:{needed:1,id:1575},RareEnchantment:{needed:1,id:1576},GloriousNight:{needed:1,id:1577},SweetheartNecklace:{needed:1,id:1578},FlurryBoots:{needed:1,id:1579},DTownsHelmet:{needed:1,id:1580},DTownsBreastplate:{needed:1,id:1581},DTownsLeggings:{needed:1,id:1582},DTownsWings:{needed:1,id:1583},WillsWings:{needed:1,id:1584},CrownosWings:{needed:1,id:1585},CenxsWings:{needed:1,id:1586},CenxsDress:{needed:1,id:1587},CenxsDressPants:{needed:1,id:1588},PalladiumColumn:{needed:100,id:1589},PalladiumColumnWall:{needed:400,id:1590},BubblegumBlock:{needed:100,id:1591},BubblegumBlockWall:{needed:400,id:1592},TitanstoneBlock:{needed:100,id:1593},TitanstoneBlockWall:{needed:400,id:1594},MagicCuffs:{needed:1,id:1595},MusicBoxSnow:{needed:1,id:1596},MusicBoxSpace:{needed:1,id:1597},MusicBoxCrimson:{needed:1,id:1598},MusicBoxBoss4:{needed:1,id:1599},MusicBoxAltOverworldDay:{needed:1,id:1600},MusicBoxRain:{needed:1,id:1601},MusicBoxIce:{needed:1,id:1602},MusicBoxDesert:{needed:1,id:1603},MusicBoxOcean:{needed:1,id:1604},MusicBoxDungeon:{needed:1,id:1605},MusicBoxPlantera:{needed:1,id:1606},MusicBoxBoss5:{needed:1,id:1607},MusicBoxTemple:{needed:1,id:1608},MusicBoxEclipse:{needed:1,id:1609},MusicBoxMushrooms:{needed:1,id:1610},ButterflyDust:{needed:1,id:1611},AnkhCharm:{needed:1,id:1612},AnkhShield:{needed:1,id:1613},BlueFlare:{needed:99,id:1614},AnglerFishBanner:{needed:1,id:1615},AngryNimbusBanner:{needed:1,id:1616},AnomuraFungusBanner:{needed:1,id:1617},AntlionBanner:{needed:1,id:1618},ArapaimaBanner:{needed:1,id:1619},ArmoredSkeletonBanner:{needed:1,id:1620},BatBanner:{needed:1,id:1621},BirdBanner:{needed:1,id:1622},BlackRecluseBanner:{needed:1,id:1623},BloodFeederBanner:{needed:1,id:1624},BloodJellyBanner:{needed:1,id:1625},BloodCrawlerBanner:{needed:1,id:1626},BoneSerpentBanner:{needed:1,id:1627},BunnyBanner:{needed:1,id:1628},ChaosElementalBanner:{needed:1,id:1629},MimicBanner:{needed:1,id:1630},ClownBanner:{needed:1,id:1631},CorruptBunnyBanner:{needed:1,id:1632},CorruptGoldfishBanner:{needed:1,id:1633},CrabBanner:{needed:1,id:1634},CrimeraBanner:{needed:1,id:1635},CrimsonAxeBanner:{needed:1,id:1636},CursedHammerBanner:{needed:1,id:1637},DemonBanner:{needed:1,id:1638},DemonEyeBanner:{needed:1,id:1639},DerplingBanner:{needed:1,id:1640},EaterofSoulsBanner:{needed:1,id:1641},EnchantedSwordBanner:{needed:1,id:1642},ZombieEskimoBanner:{needed:1,id:1643},FaceMonsterBanner:{needed:1,id:1644},FloatyGrossBanner:{needed:1,id:1645},FlyingFishBanner:{needed:1,id:1646},FlyingSnakeBanner:{needed:1,id:1647},FrankensteinBanner:{needed:1,id:1648},FungiBulbBanner:{needed:1,id:1649},FungoFishBanner:{needed:1,id:1650},GastropodBanner:{needed:1,id:1651},GoblinThiefBanner:{needed:1,id:1652},GoblinSorcererBanner:{needed:1,id:1653},GoblinPeonBanner:{needed:1,id:1654},GoblinScoutBanner:{needed:1,id:1655},GoblinWarriorBanner:{needed:1,id:1656},GoldfishBanner:{needed:1,id:1657},HarpyBanner:{needed:1,id:1658},HellbatBanner:{needed:1,id:1659},HerplingBanner:{needed:1,id:1660},HornetBanner:{needed:1,id:1661},IceElementalBanner:{needed:1,id:1662},IcyMermanBanner:{needed:1,id:1663},FireImpBanner:{needed:1,id:1664},JellyfishBanner:{needed:1,id:1665},JungleCreeperBanner:{needed:1,id:1666},LihzahrdBanner:{needed:1,id:1667},ManEaterBanner:{needed:1,id:1668},MeteorHeadBanner:{needed:1,id:1669},MothBanner:{needed:1,id:1670},MummyBanner:{needed:1,id:1671},MushiLadybugBanner:{needed:1,id:1672},ParrotBanner:{needed:1,id:1673},PigronBanner:{needed:1,id:1674},PiranhaBanner:{needed:1,id:1675},PirateBanner:{needed:1,id:1676},PixieBanner:{needed:1,id:1677},RaincoatZombieBanner:{needed:1,id:1678},ReaperBanner:{needed:1,id:1679},SharkBanner:{needed:1,id:1680},SkeletonBanner:{needed:1,id:1681},SkeletonMageBanner:{needed:1,id:1682},SlimeBanner:{needed:1,id:1683},SnowFlinxBanner:{needed:1,id:1684},SpiderBanner:{needed:1,id:1685},SporeZombieBanner:{needed:1,id:1686},SwampThingBanner:{needed:1,id:1687},TortoiseBanner:{needed:1,id:1688},ToxicSludgeBanner:{needed:1,id:1689},UmbrellaSlimeBanner:{needed:1,id:1690},UnicornBanner:{needed:1,id:1691},VampireBanner:{needed:1,id:1692},VultureBanner:{needed:1,id:1693},NypmhBanner:{needed:1,id:1694},WerewolfBanner:{needed:1,id:1695},WolfBanner:{needed:1,id:1696},WorldFeederBanner:{needed:1,id:1697},WormBanner:{needed:1,id:1698},WraithBanner:{needed:1,id:1699},WyvernBanner:{needed:1,id:1700},ZombieBanner:{needed:1,id:1701},GlassPlatform:{needed:200,id:1702},GlassChair:{needed:1,id:1703},GoldenChair:{needed:1,id:1704},GoldenToilet:{needed:1,id:1705},BarStool:{needed:1,id:1706},HoneyChair:{needed:1,id:1707},SteampunkChair:{needed:1,id:1708},GlassDoor:{needed:1,id:1709},GoldenDoor:{needed:1,id:1710},HoneyDoor:{needed:1,id:1711},SteampunkDoor:{needed:1,id:1712},GlassTable:{needed:1,id:1713},BanquetTable:{needed:1,id:1714},Bar:{needed:1,id:1715},GoldenTable:{needed:1,id:1716},HoneyTable:{needed:1,id:1717},SteampunkTable:{needed:1,id:1718},GlassBed:{needed:1,id:1719},GoldenBed:{needed:1,id:1720},HoneyBed:{needed:1,id:1721},SteampunkBed:{needed:1,id:1722},LivingWoodWall:{needed:400,id:1723},FartinaJar:{needed:1,id:1724},Pumpkin:{needed:100,id:1725},PumpkinWall:{needed:400,id:1726},Hay:{needed:100,id:1727},HayWall:{needed:400,id:1728},SpookyWood:{needed:100,id:1729},SpookyWoodWall:{needed:400,id:1730},PumpkinHelmet:{needed:1,id:1731},PumpkinBreastplate:{needed:1,id:1732},PumpkinLeggings:{needed:1,id:1733},NurseHat:{needed:1,id:1736},NurseShirt:{needed:1,id:1737},NursePants:{needed:1,id:1738},WizardsHat:{needed:1,id:1739},GuyFawkesMask:{needed:1,id:1740},DyeTraderRobe:{needed:1,id:1741},SteampunkGoggles:{needed:1,id:1742},CyborgHelmet:{needed:1,id:1743},CyborgShirt:{needed:1,id:1744},CyborgPants:{needed:1,id:1745},CreeperMask:{needed:1,id:1746},CreeperShirt:{needed:1,id:1747},CreeperPants:{needed:1,id:1748},CatMask:{needed:1,id:1749},CatShirt:{needed:1,id:1750},CatPants:{needed:1,id:1751},GhostMask:{needed:1,id:1752},GhostShirt:{needed:1,id:1753},PumpkinMask:{needed:1,id:1754},PumpkinShirt:{needed:1,id:1755},PumpkinPants:{needed:1,id:1756},RobotMask:{needed:1,id:1757},RobotShirt:{needed:1,id:1758},RobotPants:{needed:1,id:1759},UnicornMask:{needed:1,id:1760},UnicornShirt:{needed:1,id:1761},UnicornPants:{needed:1,id:1762},VampireMask:{needed:1,id:1763},VampireShirt:{needed:1,id:1764},VampirePants:{needed:1,id:1765},WitchHat:{needed:1,id:1766},LeprechaunHat:{needed:1,id:1767},LeprechaunShirt:{needed:1,id:1768},LeprechaunPants:{needed:1,id:1769},PixieShirt:{needed:1,id:1770},PixiePants:{needed:1,id:1771},PrincessHat:{needed:1,id:1772},PrincessDressNew:{needed:1,id:1773},GoodieBag:{needed:10,id:1774},WitchDress:{needed:1,id:1775},WitchBoots:{needed:1,id:1776},BrideofFrankensteinMask:{needed:1,id:1777},BrideofFrankensteinDress:{needed:1,id:1778},KarateTortoiseMask:{needed:1,id:1779},KarateTortoiseShirt:{needed:1,id:1780},KarateTortoisePants:{needed:1,id:1781},CandyCornRifle:{needed:1,id:1782},CandyCorn:{needed:99,id:1783},JackOLanternLauncher:{needed:1,id:1784},ExplosiveJackOLantern:{needed:99,id:1785},Sickle:{needed:1,id:1786},PumpkinPie:{needed:10,id:1787},ScarecrowHat:{needed:1,id:1788},ScarecrowShirt:{needed:1,id:1789},ScarecrowPants:{needed:1,id:1790},Cauldron:{needed:1,id:1791},PumpkinChair:{needed:1,id:1792},PumpkinDoor:{needed:1,id:1793},PumpkinTable:{needed:1,id:1794},PumpkinWorkBench:{needed:1,id:1795},PumpkinPlatform:{needed:200,id:1796},TatteredFairyWings:{needed:1,id:1797},SpiderEgg:{needed:1,id:1798},MagicalPumpkinSeed:{needed:1,id:1799},BatHook:{needed:1,id:1800},BatScepter:{needed:1,id:1801},RavenStaff:{needed:1,id:1802},HangingJackOLantern:{needed:1,id:1808},RottenEgg:{needed:99,id:1809},UnluckyYarn:{needed:1,id:1810},BlackFairyDust:{needed:1,id:1811},Jackelier:{needed:1,id:1812},JackOLantern:{needed:1,id:1813},SpookyChair:{needed:1,id:1814},SpookyDoor:{needed:1,id:1815},SpookyTable:{needed:1,id:1816},SpookyWorkBench:{needed:1,id:1817},SpookyPlatform:{needed:200,id:1818},ReaperHood:{needed:1,id:1819},ReaperRobe:{needed:1,id:1820},FoxMask:{needed:1,id:1821},FoxShirt:{needed:1,id:1822},FoxPants:{needed:1,id:1823},CatEars:{needed:1,id:1824},BloodyMachete:{needed:1,id:1825},TheHorsemansBlade:{needed:1,id:1826},BladedGlove:{needed:1,id:1827},PumpkinSeed:{needed:25,id:1828},SpookyHook:{needed:1,id:1829},SpookyWings:{needed:1,id:1830},SpookyTwig:{needed:1,id:1831},SpookyHelmet:{needed:1,id:1832},SpookyBreastplate:{needed:1,id:1833},SpookyLeggings:{needed:1,id:1834},StakeLauncher:{needed:1,id:1835},Stake:{needed:99,id:1836},CursedSapling:{needed:1,id:1837},SpaceCreatureMask:{needed:1,id:1838},SpaceCreatureShirt:{needed:1,id:1839},SpaceCreaturePants:{needed:1,id:1840},WolfMask:{needed:1,id:1841},WolfShirt:{needed:1,id:1842},WolfPants:{needed:1,id:1843},PumpkinMoonMedallion:{needed:3,id:1844},NecromanticScroll:{needed:1,id:1845},JackingSkeletron:{needed:1,id:1846},BitterHarvest:{needed:1,id:1847},BloodMoonCountess:{needed:1,id:1848},HallowsEve:{needed:1,id:1849},MorbidCuriosity:{needed:1,id:1850},TreasureHunterShirt:{needed:1,id:1851},TreasureHunterPants:{needed:1,id:1852},DryadCoverings:{needed:1,id:1853},DryadLoincloth:{needed:1,id:1854},MourningWoodTrophy:{needed:1,id:1855},PumpkingTrophy:{needed:1,id:1856},JackOLanternMask:{needed:1,id:1857},SniperScope:{needed:1,id:1858},HeartLantern:{needed:1,id:1859},JellyfishDivingGear:{needed:1,id:1860},ArcticDivingGear:{needed:1,id:1861},FrostsparkBoots:{needed:1,id:1862},FartInABalloon:{needed:1,id:1863},PapyrusScarab:{needed:1,id:1864},CelestialStone:{needed:1,id:1865},Hoverboard:{needed:1,id:1866},Present:{needed:10,id:1869},RedRyder:{needed:1,id:1870},FestiveWings:{needed:1,id:1871},PineTreeBlock:{needed:100,id:1872},ChristmasTree:{needed:1,id:1873},StarTopper1:{needed:1,id:1874},StarTopper2:{needed:1,id:1875},StarTopper3:{needed:1,id:1876},BowTopper:{needed:1,id:1877},WhiteGarland:{needed:1,id:1878},WhiteAndRedGarland:{needed:1,id:1879},RedGardland:{needed:1,id:1880},RedAndGreenGardland:{needed:1,id:1881},GreenGardland:{needed:1,id:1882},GreenAndWhiteGarland:{needed:1,id:1883},MulticoloredBulb:{needed:1,id:1884},RedBulb:{needed:1,id:1885},YellowBulb:{needed:1,id:1886},GreenBulb:{needed:1,id:1887},RedAndGreenBulb:{needed:1,id:1888},YellowAndGreenBulb:{needed:1,id:1889},RedAndYellowBulb:{needed:1,id:1890},WhiteBulb:{needed:1,id:1891},WhiteAndRedBulb:{needed:1,id:1892},WhiteAndYellowBulb:{needed:1,id:1893},WhiteAndGreenBulb:{needed:1,id:1894},MulticoloredLights:{needed:1,id:1895},RedLights:{needed:1,id:1896},GreenLights:{needed:1,id:1897},BlueLights:{needed:1,id:1898},YellowLights:{needed:1,id:1899},RedAndYellowLights:{needed:1,id:1900},RedAndGreenLights:{needed:1,id:1901},YellowAndGreenLights:{needed:1,id:1902},BlueAndGreenLights:{needed:1,id:1903},RedAndBlueLights:{needed:1,id:1904},BlueAndYellowLights:{needed:1,id:1905},GiantBow:{needed:1,id:1906},ReindeerAntlers:{needed:1,id:1907},Holly:{needed:1,id:1908},CandyCaneSword:{needed:1,id:1909},EldMelter:{needed:1,id:1910},ChristmasPudding:{needed:10,id:1911},Eggnog:{needed:30,id:1912},StarAnise:{needed:99,id:1913},ReindeerBells:{needed:1,id:1914},CandyCaneHook:{needed:1,id:1915},ChristmasHook:{needed:1,id:1916},CnadyCanePickaxe:{needed:1,id:1917},FruitcakeChakram:{needed:1,id:1918},SugarCookie:{needed:10,id:1919},GingerbreadCookie:{needed:10,id:1920},HandWarmer:{needed:1,id:1921},Coal:{needed:1,id:1922},Toolbox:{needed:1,id:1923},PineDoor:{needed:1,id:1924},PineChair:{needed:1,id:1925},PineTable:{needed:1,id:1926},DogWhistle:{needed:1,id:1927},ChristmasTreeSword:{needed:1,id:1928},ChainGun:{needed:1,id:1929},Razorpine:{needed:1,id:1930},BlizzardStaff:{needed:1,id:1931},MrsClauseHat:{needed:1,id:1932},MrsClauseShirt:{needed:1,id:1933},MrsClauseHeels:{needed:1,id:1934},ParkaHood:{needed:1,id:1935},ParkaCoat:{needed:1,id:1936},ParkaPants:{needed:1,id:1937},SnowHat:{needed:1,id:1938},UglySweater:{needed:1,id:1939},TreeMask:{needed:1,id:1940},TreeShirt:{needed:1,id:1941},TreeTrunks:{needed:1,id:1942},ElfHat:{needed:1,id:1943},ElfShirt:{needed:1,id:1944},ElfPants:{needed:1,id:1945},SnowmanCannon:{needed:1,id:1946},NorthPole:{needed:1,id:1947},ChristmasTreeWallpaper:{needed:400,id:1948},OrnamentWallpaper:{needed:400,id:1949},CandyCaneWallpaper:{needed:400,id:1950},FestiveWallpaper:{needed:400,id:1951},StarsWallpaper:{needed:400,id:1952},SquigglesWallpaper:{needed:400,id:1953},SnowflakeWallpaper:{needed:400,id:1954},KrampusHornWallpaper:{needed:400,id:1955},BluegreenWallpaper:{needed:400,id:1956},GrinchFingerWallpaper:{needed:400,id:1957},NaughtyPresent:{needed:3,id:1958},BabyGrinchMischiefWhistle:{needed:1,id:1959},IceQueenTrophy:{needed:1,id:1960},SantaNK1Trophy:{needed:1,id:1961},EverscreamTrophy:{needed:1,id:1962},MusicBoxPumpkinMoon:{needed:1,id:1963},MusicBoxAltUnderground:{needed:1,id:1964},MusicBoxFrostMoon:{needed:1,id:1965},BrownPaint:{needed:100,id:1966},ShadowPaint:{needed:100,id:1967},NegativePaint:{needed:100,id:1968},TeamDye:{needed:3,id:1969},AmethystGemsparkBlock:{needed:100,id:1970},TopazGemsparkBlock:{needed:100,id:1971},SapphireGemsparkBlock:{needed:100,id:1972},EmeraldGemsparkBlock:{needed:100,id:1973},RubyGemsparkBlock:{needed:100,id:1974},DiamondGemsparkBlock:{needed:100,id:1975},AmberGemsparkBlock:{needed:100,id:1976},LifeHairDye:{needed:1,id:1977},ManaHairDye:{needed:1,id:1978},DepthHairDye:{needed:1,id:1979},MoneyHairDye:{needed:1,id:1980},TimeHairDye:{needed:1,id:1981},TeamHairDye:{needed:1,id:1982},BiomeHairDye:{needed:1,id:1983},PartyHairDye:{needed:1,id:1984},RainbowHairDye:{needed:1,id:1985},SpeedHairDye:{needed:1,id:1986},AngelHalo:{needed:1,id:1987},Fez:{needed:1,id:1988},Womannquin:{needed:1,id:1989},HairDyeRemover:{needed:1,id:1990},BugNet:{needed:1,id:1991},Firefly:{needed:5,id:1992},FireflyinaBottle:{needed:1,id:1993},MonarchButterfly:{needed:5,id:1994},PurpleEmperorButterfly:{needed:5,id:1995},RedAdmiralButterfly:{needed:5,id:1996},UlyssesButterfly:{needed:5,id:1997},SulphurButterfly:{needed:5,id:1998},TreeNymphButterfly:{needed:5,id:1999},ZebraSwallowtailButterfly:{needed:5,id:2e3},JuliaButterfly:{needed:5,id:2001},Worm:{needed:5,id:2002},Mouse:{needed:5,id:2003},LightningBug:{needed:5,id:2004},LightningBuginaBottle:{needed:1,id:2005},Snail:{needed:5,id:2006},GlowingSnail:{needed:5,id:2007},FancyGreyWallpaper:{needed:400,id:2008},IceFloeWallpaper:{needed:400,id:2009},MusicWallpaper:{needed:400,id:2010},PurpleRainWallpaper:{needed:400,id:2011},RainbowWallpaper:{needed:400,id:2012},SparkleStoneWallpaper:{needed:400,id:2013},StarlitHeavenWallpaper:{needed:400,id:2014},Bird:{needed:5,id:2015},BlueJay:{needed:5,id:2016},Cardinal:{needed:5,id:2017},Squirrel:{needed:5,id:2018},Bunny:{needed:5,id:2019},CactusBookcase:{needed:1,id:2020},EbonwoodBookcase:{needed:1,id:2021},FleshBookcase:{needed:1,id:2022},HoneyBookcase:{needed:1,id:2023},SteampunkBookcase:{needed:1,id:2024},GlassBookcase:{needed:1,id:2025},RichMahoganyBookcase:{needed:1,id:2026},PearlwoodBookcase:{needed:1,id:2027},SpookyBookcase:{needed:1,id:2028},SkywareBookcase:{needed:1,id:2029},LihzahrdBookcase:{needed:1,id:2030},FrozenBookcase:{needed:1,id:2031},CactusLantern:{needed:1,id:2032},EbonwoodLantern:{needed:1,id:2033},FleshLantern:{needed:1,id:2034},HoneyLantern:{needed:1,id:2035},SteampunkLantern:{needed:1,id:2036},GlassLantern:{needed:1,id:2037},RichMahoganyLantern:{needed:1,id:2038},PearlwoodLantern:{needed:1,id:2039},FrozenLantern:{needed:1,id:2040},LihzahrdLantern:{needed:1,id:2041},SkywareLantern:{needed:1,id:2042},SpookyLantern:{needed:1,id:2043},FrozenDoor:{needed:1,id:2044},CactusCandle:{needed:1,id:2045},EbonwoodCandle:{needed:1,id:2046},FleshCandle:{needed:1,id:2047},GlassCandle:{needed:1,id:2048},FrozenCandle:{needed:1,id:2049},RichMahoganyCandle:{needed:1,id:2050},PearlwoodCandle:{needed:1,id:2051},LihzahrdCandle:{needed:1,id:2052},SkywareCandle:{needed:1,id:2053},PumpkinCandle:{needed:1,id:2054},CactusChandelier:{needed:1,id:2055},EbonwoodChandelier:{needed:1,id:2056},FleshChandelier:{needed:1,id:2057},HoneyChandelier:{needed:1,id:2058},FrozenChandelier:{needed:1,id:2059},RichMahoganyChandelier:{needed:1,id:2060},PearlwoodChandelier:{needed:1,id:2061},LihzahrdChandelier:{needed:1,id:2062},SkywareChandelier:{needed:1,id:2063},SpookyChandelier:{needed:1,id:2064},GlassChandelier:{needed:1,id:2065},CactusBed:{needed:1,id:2066},FleshBed:{needed:1,id:2067},FrozenBed:{needed:1,id:2068},LihzahrdBed:{needed:1,id:2069},SkywareBed:{needed:1,id:2070},SpookyBed:{needed:1,id:2071},CactusBathtub:{needed:1,id:2072},EbonwoodBathtub:{needed:1,id:2073},FleshBathtub:{needed:1,id:2074},GlassBathtub:{needed:1,id:2075},FrozenBathtub:{needed:1,id:2076},RichMahoganyBathtub:{needed:1,id:2077},PearlwoodBathtub:{needed:1,id:2078},LihzahrdBathtub:{needed:1,id:2079},SkywareBathtub:{needed:1,id:2080},SpookyBathtub:{needed:1,id:2081},CactusLamp:{needed:1,id:2082},EbonwoodLamp:{needed:1,id:2083},FleshLamp:{needed:1,id:2084},GlassLamp:{needed:1,id:2085},FrozenLamp:{needed:1,id:2086},RichMahoganyLamp:{needed:1,id:2087},PearlwoodLamp:{needed:1,id:2088},LihzahrdLamp:{needed:1,id:2089},SkywareLamp:{needed:1,id:2090},SpookyLamp:{needed:1,id:2091},CactusCandelabra:{needed:1,id:2092},EbonwoodCandelabra:{needed:1,id:2093},FleshCandelabra:{needed:1,id:2094},HoneyCandelabra:{needed:1,id:2095},SteampunkCandelabra:{needed:1,id:2096},GlassCandelabra:{needed:1,id:2097},RichMahoganyCandelabra:{needed:1,id:2098},PearlwoodCandelabra:{needed:1,id:2099},FrozenCandelabra:{needed:1,id:2100},LihzahrdCandelabra:{needed:1,id:2101},SkywareCandelabra:{needed:1,id:2102},SpookyCandelabra:{needed:1,id:2103},BrainMask:{needed:1,id:2104},FleshMask:{needed:1,id:2105},TwinMask:{needed:1,id:2106},SkeletronPrimeMask:{needed:1,id:2107},BeeMask:{needed:1,id:2108},PlanteraMask:{needed:1,id:2109},GolemMask:{needed:1,id:2110},EaterMask:{needed:1,id:2111},EyeMask:{needed:1,id:2112},DestroyerMask:{needed:1,id:2113},BlacksmithRack:{needed:1,id:2114},CarpentryRack:{needed:1,id:2115},HelmetRack:{needed:1,id:2116},SpearRack:{needed:1,id:2117},SwordRack:{needed:1,id:2118},StoneSlab:{needed:100,id:2119},SandstoneSlab:{needed:100,id:2120},Frog:{needed:5,id:2121},MallardDuck:{needed:5,id:2122},Duck:{needed:5,id:2123},HoneyBathtub:{needed:1,id:2124},SteampunkBathtub:{needed:1,id:2125},LivingWoodBathtub:{needed:1,id:2126},ShadewoodBathtub:{needed:1,id:2127},BoneBathtub:{needed:1,id:2128},HoneyLamp:{needed:1,id:2129},SteampunkLamp:{needed:1,id:2130},LivingWoodLamp:{needed:1,id:2131},ShadewoodLamp:{needed:1,id:2132},GoldenLamp:{needed:1,id:2133},BoneLamp:{needed:1,id:2134},LivingWoodBookcase:{needed:1,id:2135},ShadewoodBookcase:{needed:1,id:2136},GoldenBookcase:{needed:1,id:2137},BoneBookcase:{needed:1,id:2138},LivingWoodBed:{needed:1,id:2139},BoneBed:{needed:1,id:2140},LivingWoodChandelier:{needed:1,id:2141},ShadewoodChandelier:{needed:1,id:2142},GoldenChandelier:{needed:1,id:2143},BoneChandelier:{needed:1,id:2144},LivingWoodLantern:{needed:1,id:2145},ShadewoodLantern:{needed:1,id:2146},GoldenLantern:{needed:1,id:2147},BoneLantern:{needed:1,id:2148},LivingWoodCandelabra:{needed:1,id:2149},ShadewoodCandelabra:{needed:1,id:2150},GoldenCandelabra:{needed:1,id:2151},BoneCandelabra:{needed:1,id:2152},LivingWoodCandle:{needed:1,id:2153},ShadewoodCandle:{needed:1,id:2154},GoldenCandle:{needed:1,id:2155},BlackScorpion:{needed:5,id:2156},Scorpion:{needed:5,id:2157},BubbleWallpaper:{needed:400,id:2158},CopperPipeWallpaper:{needed:400,id:2159},DuckyWallpaper:{needed:400,id:2160},FrostCore:{needed:3,id:2161},BunnyCage:{needed:1,id:2162},SquirrelCage:{needed:1,id:2163},MallardDuckCage:{needed:1,id:2164},DuckCage:{needed:1,id:2165},BirdCage:{needed:1,id:2166},BlueJayCage:{needed:1,id:2167},CardinalCage:{needed:1,id:2168},WaterfallWall:{needed:400,id:2169},LavafallWall:{needed:400,id:2170},CrimsonSeeds:{needed:25,id:2171},HeavyWorkBench:{needed:1,id:2172},CopperPlating:{needed:100,id:2173},SnailCage:{needed:1,id:2174},GlowingSnailCage:{needed:1,id:2175},ShroomiteDiggingClaw:{needed:1,id:2176},AmmoBox:{needed:1,id:2177},MonarchButterflyJar:{needed:1,id:2178},PurpleEmperorButterflyJar:{needed:1,id:2179},RedAdmiralButterflyJar:{needed:1,id:2180},UlyssesButterflyJar:{needed:1,id:2181},SulphurButterflyJar:{needed:1,id:2182},TreeNymphButterflyJar:{needed:1,id:2183},ZebraSwallowtailButterflyJar:{needed:1,id:2184},JuliaButterflyJar:{needed:1,id:2185},ScorpionCage:{needed:1,id:2186},BlackScorpionCage:{needed:1,id:2187},VenomStaff:{needed:1,id:2188},SpectreMask:{needed:1,id:2189},FrogCage:{needed:1,id:2190},MouseCage:{needed:1,id:2191},BoneWelder:{needed:1,id:2192},FleshCloningVaat:{needed:1,id:2193},GlassKiln:{needed:1,id:2194},LihzahrdFurnace:{needed:1,id:2195},LivingLoom:{needed:1,id:2196},SkyMill:{needed:1,id:2197},IceMachine:{needed:1,id:2198},BeetleHelmet:{needed:1,id:2199},BeetleScaleMail:{needed:1,id:2200},BeetleShell:{needed:1,id:2201},BeetleLeggings:{needed:1,id:2202},SteampunkBoiler:{needed:1,id:2203},HoneyDispenser:{needed:1,id:2204},Penguin:{needed:5,id:2205},PenguinCage:{needed:1,id:2206},WormCage:{needed:1,id:2207},Terrarium:{needed:1,id:2208},SuperManaPotion:{needed:30,id:2209},EbonwoodFence:{needed:400,id:2210},RichMahoganyFence:{needed:400,id:2211},PearlwoodFence:{needed:400,id:2212},ShadewoodFence:{needed:400,id:2213},BrickLayer:{needed:1,id:2214},ExtendoGrip:{needed:1,id:2215},PaintSprayer:{needed:1,id:2216},PortableCementMixer:{needed:1,id:2217},BeetleHusk:{needed:25,id:2218},CelestialMagnet:{needed:1,id:2219},CelestialEmblem:{needed:1,id:2220},CelestialCuffs:{needed:1,id:2221},PeddlersHat:{needed:1,id:2222},PulseBow:{needed:1,id:2223},DynastyChandelier:{needed:1,id:2224},DynastyLamp:{needed:1,id:2225},DynastyLantern:{needed:1,id:2226},DynastyCandelabra:{needed:1,id:2227},DynastyChair:{needed:1,id:2228},DynastyWorkBench:{needed:1,id:2229},DynastyChest:{needed:1,id:2230},DynastyBed:{needed:1,id:2231},DynastyBathtub:{needed:1,id:2232},DynastyBookcase:{needed:1,id:2233},DynastyCup:{needed:1,id:2234},DynastyBowl:{needed:1,id:2235},DynastyCandle:{needed:1,id:2236},DynastyClock:{needed:1,id:2237},GoldenClock:{needed:1,id:2238},GlassClock:{needed:1,id:2239},HoneyClock:{needed:1,id:2240},SteampunkClock:{needed:1,id:2241},FancyDishes:{needed:1,id:2242},GlassBowl:{needed:1,id:2243},WineGlass:{needed:1,id:2244},LivingWoodPiano:{needed:1,id:2245},FleshPiano:{needed:1,id:2246},FrozenPiano:{needed:1,id:2247},FrozenTable:{needed:1,id:2248},HoneyChest:{needed:1,id:2249},SteampunkChest:{needed:1,id:2250},HoneyWorkBench:{needed:1,id:2251},FrozenWorkBench:{needed:1,id:2252},SteampunkWorkBench:{needed:1,id:2253},GlassPiano:{needed:1,id:2254},HoneyPiano:{needed:1,id:2255},SteampunkPiano:{needed:1,id:2256},HoneyCup:{needed:1,id:2257},SteampunkCup:{needed:1,id:2258},DynastyTable:{needed:1,id:2259},DynastyWood:{needed:100,id:2260},RedDynastyShingles:{needed:100,id:2261},BlueDynastyShingles:{needed:100,id:2262},WhiteDynastyWall:{needed:400,id:2263},BlueDynastyWall:{needed:400,id:2264},DynastyDoor:{needed:1,id:2265},Sake:{needed:20,id:2266},PadThai:{needed:10,id:2267},Pho:{needed:10,id:2268},Revolver:{needed:1,id:2269},Gatligator:{needed:1,id:2270},ArcaneRuneWall:{needed:400,id:2271},WaterGun:{needed:1,id:2272},Katana:{needed:1,id:2273},UltrabrightTorch:{needed:100,id:2274},MagicHat:{needed:1,id:2275},DiamondRing:{needed:1,id:2276},Gi:{needed:1,id:2277},Kimono:{needed:1,id:2278},GypsyRobe:{needed:1,id:2279},BeetleWings:{needed:1,id:2280},TigerSkin:{needed:1,id:2281},LeopardSkin:{needed:1,id:2282},ZebraSkin:{needed:1,id:2283},CrimsonCloak:{needed:1,id:2284},MysteriousCape:{needed:1,id:2285},RedCape:{needed:1,id:2286},WinterCape:{needed:1,id:2287},FrozenChair:{needed:1,id:2288},WoodFishingPole:{needed:1,id:2289},Bass:{needed:3,id:2290},ReinforcedFishingPole:{needed:1,id:2291},FiberglassFishingPole:{needed:1,id:2292},FisherofSouls:{needed:1,id:2293},GoldenFishingRod:{needed:1,id:2294},MechanicsRod:{needed:1,id:2295},SittingDucksFishingRod:{needed:1,id:2296},Trout:{needed:3,id:2297},Salmon:{needed:3,id:2298},AtlanticCod:{needed:3,id:2299},Tuna:{needed:3,id:2300},RedSnapper:{needed:3,id:2301},NeonTetra:{needed:3,id:2302},ArmoredCavefish:{needed:3,id:2303},Damselfish:{needed:3,id:2304},CrimsonTigerfish:{needed:3,id:2305},FrostMinnow:{needed:3,id:2306},PrincessFish:{needed:3,id:2307},GoldenCarp:{needed:3,id:2308},SpecularFish:{needed:3,id:2309},Prismite:{needed:3,id:2310},VariegatedLardfish:{needed:3,id:2311},FlarefinKoi:{needed:3,id:2312},DoubleCod:{needed:3,id:2313},Honeyfin:{needed:30,id:2314},Obsidifish:{needed:3,id:2315},Shrimp:{needed:3,id:2316},ChaosFish:{needed:3,id:2317},Ebonkoi:{needed:3,id:2318},Hemopiranha:{needed:3,id:2319},Rockfish:{needed:1,id:2320},Stinkfish:{needed:3,id:2321},MiningPotion:{needed:20,id:2322},HeartreachPotion:{needed:20,id:2323},CalmingPotion:{needed:20,id:2324},BuilderPotion:{needed:20,id:2325},TitanPotion:{needed:20,id:2326},FlipperPotion:{needed:20,id:2327},SummoningPotion:{needed:20,id:2328},TrapsightPotion:{needed:20,id:2329},PurpleClubberfish:{needed:1,id:2330},ObsidianSwordfish:{needed:1,id:2331},Swordfish:{needed:1,id:2332},IronFence:{needed:400,id:2333},WoodenCrate:{needed:10,id:2334},IronCrate:{needed:10,id:2335},GoldenCrate:{needed:10,id:2336},OldShoe:{needed:1,id:2337},FishingSeaweed:{needed:1,id:2338},TinCan:{needed:1,id:2339},MinecartTrack:{needed:100,id:2340},ReaverShark:{needed:1,id:2341},SawtoothShark:{needed:1,id:2342},Minecart:{needed:1,id:2343},AmmoReservationPotion:{needed:20,id:2344},LifeforcePotion:{needed:20,id:2345},EndurancePotion:{needed:20,id:2346},RagePotion:{needed:20,id:2347},InfernoPotion:{needed:20,id:2348},WrathPotion:{needed:20,id:2349},RecallPotion:{needed:20,id:2350},TeleportationPotion:{needed:20,id:2351},LovePotion:{needed:20,id:2352},StinkPotion:{needed:20,id:2353},FishingPotion:{needed:20,id:2354},SonarPotion:{needed:20,id:2355},CratePotion:{needed:20,id:2356},ShiverthornSeeds:{needed:25,id:2357},Shiverthorn:{needed:25,id:2358},WarmthPotion:{needed:20,id:2359},FishHook:{needed:1,id:2360},BeeHeadgear:{needed:1,id:2361},BeeBreastplate:{needed:1,id:2362},BeeGreaves:{needed:1,id:2363},HornetStaff:{needed:1,id:2364},ImpStaff:{needed:1,id:2365},QueenSpiderStaff:{needed:1,id:2366},AnglerHat:{needed:1,id:2367},AnglerVest:{needed:1,id:2368},AnglerPants:{needed:1,id:2369},SpiderMask:{needed:1,id:2370},SpiderBreastplate:{needed:1,id:2371},SpiderGreaves:{needed:1,id:2372},HighTestFishingLine:{needed:1,id:2373},AnglerEarring:{needed:1,id:2374},TackleBox:{needed:1,id:2375},BlueDungeonPiano:{needed:1,id:2376},GreenDungeonPiano:{needed:1,id:2377},PinkDungeonPiano:{needed:1,id:2378},GoldenPiano:{needed:1,id:2379},ObsidianPiano:{needed:1,id:2380},BonePiano:{needed:1,id:2381},CactusPiano:{needed:1,id:2382},SpookyPiano:{needed:1,id:2383},SkywarePiano:{needed:1,id:2384},LihzahrdPiano:{needed:1,id:2385},BlueDungeonDresser:{needed:1,id:2386},GreenDungeonDresser:{needed:1,id:2387},PinkDungeonDresser:{needed:1,id:2388},GoldenDresser:{needed:1,id:2389},ObsidianDresser:{needed:1,id:2390},BoneDresser:{needed:1,id:2391},CactusDresser:{needed:1,id:2392},SpookyDresser:{needed:1,id:2393},SkywareDresser:{needed:1,id:2394},HoneyDresser:{needed:1,id:2395},LihzahrdDresser:{needed:1,id:2396},Sofa:{needed:1,id:2397},EbonwoodSofa:{needed:1,id:2398},RichMahoganySofa:{needed:1,id:2399},PearlwoodSofa:{needed:1,id:2400},ShadewoodSofa:{needed:1,id:2401},BlueDungeonSofa:{needed:1,id:2402},GreenDungeonSofa:{needed:1,id:2403},PinkDungeonSofa:{needed:1,id:2404},GoldenSofa:{needed:1,id:2405},ObsidianSofa:{needed:1,id:2406},BoneSofa:{needed:1,id:2407},CactusSofa:{needed:1,id:2408},SpookySofa:{needed:1,id:2409},SkywareSofa:{needed:1,id:2410},HoneySofa:{needed:1,id:2411},SteampunkSofa:{needed:1,id:2412},MushroomSofa:{needed:1,id:2413},GlassSofa:{needed:1,id:2414},PumpkinSofa:{needed:1,id:2415},LihzahrdSofa:{needed:1,id:2416},SeashellHairpin:{needed:1,id:2417},MermaidAdornment:{needed:1,id:2418},MermaidTail:{needed:1,id:2419},ZephyrFish:{needed:1,id:2420},Fleshcatcher:{needed:1,id:2421},HotlineFishingHook:{needed:1,id:2422},FrogLeg:{needed:1,id:2423},Anchor:{needed:1,id:2424},CookedFish:{needed:10,id:2425},CookedShrimp:{needed:10,id:2426},Sashimi:{needed:10,id:2427},FuzzyCarrot:{needed:1,id:2428},ScalyTruffle:{needed:1,id:2429},SlimySaddle:{needed:1,id:2430},BeeWax:{needed:25,id:2431},CopperPlatingWall:{needed:400,id:2432},StoneSlabWall:{needed:400,id:2433},Sail:{needed:400,id:2434},CoralstoneBlock:{needed:100,id:2435},BlueJellyfish:{needed:3,id:2436},GreenJellyfish:{needed:3,id:2437},PinkJellyfish:{needed:3,id:2438},BlueJellyfishJar:{needed:1,id:2439},GreenJellyfishJar:{needed:1,id:2440},PinkJellyfishJar:{needed:1,id:2441},LifePreserver:{needed:1,id:2442},ShipsWheel:{needed:1,id:2443},CompassRose:{needed:1,id:2444},WallAnchor:{needed:1,id:2445},GoldfishTrophy:{needed:1,id:2446},BunnyfishTrophy:{needed:1,id:2447},SwordfishTrophy:{needed:1,id:2448},SharkteethTrophy:{needed:1,id:2449},Batfish:{needed:2,id:2450},BumblebeeTuna:{needed:2,id:2451},Catfish:{needed:2,id:2452},Cloudfish:{needed:2,id:2453},Cursedfish:{needed:2,id:2454},Dirtfish:{needed:2,id:2455},DynamiteFish:{needed:2,id:2456},EaterofPlankton:{needed:2,id:2457},FallenStarfish:{needed:2,id:2458},TheFishofCthulu:{needed:2,id:2459},Fishotron:{needed:2,id:2460},Harpyfish:{needed:2,id:2461},Hungerfish:{needed:2,id:2462},Ichorfish:{needed:2,id:2463},Jewelfish:{needed:2,id:2464},MirageFish:{needed:2,id:2465},MutantFlinxfin:{needed:2,id:2466},Pengfish:{needed:2,id:2467},Pixiefish:{needed:2,id:2468},Spiderfish:{needed:2,id:2469},TundraTrout:{needed:2,id:2470},UnicornFish:{needed:2,id:2471},GuideVoodooFish:{needed:2,id:2472},Wyverntail:{needed:2,id:2473},ZombieFish:{needed:2,id:2474},AmanitaFungifin:{needed:2,id:2475},Angelfish:{needed:2,id:2476},BloodyManowar:{needed:2,id:2477},Bonefish:{needed:2,id:2478},Bunnyfish:{needed:2,id:2479},CapnTunabeard:{needed:2,id:2480},Clownfish:{needed:2,id:2481},DemonicHellfish:{needed:2,id:2482},Derpfish:{needed:2,id:2483},Fishron:{needed:2,id:2484},InfectedScabbardfish:{needed:2,id:2485},Mudfish:{needed:2,id:2486},Slimefish:{needed:2,id:2487},TropicalBarracuda:{needed:2,id:2488},KingSlimeTrophy:{needed:1,id:2489},ShipInABottle:{needed:1,id:2490},HardySaddle:{needed:1,id:2491},PressureTrack:{needed:5,id:2492},KingSlimeMask:{needed:1,id:2493},FinWings:{needed:1,id:2494},TreasureMap:{needed:1,id:2495},SeaweedPlanter:{needed:1,id:2496},PillaginMePixels:{needed:1,id:2497},FishCostumeMask:{needed:1,id:2498},FishCostumeShirt:{needed:1,id:2499},FishCostumeFinskirt:{needed:1,id:2500},GingerBeard:{needed:1,id:2501},HoneyedGoggles:{needed:1,id:2502},BorealWood:{needed:100,id:2503},PalmWood:{needed:100,id:2504},BorealWoodWall:{needed:400,id:2505},PalmWoodWall:{needed:400,id:2506},BorealWoodFence:{needed:400,id:2507},PalmWoodFence:{needed:400,id:2508},BorealWoodHelmet:{needed:1,id:2509},BorealWoodBreastplate:{needed:1,id:2510},BorealWoodGreaves:{needed:1,id:2511},PalmWoodHelmet:{needed:1,id:2512},PalmWoodBreastplate:{needed:1,id:2513},PalmWoodGreaves:{needed:1,id:2514},PalmWoodBow:{needed:1,id:2515},PalmWoodHammer:{needed:1,id:2516},PalmWoodSword:{needed:1,id:2517},PalmWoodPlatform:{needed:200,id:2518},PalmWoodBathtub:{needed:1,id:2519},PalmWoodBed:{needed:1,id:2520},PalmWoodBench:{needed:1,id:2521},PalmWoodCandelabra:{needed:1,id:2522},PalmWoodCandle:{needed:1,id:2523},PalmWoodChair:{needed:1,id:2524},PalmWoodChandelier:{needed:1,id:2525},PalmWoodChest:{needed:1,id:2526},PalmWoodSofa:{needed:1,id:2527},PalmWoodDoor:{needed:1,id:2528},PalmWoodDresser:{needed:1,id:2529},PalmWoodLantern:{needed:1,id:2530},PalmWoodPiano:{needed:1,id:2531},PalmWoodTable:{needed:1,id:2532},PalmWoodLamp:{needed:1,id:2533},PalmWoodWorkBench:{needed:1,id:2534},OpticStaff:{needed:1,id:2535},PalmWoodBookcase:{needed:1,id:2536},MushroomBathtub:{needed:1,id:2537},MushroomBed:{needed:1,id:2538},MushroomBench:{needed:1,id:2539},MushroomBookcase:{needed:1,id:2540},MushroomCandelabra:{needed:1,id:2541},MushroomCandle:{needed:1,id:2542},MushroomChandelier:{needed:1,id:2543},MushroomChest:{needed:1,id:2544},MushroomDresser:{needed:1,id:2545},MushroomLantern:{needed:1,id:2546},MushroomLamp:{needed:1,id:2547},MushroomPiano:{needed:1,id:2548},MushroomPlatform:{needed:200,id:2549},MushroomTable:{needed:1,id:2550},SpiderStaff:{needed:1,id:2551},BorealWoodBathtub:{needed:1,id:2552},BorealWoodBed:{needed:1,id:2553},BorealWoodBookcase:{needed:1,id:2554},BorealWoodCandelabra:{needed:1,id:2555},BorealWoodCandle:{needed:1,id:2556},BorealWoodChair:{needed:1,id:2557},BorealWoodChandelier:{needed:1,id:2558},BorealWoodChest:{needed:1,id:2559},BorealWoodClock:{needed:1,id:2560},BorealWoodDoor:{needed:1,id:2561},BorealWoodDresser:{needed:1,id:2562},BorealWoodLamp:{needed:1,id:2563},BorealWoodLantern:{needed:1,id:2564},BorealWoodPiano:{needed:1,id:2565},BorealWoodPlatform:{needed:200,id:2566},SlimeBathtub:{needed:1,id:2567},SlimeBed:{needed:1,id:2568},SlimeBookcase:{needed:1,id:2569},SlimeCandelabra:{needed:1,id:2570},SlimeCandle:{needed:1,id:2571},SlimeChair:{needed:1,id:2572},SlimeChandelier:{needed:1,id:2573},SlimeChest:{needed:1,id:2574},SlimeClock:{needed:1,id:2575},SlimeDoor:{needed:1,id:2576},SlimeDresser:{needed:1,id:2577},SlimeLamp:{needed:1,id:2578},SlimeLantern:{needed:1,id:2579},SlimePiano:{needed:1,id:2580},SlimePlatform:{needed:200,id:2581},SlimeSofa:{needed:1,id:2582},SlimeTable:{needed:1,id:2583},PirateStaff:{needed:1,id:2584},SlimeHook:{needed:1,id:2585},StickyGrenade:{needed:99,id:2586},TartarSauce:{needed:1,id:2587},DukeFishronMask:{needed:1,id:2588},DukeFishronTrophy:{needed:1,id:2589},MolotovCocktail:{needed:99,id:2590},BoneClock:{needed:1,id:2591},CactusClock:{needed:1,id:2592},EbonwoodClock:{needed:1,id:2593},FrozenClock:{needed:1,id:2594},LihzahrdClock:{needed:1,id:2595},LivingWoodClock:{needed:1,id:2596},RichMahoganyClock:{needed:1,id:2597},FleshClock:{needed:1,id:2598},MushroomClock:{needed:1,id:2599},ObsidianClock:{needed:1,id:2600},PalmWoodClock:{needed:1,id:2601},PearlwoodClock:{needed:1,id:2602},PumpkinClock:{needed:1,id:2603},ShadewoodClock:{needed:1,id:2604},SpookyClock:{needed:1,id:2605},SkywareClock:{needed:1,id:2606},SpiderFang:{needed:25,id:2607},FalconBlade:{needed:1,id:2608},FishronWings:{needed:1,id:2609},SlimeGun:{needed:1,id:2610},Flairon:{needed:1,id:2611},GreenDungeonChest:{needed:1,id:2612},PinkDungeonChest:{needed:1,id:2613},BlueDungeonChest:{needed:1,id:2614},BoneChest:{needed:1,id:2615},CactusChest:{needed:1,id:2616},FleshChest:{needed:1,id:2617},ObsidianChest:{needed:1,id:2618},PumpkinChest:{needed:1,id:2619},SpookyChest:{needed:1,id:2620},TempestStaff:{needed:1,id:2621},RazorbladeTyphoon:{needed:1,id:2622},BubbleGun:{needed:1,id:2623},Tsunami:{needed:1,id:2624},Seashell:{needed:5,id:2625},Starfish:{needed:5,id:2626},SteampunkPlatform:{needed:200,id:2627},SkywarePlatform:{needed:200,id:2628},LivingWoodPlatform:{needed:200,id:2629},HoneyPlatform:{needed:200,id:2630},SkywareWorkbench:{needed:1,id:2631},GlassWorkBench:{needed:1,id:2632},LivingWoodWorkBench:{needed:1,id:2633},FleshSofa:{needed:1,id:2634},FrozenSofa:{needed:1,id:2635},LivingWoodSofa:{needed:1,id:2636},PumpkinDresser:{needed:1,id:2637},SteampunkDresser:{needed:1,id:2638},GlassDresser:{needed:1,id:2639},FleshDresser:{needed:1,id:2640},PumpkinLantern:{needed:1,id:2641},ObsidianLantern:{needed:1,id:2642},PumpkinLamp:{needed:1,id:2643},ObsidianLamp:{needed:1,id:2644},BlueDungeonLamp:{needed:1,id:2645},GreenDungeonLamp:{needed:1,id:2646},PinkDungeonLamp:{needed:1,id:2647},HoneyCandle:{needed:1,id:2648},SteampunkCandle:{needed:1,id:2649},SpookyCandle:{needed:1,id:2650},ObsidianCandle:{needed:1,id:2651},BlueDungeonChandelier:{needed:1,id:2652},GreenDungeonChandelier:{needed:1,id:2653},PinkDungeonChandelier:{needed:1,id:2654},SteampunkChandelier:{needed:1,id:2655},PumpkinChandelier:{needed:1,id:2656},ObsidianChandelier:{needed:1,id:2657},BlueDungeonBathtub:{needed:1,id:2658},GreenDungeonBathtub:{needed:1,id:2659},PinkDungeonBathtub:{needed:1,id:2660},PumpkinBathtub:{needed:1,id:2661},ObsidianBathtub:{needed:1,id:2662},GoldenBathtub:{needed:1,id:2663},BlueDungeonCandelabra:{needed:1,id:2664},GreenDungeonCandelabra:{needed:1,id:2665},PinkDungeonCandelabra:{needed:1,id:2666},ObsidianCandelabra:{needed:1,id:2667},PumpkinCandelabra:{needed:1,id:2668},PumpkinBed:{needed:1,id:2669},PumpkinBookcase:{needed:1,id:2670},PumpkinPiano:{needed:1,id:2671},SharkStatue:{needed:1,id:2672},TruffleWorm:{needed:3,id:2673},ApprenticeBait:{needed:5,id:2674},JourneymanBait:{needed:5,id:2675},MasterBait:{needed:5,id:2676},AmberGemsparkWall:{needed:400,id:2677},AmberGemsparkWallOff:{needed:400,id:2678},AmethystGemsparkWall:{needed:400,id:2679},AmethystGemsparkWallOff:{needed:400,id:2680},DiamondGemsparkWall:{needed:400,id:2681},DiamondGemsparkWallOff:{needed:400,id:2682},EmeraldGemsparkWall:{needed:400,id:2683},EmeraldGemsparkWallOff:{needed:400,id:2684},RubyGemsparkWall:{needed:400,id:2685},RubyGemsparkWallOff:{needed:400,id:2686},SapphireGemsparkWall:{needed:400,id:2687},SapphireGemsparkWallOff:{needed:400,id:2688},TopazGemsparkWall:{needed:400,id:2689},TopazGemsparkWallOff:{needed:400,id:2690},TinPlatingWall:{needed:400,id:2691},TinPlating:{needed:100,id:2692},WaterfallBlock:{needed:100,id:2693},LavafallBlock:{needed:100,id:2694},ConfettiBlock:{needed:100,id:2695},ConfettiWall:{needed:400,id:2696},ConfettiBlockBlack:{needed:100,id:2697},ConfettiWallBlack:{needed:400,id:2698},WeaponRack:{needed:1,id:2699},FireworksBox:{needed:1,id:2700},LivingFireBlock:{needed:100,id:2701},AlphabetStatue0:{needed:1,id:2702},AlphabetStatue1:{needed:1,id:2703},AlphabetStatue2:{needed:1,id:2704},AlphabetStatue3:{needed:1,id:2705},AlphabetStatue4:{needed:1,id:2706},AlphabetStatue5:{needed:1,id:2707},AlphabetStatue6:{needed:1,id:2708},AlphabetStatue7:{needed:1,id:2709},AlphabetStatue8:{needed:1,id:2710},AlphabetStatue9:{needed:1,id:2711},AlphabetStatueA:{needed:1,id:2712},AlphabetStatueB:{needed:1,id:2713},AlphabetStatueC:{needed:1,id:2714},AlphabetStatueD:{needed:1,id:2715},AlphabetStatueE:{needed:1,id:2716},AlphabetStatueF:{needed:1,id:2717},AlphabetStatueG:{needed:1,id:2718},AlphabetStatueH:{needed:1,id:2719},AlphabetStatueI:{needed:1,id:2720},AlphabetStatueJ:{needed:1,id:2721},AlphabetStatueK:{needed:1,id:2722},AlphabetStatueL:{needed:1,id:2723},AlphabetStatueM:{needed:1,id:2724},AlphabetStatueN:{needed:1,id:2725},AlphabetStatueO:{needed:1,id:2726},AlphabetStatueP:{needed:1,id:2727},AlphabetStatueQ:{needed:1,id:2728},AlphabetStatueR:{needed:1,id:2729},AlphabetStatueS:{needed:1,id:2730},AlphabetStatueT:{needed:1,id:2731},AlphabetStatueU:{needed:1,id:2732},AlphabetStatueV:{needed:1,id:2733},AlphabetStatueW:{needed:1,id:2734},AlphabetStatueX:{needed:1,id:2735},AlphabetStatueY:{needed:1,id:2736},AlphabetStatueZ:{needed:1,id:2737},FireworkFountain:{needed:1,id:2738},BoosterTrack:{needed:5,id:2739},Grasshopper:{needed:5,id:2740},GrasshopperCage:{needed:1,id:2741},MusicBoxUndergroundCrimson:{needed:1,id:2742},CactusTable:{needed:1,id:2743},CactusPlatform:{needed:200,id:2744},BorealWoodSword:{needed:1,id:2745},BorealWoodHammer:{needed:1,id:2746},BorealWoodBow:{needed:1,id:2747},GlassChest:{needed:1,id:2748},XenoStaff:{needed:1,id:2749},MeteorStaff:{needed:1,id:2750},LivingCursedFireBlock:{needed:100,id:2751},LivingDemonFireBlock:{needed:100,id:2752},LivingFrostFireBlock:{needed:100,id:2753},LivingIchorBlock:{needed:100,id:2754},LivingUltrabrightFireBlock:{needed:100,id:2755},GenderChangePotion:{needed:20,id:2756},VortexHelmet:{needed:1,id:2757},VortexBreastplate:{needed:1,id:2758},VortexLeggings:{needed:1,id:2759},NebulaHelmet:{needed:1,id:2760},NebulaBreastplate:{needed:1,id:2761},NebulaLeggings:{needed:1,id:2762},SolarFlareHelmet:{needed:1,id:2763},SolarFlareBreastplate:{needed:1,id:2764},SolarFlareLeggings:{needed:1,id:2765},LunarTabletFragment:{needed:10,id:2766},SolarTablet:{needed:3,id:2767},DrillContainmentUnit:{needed:1,id:2768},CosmicCarKey:{needed:1,id:2769},MothronWings:{needed:1,id:2770},BrainScrambler:{needed:1,id:2771},VortexDrill:{needed:1,id:2774},VortexPickaxe:{needed:1,id:2776},NebulaDrill:{needed:1,id:2779},NebulaPickaxe:{needed:1,id:2781},SolarFlareDrill:{needed:1,id:2784},SolarFlarePickaxe:{needed:1,id:2786},HoneyfallBlock:{needed:100,id:2787},HoneyfallWall:{needed:400,id:2788},ChlorophyteBrickWall:{needed:400,id:2789},CrimtaneBrickWall:{needed:400,id:2790},ShroomitePlatingWall:{needed:400,id:2791},ChlorophyteBrick:{needed:100,id:2792},CrimtaneBrick:{needed:100,id:2793},ShroomitePlating:{needed:100,id:2794},LaserMachinegun:{needed:1,id:2795},ElectrosphereLauncher:{needed:1,id:2796},Xenopopper:{needed:1,id:2797},LaserDrill:{needed:1,id:2798},LaserRuler:{needed:1,id:2799},AntiGravityHook:{needed:1,id:2800},MoonMask:{needed:1,id:2801},SunMask:{needed:1,id:2802},MartianCostumeMask:{needed:1,id:2803},MartianCostumeShirt:{needed:1,id:2804},MartianCostumePants:{needed:1,id:2805},MartianUniformHelmet:{needed:1,id:2806},MartianUniformTorso:{needed:1,id:2807},MartianUniformPants:{needed:1,id:2808},MartianAstroClock:{needed:1,id:2809},MartianBathtub:{needed:1,id:2810},MartianBed:{needed:1,id:2811},MartianHoverChair:{needed:1,id:2812},MartianChandelier:{needed:1,id:2813},MartianChest:{needed:1,id:2814},MartianDoor:{needed:1,id:2815},MartianDresser:{needed:1,id:2816},MartianHolobookcase:{needed:1,id:2817},MartianHoverCandle:{needed:1,id:2818},MartianLamppost:{needed:1,id:2819},MartianLantern:{needed:1,id:2820},MartianPiano:{needed:1,id:2821},MartianPlatform:{needed:200,id:2822},MartianSofa:{needed:1,id:2823},MartianTable:{needed:1,id:2824},MartianTableLamp:{needed:1,id:2825},MartianWorkBench:{needed:1,id:2826},WoodenSink:{needed:1,id:2827},EbonwoodSink:{needed:1,id:2828},RichMahoganySink:{needed:1,id:2829},PearlwoodSink:{needed:1,id:2830},BoneSink:{needed:1,id:2831},FleshSink:{needed:1,id:2832},LivingWoodSink:{needed:1,id:2833},SkywareSink:{needed:1,id:2834},ShadewoodSink:{needed:1,id:2835},LihzahrdSink:{needed:1,id:2836},BlueDungeonSink:{needed:1,id:2837},GreenDungeonSink:{needed:1,id:2838},PinkDungeonSink:{needed:1,id:2839},ObsidianSink:{needed:1,id:2840},MetalSink:{needed:1,id:2841},GlassSink:{needed:1,id:2842},GoldenSink:{needed:1,id:2843},HoneySink:{needed:1,id:2844},SteampunkSink:{needed:1,id:2845},PumpkinSink:{needed:1,id:2846},SpookySink:{needed:1,id:2847},FrozenSink:{needed:1,id:2848},DynastySink:{needed:1,id:2849},PalmWoodSink:{needed:1,id:2850},MushroomSink:{needed:1,id:2851},BorealWoodSink:{needed:1,id:2852},SlimeSink:{needed:1,id:2853},CactusSink:{needed:1,id:2854},MartianSink:{needed:1,id:2855},WhiteLunaticHood:{needed:1,id:2856},BlueLunaticHood:{needed:1,id:2857},WhiteLunaticRobe:{needed:1,id:2858},BlueLunaticRobe:{needed:1,id:2859},MartianConduitPlating:{needed:100,id:2860},MartianConduitWall:{needed:400,id:2861},HiTekSunglasses:{needed:1,id:2862},MartianHairDye:{needed:1,id:2863},MartianArmorDye:{needed:3,id:2864},PaintingCastleMarsberg:{needed:1,id:2865},PaintingMartiaLisa:{needed:1,id:2866},PaintingTheTruthIsUpThere:{needed:1,id:2867},SmokeBlock:{needed:100,id:2868},LivingFlameDye:{needed:3,id:2869},LivingRainbowDye:{needed:3,id:2870},ShadowDye:{needed:3,id:2871},NegativeDye:{needed:3,id:2872},LivingOceanDye:{needed:3,id:2873},BrownDye:{needed:3,id:2874},BrownAndBlackDye:{needed:3,id:2875},BrightBrownDye:{needed:3,id:2876},BrownAndSilverDye:{needed:3,id:2877},WispDye:{needed:3,id:2878},PixieDye:{needed:3,id:2879},InfluxWaver:{needed:1,id:2880},ChargedBlasterCannon:{needed:1,id:2882},ChlorophyteDye:{needed:3,id:2883},UnicornWispDye:{needed:3,id:2884},InfernalWispDye:{needed:3,id:2885},ViciousPowder:{needed:99,id:2886},ViciousMushroom:{needed:25,id:2887},BeesKnees:{needed:1,id:2888},GoldBird:{needed:3,id:2889},GoldBunny:{needed:3,id:2890},GoldButterfly:{needed:3,id:2891},GoldFrog:{needed:3,id:2892},GoldGrasshopper:{needed:3,id:2893},GoldMouse:{needed:3,id:2894},GoldWorm:{needed:3,id:2895},StickyDynamite:{needed:99,id:2896},AngryTrapperBanner:{needed:1,id:2897},ArmoredVikingBanner:{needed:1,id:2898},BlackSlimeBanner:{needed:1,id:2899},BlueArmoredBonesBanner:{needed:1,id:2900},BlueCultistArcherBanner:{needed:1,id:2901},BlueCultistCasterBanner:{needed:1,id:2902},BoneLeeBanner:{needed:1,id:2904},ClingerBanner:{needed:1,id:2905},CochinealBeetleBanner:{needed:1,id:2906},CorruptPenguinBanner:{needed:1,id:2907},CorruptSlimeBanner:{needed:1,id:2908},CorruptorBanner:{needed:1,id:2909},CrimslimeBanner:{needed:1,id:2910},CursedSkullBanner:{needed:1,id:2911},CyanBeetleBanner:{needed:1,id:2912},DevourerBanner:{needed:1,id:2913},DiablolistBanner:{needed:1,id:2914},DoctorBonesBanner:{needed:1,id:2915},DungeonSlimeBanner:{needed:1,id:2916},DungeonSpiritBanner:{needed:1,id:2917},ElfArcherBanner:{needed:1,id:2918},ElfCopterBanner:{needed:1,id:2919},EyezorBanner:{needed:1,id:2920},FlockoBanner:{needed:1,id:2921},GhostBanner:{needed:1,id:2922},GiantBatBanner:{needed:1,id:2923},GiantCursedSkullBanner:{needed:1,id:2924},GiantFlyingFoxBanner:{needed:1,id:2925},GingerbreadManBanner:{needed:1,id:2926},GoblinArcherBanner:{needed:1,id:2927},GreenSlimeBanner:{needed:1,id:2928},HeadlessHorsemanBanner:{needed:1,id:2929},HellArmoredBonesBanner:{needed:1,id:2930},HellhoundBanner:{needed:1,id:2931},HoppinJackBanner:{needed:1,id:2932},IceBatBanner:{needed:1,id:2933},IceGolemBanner:{needed:1,id:2934},IceSlimeBanner:{needed:1,id:2935},IchorStickerBanner:{needed:1,id:2936},IlluminantBatBanner:{needed:1,id:2937},IlluminantSlimeBanner:{needed:1,id:2938},JungleBatBanner:{needed:1,id:2939},JungleSlimeBanner:{needed:1,id:2940},KrampusBanner:{needed:1,id:2941},LacBeetleBanner:{needed:1,id:2942},LavaBatBanner:{needed:1,id:2943},LavaSlimeBanner:{needed:1,id:2944},MartianBrainscramblerBanner:{needed:1,id:2945},MartianDroneBanner:{needed:1,id:2946},MartianEngineerBanner:{needed:1,id:2947},MartianGigazapperBanner:{needed:1,id:2948},MartianGreyGruntBanner:{needed:1,id:2949},MartianOfficerBanner:{needed:1,id:2950},MartianRaygunnerBanner:{needed:1,id:2951},MartianScutlixGunnerBanner:{needed:1,id:2952},MartianTeslaTurretBanner:{needed:1,id:2953},MisterStabbyBanner:{needed:1,id:2954},MotherSlimeBanner:{needed:1,id:2955},NecromancerBanner:{needed:1,id:2956},NutcrackerBanner:{needed:1,id:2957},PaladinBanner:{needed:1,id:2958},PenguinBanner:{needed:1,id:2959},PinkyBanner:{needed:1,id:2960},PoltergeistBanner:{needed:1,id:2961},PossessedArmorBanner:{needed:1,id:2962},PresentMimicBanner:{needed:1,id:2963},PurpleSlimeBanner:{needed:1,id:2964},RaggedCasterBanner:{needed:1,id:2965},RainbowSlimeBanner:{needed:1,id:2966},RavenBanner:{needed:1,id:2967},RedSlimeBanner:{needed:1,id:2968},RuneWizardBanner:{needed:1,id:2969},RustyArmoredBonesBanner:{needed:1,id:2970},ScarecrowBanner:{needed:1,id:2971},ScutlixBanner:{needed:1,id:2972},SkeletonArcherBanner:{needed:1,id:2973},SkeletonCommandoBanner:{needed:1,id:2974},SkeletonSniperBanner:{needed:1,id:2975},SlimerBanner:{needed:1,id:2976},SnatcherBanner:{needed:1,id:2977},SnowBallaBanner:{needed:1,id:2978},SnowmanGangstaBanner:{needed:1,id:2979},SpikedIceSlimeBanner:{needed:1,id:2980},SpikedJungleSlimeBanner:{needed:1,id:2981},SplinterlingBanner:{needed:1,id:2982},SquidBanner:{needed:1,id:2983},TacticalSkeletonBanner:{needed:1,id:2984},TheGroomBanner:{needed:1,id:2985},TimBanner:{needed:1,id:2986},UndeadMinerBanner:{needed:1,id:2987},UndeadVikingBanner:{needed:1,id:2988},YellowSlimeBanner:{needed:1,id:2992},YetiBanner:{needed:1,id:2993},ZombieElfBanner:{needed:1,id:2994},SparkyPainting:{needed:1,id:2995},VineRope:{needed:100,id:2996},WormholePotion:{needed:20,id:2997},SummonerEmblem:{needed:1,id:2998},BewitchingTable:{needed:1,id:2999},AlchemyTable:{needed:1,id:3e3},StrangeBrew:{needed:30,id:3001},SpelunkerGlowstick:{needed:100,id:3002},BoneArrow:{needed:99,id:3003},BoneTorch:{needed:100,id:3004},VineRopeCoil:{needed:10,id:3005},SoulDrain:{needed:1,id:3006},DartPistol:{needed:1,id:3007},DartRifle:{needed:1,id:3008},CrystalDart:{needed:99,id:3009},CursedDart:{needed:99,id:3010},IchorDart:{needed:99,id:3011},ChainGuillotines:{needed:1,id:3012},FetidBaghnakhs:{needed:1,id:3013},ClingerStaff:{needed:1,id:3014},PutridScent:{needed:1,id:3015},FleshKnuckles:{needed:1,id:3016},FlowerBoots:{needed:1,id:3017},Seedler:{needed:1,id:3018},HellwingBow:{needed:1,id:3019},TendonHook:{needed:1,id:3020},ThornHook:{needed:1,id:3021},IlluminantHook:{needed:1,id:3022},WormHook:{needed:1,id:3023},DevDye:{needed:3,id:3024},PurpleOozeDye:{needed:3,id:3025},ReflectiveSilverDye:{needed:3,id:3026},ReflectiveGoldDye:{needed:3,id:3027},BlueAcidDye:{needed:3,id:3028},DaedalusStormbow:{needed:1,id:3029},FlyingKnife:{needed:1,id:3030},BottomlessBucket:{needed:1,id:3031},SuperAbsorbantSponge:{needed:1,id:3032},GoldRing:{needed:1,id:3033},CoinRing:{needed:1,id:3034},GreedyRing:{needed:1,id:3035},FishFinder:{needed:1,id:3036},WeatherRadio:{needed:1,id:3037},HadesDye:{needed:3,id:3038},TwilightDye:{needed:3,id:3039},AcidDye:{needed:3,id:3040},MushroomDye:{needed:3,id:3041},PhaseDye:{needed:3,id:3042},MagicLantern:{needed:1,id:3043},MusicBoxLunarBoss:{needed:1,id:3044},RainbowTorch:{needed:100,id:3045},CursedCampfire:{needed:1,id:3046},DemonCampfire:{needed:1,id:3047},FrozenCampfire:{needed:1,id:3048},IchorCampfire:{needed:1,id:3049},RainbowCampfire:{needed:1,id:3050},CrystalVileShard:{needed:1,id:3051},ShadowFlameBow:{needed:1,id:3052},ShadowFlameHexDoll:{needed:1,id:3053},ShadowFlameKnife:{needed:1,id:3054},PaintingAcorns:{needed:1,id:3055},PaintingColdSnap:{needed:1,id:3056},PaintingCursedSaint:{needed:1,id:3057},PaintingSnowfellas:{needed:1,id:3058},PaintingTheSeason:{needed:1,id:3059},BoneRattle:{needed:1,id:3060},ArchitectGizmoPack:{needed:1,id:3061},CrimsonHeart:{needed:1,id:3062},Meowmere:{needed:1,id:3063},Sundial:{needed:1,id:3064},StarWrath:{needed:1,id:3065},MarbleBlock:{needed:100,id:3066},HellstoneBrickWall:{needed:400,id:3067},CordageGuide:{needed:1,id:3068},WandofSparking:{needed:1,id:3069},GoldBirdCage:{needed:1,id:3070},GoldBunnyCage:{needed:1,id:3071},GoldButterflyCage:{needed:1,id:3072},GoldFrogCage:{needed:1,id:3073},GoldGrasshopperCage:{needed:1,id:3074},GoldMouseCage:{needed:1,id:3075},GoldWormCage:{needed:1,id:3076},SilkRope:{needed:100,id:3077},WebRope:{needed:100,id:3078},SilkRopeCoil:{needed:10,id:3079},WebRopeCoil:{needed:10,id:3080},Marble:{needed:100,id:3081},MarbleWall:{needed:400,id:3082},MarbleBlockWall:{needed:400,id:3083},Radar:{needed:1,id:3084},LockBox:{needed:10,id:3085},Granite:{needed:100,id:3086},GraniteBlock:{needed:100,id:3087},GraniteWall:{needed:400,id:3088},GraniteBlockWall:{needed:400,id:3089},RoyalGel:{needed:1,id:3090},NightKey:{needed:1,id:3091},LightKey:{needed:1,id:3092},HerbBag:{needed:2,id:3093},Javelin:{needed:99,id:3094},TallyCounter:{needed:1,id:3095},Sextant:{needed:1,id:3096},EoCShield:{needed:1,id:3097},ButchersChainsaw:{needed:1,id:3098},Stopwatch:{needed:1,id:3099},MeteoriteBrick:{needed:100,id:3100},MeteoriteBrickWall:{needed:400,id:3101},MetalDetector:{needed:1,id:3102},EndlessQuiver:{needed:1,id:3103},EndlessMusketPouch:{needed:1,id:3104},ToxicFlask:{needed:1,id:3105},PsychoKnife:{needed:1,id:3106},NailGun:{needed:1,id:3107},Nail:{needed:99,id:3108},NightVisionHelmet:{needed:1,id:3109},CelestialShell:{needed:1,id:3110},PinkGel:{needed:5,id:3111},BouncyGlowstick:{needed:100,id:3112},PinkSlimeBlock:{needed:100,id:3113},PinkTorch:{needed:100,id:3114},BouncyBomb:{needed:99,id:3115},BouncyGrenade:{needed:99,id:3116},PeaceCandle:{needed:1,id:3117},LifeformAnalyzer:{needed:1,id:3118},DPSMeter:{needed:1,id:3119},FishermansGuide:{needed:1,id:3120},GoblinTech:{needed:1,id:3121},REK:{needed:1,id:3122},PDA:{needed:1,id:3123},CellPhone:{needed:1,id:3124},GraniteChest:{needed:1,id:3125},MeteoriteClock:{needed:1,id:3126},MarbleClock:{needed:1,id:3127},GraniteClock:{needed:1,id:3128},MeteoriteDoor:{needed:1,id:3129},MarbleDoor:{needed:1,id:3130},GraniteDoor:{needed:1,id:3131},MeteoriteDresser:{needed:1,id:3132},MarbleDresser:{needed:1,id:3133},GraniteDresser:{needed:1,id:3134},MeteoriteLamp:{needed:1,id:3135},MarbleLamp:{needed:1,id:3136},GraniteLamp:{needed:1,id:3137},MeteoriteLantern:{needed:1,id:3138},MarbleLantern:{needed:1,id:3139},GraniteLantern:{needed:1,id:3140},MeteoritePiano:{needed:1,id:3141},MarblePiano:{needed:1,id:3142},GranitePiano:{needed:1,id:3143},MeteoritePlatform:{needed:200,id:3144},MarblePlatform:{needed:200,id:3145},GranitePlatform:{needed:200,id:3146},MeteoriteSink:{needed:1,id:3147},MarbleSink:{needed:1,id:3148},GraniteSink:{needed:1,id:3149},MeteoriteSofa:{needed:1,id:3150},MarbleSofa:{needed:1,id:3151},GraniteSofa:{needed:1,id:3152},MeteoriteTable:{needed:1,id:3153},MarbleTable:{needed:1,id:3154},GraniteTable:{needed:1,id:3155},MeteoriteWorkBench:{needed:1,id:3156},MarbleWorkBench:{needed:1,id:3157},GraniteWorkBench:{needed:1,id:3158},MeteoriteBathtub:{needed:1,id:3159},MarbleBathtub:{needed:1,id:3160},GraniteBathtub:{needed:1,id:3161},MeteoriteBed:{needed:1,id:3162},MarbleBed:{needed:1,id:3163},GraniteBed:{needed:1,id:3164},MeteoriteBookcase:{needed:1,id:3165},MarbleBookcase:{needed:1,id:3166},GraniteBookcase:{needed:1,id:3167},MeteoriteCandelabra:{needed:1,id:3168},MarbleCandelabra:{needed:1,id:3169},GraniteCandelabra:{needed:1,id:3170},MeteoriteCandle:{needed:1,id:3171},MarbleCandle:{needed:1,id:3172},GraniteCandle:{needed:1,id:3173},MeteoriteChair:{needed:1,id:3174},MarbleChair:{needed:1,id:3175},GraniteChair:{needed:1,id:3176},MeteoriteChandelier:{needed:1,id:3177},MarbleChandelier:{needed:1,id:3178},GraniteChandelier:{needed:1,id:3179},MeteoriteChest:{needed:1,id:3180},MarbleChest:{needed:1,id:3181},MagicWaterDropper:{needed:1,id:3182},GoldenBugNet:{needed:1,id:3183},MagicLavaDropper:{needed:1,id:3184},MagicHoneyDropper:{needed:1,id:3185},EmptyDropper:{needed:1,id:3186},GladiatorHelmet:{needed:1,id:3187},GladiatorBreastplate:{needed:1,id:3188},GladiatorLeggings:{needed:1,id:3189},ReflectiveDye:{needed:3,id:3190},EnchantedNightcrawler:{needed:5,id:3191},Grubby:{needed:5,id:3192},Sluggy:{needed:5,id:3193},Buggy:{needed:5,id:3194},GrubSoup:{needed:10,id:3195},BombFish:{needed:99,id:3196},FrostDaggerfish:{needed:99,id:3197},SharpeningStation:{needed:1,id:3198},IceMirror:{needed:1,id:3199},SailfishBoots:{needed:1,id:3200},TsunamiInABottle:{needed:1,id:3201},TargetDummy:{needed:1,id:3202},CorruptFishingCrate:{needed:10,id:3203},CrimsonFishingCrate:{needed:10,id:3204},DungeonFishingCrate:{needed:10,id:3205},FloatingIslandFishingCrate:{needed:10,id:3206},HallowedFishingCrate:{needed:10,id:3207},JungleFishingCrate:{needed:10,id:3208},CrystalSerpent:{needed:1,id:3209},Toxikarp:{needed:1,id:3210},Bladetongue:{needed:1,id:3211},SharkToothNecklace:{needed:1,id:3212},MoneyTrough:{needed:1,id:3213},Bubble:{needed:100,id:3214},DayBloomPlanterBox:{needed:25,id:3215},MoonglowPlanterBox:{needed:25,id:3216},CorruptPlanterBox:{needed:25,id:3217},CrimsonPlanterBox:{needed:25,id:3218},BlinkrootPlanterBox:{needed:25,id:3219},WaterleafPlanterBox:{needed:25,id:3220},ShiverthornPlanterBox:{needed:25,id:3221},FireBlossomPlanterBox:{needed:25,id:3222},BrainOfConfusion:{needed:1,id:3223},WormScarf:{needed:1,id:3224},BalloonPufferfish:{needed:1,id:3225},BejeweledValkyrieHead:{needed:1,id:3226},BejeweledValkyrieBody:{needed:1,id:3227},BejeweledValkyrieWing:{needed:1,id:3228},RichGravestone1:{needed:2,id:3229},RichGravestone2:{needed:2,id:3230},RichGravestone3:{needed:2,id:3231},RichGravestone4:{needed:2,id:3232},RichGravestone5:{needed:2,id:3233},CrystalBlock:{needed:100,id:3234},MusicBoxMartians:{needed:1,id:3235},MusicBoxPirates:{needed:1,id:3236},MusicBoxHell:{needed:1,id:3237},CrystalBlockWall:{needed:400,id:3238},Trapdoor:{needed:1,id:3239},TallGate:{needed:1,id:3240},SharkronBalloon:{needed:1,id:3241},TaxCollectorHat:{needed:1,id:3242},TaxCollectorSuit:{needed:1,id:3243},TaxCollectorPants:{needed:1,id:3244},BoneGlove:{needed:1,id:3245},ClothierJacket:{needed:1,id:3246},ClothierPants:{needed:1,id:3247},DyeTraderTurban:{needed:1,id:3248},DeadlySphereStaff:{needed:1,id:3249},BalloonHorseshoeFart:{needed:1,id:3250},BalloonHorseshoeHoney:{needed:1,id:3251},BalloonHorseshoeSharkron:{needed:1,id:3252},LavaLamp:{needed:1,id:3253},CageEnchantedNightcrawler:{needed:1,id:3254},CageBuggy:{needed:1,id:3255},CageGrubby:{needed:1,id:3256},CageSluggy:{needed:1,id:3257},SlapHand:{needed:1,id:3258},TwilightHairDye:{needed:1,id:3259},BlessedApple:{needed:1,id:3260},SpectreBar:{needed:25,id:3261},Code1:{needed:1,id:3262},BuccaneerBandana:{needed:1,id:3263},BuccaneerShirt:{needed:1,id:3264},BuccaneerPants:{needed:1,id:3265},ObsidianHelm:{needed:1,id:3266},ObsidianShirt:{needed:1,id:3267},ObsidianPants:{needed:1,id:3268},MedusaHead:{needed:1,id:3269},ItemFrame:{needed:1,id:3270},Sandstone:{needed:100,id:3271},HardenedSand:{needed:100,id:3272},SandstoneWall:{needed:400,id:3273},CorruptHardenedSand:{needed:100,id:3274},CrimsonHardenedSand:{needed:100,id:3275},CorruptSandstone:{needed:100,id:3276},CrimsonSandstone:{needed:100,id:3277},WoodYoyo:{needed:1,id:3278},CorruptYoyo:{needed:1,id:3279},CrimsonYoyo:{needed:1,id:3280},JungleYoyo:{needed:1,id:3281},Cascade:{needed:1,id:3282},Chik:{needed:1,id:3283},Code2:{needed:1,id:3284},Rally:{needed:1,id:3285},Yelets:{needed:1,id:3286},RedsYoyo:{needed:1,id:3287},ValkyrieYoyo:{needed:1,id:3288},Amarok:{needed:1,id:3289},HelFire:{needed:1,id:3290},Kraken:{needed:1,id:3291},TheEyeOfCthulhu:{needed:1,id:3292},RedString:{needed:1,id:3293},OrangeString:{needed:1,id:3294},YellowString:{needed:1,id:3295},LimeString:{needed:1,id:3296},GreenString:{needed:1,id:3297},TealString:{needed:1,id:3298},CyanString:{needed:1,id:3299},SkyBlueString:{needed:1,id:3300},BlueString:{needed:1,id:3301},PurpleString:{needed:1,id:3302},VioletString:{needed:1,id:3303},PinkString:{needed:1,id:3304},BrownString:{needed:1,id:3305},WhiteString:{needed:1,id:3306},RainbowString:{needed:1,id:3307},BlackString:{needed:1,id:3308},BlackCounterweight:{needed:1,id:3309},BlueCounterweight:{needed:1,id:3310},GreenCounterweight:{needed:1,id:3311},PurpleCounterweight:{needed:1,id:3312},RedCounterweight:{needed:1,id:3313},YellowCounterweight:{needed:1,id:3314},FormatC:{needed:1,id:3315},Gradient:{needed:1,id:3316},Valor:{needed:1,id:3317},KingSlimeBossBag:{needed:3,id:3318},EyeOfCthulhuBossBag:{needed:3,id:3319},EaterOfWorldsBossBag:{needed:3,id:3320},BrainOfCthulhuBossBag:{needed:3,id:3321},QueenBeeBossBag:{needed:3,id:3322},SkeletronBossBag:{needed:3,id:3323},WallOfFleshBossBag:{needed:3,id:3324},DestroyerBossBag:{needed:3,id:3325},TwinsBossBag:{needed:3,id:3326},SkeletronPrimeBossBag:{needed:3,id:3327},PlanteraBossBag:{needed:3,id:3328},GolemBossBag:{needed:3,id:3329},FishronBossBag:{needed:3,id:3330},MoonLordBossBag:{needed:3,id:3332},HiveBackpack:{needed:1,id:3333},YoYoGlove:{needed:1,id:3334},DemonHeart:{needed:1,id:3335},SporeSac:{needed:1,id:3336},ShinyStone:{needed:1,id:3337},HallowHardenedSand:{needed:100,id:3338},HallowSandstone:{needed:100,id:3339},HardenedSandWall:{needed:400,id:3340},CorruptHardenedSandWall:{needed:400,id:3341},CrimsonHardenedSandWall:{needed:400,id:3342},HallowHardenedSandWall:{needed:400,id:3343},CorruptSandstoneWall:{needed:400,id:3344},CrimsonSandstoneWall:{needed:400,id:3345},HallowSandstoneWall:{needed:400,id:3346},DesertFossil:{needed:200,id:3347},DesertFossilWall:{needed:400,id:3348},DyeTradersScimitar:{needed:1,id:3349},PainterPaintballGun:{needed:1,id:3350},TaxCollectorsStickOfDoom:{needed:1,id:3351},StylistKilLaKillScissorsIWish:{needed:1,id:3352},MinecartMech:{needed:1,id:3353},MechanicalWheelPiece:{needed:1,id:3354},MechanicalWagonPiece:{needed:1,id:3355},MechanicalBatteryPiece:{needed:1,id:3356},AncientCultistTrophy:{needed:1,id:3357},MartianSaucerTrophy:{needed:1,id:3358},FlyingDutchmanTrophy:{needed:1,id:3359},LivingMahoganyWand:{needed:1,id:3360},LivingMahoganyLeafWand:{needed:1,id:3361},FallenTuxedoShirt:{needed:1,id:3362},FallenTuxedoPants:{needed:1,id:3363},Fireplace:{needed:1,id:3364},Chimney:{needed:1,id:3365},YoyoBag:{needed:1,id:3366},ShrimpyTruffle:{needed:1,id:3367},Arkhalis:{needed:1,id:3368},ConfettiCannon:{needed:1,id:3369},MusicBoxTowers:{needed:1,id:3370},MusicBoxGoblins:{needed:1,id:3371},BossMaskCultist:{needed:1,id:3372},BossMaskMoonlord:{needed:1,id:3373},FossilHelm:{needed:1,id:3374},FossilShirt:{needed:1,id:3375},FossilPants:{needed:1,id:3376},AmberStaff:{needed:1,id:3377},BoneJavelin:{needed:99,id:3378},BoneDagger:{needed:99,id:3379},FossilOre:{needed:100,id:3380},StardustHelmet:{needed:1,id:3381},StardustBreastplate:{needed:1,id:3382},StardustLeggings:{needed:1,id:3383},PortalGun:{needed:1,id:3384},StrangePlant1:{needed:3,id:3385},StrangePlant2:{needed:3,id:3386},StrangePlant3:{needed:3,id:3387},StrangePlant4:{needed:3,id:3388},Terrarian:{needed:1,id:3389},GoblinSummonerBanner:{needed:1,id:3390},SalamanderBanner:{needed:1,id:3391},GiantShellyBanner:{needed:1,id:3392},CrawdadBanner:{needed:1,id:3393},FritzBanner:{needed:1,id:3394},CreatureFromTheDeepBanner:{needed:1,id:3395},DrManFlyBanner:{needed:1,id:3396},MothronBanner:{needed:1,id:3397},ThePossessedBanner:{needed:1,id:3399},ButcherBanner:{needed:1,id:3400},PsychoBanner:{needed:1,id:3401},DeadlySphereBanner:{needed:1,id:3402},NailheadBanner:{needed:1,id:3403},MedusaBanner:{needed:1,id:3405},GreekSkeletonBanner:{needed:1,id:3406},GraniteFlyerBanner:{needed:1,id:3407},GraniteGolemBanner:{needed:1,id:3408},BloodZombieBanner:{needed:1,id:3409},DripplerBanner:{needed:1,id:3410},TombCrawlerBanner:{needed:1,id:3411},DuneSplicerBanner:{needed:1,id:3412},FlyingAntlionBanner:{needed:1,id:3413},WalkingAntlionBanner:{needed:1,id:3414},DesertGhoulBanner:{needed:1,id:3415},DesertLamiaBanner:{needed:1,id:3416},DesertDjinnBanner:{needed:1,id:3417},DesertBasiliskBanner:{needed:1,id:3418},RavagerScorpionBanner:{needed:1,id:3419},StardustSoldierBanner:{needed:1,id:3420},StardustWormBanner:{needed:1,id:3421},StardustJellyfishBanner:{needed:1,id:3422},StardustSpiderBanner:{needed:1,id:3423},StardustLargeCellBanner:{needed:1,id:3425},SolarCoriteBanner:{needed:1,id:3426},SolarSrollerBanner:{needed:1,id:3427},SolarCrawltipedeBanner:{needed:1,id:3428},SolarDrakomireRiderBanner:{needed:1,id:3429},SolarDrakomireBanner:{needed:1,id:3430},SolarSolenianBanner:{needed:1,id:3431},NebulaSoldierBanner:{needed:1,id:3432},NebulaHeadcrabBanner:{needed:1,id:3433},NebulaBrainBanner:{needed:1,id:3434},NebulaBeastBanner:{needed:1,id:3435},VortexLarvaBanner:{needed:1,id:3436},VortexHornetQueenBanner:{needed:1,id:3437},VortexHornetBanner:{needed:1,id:3438},VortexSoldierBanner:{needed:1,id:3439},VortexRiflemanBanner:{needed:1,id:3440},PirateCaptainBanner:{needed:1,id:3441},PirateDeadeyeBanner:{needed:1,id:3442},PirateCorsairBanner:{needed:1,id:3443},PirateCrossbowerBanner:{needed:1,id:3444},MartianWalkerBanner:{needed:1,id:3445},RedDevilBanner:{needed:1,id:3446},PinkJellyfishBanner:{needed:1,id:3447},GreenJellyfishBanner:{needed:1,id:3448},DarkMummyBanner:{needed:1,id:3449},LightMummyBanner:{needed:1,id:3450},AngryBonesBanner:{needed:1,id:3451},IceTortoiseBanner:{needed:1,id:3452},FragmentVortex:{needed:25,id:3456},FragmentNebula:{needed:25,id:3457},FragmentSolar:{needed:25,id:3458},FragmentStardust:{needed:25,id:3459},LunarOre:{needed:100,id:3460},LunarBrick:{needed:100,id:3461},StardustDrill:{needed:1,id:3464},StardustPickaxe:{needed:1,id:3466},LunarBar:{needed:25,id:3467},WingsSolar:{needed:1,id:3468},WingsVortex:{needed:1,id:3469},WingsNebula:{needed:1,id:3470},WingsStardust:{needed:1,id:3471},LunarBrickWall:{needed:400,id:3472},SolarEruption:{needed:1,id:3473},StardustCellStaff:{needed:1,id:3474},VortexBeater:{needed:1,id:3475},NebulaArcanum:{needed:1,id:3476},BloodWater:{needed:99,id:3477},TheBrideHat:{needed:1,id:3478},TheBrideDress:{needed:1,id:3479},PlatinumBow:{needed:1,id:3480},PlatinumHammer:{needed:1,id:3481},PlatinumAxe:{needed:1,id:3482},PlatinumShortsword:{needed:1,id:3483},PlatinumBroadsword:{needed:1,id:3484},PlatinumPickaxe:{needed:1,id:3485},TungstenBow:{needed:1,id:3486},TungstenHammer:{needed:1,id:3487},TungstenAxe:{needed:1,id:3488},TungstenShortsword:{needed:1,id:3489},TungstenBroadsword:{needed:1,id:3490},TungstenPickaxe:{needed:1,id:3491},LeadBow:{needed:1,id:3492},LeadHammer:{needed:1,id:3493},LeadAxe:{needed:1,id:3494},LeadShortsword:{needed:1,id:3495},LeadBroadsword:{needed:1,id:3496},LeadPickaxe:{needed:1,id:3497},TinBow:{needed:1,id:3498},TinHammer:{needed:1,id:3499},TinAxe:{needed:1,id:3500},TinShortsword:{needed:1,id:3501},TinBroadsword:{needed:1,id:3502},TinPickaxe:{needed:1,id:3503},CopperBow:{needed:1,id:3504},CopperHammer:{needed:1,id:3505},CopperAxe:{needed:1,id:3506},CopperShortsword:{needed:1,id:3507},CopperBroadsword:{needed:1,id:3508},CopperPickaxe:{needed:1,id:3509},SilverBow:{needed:1,id:3510},SilverHammer:{needed:1,id:3511},SilverAxe:{needed:1,id:3512},SilverShortsword:{needed:1,id:3513},SilverBroadsword:{needed:1,id:3514},SilverPickaxe:{needed:1,id:3515},GoldBow:{needed:1,id:3516},GoldHammer:{needed:1,id:3517},GoldAxe:{needed:1,id:3518},GoldShortsword:{needed:1,id:3519},GoldBroadsword:{needed:1,id:3520},GoldPickaxe:{needed:1,id:3521},LunarHamaxeSolar:{needed:1,id:3522},LunarHamaxeVortex:{needed:1,id:3523},LunarHamaxeNebula:{needed:1,id:3524},LunarHamaxeStardust:{needed:1,id:3525},SolarDye:{needed:3,id:3526},NebulaDye:{needed:3,id:3527},VortexDye:{needed:3,id:3528},StardustDye:{needed:3,id:3529},VoidDye:{needed:3,id:3530},StardustDragonStaff:{needed:1,id:3531},Bacon:{needed:10,id:3532},ShiftingSandsDye:{needed:3,id:3533},MirageDye:{needed:3,id:3534},ShiftingPearlSandsDye:{needed:3,id:3535},VortexMonolith:{needed:1,id:3536},NebulaMonolith:{needed:1,id:3537},StardustMonolith:{needed:1,id:3538},SolarMonolith:{needed:1,id:3539},Phantasm:{needed:1,id:3540},LastPrism:{needed:1,id:3541},NebulaBlaze:{needed:1,id:3542},DayBreak:{needed:1,id:3543},SuperHealingPotion:{needed:30,id:3544},Detonator:{needed:1,id:3545},FireworksLauncher:{needed:1,id:3546},BouncyDynamite:{needed:99,id:3547},PartyGirlGrenade:{needed:99,id:3548},LunarCraftingStation:{needed:1,id:3549},FlameAndSilverDye:{needed:3,id:3550},GreenFlameAndSilverDye:{needed:3,id:3551},BlueFlameAndSilverDye:{needed:3,id:3552},ReflectiveCopperDye:{needed:3,id:3553},ReflectiveObsidianDye:{needed:3,id:3554},ReflectiveMetalDye:{needed:3,id:3555},MidnightRainbowDye:{needed:3,id:3556},BlackAndWhiteDye:{needed:3,id:3557},BrightSilverDye:{needed:3,id:3558},SilverAndBlackDye:{needed:3,id:3559},RedAcidDye:{needed:3,id:3560},GelDye:{needed:3,id:3561},PinkGelDye:{needed:3,id:3562},SquirrelRed:{needed:5,id:3563},SquirrelGold:{needed:3,id:3564},SquirrelOrangeCage:{needed:1,id:3565},SquirrelGoldCage:{needed:1,id:3566},MoonlordBullet:{needed:99,id:3567},MoonlordArrow:{needed:99,id:3568},MoonlordTurretStaff:{needed:1,id:3569},LunarFlareBook:{needed:1,id:3570},RainbowCrystalStaff:{needed:1,id:3571},LunarHook:{needed:1,id:3572},LunarBlockSolar:{needed:100,id:3573},LunarBlockVortex:{needed:100,id:3574},LunarBlockNebula:{needed:100,id:3575},LunarBlockStardust:{needed:100,id:3576},SuspiciousLookingTentacle:{needed:1,id:3577},Yoraiz0rShirt:{needed:1,id:3578},Yoraiz0rPants:{needed:1,id:3579},Yoraiz0rWings:{needed:1,id:3580},Yoraiz0rDarkness:{needed:1,id:3581},JimsWings:{needed:1,id:3582},Yoraiz0rHead:{needed:1,id:3583},LivingLeafWall:{needed:400,id:3584},SkiphsHelm:{needed:1,id:3585},SkiphsShirt:{needed:1,id:3586},SkiphsPants:{needed:1,id:3587},SkiphsWings:{needed:1,id:3588},LokisHelm:{needed:1,id:3589},LokisShirt:{needed:1,id:3590},LokisPants:{needed:1,id:3591},LokisWings:{needed:1,id:3592},SandSlimeBanner:{needed:1,id:3593},SeaSnailBanner:{needed:1,id:3594},MoonLordTrophy:{needed:1,id:3595},MoonLordPainting:{needed:1,id:3596},BurningHadesDye:{needed:3,id:3597},GrimDye:{needed:3,id:3598},LokisDye:{needed:3,id:3599},ShadowflameHadesDye:{needed:3,id:3600},CelestialSigil:{needed:3,id:3601},LogicGateLamp_Off:{needed:5,id:3602},LogicGate_AND:{needed:5,id:3603},LogicGate_OR:{needed:5,id:3604},LogicGate_NAND:{needed:5,id:3605},LogicGate_NOR:{needed:5,id:3606},LogicGate_XOR:{needed:5,id:3607},LogicGate_NXOR:{needed:5,id:3608},ConveyorBeltLeft:{needed:100,id:3609},ConveyorBeltRight:{needed:100,id:3610},WireKite:{needed:1,id:3611},YellowWrench:{needed:1,id:3612},LogicSensor_Sun:{needed:5,id:3613},LogicSensor_Moon:{needed:5,id:3614},LogicSensor_Above:{needed:5,id:3615},WirePipe:{needed:25,id:3616},AnnouncementBox:{needed:1,id:3617},LogicGateLamp_On:{needed:5,id:3618},MechanicalLens:{needed:1,id:3619},ActuationRod:{needed:1,id:3620},TeamBlockRed:{needed:100,id:3621},TeamBlockRedPlatform:{needed:200,id:3622},StaticHook:{needed:1,id:3623},ActuationAccessory:{needed:1,id:3624},MulticolorWrench:{needed:1,id:3625},WeightedPressurePlatePink:{needed:5,id:3626},EngineeringHelmet:{needed:1,id:3627},CompanionCube:{needed:1,id:3628},WireBulb:{needed:5,id:3629},WeightedPressurePlateOrange:{needed:5,id:3630},WeightedPressurePlatePurple:{needed:5,id:3631},WeightedPressurePlateCyan:{needed:5,id:3632},TeamBlockGreen:{needed:100,id:3633},TeamBlockBlue:{needed:100,id:3634},TeamBlockYellow:{needed:100,id:3635},TeamBlockPink:{needed:100,id:3636},TeamBlockWhite:{needed:100,id:3637},TeamBlockGreenPlatform:{needed:200,id:3638},TeamBlockBluePlatform:{needed:200,id:3639},TeamBlockYellowPlatform:{needed:200,id:3640},TeamBlockPinkPlatform:{needed:200,id:3641},TeamBlockWhitePlatform:{needed:200,id:3642},LargeAmber:{needed:1,id:3643},GemLockRuby:{needed:1,id:3644},GemLockSapphire:{needed:1,id:3645},GemLockEmerald:{needed:1,id:3646},GemLockTopaz:{needed:1,id:3647},GemLockAmethyst:{needed:1,id:3648},GemLockDiamond:{needed:1,id:3649},GemLockAmber:{needed:1,id:3650},SquirrelStatue:{needed:1,id:3651},ButterflyStatue:{needed:1,id:3652},WormStatue:{needed:1,id:3653},FireflyStatue:{needed:1,id:3654},ScorpionStatue:{needed:1,id:3655},SnailStatue:{needed:1,id:3656},GrasshopperStatue:{needed:1,id:3657},MouseStatue:{needed:1,id:3658},DuckStatue:{needed:1,id:3659},PenguinStatue:{needed:1,id:3660},FrogStatue:{needed:1,id:3661},BuggyStatue:{needed:1,id:3662},LogicGateLamp_Faulty:{needed:5,id:3663},PortalGunStation:{needed:1,id:3664},Fake_Chest:{needed:1,id:3665},Fake_GoldChest:{needed:1,id:3666},Fake_ShadowChest:{needed:1,id:3667},Fake_EbonwoodChest:{needed:1,id:3668},Fake_RichMahoganyChest:{needed:1,id:3669},Fake_PearlwoodChest:{needed:1,id:3670},Fake_IvyChest:{needed:1,id:3671},Fake_IceChest:{needed:1,id:3672},Fake_LivingWoodChest:{needed:1,id:3673},Fake_SkywareChest:{needed:1,id:3674},Fake_ShadewoodChest:{needed:1,id:3675},Fake_WebCoveredChest:{needed:1,id:3676},Fake_LihzahrdChest:{needed:1,id:3677},Fake_WaterChest:{needed:1,id:3678},Fake_JungleChest:{needed:1,id:3679},Fake_CorruptionChest:{needed:1,id:3680},Fake_CrimsonChest:{needed:1,id:3681},Fake_HallowedChest:{needed:1,id:3682},Fake_FrozenChest:{needed:1,id:3683},Fake_DynastyChest:{needed:1,id:3684},Fake_HoneyChest:{needed:1,id:3685},Fake_SteampunkChest:{needed:1,id:3686},Fake_PalmWoodChest:{needed:1,id:3687},Fake_MushroomChest:{needed:1,id:3688},Fake_BorealWoodChest:{needed:1,id:3689},Fake_SlimeChest:{needed:1,id:3690},Fake_GreenDungeonChest:{needed:1,id:3691},Fake_PinkDungeonChest:{needed:1,id:3692},Fake_BlueDungeonChest:{needed:1,id:3693},Fake_BoneChest:{needed:1,id:3694},Fake_CactusChest:{needed:1,id:3695},Fake_FleshChest:{needed:1,id:3696},Fake_ObsidianChest:{needed:1,id:3697},Fake_PumpkinChest:{needed:1,id:3698},Fake_SpookyChest:{needed:1,id:3699},Fake_GlassChest:{needed:1,id:3700},Fake_MartianChest:{needed:1,id:3701},Fake_MeteoriteChest:{needed:1,id:3702},Fake_GraniteChest:{needed:1,id:3703},Fake_MarbleChest:{needed:1,id:3704},ProjectilePressurePad:{needed:5,id:3707},WallCreeperStatue:{needed:1,id:3708},UnicornStatue:{needed:1,id:3709},DripplerStatue:{needed:1,id:3710},WraithStatue:{needed:1,id:3711},BoneSkeletonStatue:{needed:1,id:3712},UndeadVikingStatue:{needed:1,id:3713},MedusaStatue:{needed:1,id:3714},HarpyStatue:{needed:1,id:3715},PigronStatue:{needed:1,id:3716},HopliteStatue:{needed:1,id:3717},GraniteGolemStatue:{needed:1,id:3718},ZombieArmStatue:{needed:1,id:3719},BloodZombieStatue:{needed:1,id:3720},AnglerTackleBag:{needed:1,id:3721},GeyserTrap:{needed:5,id:3722},UltraBrightCampfire:{needed:1,id:3723},BoneCampfire:{needed:1,id:3724},LogicSensor_Water:{needed:5,id:3726},LogicSensor_Lava:{needed:5,id:3727},LogicSensor_Honey:{needed:5,id:3728},LogicSensor_Liquid:{needed:5,id:3729},PartyBundleOfBalloonsAccessory:{needed:1,id:3730},PartyBalloonAnimal:{needed:1,id:3731},PartyHat:{needed:1,id:3732},FlowerBoyHat:{needed:1,id:3733},FlowerBoyShirt:{needed:1,id:3734},FlowerBoyPants:{needed:1,id:3735},SillyBalloonPink:{needed:100,id:3736},SillyBalloonPurple:{needed:100,id:3737},SillyBalloonGreen:{needed:100,id:3738},SillyStreamerBlue:{needed:100,id:3739},SillyStreamerGreen:{needed:100,id:3740},SillyStreamerPink:{needed:100,id:3741},SillyBalloonMachine:{needed:1,id:3742},SillyBalloonTiedPink:{needed:1,id:3743},SillyBalloonTiedPurple:{needed:1,id:3744},SillyBalloonTiedGreen:{needed:1,id:3745},Pigronata:{needed:1,id:3746},PartyMonolith:{needed:1,id:3747},PartyBundleOfBalloonTile:{needed:1,id:3748},PartyPresent:{needed:1,id:3749},SliceOfCake:{needed:3,id:3750},CogWall:{needed:400,id:3751},SandFallWall:{needed:400,id:3752},SnowFallWall:{needed:400,id:3753},SandFallBlock:{needed:100,id:3754},SnowFallBlock:{needed:100,id:3755},SnowCloudBlock:{needed:100,id:3756},PedguinHat:{needed:1,id:3757},PedguinShirt:{needed:1,id:3758},PedguinPants:{needed:1,id:3759},SillyBalloonPinkWall:{needed:400,id:3760},SillyBalloonPurpleWall:{needed:400,id:3761},SillyBalloonGreenWall:{needed:400,id:3762},AviatorSunglasses:{needed:1,id:3763},BluePhasesaber:{needed:1,id:3764},RedPhasesaber:{needed:1,id:3765},GreenPhasesaber:{needed:1,id:3766},PurplePhasesaber:{needed:1,id:3767},WhitePhasesaber:{needed:1,id:3768},YellowPhasesaber:{needed:1,id:3769},DjinnsCurse:{needed:1,id:3770},AncientHorn:{needed:1,id:3771},AntlionClaw:{needed:1,id:3772},AncientArmorHat:{needed:1,id:3773},AncientArmorShirt:{needed:1,id:3774},AncientArmorPants:{needed:1,id:3775},AncientBattleArmorHat:{needed:1,id:3776},AncientBattleArmorShirt:{needed:1,id:3777},AncientBattleArmorPants:{needed:1,id:3778},SpiritFlame:{needed:1,id:3779},SandElementalBanner:{needed:1,id:3780},PocketMirror:{needed:1,id:3781},MagicSandDropper:{needed:1,id:3782},AncientBattleArmorMaterial:{needed:3,id:3783},LamiaPants:{needed:1,id:3784},LamiaShirt:{needed:1,id:3785},LamiaHat:{needed:1,id:3786},SkyFracture:{needed:1,id:3787},OnyxBlaster:{needed:1,id:3788},SandsharkBanner:{needed:1,id:3789},SandsharkCorruptBanner:{needed:1,id:3790},SandsharkCrimsonBanner:{needed:1,id:3791},SandsharkHallowedBanner:{needed:1,id:3792},TumbleweedBanner:{needed:1,id:3793},AncientCloth:{needed:5,id:3794},DjinnLamp:{needed:1,id:3795},MusicBoxSandstorm:{needed:1,id:3796},ApprenticeHat:{needed:1,id:3797},ApprenticeRobe:{needed:1,id:3798},ApprenticeTrousers:{needed:1,id:3799},SquireGreatHelm:{needed:1,id:3800},SquirePlating:{needed:1,id:3801},SquireGreaves:{needed:1,id:3802},HuntressWig:{needed:1,id:3803},HuntressJerkin:{needed:1,id:3804},HuntressPants:{needed:1,id:3805},MonkBrows:{needed:1,id:3806},MonkShirt:{needed:1,id:3807},MonkPants:{needed:1,id:3808},ApprenticeScarf:{needed:1,id:3809},SquireShield:{needed:1,id:3810},HuntressBuckler:{needed:1,id:3811},MonkBelt:{needed:1,id:3812},DefendersForge:{needed:1,id:3813},WarTable:{needed:1,id:3814},WarTableBanner:{needed:1,id:3815},DD2ElderCrystalStand:{needed:1,id:3816},DefenderMedal:{needed:50,id:3817},DD2FlameburstTowerT1Popper:{needed:1,id:3818},DD2FlameburstTowerT2Popper:{needed:1,id:3819},DD2FlameburstTowerT3Popper:{needed:1,id:3820},AleThrowingGlove:{needed:1,id:3821},DD2SquireDemonSword:{needed:1,id:3823},DD2BallistraTowerT1Popper:{needed:1,id:3824},DD2BallistraTowerT2Popper:{needed:1,id:3825},DD2BallistraTowerT3Popper:{needed:1,id:3826},DD2SquireBetsySword:{needed:1,id:3827},DD2ElderCrystal:{needed:3,id:3828},DD2LightningAuraT1Popper:{needed:1,id:3829},DD2LightningAuraT2Popper:{needed:1,id:3830},DD2LightningAuraT3Popper:{needed:1,id:3831},DD2ExplosiveTrapT1Popper:{needed:1,id:3832},DD2ExplosiveTrapT2Popper:{needed:1,id:3833},DD2ExplosiveTrapT3Popper:{needed:1,id:3834},MonkStaffT1:{needed:1,id:3835},MonkStaffT2:{needed:1,id:3836},DD2GoblinBomberBanner:{needed:1,id:3837},DD2GoblinBanner:{needed:1,id:3838},DD2SkeletonBanner:{needed:1,id:3839},DD2DrakinBanner:{needed:1,id:3840},DD2KoboldFlyerBanner:{needed:1,id:3841},DD2KoboldBanner:{needed:1,id:3842},DD2WitherBeastBanner:{needed:1,id:3843},DD2WyvernBanner:{needed:1,id:3844},DD2JavelinThrowerBanner:{needed:1,id:3845},DD2LightningBugBanner:{needed:1,id:3846},BookStaff:{needed:1,id:3852},DD2PhoenixBow:{needed:1,id:3854},DD2PetGato:{needed:1,id:3855},DD2PetGhost:{needed:1,id:3856},DD2PetDragon:{needed:1,id:3857},MonkStaffT3:{needed:1,id:3858},DD2BetsyBow:{needed:1,id:3859},BossBagBetsy:{needed:3,id:3860},BossMaskBetsy:{needed:1,id:3863},BossMaskDarkMage:{needed:1,id:3864},BossMaskOgre:{needed:1,id:3865},BossTrophyBetsy:{needed:1,id:3866},BossTrophyDarkmage:{needed:1,id:3867},BossTrophyOgre:{needed:1,id:3868},MusicBoxDD2:{needed:1,id:3869},ApprenticeStaffT3:{needed:1,id:3870},SquireAltHead:{needed:1,id:3871},SquireAltShirt:{needed:1,id:3872},SquireAltPants:{needed:1,id:3873},ApprenticeAltHead:{needed:1,id:3874},ApprenticeAltShirt:{needed:1,id:3875},ApprenticeAltPants:{needed:1,id:3876},HuntressAltHead:{needed:1,id:3877},HuntressAltShirt:{needed:1,id:3878},HuntressAltPants:{needed:1,id:3879},MonkAltHead:{needed:1,id:3880},MonkAltShirt:{needed:1,id:3881},MonkAltPants:{needed:1,id:3882},BetsyWings:{needed:1,id:3883},CrystalChest:{needed:1,id:3884},GoldenChest:{needed:1,id:3885},Fake_CrystalChest:{needed:1,id:3886},Fake_GoldenChest:{needed:1,id:3887},CrystalDoor:{needed:1,id:3888},CrystalChair:{needed:1,id:3889},CrystalCandle:{needed:1,id:3890},CrystalLantern:{needed:1,id:3891},CrystalLamp:{needed:1,id:3892},CrystalCandelabra:{needed:1,id:3893},CrystalChandelier:{needed:1,id:3894},CrystalBathtub:{needed:1,id:3895},CrystalSink:{needed:1,id:3896},CrystalBed:{needed:1,id:3897},CrystalClock:{needed:1,id:3898},SkywareClock2:{needed:1,id:3899},DungeonClockBlue:{needed:1,id:3900},DungeonClockGreen:{needed:1,id:3901},DungeonClockPink:{needed:1,id:3902},CrystalPlatform:{needed:200,id:3903},GoldenPlatform:{needed:200,id:3904},DynastyPlatform:{needed:200,id:3905},LihzahrdPlatform:{needed:200,id:3906},FleshPlatform:{needed:200,id:3907},FrozenPlatform:{needed:200,id:3908},CrystalWorkbench:{needed:1,id:3909},GoldenWorkbench:{needed:1,id:3910},CrystalDresser:{needed:1,id:3911},DynastyDresser:{needed:1,id:3912},FrozenDresser:{needed:1,id:3913},LivingWoodDresser:{needed:1,id:3914},CrystalPiano:{needed:1,id:3915},DynastyPiano:{needed:1,id:3916},CrystalBookCase:{needed:1,id:3917},CrystalSofaHowDoesThatEvenWork:{needed:1,id:3918},DynastySofa:{needed:1,id:3919},CrystalTable:{needed:1,id:3920},ArkhalisHat:{needed:1,id:3921},ArkhalisShirt:{needed:1,id:3922},ArkhalisPants:{needed:1,id:3923},ArkhalisWings:{needed:1,id:3924},LeinforsHat:{needed:1,id:3925},LeinforsShirt:{needed:1,id:3926},LeinforsPants:{needed:1,id:3927},LeinforsWings:{needed:1,id:3928},LeinforsAccessory:{needed:1,id:3929},Celeb2:{needed:1,id:3930},SpiderBathtub:{needed:1,id:3931},SpiderBed:{needed:1,id:3932},SpiderBookcase:{needed:1,id:3933},SpiderDresser:{needed:1,id:3934},SpiderCandelabra:{needed:1,id:3935},SpiderCandle:{needed:1,id:3936},SpiderChair:{needed:1,id:3937},SpiderChandelier:{needed:1,id:3938},SpiderChest:{needed:1,id:3939},SpiderClock:{needed:1,id:3940},SpiderDoor:{needed:1,id:3941},SpiderLamp:{needed:1,id:3942},SpiderLantern:{needed:1,id:3943},SpiderPiano:{needed:1,id:3944},SpiderPlatform:{needed:200,id:3945},SpiderSinkSpiderSinkDoesWhateverASpiderSinkDoes:{needed:1,id:3946},SpiderSofa:{needed:1,id:3947},SpiderTable:{needed:1,id:3948},SpiderWorkbench:{needed:1,id:3949},Fake_SpiderChest:{needed:1,id:3950},IronBrick:{needed:100,id:3951},IronBrickWall:{needed:400,id:3952},LeadBrick:{needed:100,id:3953},LeadBrickWall:{needed:400,id:3954},LesionBlock:{needed:100,id:3955},LesionBlockWall:{needed:400,id:3956},LesionPlatform:{needed:200,id:3957},LesionBathtub:{needed:1,id:3958},LesionBed:{needed:1,id:3959},LesionBookcase:{needed:1,id:3960},LesionCandelabra:{needed:1,id:3961},LesionCandle:{needed:1,id:3962},LesionChair:{needed:1,id:3963},LesionChandelier:{needed:1,id:3964},LesionChest:{needed:1,id:3965},LesionClock:{needed:1,id:3966},LesionDoor:{needed:1,id:3967},LesionDresser:{needed:1,id:3968},LesionLamp:{needed:1,id:3969},LesionLantern:{needed:1,id:3970},LesionPiano:{needed:1,id:3971},LesionSink:{needed:1,id:3972},LesionSofa:{needed:1,id:3973},LesionTable:{needed:1,id:3974},LesionWorkbench:{needed:1,id:3975},Fake_LesionChest:{needed:1,id:3976},HatRack:{needed:1,id:3977},WoodenCrateHard:{needed:10,id:3979},IronCrateHard:{needed:10,id:3980},GoldenCrateHard:{needed:10,id:3981},CorruptFishingCrateHard:{needed:10,id:3982},CrimsonFishingCrateHard:{needed:10,id:3983},DungeonFishingCrateHard:{needed:10,id:3984},FloatingIslandFishingCrateHard:{needed:10,id:3985},HallowedFishingCrateHard:{needed:10,id:3986},JungleFishingCrateHard:{needed:10,id:3987},DeadMansChest:{needed:1,id:3988},GolfBall:{needed:1,id:3989},AmphibianBoots:{needed:1,id:3990},ArcaneFlower:{needed:1,id:3991},BerserkerGlove:{needed:1,id:3992},FairyBoots:{needed:1,id:3993},FrogFlipper:{needed:1,id:3994},FrogGear:{needed:1,id:3995},FrogWebbing:{needed:1,id:3996},FrozenShield:{needed:1,id:3997},HeroShield:{needed:1,id:3998},LavaSkull:{needed:1,id:3999},MagnetFlower:{needed:1,id:4e3},ManaCloak:{needed:1,id:4001},MoltenQuiver:{needed:1,id:4002},MoltenSkullRose:{needed:1,id:4003},ObsidianSkullRose:{needed:1,id:4004},ReconScope:{needed:1,id:4005},StalkersQuiver:{needed:1,id:4006},StingerNecklace:{needed:1,id:4007},UltrabrightHelmet:{needed:1,id:4008},Apple:{needed:5,id:4009},ApplePie:{needed:10,id:4011},BananaSplit:{needed:10,id:4012},BBQRibs:{needed:10,id:4013},BunnyStew:{needed:10,id:4014},Burger:{needed:10,id:4015},ChickenNugget:{needed:10,id:4016},ChocolateChipCookie:{needed:10,id:4017},CreamSoda:{needed:10,id:4018},Escargot:{needed:10,id:4019},FriedEgg:{needed:10,id:4020},Fries:{needed:10,id:4021},GoldenDelight:{needed:10,id:4022},Grapes:{needed:10,id:4023},GrilledSquirrel:{needed:10,id:4024},Hotdog:{needed:10,id:4025},IceCream:{needed:10,id:4026},Milkshake:{needed:10,id:4027},Nachos:{needed:10,id:4028},Pizza:{needed:10,id:4029},PotatoChips:{needed:10,id:4030},RoastedBird:{needed:10,id:4031},RoastedDuck:{needed:10,id:4032},SauteedFrogLegs:{needed:10,id:4033},SeafoodDinner:{needed:10,id:4034},ShrimpPoBoy:{needed:10,id:4035},Spaghetti:{needed:10,id:4036},Steak:{needed:10,id:4037},MoltenCharm:{needed:1,id:4038},GolfClubIron:{needed:1,id:4039},GolfCup:{needed:1,id:4040},FlowerPacketBlue:{needed:25,id:4041},FlowerPacketMagenta:{needed:25,id:4042},FlowerPacketPink:{needed:25,id:4043},FlowerPacketRed:{needed:25,id:4044},FlowerPacketYellow:{needed:25,id:4045},FlowerPacketViolet:{needed:25,id:4046},FlowerPacketWhite:{needed:25,id:4047},FlowerPacketTallGrass:{needed:25,id:4048},LawnMower:{needed:1,id:4049},CrimstoneBrick:{needed:100,id:4050},SmoothSandstone:{needed:100,id:4051},CrimstoneBrickWall:{needed:400,id:4052},SmoothSandstoneWall:{needed:400,id:4053},BloodMoonMonolith:{needed:1,id:4054},SandBoots:{needed:1,id:4055},AncientChisel:{needed:1,id:4056},CarbonGuitar:{needed:1,id:4057},FossilPickaxe:{needed:1,id:4059},SuperStarCannon:{needed:1,id:4060},ThunderSpear:{needed:1,id:4061},ThunderStaff:{needed:1,id:4062},DrumSet:{needed:1,id:4063},PicnicTable:{needed:1,id:4064},PicnicTableWithCloth:{needed:1,id:4065},DesertMinecart:{needed:1,id:4066},FishMinecart:{needed:1,id:4067},FairyCritterPink:{needed:3,id:4068},FairyCritterGreen:{needed:3,id:4069},FairyCritterBlue:{needed:3,id:4070},JunoniaShell:{needed:1,id:4071},LightningWhelkShell:{needed:1,id:4072},TulipShell:{needed:1,id:4073},PinWheel:{needed:1,id:4074},WeatherVane:{needed:1,id:4075},VoidVault:{needed:1,id:4076},MusicBoxOceanAlt:{needed:1,id:4077},MusicBoxSlimeRain:{needed:1,id:4078},MusicBoxSpaceAlt:{needed:1,id:4079},MusicBoxTownDay:{needed:1,id:4080},MusicBoxTownNight:{needed:1,id:4081},MusicBoxWindyDay:{needed:1,id:4082},GolfCupFlagWhite:{needed:1,id:4083},GolfCupFlagRed:{needed:1,id:4084},GolfCupFlagGreen:{needed:1,id:4085},GolfCupFlagBlue:{needed:1,id:4086},GolfCupFlagYellow:{needed:1,id:4087},GolfCupFlagPurple:{needed:1,id:4088},GolfTee:{needed:1,id:4089},ShellPileBlock:{needed:100,id:4090},AntiPortalBlock:{needed:100,id:4091},GolfClubPutter:{needed:1,id:4092},GolfClubWedge:{needed:1,id:4093},GolfClubDriver:{needed:1,id:4094},GolfWhistle:{needed:1,id:4095},ToiletEbonyWood:{needed:1,id:4096},ToiletRichMahogany:{needed:1,id:4097},ToiletPearlwood:{needed:1,id:4098},ToiletLivingWood:{needed:1,id:4099},ToiletCactus:{needed:1,id:4100},ToiletBone:{needed:1,id:4101},ToiletFlesh:{needed:1,id:4102},ToiletMushroom:{needed:1,id:4103},ToiletSunplate:{needed:1,id:4104},ToiletShadewood:{needed:1,id:4105},ToiletLihzhard:{needed:1,id:4106},ToiletDungeonBlue:{needed:1,id:4107},ToiletDungeonGreen:{needed:1,id:4108},ToiletDungeonPink:{needed:1,id:4109},ToiletObsidian:{needed:1,id:4110},ToiletFrozen:{needed:1,id:4111},ToiletGlass:{needed:1,id:4112},ToiletHoney:{needed:1,id:4113},ToiletSteampunk:{needed:1,id:4114},ToiletPumpkin:{needed:1,id:4115},ToiletSpooky:{needed:1,id:4116},ToiletDynasty:{needed:1,id:4117},ToiletPalm:{needed:1,id:4118},ToiletBoreal:{needed:1,id:4119},ToiletSlime:{needed:1,id:4120},ToiletMartian:{needed:1,id:4121},ToiletGranite:{needed:1,id:4122},ToiletMarble:{needed:1,id:4123},ToiletCrystal:{needed:1,id:4124},ToiletSpider:{needed:1,id:4125},ToiletLesion:{needed:1,id:4126},ToiletDiamond:{needed:1,id:4127},MaidHead:{needed:1,id:4128},MaidShirt:{needed:1,id:4129},MaidPants:{needed:1,id:4130},VoidLens:{needed:1,id:4131},MaidHead2:{needed:1,id:4132},MaidShirt2:{needed:1,id:4133},MaidPants2:{needed:1,id:4134},GolfHat:{needed:1,id:4135},GolfShirt:{needed:1,id:4136},GolfPants:{needed:1,id:4137},GolfVisor:{needed:1,id:4138},SpiderBlock:{needed:100,id:4139},SpiderWall:{needed:400,id:4140},ToiletMeteor:{needed:1,id:4141},LesionStation:{needed:1,id:4142},Terragrim:{needed:1,id:4144},SolarBathtub:{needed:1,id:4145},SolarBed:{needed:1,id:4146},SolarBookcase:{needed:1,id:4147},SolarDresser:{needed:1,id:4148},SolarCandelabra:{needed:1,id:4149},SolarCandle:{needed:1,id:4150},SolarChair:{needed:1,id:4151},SolarChandelier:{needed:1,id:4152},SolarChest:{needed:1,id:4153},SolarClock:{needed:1,id:4154},SolarDoor:{needed:1,id:4155},SolarLamp:{needed:1,id:4156},SolarLantern:{needed:1,id:4157},SolarPiano:{needed:1,id:4158},SolarPlatform:{needed:200,id:4159},SolarSink:{needed:1,id:4160},SolarSofa:{needed:1,id:4161},SolarTable:{needed:1,id:4162},SolarWorkbench:{needed:1,id:4163},Fake_SolarChest:{needed:1,id:4164},SolarToilet:{needed:1,id:4165},VortexBathtub:{needed:1,id:4166},VortexBed:{needed:1,id:4167},VortexBookcase:{needed:1,id:4168},VortexDresser:{needed:1,id:4169},VortexCandelabra:{needed:1,id:4170},VortexCandle:{needed:1,id:4171},VortexChair:{needed:1,id:4172},VortexChandelier:{needed:1,id:4173},VortexChest:{needed:1,id:4174},VortexClock:{needed:1,id:4175},VortexDoor:{needed:1,id:4176},VortexLamp:{needed:1,id:4177},VortexLantern:{needed:1,id:4178},VortexPiano:{needed:1,id:4179},VortexPlatform:{needed:200,id:4180},VortexSink:{needed:1,id:4181},VortexSofa:{needed:1,id:4182},VortexTable:{needed:1,id:4183},VortexWorkbench:{needed:1,id:4184},Fake_VortexChest:{needed:1,id:4185},VortexToilet:{needed:1,id:4186},NebulaBathtub:{needed:1,id:4187},NebulaBed:{needed:1,id:4188},NebulaBookcase:{needed:1,id:4189},NebulaDresser:{needed:1,id:4190},NebulaCandelabra:{needed:1,id:4191},NebulaCandle:{needed:1,id:4192},NebulaChair:{needed:1,id:4193},NebulaChandelier:{needed:1,id:4194},NebulaChest:{needed:1,id:4195},NebulaClock:{needed:1,id:4196},NebulaDoor:{needed:1,id:4197},NebulaLamp:{needed:1,id:4198},NebulaLantern:{needed:1,id:4199},NebulaPiano:{needed:1,id:4200},NebulaPlatform:{needed:200,id:4201},NebulaSink:{needed:1,id:4202},NebulaSofa:{needed:1,id:4203},NebulaTable:{needed:1,id:4204},NebulaWorkbench:{needed:1,id:4205},Fake_NebulaChest:{needed:1,id:4206},NebulaToilet:{needed:1,id:4207},StardustBathtub:{needed:1,id:4208},StardustBed:{needed:1,id:4209},StardustBookcase:{needed:1,id:4210},StardustDresser:{needed:1,id:4211},StardustCandelabra:{needed:1,id:4212},StardustCandle:{needed:1,id:4213},StardustChair:{needed:1,id:4214},StardustChandelier:{needed:1,id:4215},StardustChest:{needed:1,id:4216},StardustClock:{needed:1,id:4217},StardustDoor:{needed:1,id:4218},StardustLamp:{needed:1,id:4219},StardustLantern:{needed:1,id:4220},StardustPiano:{needed:1,id:4221},StardustPlatform:{needed:200,id:4222},StardustSink:{needed:1,id:4223},StardustSofa:{needed:1,id:4224},StardustTable:{needed:1,id:4225},StardustWorkbench:{needed:1,id:4226},Fake_StardustChest:{needed:1,id:4227},StardustToilet:{needed:1,id:4228},SolarBrick:{needed:100,id:4229},VortexBrick:{needed:100,id:4230},NebulaBrick:{needed:100,id:4231},StardustBrick:{needed:100,id:4232},SolarBrickWall:{needed:400,id:4233},VortexBrickWall:{needed:400,id:4234},NebulaBrickWall:{needed:400,id:4235},StardustBrickWall:{needed:400,id:4236},MusicBoxDayRemix:{needed:1,id:4237},CrackedBlueBrick:{needed:100,id:4238},CrackedGreenBrick:{needed:100,id:4239},CrackedPinkBrick:{needed:100,id:4240},FlowerPacketWild:{needed:25,id:4241},GolfBallDyedBlack:{needed:1,id:4242},GolfBallDyedBlue:{needed:1,id:4243},GolfBallDyedBrown:{needed:1,id:4244},GolfBallDyedCyan:{needed:1,id:4245},GolfBallDyedGreen:{needed:1,id:4246},GolfBallDyedLimeGreen:{needed:1,id:4247},GolfBallDyedOrange:{needed:1,id:4248},GolfBallDyedPink:{needed:1,id:4249},GolfBallDyedPurple:{needed:1,id:4250},GolfBallDyedRed:{needed:1,id:4251},GolfBallDyedSkyBlue:{needed:1,id:4252},GolfBallDyedTeal:{needed:1,id:4253},GolfBallDyedViolet:{needed:1,id:4254},GolfBallDyedYellow:{needed:1,id:4255},AmberRobe:{needed:1,id:4256},AmberHook:{needed:1,id:4257},OrangePhaseblade:{needed:1,id:4258},OrangePhasesaber:{needed:1,id:4259},OrangeStainedGlass:{needed:400,id:4260},OrangePressurePlate:{needed:5,id:4261},MysticCoilSnake:{needed:1,id:4262},MagicConch:{needed:1,id:4263},GolfCart:{needed:1,id:4264},GolfChest:{needed:1,id:4265},Fake_GolfChest:{needed:1,id:4266},DesertChest:{needed:1,id:4267},Fake_DesertChest:{needed:1,id:4268},SanguineStaff:{needed:1,id:4269},SharpTears:{needed:1,id:4270},BloodMoonStarter:{needed:3,id:4271},DripplerFlail:{needed:1,id:4272},VampireFrogStaff:{needed:1,id:4273},GoldGoldfish:{needed:3,id:4274},GoldGoldfishBowl:{needed:1,id:4275},CatBast:{needed:1,id:4276},GoldStarryGlassBlock:{needed:100,id:4277},BlueStarryGlassBlock:{needed:100,id:4278},GoldStarryGlassWall:{needed:400,id:4279},BlueStarryGlassWall:{needed:400,id:4280},BabyBirdStaff:{needed:1,id:4281},Apricot:{needed:5,id:4282},Banana:{needed:5,id:4283},BlackCurrant:{needed:5,id:4284},BloodOrange:{needed:5,id:4285},Cherry:{needed:5,id:4286},Coconut:{needed:5,id:4287},Dragonfruit:{needed:5,id:4288},Elderberry:{needed:5,id:4289},Grapefruit:{needed:5,id:4290},Lemon:{needed:5,id:4291},Mango:{needed:5,id:4292},Peach:{needed:5,id:4293},Pineapple:{needed:5,id:4294},Plum:{needed:5,id:4295},Rambutan:{needed:5,id:4296},Starfruit:{needed:5,id:4297},SandstoneBathtub:{needed:1,id:4298},SandstoneBed:{needed:1,id:4299},SandstoneBookcase:{needed:1,id:4300},SandstoneDresser:{needed:1,id:4301},SandstoneCandelabra:{needed:1,id:4302},SandstoneCandle:{needed:1,id:4303},SandstoneChair:{needed:1,id:4304},SandstoneChandelier:{needed:1,id:4305},SandstoneClock:{needed:1,id:4306},SandstoneDoor:{needed:1,id:4307},SandstoneLamp:{needed:1,id:4308},SandstoneLantern:{needed:1,id:4309},SandstonePiano:{needed:1,id:4310},SandstonePlatform:{needed:200,id:4311},SandstoneSink:{needed:1,id:4312},SandstoneSofa:{needed:1,id:4313},SandstoneTable:{needed:1,id:4314},SandstoneWorkbench:{needed:1,id:4315},SandstoneToilet:{needed:1,id:4316},BloodHamaxe:{needed:1,id:4317},VoidMonolith:{needed:1,id:4318},ArrowSign:{needed:1,id:4319},PaintedArrowSign:{needed:1,id:4320},GameMasterShirt:{needed:1,id:4321},GameMasterPants:{needed:1,id:4322},StarPrincessCrown:{needed:1,id:4323},StarPrincessDress:{needed:1,id:4324},BloodFishingRod:{needed:1,id:4325},FoodPlatter:{needed:1,id:4326},BlackDragonflyJar:{needed:1,id:4327},BlueDragonflyJar:{needed:1,id:4328},GreenDragonflyJar:{needed:1,id:4329},OrangeDragonflyJar:{needed:1,id:4330},RedDragonflyJar:{needed:1,id:4331},YellowDragonflyJar:{needed:1,id:4332},GoldDragonflyJar:{needed:1,id:4333},BlackDragonfly:{needed:5,id:4334},BlueDragonfly:{needed:5,id:4335},GreenDragonfly:{needed:5,id:4336},OrangeDragonfly:{needed:5,id:4337},RedDragonfly:{needed:5,id:4338},YellowDragonfly:{needed:5,id:4339},GoldDragonfly:{needed:3,id:4340},PortableStool:{needed:1,id:4341},DragonflyStatue:{needed:1,id:4342},PaperAirplaneA:{needed:1,id:4343},PaperAirplaneB:{needed:1,id:4344},CanOfWorms:{needed:2,id:4345},EncumberingStone:{needed:1,id:4346},ZapinatorGray:{needed:1,id:4347},ZapinatorOrange:{needed:1,id:4348},GreenMoss:{needed:25,id:4349},BrownMoss:{needed:25,id:4350},RedMoss:{needed:25,id:4351},BlueMoss:{needed:25,id:4352},PurpleMoss:{needed:25,id:4353},LavaMoss:{needed:25,id:4354},BoulderStatue:{needed:1,id:4355},MusicBoxTitleAlt:{needed:1,id:4356},MusicBoxStorm:{needed:1,id:4357},MusicBoxGraveyard:{needed:1,id:4358},Seagull:{needed:5,id:4359},SeagullStatue:{needed:1,id:4360},LadyBug:{needed:5,id:4361},GoldLadyBug:{needed:3,id:4362},Maggot:{needed:5,id:4363},MaggotCage:{needed:1,id:4364},CelestialWand:{needed:1,id:4365},EucaluptusSap:{needed:1,id:4366},KiteBlue:{needed:1,id:4367},KiteBlueAndYellow:{needed:1,id:4368},KiteRed:{needed:1,id:4369},KiteRedAndYellow:{needed:1,id:4370},KiteYellow:{needed:1,id:4371},IvyGuitar:{needed:1,id:4372},Pupfish:{needed:5,id:4373},Grebe:{needed:5,id:4374},Rat:{needed:5,id:4375},RatCage:{needed:1,id:4376},KryptonMoss:{needed:25,id:4377},XenonMoss:{needed:25,id:4378},KiteWyvern:{needed:1,id:4379},LadybugCage:{needed:1,id:4380},BloodRainBow:{needed:1,id:4381},CombatBook:{needed:1,id:4382},DesertTorch:{needed:100,id:4383},CoralTorch:{needed:100,id:4384},CorruptTorch:{needed:100,id:4385},CrimsonTorch:{needed:100,id:4386},HallowedTorch:{needed:100,id:4387},JungleTorch:{needed:100,id:4388},ArgonMoss:{needed:25,id:4389},RollingCactus:{needed:5,id:4390},ThinIce:{needed:100,id:4391},EchoBlock:{needed:100,id:4392},ScarabFish:{needed:2,id:4393},ScorpioFish:{needed:2,id:4394},Owl:{needed:5,id:4395},OwlCage:{needed:1,id:4396},OwlStatue:{needed:1,id:4397},PupfishBowl:{needed:1,id:4398},GoldLadybugCage:{needed:1,id:4399},Geode:{needed:5,id:4400},Flounder:{needed:3,id:4401},RockLobster:{needed:3,id:4402},LobsterTail:{needed:10,id:4403},FloatingTube:{needed:1,id:4404},FrozenCrate:{needed:10,id:4405},FrozenCrateHard:{needed:10,id:4406},OasisCrate:{needed:10,id:4407},OasisCrateHard:{needed:10,id:4408},SpectreGoggles:{needed:1,id:4409},Oyster:{needed:5,id:4410},ShuckedOyster:{needed:10,id:4411},WhitePearl:{needed:5,id:4412},BlackPearl:{needed:5,id:4413},PinkPearl:{needed:5,id:4414},StoneDoor:{needed:1,id:4415},StonePlatform:{needed:200,id:4416},OasisFountain:{needed:1,id:4417},WaterStrider:{needed:5,id:4418},GoldWaterStrider:{needed:3,id:4419},LawnFlamingo:{needed:1,id:4420},MusicBoxUndergroundJungle:{needed:1,id:4421},Grate:{needed:100,id:4422},ScarabBomb:{needed:99,id:4423},WroughtIronFence:{needed:400,id:4424},SharkBait:{needed:1,id:4425},BeeMinecart:{needed:1,id:4426},LadybugMinecart:{needed:1,id:4427},PigronMinecart:{needed:1,id:4428},SunflowerMinecart:{needed:1,id:4429},PottedForestCedar:{needed:1,id:4430},PottedJungleCedar:{needed:1,id:4431},PottedHallowCedar:{needed:1,id:4432},PottedForestTree:{needed:1,id:4433},PottedJungleTree:{needed:1,id:4434},PottedHallowTree:{needed:1,id:4435},PottedForestPalm:{needed:1,id:4436},PottedJunglePalm:{needed:1,id:4437},PottedHallowPalm:{needed:1,id:4438},PottedForestBamboo:{needed:1,id:4439},PottedJungleBamboo:{needed:1,id:4440},PottedHallowBamboo:{needed:1,id:4441},ScarabFishingRod:{needed:1,id:4442},HellMinecart:{needed:1,id:4443},WitchBroom:{needed:1,id:4444},ClusterRocketI:{needed:99,id:4445},ClusterRocketII:{needed:99,id:4446},WetRocket:{needed:99,id:4447},LavaRocket:{needed:99,id:4448},HoneyRocket:{needed:99,id:4449},ShroomMinecart:{needed:1,id:4450},AmethystMinecart:{needed:1,id:4451},TopazMinecart:{needed:1,id:4452},SapphireMinecart:{needed:1,id:4453},EmeraldMinecart:{needed:1,id:4454},RubyMinecart:{needed:1,id:4455},DiamondMinecart:{needed:1,id:4456},MiniNukeI:{needed:99,id:4457},MiniNukeII:{needed:99,id:4458},DryRocket:{needed:99,id:4459},SandcastleBucket:{needed:1,id:4460},TurtleCage:{needed:1,id:4461},TurtleJungleCage:{needed:1,id:4462},Gladius:{needed:1,id:4463},Turtle:{needed:5,id:4464},TurtleJungle:{needed:5,id:4465},TurtleStatue:{needed:1,id:4466},AmberMinecart:{needed:1,id:4467},BeetleMinecart:{needed:1,id:4468},MeowmereMinecart:{needed:1,id:4469},PartyMinecart:{needed:1,id:4470},PirateMinecart:{needed:1,id:4471},SteampunkMinecart:{needed:1,id:4472},GrebeCage:{needed:1,id:4473},SeagullCage:{needed:1,id:4474},WaterStriderCage:{needed:1,id:4475},GoldWaterStriderCage:{needed:1,id:4476},LuckPotionLesser:{needed:20,id:4477},LuckPotion:{needed:20,id:4478},LuckPotionGreater:{needed:20,id:4479},Seahorse:{needed:5,id:4480},SeahorseCage:{needed:1,id:4481},GoldSeahorse:{needed:3,id:4482},GoldSeahorseCage:{needed:1,id:4483},TimerOneHalfSecond:{needed:1,id:4484},TimerOneFourthSecond:{needed:1,id:4485},EbonstoneEcho:{needed:400,id:4486},MudWallEcho:{needed:400,id:4487},PearlstoneEcho:{needed:400,id:4488},SnowWallEcho:{needed:400,id:4489},AmethystEcho:{needed:400,id:4490},TopazEcho:{needed:400,id:4491},SapphireEcho:{needed:400,id:4492},EmeraldEcho:{needed:400,id:4493},RubyEcho:{needed:400,id:4494},DiamondEcho:{needed:400,id:4495},Cave1Echo:{needed:400,id:4496},Cave2Echo:{needed:400,id:4497},Cave3Echo:{needed:400,id:4498},Cave4Echo:{needed:400,id:4499},Cave5Echo:{needed:400,id:4500},Cave6Echo:{needed:400,id:4501},Cave7Echo:{needed:400,id:4502},SpiderEcho:{needed:400,id:4503},CorruptGrassEcho:{needed:400,id:4504},HallowedGrassEcho:{needed:400,id:4505},IceEcho:{needed:400,id:4506},ObsidianBackEcho:{needed:400,id:4507},CrimsonGrassEcho:{needed:400,id:4508},CrimstoneEcho:{needed:400,id:4509},CaveWall1Echo:{needed:400,id:4510},CaveWall2Echo:{needed:400,id:4511},Cave8Echo:{needed:400,id:4512},Corruption1Echo:{needed:400,id:4513},Corruption2Echo:{needed:400,id:4514},Corruption3Echo:{needed:400,id:4515},Corruption4Echo:{needed:400,id:4516},Crimson1Echo:{needed:400,id:4517},Crimson2Echo:{needed:400,id:4518},Crimson3Echo:{needed:400,id:4519},Crimson4Echo:{needed:400,id:4520},Dirt1Echo:{needed:400,id:4521},Dirt2Echo:{needed:400,id:4522},Dirt3Echo:{needed:400,id:4523},Dirt4Echo:{needed:400,id:4524},Hallow1Echo:{needed:400,id:4525},Hallow2Echo:{needed:400,id:4526},Hallow3Echo:{needed:400,id:4527},Hallow4Echo:{needed:400,id:4528},Jungle1Echo:{needed:400,id:4529},Jungle2Echo:{needed:400,id:4530},Jungle3Echo:{needed:400,id:4531},Jungle4Echo:{needed:400,id:4532},Lava1Echo:{needed:400,id:4533},Lava2Echo:{needed:400,id:4534},Lava3Echo:{needed:400,id:4535},Lava4Echo:{needed:400,id:4536},Rocks1Echo:{needed:400,id:4537},Rocks2Echo:{needed:400,id:4538},Rocks3Echo:{needed:400,id:4539},Rocks4Echo:{needed:400,id:4540},TheBrideBanner:{needed:1,id:4541},ZombieMermanBanner:{needed:1,id:4542},EyeballFlyingFishBanner:{needed:1,id:4543},BloodSquidBanner:{needed:1,id:4544},BloodEelBanner:{needed:1,id:4545},GoblinSharkBanner:{needed:1,id:4546},LargeBambooBlock:{needed:100,id:4547},LargeBambooBlockWall:{needed:400,id:4548},DemonHorns:{needed:1,id:4549},BambooLeaf:{needed:1,id:4550},HellCake:{needed:1,id:4551},FogMachine:{needed:1,id:4552},PlasmaLamp:{needed:1,id:4553},MarbleColumn:{needed:50,id:4554},ChefHat:{needed:1,id:4555},ChefShirt:{needed:1,id:4556},ChefPants:{needed:1,id:4557},StarHairpin:{needed:1,id:4558},HeartHairpin:{needed:1,id:4559},BunnyEars:{needed:1,id:4560},DevilHorns:{needed:1,id:4561},Fedora:{needed:1,id:4562},UnicornHornHat:{needed:1,id:4563},BambooBlock:{needed:100,id:4564},BambooBlockWall:{needed:400,id:4565},BambooBathtub:{needed:1,id:4566},BambooBed:{needed:1,id:4567},BambooBookcase:{needed:1,id:4568},BambooDresser:{needed:1,id:4569},BambooCandelabra:{needed:1,id:4570},BambooCandle:{needed:1,id:4571},BambooChair:{needed:1,id:4572},BambooChandelier:{needed:1,id:4573},BambooChest:{needed:1,id:4574},BambooClock:{needed:1,id:4575},BambooDoor:{needed:1,id:4576},BambooLamp:{needed:1,id:4577},BambooLantern:{needed:1,id:4578},BambooPiano:{needed:1,id:4579},BambooPlatform:{needed:200,id:4580},BambooSink:{needed:1,id:4581},BambooSofa:{needed:1,id:4582},BambooTable:{needed:1,id:4583},BambooWorkbench:{needed:1,id:4584},Fake_BambooChest:{needed:1,id:4585},BambooToilet:{needed:1,id:4586},GolfClubStoneIron:{needed:1,id:4587},GolfClubRustyPutter:{needed:1,id:4588},GolfClubBronzeWedge:{needed:1,id:4589},GolfClubWoodDriver:{needed:1,id:4590},GolfClubMythrilIron:{needed:1,id:4591},GolfClubLeadPutter:{needed:1,id:4592},GolfClubGoldWedge:{needed:1,id:4593},GolfClubPearlwoodDriver:{needed:1,id:4594},GolfClubTitaniumIron:{needed:1,id:4595},GolfClubShroomitePutter:{needed:1,id:4596},GolfClubDiamondWedge:{needed:1,id:4597},GolfClubChlorophyteDriver:{needed:1,id:4598},GolfTrophyBronze:{needed:1,id:4599},GolfTrophySilver:{needed:1,id:4600},GolfTrophyGold:{needed:1,id:4601},BloodNautilusBanner:{needed:1,id:4602},BirdieRattle:{needed:1,id:4603},ExoticEasternChewToy:{needed:1,id:4604},BedazzledNectar:{needed:1,id:4605},MusicBoxJungleNight:{needed:1,id:4606},StormTigerStaff:{needed:1,id:4607},ChumBucket:{needed:25,id:4608},GardenGnome:{needed:1,id:4609},KiteBoneSerpent:{needed:1,id:4610},KiteWorldFeeder:{needed:1,id:4611},KiteBunny:{needed:1,id:4612},KitePigron:{needed:1,id:4613},AppleJuice:{needed:10,id:4614},GrapeJuice:{needed:10,id:4615},Lemonade:{needed:10,id:4616},BananaDaiquiri:{needed:10,id:4617},PeachSangria:{needed:10,id:4618},PinaColada:{needed:10,id:4619},TropicalSmoothie:{needed:10,id:4620},BloodyMoscato:{needed:10,id:4621},SmoothieofDarkness:{needed:10,id:4622},PrismaticPunch:{needed:10,id:4623},FruitJuice:{needed:10,id:4624},FruitSalad:{needed:10,id:4625},AndrewSphinx:{needed:1,id:4626},WatchfulAntlion:{needed:1,id:4627},BurningSpirit:{needed:1,id:4628},JawsOfDeath:{needed:1,id:4629},TheSandsOfSlime:{needed:1,id:4630},SnakesIHateSnakes:{needed:1,id:4631},LifeAboveTheSand:{needed:1,id:4632},Oasis:{needed:1,id:4633},PrehistoryPreserved:{needed:1,id:4634},AncientTablet:{needed:1,id:4635},Uluru:{needed:1,id:4636},VisitingThePyramids:{needed:1,id:4637},BandageBoy:{needed:1,id:4638},DivineEye:{needed:1,id:4639},AmethystStoneBlock:{needed:100,id:4640},TopazStoneBlock:{needed:100,id:4641},SapphireStoneBlock:{needed:100,id:4642},EmeraldStoneBlock:{needed:100,id:4643},RubyStoneBlock:{needed:100,id:4644},DiamondStoneBlock:{needed:100,id:4645},AmberStoneBlock:{needed:100,id:4646},AmberStoneWallEcho:{needed:400,id:4647},KiteManEater:{needed:1,id:4648},KiteJellyfishBlue:{needed:1,id:4649},KiteJellyfishPink:{needed:1,id:4650},KiteShark:{needed:1,id:4651},SuperHeroMask:{needed:1,id:4652},SuperHeroCostume:{needed:1,id:4653},SuperHeroTights:{needed:1,id:4654},PinkFairyJar:{needed:1,id:4655},GreenFairyJar:{needed:1,id:4656},BlueFairyJar:{needed:1,id:4657},GolfPainting1:{needed:1,id:4658},GolfPainting2:{needed:1,id:4659},GolfPainting3:{needed:1,id:4660},GolfPainting4:{needed:1,id:4661},FogboundDye:{needed:3,id:4662},BloodbathDye:{needed:3,id:4663},PrettyPinkDressSkirt:{needed:1,id:4664},PrettyPinkDressPants:{needed:1,id:4665},PrettyPinkRibbon:{needed:1,id:4666},BambooFence:{needed:400,id:4667},GlowPaint:{needed:100,id:4668},KiteSandShark:{needed:1,id:4669},KiteBunnyCorrupt:{needed:1,id:4670},KiteBunnyCrimson:{needed:1,id:4671},BlandWhip:{needed:1,id:4672},DrumStick:{needed:1,id:4673},KiteGoldfish:{needed:1,id:4674},KiteAngryTrapper:{needed:1,id:4675},KiteKoi:{needed:1,id:4676},KiteCrawltipede:{needed:1,id:4677},SwordWhip:{needed:1,id:4678},MaceWhip:{needed:1,id:4679},ScytheWhip:{needed:1,id:4680},KiteSpectrum:{needed:1,id:4681},ReleaseDoves:{needed:5,id:4682},KiteWanderingEye:{needed:1,id:4683},KiteUnicorn:{needed:1,id:4684},UndertakerHat:{needed:1,id:4685},UndertakerCoat:{needed:1,id:4686},DandelionBanner:{needed:1,id:4687},GnomeBanner:{needed:1,id:4688},DesertCampfire:{needed:1,id:4689},CoralCampfire:{needed:1,id:4690},CorruptCampfire:{needed:1,id:4691},CrimsonCampfire:{needed:1,id:4692},HallowedCampfire:{needed:1,id:4693},JungleCampfire:{needed:1,id:4694},SoulBottleLight:{needed:1,id:4695},SoulBottleNight:{needed:1,id:4696},SoulBottleFlight:{needed:1,id:4697},SoulBottleSight:{needed:1,id:4698},SoulBottleMight:{needed:1,id:4699},SoulBottleFright:{needed:1,id:4700},MudBud:{needed:1,id:4701},ReleaseLantern:{needed:5,id:4702},QuadBarrelShotgun:{needed:1,id:4703},FuneralHat:{needed:1,id:4704},FuneralCoat:{needed:1,id:4705},FuneralPants:{needed:1,id:4706},TragicUmbrella:{needed:1,id:4707},VictorianGothHat:{needed:1,id:4708},VictorianGothDress:{needed:1,id:4709},TatteredWoodSign:{needed:1,id:4710},GravediggerShovel:{needed:1,id:4711},DungeonDesertChest:{needed:1,id:4712},Fake_DungeonDesertChest:{needed:1,id:4713},DungeonDesertKey:{needed:1,id:4714},SparkleGuitar:{needed:1,id:4715},MolluskWhistle:{needed:1,id:4716},BorealBeam:{needed:50,id:4717},RichMahoganyBeam:{needed:50,id:4718},GraniteColumn:{needed:50,id:4719},SandstoneColumn:{needed:50,id:4720},MushroomBeam:{needed:50,id:4721},Nevermore:{needed:1,id:4723},Reborn:{needed:1,id:4724},Graveyard:{needed:1,id:4725},GhostManifestation:{needed:1,id:4726},WickedUndead:{needed:1,id:4727},BloodyGoblet:{needed:1,id:4728},StillLife:{needed:1,id:4729},GhostarsWings:{needed:1,id:4730},TerraToilet:{needed:1,id:4731},GhostarSkullPin:{needed:1,id:4732},GhostarShirt:{needed:1,id:4733},GhostarPants:{needed:1,id:4734},BallOfFuseWire:{needed:1,id:4735},FullMoonSqueakyToy:{needed:1,id:4736},OrnateShadowKey:{needed:1,id:4737},DrManFlyMask:{needed:1,id:4738},DrManFlyLabCoat:{needed:1,id:4739},ButcherMask:{needed:1,id:4740},ButcherApron:{needed:1,id:4741},ButcherPants:{needed:1,id:4742},Football:{needed:1,id:4743},HunterCloak:{needed:1,id:4744},CoffinMinecart:{needed:1,id:4745},SafemanWings:{needed:1,id:4746},SafemanSunHair:{needed:1,id:4747},SafemanSunDress:{needed:1,id:4748},SafemanDressLeggings:{needed:1,id:4749},FoodBarbarianWings:{needed:1,id:4750},FoodBarbarianHelm:{needed:1,id:4751},FoodBarbarianArmor:{needed:1,id:4752},FoodBarbarianGreaves:{needed:1,id:4753},GroxTheGreatWings:{needed:1,id:4754},GroxTheGreatHelm:{needed:1,id:4755},GroxTheGreatArmor:{needed:1,id:4756},GroxTheGreatGreaves:{needed:1,id:4757},Smolstar:{needed:1,id:4758},SquirrelHook:{needed:1,id:4759},BouncingShield:{needed:1,id:4760},RockGolemHead:{needed:1,id:4761},CritterShampoo:{needed:1,id:4762},DiggingMoleMinecart:{needed:1,id:4763},Shroomerang:{needed:1,id:4764},TreeGlobe:{needed:1,id:4765},WorldGlobe:{needed:1,id:4766},DontHurtCrittersBook:{needed:1,id:4767},DogEars:{needed:1,id:4768},DogTail:{needed:1,id:4769},FoxEars:{needed:1,id:4770},FoxTail:{needed:1,id:4771},LizardEars:{needed:1,id:4772},LizardTail:{needed:1,id:4773},PandaEars:{needed:1,id:4774},BunnyTail:{needed:1,id:4775},FairyGlowstick:{needed:100,id:4776},LightningCarrot:{needed:1,id:4777},HallowBossDye:{needed:3,id:4778},MushroomHat:{needed:1,id:4779},MushroomVest:{needed:1,id:4780},MushroomPants:{needed:1,id:4781},FairyQueenBossBag:{needed:3,id:4782},FairyQueenTrophy:{needed:1,id:4783},FairyQueenMask:{needed:1,id:4784},PaintedHorseSaddle:{needed:1,id:4785},MajesticHorseSaddle:{needed:1,id:4786},DarkHorseSaddle:{needed:1,id:4787},JoustingLance:{needed:1,id:4788},ShadowJoustingLance:{needed:1,id:4789},HallowJoustingLance:{needed:1,id:4790},PogoStick:{needed:1,id:4791},PirateShipMountItem:{needed:1,id:4792},SpookyWoodMountItem:{needed:1,id:4793},SantankMountItem:{needed:1,id:4794},WallOfFleshGoatMountItem:{needed:1,id:4795},DarkMageBookMountItem:{needed:1,id:4796},KingSlimePetItem:{needed:1,id:4797},EyeOfCthulhuPetItem:{needed:1,id:4798},EaterOfWorldsPetItem:{needed:1,id:4799},BrainOfCthulhuPetItem:{needed:1,id:4800},SkeletronPetItem:{needed:1,id:4801},QueenBeePetItem:{needed:1,id:4802},DestroyerPetItem:{needed:1,id:4803},TwinsPetItem:{needed:1,id:4804},SkeletronPrimePetItem:{needed:1,id:4805},PlanteraPetItem:{needed:1,id:4806},GolemPetItem:{needed:1,id:4807},DukeFishronPetItem:{needed:1,id:4808},LunaticCultistPetItem:{needed:1,id:4809},MoonLordPetItem:{needed:1,id:4810},FairyQueenPetItem:{needed:1,id:4811},PumpkingPetItem:{needed:1,id:4812},EverscreamPetItem:{needed:1,id:4813},IceQueenPetItem:{needed:1,id:4814},MartianPetItem:{needed:1,id:4815},DD2OgrePetItem:{needed:1,id:4816},DD2BetsyPetItem:{needed:1,id:4817},CombatWrench:{needed:1,id:4818},DemonConch:{needed:1,id:4819},BottomlessLavaBucket:{needed:1,id:4820},FireproofBugNet:{needed:1,id:4821},FlameWakerBoots:{needed:1,id:4822},RainbowWings:{needed:1,id:4823},WetBomb:{needed:99,id:4824},LavaBomb:{needed:99,id:4825},HoneyBomb:{needed:99,id:4826},DryBomb:{needed:99,id:4827},SuperheatedBlood:{needed:1,id:4828},LicenseCat:{needed:1,id:4829},LicenseDog:{needed:1,id:4830},GemSquirrelAmethyst:{needed:5,id:4831},GemSquirrelTopaz:{needed:5,id:4832},GemSquirrelSapphire:{needed:5,id:4833},GemSquirrelEmerald:{needed:5,id:4834},GemSquirrelRuby:{needed:5,id:4835},GemSquirrelDiamond:{needed:5,id:4836},GemSquirrelAmber:{needed:5,id:4837},GemBunnyAmethyst:{needed:5,id:4838},GemBunnyTopaz:{needed:5,id:4839},GemBunnySapphire:{needed:5,id:4840},GemBunnyEmerald:{needed:5,id:4841},GemBunnyRuby:{needed:5,id:4842},GemBunnyDiamond:{needed:5,id:4843},GemBunnyAmber:{needed:5,id:4844},HellButterfly:{needed:5,id:4845},HellButterflyJar:{needed:1,id:4846},Lavafly:{needed:5,id:4847},LavaflyinaBottle:{needed:1,id:4848},MagmaSnail:{needed:5,id:4849},MagmaSnailCage:{needed:1,id:4850},GemTreeTopazSeed:{needed:5,id:4851},GemTreeAmethystSeed:{needed:5,id:4852},GemTreeSapphireSeed:{needed:5,id:4853},GemTreeEmeraldSeed:{needed:5,id:4854},GemTreeRubySeed:{needed:5,id:4855},GemTreeDiamondSeed:{needed:5,id:4856},GemTreeAmberSeed:{needed:5,id:4857},PotSuspended:{needed:1,id:4858},PotSuspendedDaybloom:{needed:1,id:4859},PotSuspendedMoonglow:{needed:1,id:4860},PotSuspendedWaterleaf:{needed:1,id:4861},PotSuspendedShiverthorn:{needed:1,id:4862},PotSuspendedBlinkroot:{needed:1,id:4863},PotSuspendedDeathweedCorrupt:{needed:1,id:4864},PotSuspendedDeathweedCrimson:{needed:1,id:4865},PotSuspendedFireblossom:{needed:1,id:4866},BrazierSuspended:{needed:1,id:4867},VolcanoSmall:{needed:1,id:4868},VolcanoLarge:{needed:1,id:4869},PotionOfReturn:{needed:20,id:4870},VanityTreeSakuraSeed:{needed:25,id:4871},LavaAbsorbantSponge:{needed:1,id:4872},HallowedHood:{needed:1,id:4873},HellfireTreads:{needed:1,id:4874},TeleportationPylonJungle:{needed:1,id:4875},TeleportationPylonPurity:{needed:1,id:4876},LavaCrate:{needed:10,id:4877},LavaCrateHard:{needed:10,id:4878},ObsidianLockbox:{needed:10,id:4879},LavaFishbowl:{needed:1,id:4880},LavaFishingHook:{needed:1,id:4881},AmethystBunnyCage:{needed:1,id:4882},TopazBunnyCage:{needed:1,id:4883},SapphireBunnyCage:{needed:1,id:4884},EmeraldBunnyCage:{needed:1,id:4885},RubyBunnyCage:{needed:1,id:4886},DiamondBunnyCage:{needed:1,id:4887},AmberBunnyCage:{needed:1,id:4888},AmethystSquirrelCage:{needed:1,id:4889},TopazSquirrelCage:{needed:1,id:4890},SapphireSquirrelCage:{needed:1,id:4891},EmeraldSquirrelCage:{needed:1,id:4892},RubySquirrelCage:{needed:1,id:4893},DiamondSquirrelCage:{needed:1,id:4894},AmberSquirrelCage:{needed:1,id:4895},AncientHallowedMask:{needed:1,id:4896},AncientHallowedHelmet:{needed:1,id:4897},AncientHallowedHeadgear:{needed:1,id:4898},AncientHallowedHood:{needed:1,id:4899},AncientHallowedPlateMail:{needed:1,id:4900},AncientHallowedGreaves:{needed:1,id:4901},PottedLavaPlantPalm:{needed:1,id:4902},PottedLavaPlantBush:{needed:1,id:4903},PottedLavaPlantBramble:{needed:1,id:4904},PottedLavaPlantBulb:{needed:1,id:4905},PottedLavaPlantTendrils:{needed:1,id:4906},VanityTreeYellowWillowSeed:{needed:25,id:4907},DirtBomb:{needed:99,id:4908},DirtStickyBomb:{needed:99,id:4909},LicenseBunny:{needed:1,id:4910},CoolWhip:{needed:1,id:4911},FireWhip:{needed:1,id:4912},ThornWhip:{needed:1,id:4913},RainbowWhip:{needed:1,id:4914},TungstenBullet:{needed:99,id:4915},TeleportationPylonHallow:{needed:1,id:4916},TeleportationPylonUnderground:{needed:1,id:4917},TeleportationPylonOcean:{needed:1,id:4918},TeleportationPylonDesert:{needed:1,id:4919},TeleportationPylonSnow:{needed:1,id:4920},TeleportationPylonMushroom:{needed:1,id:4921},CavernFountain:{needed:1,id:4922},PiercingStarlight:{needed:1,id:4923},EyeofCthulhuMasterTrophy:{needed:1,id:4924},EaterofWorldsMasterTrophy:{needed:1,id:4925},BrainofCthulhuMasterTrophy:{needed:1,id:4926},SkeletronMasterTrophy:{needed:1,id:4927},QueenBeeMasterTrophy:{needed:1,id:4928},KingSlimeMasterTrophy:{needed:1,id:4929},WallofFleshMasterTrophy:{needed:1,id:4930},TwinsMasterTrophy:{needed:1,id:4931},DestroyerMasterTrophy:{needed:1,id:4932},SkeletronPrimeMasterTrophy:{needed:1,id:4933},PlanteraMasterTrophy:{needed:1,id:4934},GolemMasterTrophy:{needed:1,id:4935},DukeFishronMasterTrophy:{needed:1,id:4936},LunaticCultistMasterTrophy:{needed:1,id:4937},MoonLordMasterTrophy:{needed:1,id:4938},UFOMasterTrophy:{needed:1,id:4939},FlyingDutchmanMasterTrophy:{needed:1,id:4940},MourningWoodMasterTrophy:{needed:1,id:4941},PumpkingMasterTrophy:{needed:1,id:4942},IceQueenMasterTrophy:{needed:1,id:4943},EverscreamMasterTrophy:{needed:1,id:4944},SantankMasterTrophy:{needed:1,id:4945},DarkMageMasterTrophy:{needed:1,id:4946},OgreMasterTrophy:{needed:1,id:4947},BetsyMasterTrophy:{needed:1,id:4948},FairyQueenMasterTrophy:{needed:1,id:4949},QueenSlimeMasterTrophy:{needed:1,id:4950},TeleportationPylonVictory:{needed:1,id:4951},FairyQueenMagicItem:{needed:1,id:4952},FairyQueenRangedItem:{needed:1,id:4953},LongRainbowTrailWings:{needed:1,id:4954},RabbitOrder:{needed:1,id:4955},Zenith:{needed:1,id:4956},QueenSlimeBossBag:{needed:3,id:4957},QueenSlimeTrophy:{needed:1,id:4958},QueenSlimeMask:{needed:1,id:4959},QueenSlimePetItem:{needed:1,id:4960},EmpressButterfly:{needed:3,id:4961},AccentSlab:{needed:100,id:4962},TruffleWormCage:{needed:1,id:4963},EmpressButterflyJar:{needed:1,id:4964},RockGolemBanner:{needed:1,id:4965},BloodMummyBanner:{needed:1,id:4966},SporeSkeletonBanner:{needed:1,id:4967},SporeBatBanner:{needed:1,id:4968},LarvaeAntlionBanner:{needed:1,id:4969},CrimsonBunnyBanner:{needed:1,id:4970},CrimsonGoldfishBanner:{needed:1,id:4971},CrimsonPenguinBanner:{needed:1,id:4972},BigMimicCorruptionBanner:{needed:1,id:4973},BigMimicCrimsonBanner:{needed:1,id:4974},BigMimicHallowBanner:{needed:1,id:4975},MossHornetBanner:{needed:1,id:4976},WanderingEyeBanner:{needed:1,id:4977},CreativeWings:{needed:1,id:4978},MusicBoxQueenSlime:{needed:1,id:4979},QueenSlimeHook:{needed:1,id:4980},QueenSlimeMountSaddle:{needed:1,id:4981},CrystalNinjaHelmet:{needed:1,id:4982},CrystalNinjaChestplate:{needed:1,id:4983},CrystalNinjaLeggings:{needed:1,id:4984},MusicBoxEmpressOfLight:{needed:1,id:4985},GelBalloon:{needed:50,id:4986},VolatileGelatin:{needed:1,id:4987},QueenSlimeCrystal:{needed:3,id:4988},EmpressFlightBooster:{needed:1,id:4989},MusicBoxDukeFishron:{needed:1,id:4990},MusicBoxMorningRain:{needed:1,id:4991},MusicBoxConsoleTitle:{needed:1,id:4992},ChippysCouch:{needed:1,id:4993},GraduationCapBlue:{needed:1,id:4994},GraduationCapMaroon:{needed:1,id:4995},GraduationCapBlack:{needed:1,id:4996},GraduationGownBlue:{needed:1,id:4997},GraduationGownMaroon:{needed:1,id:4998},GraduationGownBlack:{needed:1,id:4999},TerrasparkBoots:{needed:1,id:5e3},MoonLordLegs:{needed:1,id:5001},OceanCrate:{needed:10,id:5002},OceanCrateHard:{needed:10,id:5003},BadgersHat:{needed:1,id:5004},EmpressBlade:{needed:1,id:5005},MusicBoxUndergroundDesert:{needed:1,id:5006},DeadMansSweater:{needed:1,id:5007},TeaKettle:{needed:1,id:5008},Teacup:{needed:10,id:5009},TreasureMagnet:{needed:1,id:5010},Mace:{needed:1,id:5011},FlamingMace:{needed:1,id:5012},MusicBoxOWRain:{needed:1,id:5014},MusicBoxOWDay:{needed:1,id:5015},MusicBoxOWNight:{needed:1,id:5016},MusicBoxOWUnderground:{needed:1,id:5017},MusicBoxOWDesert:{needed:1,id:5018},MusicBoxOWOcean:{needed:1,id:5019},MusicBoxOWMushroom:{needed:1,id:5020},MusicBoxOWDungeon:{needed:1,id:5021},MusicBoxOWSpace:{needed:1,id:5022},MusicBoxOWUnderworld:{needed:1,id:5023},MusicBoxOWSnow:{needed:1,id:5024},MusicBoxOWCorruption:{needed:1,id:5025},MusicBoxOWUndergroundCorruption:{needed:1,id:5026},MusicBoxOWCrimson:{needed:1,id:5027},MusicBoxOWUndergroundCrimson:{needed:1,id:5028},MusicBoxOWUndergroundSnow:{needed:1,id:5029},MusicBoxOWUndergroundHallow:{needed:1,id:5030},MusicBoxOWBloodMoon:{needed:1,id:5031},MusicBoxOWBoss2:{needed:1,id:5032},MusicBoxOWBoss1:{needed:1,id:5033},MusicBoxOWInvasion:{needed:1,id:5034},MusicBoxOWTowers:{needed:1,id:5035},MusicBoxOWMoonLord:{needed:1,id:5036},MusicBoxOWPlantera:{needed:1,id:5037},MusicBoxOWJungle:{needed:1,id:5038},MusicBoxOWWallOfFlesh:{needed:1,id:5039},MusicBoxOWHallow:{needed:1,id:5040},MilkCarton:{needed:10,id:5041},CoffeeCup:{needed:10,id:5042},TorchGodsFavor:{needed:1,id:5043},MusicBoxCredits:{needed:1,id:5044},PlaguebringerHelmet:{needed:1,id:5045},PlaguebringerChestplate:{needed:1,id:5046},PlaguebringerGreaves:{needed:1,id:5047},RoninHat:{needed:1,id:5048},RoninShirt:{needed:1,id:5049},RoninPants:{needed:1,id:5050},TimelessTravelerHood:{needed:1,id:5051},TimelessTravelerRobe:{needed:1,id:5052},TimelessTravelerBottom:{needed:1,id:5053},FloretProtectorHelmet:{needed:1,id:5054},FloretProtectorChestplate:{needed:1,id:5055},FloretProtectorLegs:{needed:1,id:5056},CapricornMask:{needed:1,id:5057},CapricornChestplate:{needed:1,id:5058},CapricornLegs:{needed:1,id:5059},CapricornTail:{needed:1,id:5060},TVHeadMask:{needed:1,id:5061},TVHeadSuit:{needed:1,id:5062},TVHeadPants:{needed:1,id:5063},LavaproofTackleBag:{needed:1,id:5064},PrincessWeapon:{needed:1,id:5065},BeeHive:{needed:5,id:5066},AntlionEggs:{needed:5,id:5067},FlinxFurCoat:{needed:1,id:5068},FlinxStaff:{needed:1,id:5069},FlinxFur:{needed:25,id:5070},RoyalTiara:{needed:1,id:5071},RoyalDressTop:{needed:1,id:5072},RoyalDressBottom:{needed:1,id:5073},BoneWhip:{needed:1,id:5074},RainbowCursor:{needed:1,id:5075},RoyalScepter:{needed:1,id:5076},GlassSlipper:{needed:1,id:5077},PrinceUniform:{needed:1,id:5078},PrincePants:{needed:1,id:5079},PrinceCape:{needed:1,id:5080},PottedCrystalPlantFern:{needed:1,id:5081},PottedCrystalPlantSpiral:{needed:1,id:5082},PottedCrystalPlantTeardrop:{needed:1,id:5083},PottedCrystalPlantTree:{needed:1,id:5084},Princess64:{needed:1,id:5085},PaintingOfALass:{needed:1,id:5086},DarkSideHallow:{needed:1,id:5087},BerniePetItem:{needed:1,id:5088},GlommerPetItem:{needed:1,id:5089},DeerclopsPetItem:{needed:1,id:5090},PigPetItem:{needed:1,id:5091},MonsterLasagna:{needed:10,id:5092},FroggleBunwich:{needed:10,id:5093},TentacleSpike:{needed:1,id:5094},LucyTheAxe:{needed:1,id:5095},HamBat:{needed:1,id:5096},BatBat:{needed:1,id:5097},ChesterPetItem:{needed:1,id:5098},GarlandHat:{needed:1,id:5099},BoneHelm:{needed:1,id:5100},Eyebrella:{needed:1,id:5101},WilsonShirt:{needed:1,id:5102},WilsonPants:{needed:1,id:5103},WilsonBeardShort:{needed:1,id:5104},WilsonBeardLong:{needed:1,id:5105},WilsonBeardMagnificent:{needed:1,id:5106},Magiluminescence:{needed:1,id:5107},DeerclopsTrophy:{needed:1,id:5108},DeerclopsMask:{needed:1,id:5109},DeerclopsMasterTrophy:{needed:1,id:5110},DeerclopsBossBag:{needed:3,id:5111},MusicBoxDeerclops:{needed:1,id:5112},DontStarveShaderItem:{needed:1,id:5113},AbigailsFlower:{needed:1,id:5114},WillowShirt:{needed:1,id:5115},WillowSkirt:{needed:1,id:5116},PewMaticHorn:{needed:1,id:5117},WeatherPain:{needed:1,id:5118},HoundiusShootius:{needed:1,id:5119},DeerThing:{needed:3,id:5120},PaintingWilson:{needed:1,id:5121},PaintingWillow:{needed:1,id:5122},PaintingWendy:{needed:1,id:5123},PaintingWolfgang:{needed:1,id:5124}};var d=i(8764).Buffer;const o="h\x003\0y\0_\0g\0U\0y\0Z\0",a=["Classic","Medium Core","Hard Core","Journey"],s=[234,235,236,237,238,242,243,244],h=(e,t)=>{const i=t+1+e.readInt8(t);return[e.toString("utf8",t+1,i),i]},u=i=>{const n=(t=>{"string"==typeof t&&(t=d.from(t,"ascii"));const i=e.createDecipheriv("aes-128-cbc",o,"h\x003\0y\0_\0g\0U\0y\0Z\0");try{return d.concat([i.update(t),i.final()])}catch(n){throw new Error(`Invalid character data: ${n}`)}})(i),u=n.readInt16LE();if(!s.includes(u))throw new Error(`This library only supports 4.1.2 (and others with the same format) (version id = ${u})`);let l=24;[,l]=h(n,l);const f=a[n.readUInt8(l)]||"Unknown!";if("Journey"!==f)throw new Error(`This only supports Journey Mode characters, not ${f}`);for(l+=2460;-1!==n.readInt32LE(l);)l+=12,[,l]=h(n,l);l+=107;const c=t.cloneDeep(r);for(;;){let e;if([e,l]=h(n,l),0===e.length)break;const t=n.readInt32LE(l);l+=4,c[e]?(c[e].has=t,c[e].researched=r[e].needed<=t):console.warn(`Uh oh! Missing item: ${e}`)}return c},l=e=>t.chain(u(e)).pickBy((e=>e.researched)).keys().value(),f=e=>t.chain(u(e)).pickBy((e=>!e.researched)).keys().value(),c=e=>{const i=l(e);return t.map(i,(e=>r[e].id))},p=e=>{const i=f(e);return t.map(i,(e=>r[e].id))}})(),terrariaResearchTracker=n})();