1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[679],{42503:function(t,r,i){"use strict";i.d(r,{i:function(){return e}});let e="bignumber/5.7.0"},74954:function(t,r,i){"use strict";i.d(r,{O$:function(){return d},Zm:function(){return m}});var e=i(8082),n=i.n(e),o=i(96240),h=i(60454),s=i(42503),u=n().BN;let a=new h.Yd(s.i),l={};function m(t){return null!=t&&(d.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||(0,o.A7)(t)||"bigint"==typeof t||(0,o._t)(t))}let f=!1;class d{constructor(t,r){t!==l&&a.throwError("cannot call constructor directly; use BigNumber.from",h.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return p(c(this).fromTwos(t))}toTwos(t){return p(c(this).toTwos(t))}abs(){return"-"===this._hex[0]?d.from(this._hex.substring(1)):this}add(t){return p(c(this).add(c(t)))}sub(t){return p(c(this).sub(c(t)))}div(t){let r=d.from(t);return r.isZero()&&v("division-by-zero","div"),p(c(this).div(c(t)))}mul(t){return p(c(this).mul(c(t)))}mod(t){let r=c(t);return r.isNeg()&&v("division-by-zero","mod"),p(c(this).umod(r))}pow(t){let r=c(t);return r.isNeg()&&v("negative-power","pow"),p(c(this).pow(r))}and(t){let r=c(t);return(this.isNegative()||r.isNeg())&&v("unbound-bitwise-result","and"),p(c(this).and(r))}or(t){let r=c(t);return(this.isNegative()||r.isNeg())&&v("unbound-bitwise-result","or"),p(c(this).or(r))}xor(t){let r=c(t);return(this.isNegative()||r.isNeg())&&v("unbound-bitwise-result","xor"),p(c(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&v("negative-width","mask"),p(c(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&v("negative-width","shl"),p(c(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&v("negative-width","shr"),p(c(this).shrn(t))}eq(t){return c(this).eq(c(t))}lt(t){return c(this).lt(c(t))}lte(t){return c(this).lte(c(t))}gt(t){return c(this).gt(c(t))}gte(t){return c(this).gte(c(t))}isNegative(){return"-"===this._hex[0]}isZero(){return c(this).isZero()}toNumber(){try{return c(this).toNumber()}catch(t){v("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return a.throwError("this platform does not support BigInt",h.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?f||(f=!0,a.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?a.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.Yd.errors.UNEXPECTED_ARGUMENT,{}):a.throwError("BigNumber.toString does not accept parameters",h.Yd.errors.UNEXPECTED_ARGUMENT,{})),c(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof d)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new d(l,g(t)):t.match(/^-?[0-9]+$/)?new d(l,g(new u(t))):a.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&v("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&v("overflow","BigNumber.from",t),d.from(String(t));if("bigint"==typeof t)return d.from(t.toString());if((0,o._t)(t))return d.from((0,o.Dv)(t));if(t){if(t.toHexString){let r=t.toHexString();if("string"==typeof r)return d.from(r)}else{let r=t._hex;if(null==r&&"BigNumber"===t.type&&(r=t.hex),"string"==typeof r&&((0,o.A7)(r)||"-"===r[0]&&(0,o.A7)(r.substring(1))))return d.from(r)}}return a.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function g(t){if("string"!=typeof t)return g(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&a.throwArgumentError("invalid hex","value",t),"0x00"===(t=g(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function p(t){return d.from(g(t))}function c(t){let r=d.from(t).toHexString();return"-"===r[0]?new u("-"+r.substring(3),16):new u(r.substring(2),16)}function v(t,r,i){let e={fault:t,operation:r};return null!=i&&(e.value=i),a.throwError(t,h.Yd.errors.NUMERIC_FAULT,e)}},96240:function(t,r,i){"use strict";i.d(r,{lE:function(){return a},$m:function(){return d},Dv:function(){return f},_t:function(){return u},A7:function(){return l}});var e=i(60454);let n=new e.Yd("bytes/5.7.0");function o(t){return!!t.toHexString}function h(t){return t.slice||(t.slice=function(){let r=Array.prototype.slice.call(arguments);return h(new Uint8Array(Array.prototype.slice.apply(t,r)))}),t}function s(t){return"number"==typeof t&&t==t&&t%1==0}function u(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;
1if("string"==typeof t||!s(t.length)||t.length<0)return!1;for(let r=0;r<t.length;r++){let i=t[r];if(!s(i)||i<0||i>=256)return!1}return!0}function a(t,r){if(r||(r={}),"number"==typeof t){n.checkSafeUint53(t,"invalid arrayify value");let r=[];for(;t;)r.unshift(255&t),t=parseInt(String(t/256));return 0===r.length&&r.push(0),h(new Uint8Array(r))}if(r.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),o(t)&&(t=t.toHexString()),l(t)){let i=t.substring(2);i.length%2&&("left"===r.hexPad?i="0"+i:"right"===r.hexPad?i+="0":n.throwArgumentError("hex data is odd-length","value",t));let e=[];for(let t=0;t<i.length;t+=2)e.push(parseInt(i.substring(t,t+2),16));return h(new Uint8Array(e))}return u(t)?h(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function l(t,r){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!r||t.length===2+2*r)}let m="0123456789abcdef";function f(t,r){if(r||(r={}),"number"==typeof t){n.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=m[15&t]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(r.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),o(t))return t.toHexString();if(l(t))return t.length%2&&("left"===r.hexPad?t="0x0"+t.substring(2):"right"===r.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(u(t)){let r="0x";for(let i=0;i<t.length;i++){let e=t[i];r+=m[(240&e)>>4]+m[15&e]}return r}return n.throwArgumentError("invalid hexlify value","value",t)}function d(t,r){for("string"!=typeof t?t=f(t):l(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*r+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*r+2;)t="0x0"+t.substring(2);return t}},60454:function(t,r,i){"use strict";var e,n,o,h;i.d(r,{Yd:function(){return g}});let s=!1,u=!1,a={debug:1,default:2,info:2,warning:3,error:4,off:5},l=a.default,m=null,f=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(r=>{try{if("test"!=="test".normalize(r))throw Error("bad normalize")}catch(i){t.push(r)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(o=e||(e={})).DEBUG="DEBUG",o.INFO="INFO",o.WARNING="WARNING",o.ERROR="ERROR",o.OFF="OFF",(h=n||(n={})).UNKNOWN_ERROR="UNKNOWN_ERROR",h.NOT_IMPLEMENTED="NOT_IMPLEMENTED",h.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",h.NETWORK_ERROR="NETWORK_ERROR",h.SERVER_ERROR="SERVER_ERROR",h.TIMEOUT="TIMEOUT",h.BUFFER_OVERRUN="BUFFER_OVERRUN",h.NUMERIC_FAULT="NUMERIC_FAULT",h.MISSING_NEW="MISSING_NEW",h.INVALID_ARGUMENT="INVALID_ARGUMENT",h.MISSING_ARGUMENT="MISSING_ARGUMENT",h.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",h.CALL_EXCEPTION="CALL_EXCEPTION",h.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",h.NONCE_EXPIRED="NONCE_EXPIRED",h.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",h.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",h.TRANSACTION_REPLACED="TRANSACTION_REPLACED",h.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class g{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let i=t.toLowerCase();null==a[i]&&this.throwArgumentError("invalid log level name","logLevel",t),l>a[i]||console.log.apply(console,r)}debug(...t){this._log(g.levels.DEBUG,t)}info(...t){this._log(g.levels.INFO,t)}warn(...t){this._log(g.levels.WARNING,t)}makeError(t,r,i){if(u)return this.makeError("censored error",r,{});r||(r=g.errors.UNKNOWN_ERROR),i||(i={});let e=[];
1Object.keys(i).forEach(t=>{let r=i[t];try{if(r instanceof Uint8Array){let i="";for(let t=0;t<r.length;t++)i+=d[r[t]>>4]+d[15&r[t]];e.push(t+"=Uint8Array(0x"+i+")")}else e.push(t+"="+JSON.stringify(r))}catch(r){e.push(t+"="+JSON.stringify(i[t].toString()))}}),e.push(`code=${r}`),e.push(`version=${this.version}`);let o=t,h="";switch(r){case n.NUMERIC_FAULT:{h="NUMERIC_FAULT";let r=t;switch(r){case"overflow":case"underflow":case"division-by-zero":h+="-"+r;break;case"negative-power":case"negative-width":h+="-unsupported";break;case"unbound-bitwise-result":h+="-unbound-result"}break}case n.CALL_EXCEPTION:case n.INSUFFICIENT_FUNDS:case n.MISSING_NEW:case n.NONCE_EXPIRED:case n.REPLACEMENT_UNDERPRICED:case n.TRANSACTION_REPLACED:case n.UNPREDICTABLE_GAS_LIMIT:h=r}h&&(t+=" [ See: https://links.ethers.org/v5-errors-"+h+" ]"),e.length&&(t+=" ("+e.join(", ")+")");let s=Error(t);return s.reason=o,s.code=r,Object.keys(i).forEach(function(t){s[t]=i[t]}),s}throwError(t,r,i){throw this.makeError(t,r,i)}throwArgumentError(t,r,i){return this.throwError(t,g.errors.INVALID_ARGUMENT,{argument:r,value:i})}assert(t,r,i,e){t||this.throwError(r,i,e)}assertArgument(t,r,i,e){t||this.throwArgumentError(r,i,e)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",g.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}checkSafeUint53(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,g.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,g.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,i){i=i?": "+i:"",t<r&&this.throwError("missing argument"+i,g.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+i,g.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||null==t)&&this.throwError("missing new",g.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",g.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",g.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return m||(m=new g("logger/5.7.0")),m}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",g.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!t)return;this.globalLogger().throwError("error censorship permanent",g.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!t,s=!!r}static setLogLevel(t){let r=a[t.toLowerCase()];if(null==r){g.globalLogger().warn("invalid log level - "+t);return}l=r}static from(t){return new g(t)}}g.errors=n,g.levels=e},91679:function(t,r,i){"use strict";i.d(r,{dF:function(){return b}});var e=i(96240),n=i(60454),o=i(42503),h=i(74954);let s=new n.Yd(o.i),u={},a=h.O$.from(0),l=h.O$.from(-1);function m(t,r,i,e){let o={fault:r,operation:i};return void 0!==e&&(o.value=e),s.throwError(t,n.Yd.errors.NUMERIC_FAULT,o)}let f="0";for(;f.length<256;)f+=f;function d(t){if("number"!=typeof t)try{t=h.O$.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+f.substring(0,t):s.throwArgumentError("invalid decimal size","decimals",t)}function g(t,r){null==r&&(r=0);let i=d(r);t=h.O$.from(t);let e=t.lt(a);e&&(t=t.mul(l));let n=t.mod(i).toString();for(;n.length<i.length-1;)n="0"+n;n=n.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=t.div(i).toString();return t=1===i.length?o:o+"."+n,e&&(t="-"+t),t}function p(t,r){null==r&&(r=0);let i=d(r);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||s.throwArgumentError("invalid decimal value","value",t);let e="-"===t.substring(0,1);e&&(t=t.substring(1)),"."===t&&s.throwArgumentError("missing value","value",t);let n=t.split(".");n.length>2&&s.throwArgumentError("too many decimal points","value",t);let o=n[0],u=n[1];for(o||(o="0"),u||(u="0");"0"===u[u.length-1];)u=u.substring(0,u.length-1);for(u.length>i.length-1&&m("fractional component exceeds decimals","underflow","parseFixed"),""===u&&(u="0");u.length<i.length-1;)u+="0";let a=h.O$.from(o),f=h.O$.from(u),g=a.mul(i).add(f);return e&&(g=g.mul(l)),g}class c{constructor(t,r,i,e){t!==u&&s.throwError("cannot use FixedFormat constructor; use FixedFormat.from",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=i,this.decimals=e,this.name=(r?"":"u")+"fixed"+String(i)+"x"+String(e),this._multiplier=d(e),Object.freeze(this)}static from(t){if(t instanceof c)return t;"number"==typeof t&&(t=`fixed128x${t}`);let r=!0,i=128,e=18;if("string"==typeof t){if("fixed"===t);else if("ufixed"===t)r=!1;else{let n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);n||s.throwArgumentError("invalid fixed format","format",t),r="u"!==n[1],i=parseInt(n[2]),e=parseInt(n[3])}}else if(t){let n=(r,i,e)=>null==t[r]?e:(typeof t[r]!==i&&s.throwArgumentError("invalid fixed format ("+r+" not "+i+")","format."+r,t[r]),t[r]);r=n("signed","boolean",r),i=n("width","number",i),e=n("decimals","number",e)}return i%8&&s.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",i),e>80&&s.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",e),new c(u,r,i,e)}}class v{constructor(t,r,i,e){t!==u&&s.throwError("cannot use FixedNumber constructor; use FixedNumber.from",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=e,this._hex=r,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&s.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);let r=p(this._value,this.format.decimals),i=p(t._value,t.format.decimals);return v.fromValue(r.add(i),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);let r=p(this._value,this.format.decimals),i=p(t._value,t.format.decimals);return v.fromValue(r.sub(i),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);let r=p(this._value,this.format.decimals),i=p(t._value,t.format.decimals);return v.fromValue(r.mul(i).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);let r=p(this._value,this.format.decimals),i=p(t._value,t.format.decimals);return v.fromValue(r.mul(this.format._multiplier).div(i),this.format.decimals,this.format)}floor(){let t=this.toString().split(".");1===t.length&&t.push("0");let r=v.from(t[0],this.format),i=!t[1].match(/^(0*)$/);return this.isNegative()&&i&&(r=r.subUnsafe(M.toFormat(r.format))),r}ceiling(){let t=this.toString().split(".");1===t.length&&t.push("0");let r=v.from(t[0],this.format),i=!t[1].match(/^(0*)$/);return!this.isNegative()&&i&&(r=r.addUnsafe(M.toFormat(r.format))),r}round(t){null==t&&(t=0);let r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&s.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;let i=v.from("1"+f.substring(0,t),this.format),e=w.toFormat(this.format);return this.mulUnsafe(i).addUnsafe(e).floor().divUnsafe(i)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&s.throwArgumentError("invalid byte width","width",t);let r=h.O$.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return(0,e.$m)(r,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return v.fromString(this._value,t)}static fromValue(t,r,i){return null!=i||null==r||(0,h.Zm)(r)||(i=r,r=null),null==r&&(r=0),null==i&&(i="fixed"),v.fromString(g(t,r),c.from(i))}static fromString(t,r){null==r&&(r="fixed");let i=c.from(r),n=p(t,i.decimals);!i.signed&&n.lt(a)&&m("unsigned value cannot be negative","overflow","value",t);let o=null;i.signed?o=n.toTwos(i.width).toHexString():(o=n.toHexString(),o=(0,e.$m)(o,i.width/8));let h=g(n,i.decimals);return new v(u,o,h,i)}static fromBytes(t,r){null==r&&(r="fixed");let i=c.from(r);
1if((0,e.lE)(t).length>i.width/8)throw Error("overflow");let n=h.O$.from(t);i.signed&&(n=n.fromTwos(i.width));let o=n.toTwos((i.signed?0:1)+i.width).toHexString(),s=g(n,i.decimals);return new v(u,o,s,i)}static from(t,r){if("string"==typeof t)return v.fromString(t,r);if((0,e._t)(t))return v.fromBytes(t,r);try{return v.fromValue(t,0,r)}catch(t){if(t.code!==n.Yd.errors.INVALID_ARGUMENT)throw t}return s.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}let M=v.from(1),w=v.from("0.5");new n.Yd("units/5.7.0");let y=["wei","kwei","mwei","gwei","szabo","finney","ether"];function b(t){return function(t,r){if("string"==typeof r){let t=y.indexOf(r);-1!==t&&(r=3*t)}return g(t,null!=r?r:18)}(t,18)}},8082:function(t,r,i){!function(t,r){"use strict";function e(t,r){if(!t)throw Error(r||"Assertion failed")}function n(t,r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,r,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===r||"be"===r)&&(i=r,r=10),this._init(t||0,r||10,i||"be"))}"object"==typeof t?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{m="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(46601).Buffer}catch(t){}function h(t,r){var i=t.charCodeAt(r);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void e(!1,"Invalid character in "+t)}function s(t,r,i){var e=h(t,i);return i-1>=r&&(e|=h(t,i-1)<<4),e}function u(t,r,i,n){for(var o=0,h=0,s=Math.min(t.length,i),u=r;u<s;u++){var a=t.charCodeAt(u)-48;o*=n,h=a>=49?a-49+10:a>=17?a-17+10:a,e(a>=0&&h<n,"Invalid character"),o+=h}return o}function a(t,r){t.words=r.words,t.length=r.length,t.negative=r.negative,t.red=r.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,r){return t.cmp(r)>0?t:r},o.min=function(t,r){return 0>t.cmp(r)?t:r},o.prototype._init=function(t,r,i){if("number"==typeof t)return this._initNumber(t,r,i);if("object"==typeof t)return this._initArray(t,r,i);"hex"===r&&(r=16),e(r===(0|r)&&r>=2&&r<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===r?this._parseHex(t,n,i):(this._parseBase(t,r,n),"le"===i&&this._initArray(this.toArray(),r,i)))},o.prototype._initNumber=function(t,r,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(e(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),r,i)},o.prototype._initArray=function(t,r,i){if(e("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var n,o,h=0;h<this.length;h++)this.words[h]=0;var s=0;if("be"===i)for(h=t.length-1,n=0;h>=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[n]|=o<<s&67108863,this.words[n+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,n++);else if("le"===i)for(h=0,n=0;h<t.length;h+=3)o=t[h]|t[h+1]<<8|t[h+2]<<16,this.words[n]|=o<<s&67108863,this.words[n+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,n++);return this._strip()},o.prototype._parseHex=function(t,r,i){this.length=Math.ceil((t.length-r)/6),this.words=Array(this.length);for(var e,n=0;n<this.length;n++)this.words[n]=0;var o=0,h=0;if("be"===i)for(n=t.length-1;n>=r;n-=2)e=s(t,r,n)<<o,this.words[h]|=67108863&e,o>=18?(o-=18,h+=1,this.words[h]|=e>>>26):o+=8;else for(n=(t.length-r)%2==0?r+1:r;n<t.length;n+=2)e=s(t,r,n)<<o,this.words[h]|=67108863&e,o>=18?(o-=18,h+=1,this.words[h]|=e>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,r,i){this.words=[0],this.length=1;for(var e=0,n=1;n<=67108863;n*=r)e++;e--,n=n/r|0;for(var o=t.length-i,h=o%e,s=Math.min(o,o-h)+i,a=0,l=i;l<s;l+=e)a=u(t,l,l+e,r),this.imuln(n),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==h){var m=1;for(a=u(t,l,t.length,r),l=0;l<h;l++)m*=r;this.imuln(m),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this._strip()},o.prototype.copy=function(t){t.words=Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){a(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var m,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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 6,620 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,r,i){i.negative=r.negative^t.negative;var e=t.length+r.length|0;i.length=e,e=e-1|0;var n=0|t.words[0],o=0|r.words[0],h=n*o,s=67108863&h,u=h/67108864|0;i.words[0]=s;for(var a=1;a<e;a++){for(var l=u>>>26,m=67108863&u,f=Math.min(a,r.length-1),d=Math.max(0,a-t.length+1);d<=f;d++){var g=a-d|0;l+=(h=(n=0|t.words[g])*(o=0|r.words[d])+m)/67108864|0,m=67108863&h}i.words[a]=0|m,u=0|l}return 0!==u?i.words[a]=0|u:i.length--,i._strip()}o.prototype.toString=function(t,r){if(r=0|r||1,16===(t=t||10)||"hex"===t){i="";for(var i,n=0,o=0,h=0;h<this.length;h++){var s=this.words[h],u=((s<<n|o)&16777215).toString(16);o=s>>>24-n&16777215,(n+=2)>=26&&(n-=26,h--),i=0!==o||h!==this.length-1?f[6-u.length]+u+i:u+i}for(0!==o&&(i=o.toString(16)+i);i.length%r!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var a=d[t],l=g[t];i="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modrn(l).toString(t);i=(m=m.idivn(l)).isZero()?p+i:f[a-p.length]+p+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}e(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},m&&(o.prototype.toBuffer=function(t,r){return this.toArrayLike(m,t,r)}),o.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},o.prototype.toArrayLike=function(t,r,i){this._strip();var n=this.byteLength(),o=i||Math.max(1,n);e(n<=o,"byte array longer than desired length"),e(o>0,"Requested array length <= 0");var h=t.allocUnsafe?t.allocUnsafe(o):new t(o);return this["_toArrayLike"+("le"===r?"LE":"BE")](h,n),h},o.prototype._toArrayLikeLE=function(t,r){for(var i=0,e=0,n=0,o=0;n<this.length;n++){var h=this.words[n]<<o|e;t[i++]=255&h,i<t.length&&(t[i++]=h>>8&255),i<t.length&&(t[i++]=h>>16&255),6===o?(i<t.length&&(t[i++]=h>>24&255),e=0,o=0):(e=h>>>24,o+=2)}if(i<t.length)for(t[i++]=e;i<t.length;)t[i++]=0},o.prototype._toArrayLikeBE=function(t,r){for(var i=t.length-1,e=0,n=0,o=0;n<this.length;n++){var h=this.words[n]<<o|e;t[i--]=255&h,i>=0&&(t[i--]=h>>8&255),i>=0&&(t[i--]=h>>16&255),6===o?(i>=0&&(t[i--]=h>>24&255),e=0,o=0):(e=h>>>24,o+=2)}if(i>=0)for(t[i--]=e;i>=0;)t[i--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var r=t,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},o.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,i=0;return(8191&r)==0&&(i+=13,r>>>=13),(127&r)==0&&(i+=7,r>>>=7),(15&r)==0&&(i+=4,r>>>=4),(3&r)==0&&(i+=2,r>>>=2),(1&r)==0&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return(this.length-1)*26+r},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this._strip()},o.prototype.ior=function(t){return e((this.negative|t.negative)==0),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=r.length,this._strip()},o.prototype.iand=function(t){return e((this.negative|t.negative)==0),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(r=this,i=t):(r=t,i=this);for(var r,i,e=0;e<i.length;e++)this.words[e]=r.words[e]^i.words[e];if(this!==r)for(;e<r.length;e++)this.words[e]=r.words[e];return this.length=r.length,this._strip()},o.prototype.ixor=function(t){return e((this.negative|t.negative)==0),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){e("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),i=t%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,r){e("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this._strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(i=this,e=t):(i=t,e=this);for(var r,i,e,n=0,o=0;o<e.length;o++)r=(0|i.words[o])+(0|e.words[o])+n,this.words[o]=67108863&r,n=r>>>26;for(;0!==n&&o<i.length;o++)r=(0|i.words[o])+n,this.words[o]=67108863&r,n=r>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;
vendor: 5,358 bytes, line 1
1var r,i,e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,h=0;h<i.length;h++)o=(e=(0|r.words[h])-(0|i.words[h])+o)>>26,this.words[h]=67108863&e;for(;0!==o&&h<r.length;h++)o=(e=(0|r.words[h])+o)>>26,this.words[h]=67108863&e;if(0===o&&h<r.length&&r!==this)for(;h<r.length;h++)this.words[h]=r.words[h];return this.length=Math.max(this.length,h),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var c=function(t,r,i){var e,n,o,h=t.words,s=r.words,u=i.words,a=0,l=0|h[0],m=8191&l,f=l>>>13,d=0|h[1],g=8191&d,p=d>>>13,c=0|h[2],v=8191&c,M=c>>>13,w=0|h[3],y=8191&w,b=w>>>13,_=0|h[4],E=8191&_,N=_>>>13,A=0|h[5],R=8191&A,S=A>>>13,x=0|h[6],I=8191&x,U=x>>>13,T=0|h[7],O=8191&T,k=T>>>13,P=0|h[8],F=8191&P,C=P>>>13,L=0|h[9],B=8191&L,D=L>>>13,Z=0|s[0],G=8191&Z,q=Z>>>13,z=0|s[1],$=8191&z,j=z>>>13,H=0|s[2],V=8191&H,Y=H>>>13,W=0|s[3],K=8191&W,X=W>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,tr=0|s[5],ti=8191&tr,te=tr>>>13,tn=0|s[6],to=8191&tn,th=tn>>>13,ts=0|s[7],tu=8191&ts,ta=ts>>>13,tl=0|s[8],tm=8191&tl,tf=tl>>>13,td=0|s[9],tg=8191&td,tp=td>>>13;i.negative=t.negative^r.negative,i.length=19;var tc=(a+(e=Math.imul(m,G))|0)+((8191&(n=(n=Math.imul(m,q))+Math.imul(f,G)|0))<<13)|0;a=((o=Math.imul(f,q))+(n>>>13)|0)+(tc>>>26)|0,tc&=67108863,e=Math.imul(g,G),n=(n=Math.imul(g,q))+Math.imul(p,G)|0,o=Math.imul(p,q);var tv=(a+(e=e+Math.imul(m,$)|0)|0)+((8191&(n=(n=n+Math.imul(m,j)|0)+Math.imul(f,$)|0))<<13)|0;a=((o=o+Math.imul(f,j)|0)+(n>>>13)|0)+(tv>>>26)|0,tv&=67108863,e=Math.imul(v,G),n=(n=Math.imul(v,q))+Math.imul(M,G)|0,o=Math.imul(M,q),e=e+Math.imul(g,$)|0,n=(n=n+Math.imul(g,j)|0)+Math.imul(p,$)|0,o=o+Math.imul(p,j)|0;var tM=(a+(e=e+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,Y)|0)+Math.imul(f,V)|0))<<13)|0;a=((o=o+Math.imul(f,Y)|0)+(n>>>13)|0)+(tM>>>26)|0,tM&=67108863,e=Math.imul(y,G),n=(n=Math.imul(y,q))+Math.imul(b,G)|0,o=Math.imul(b,q),e=e+Math.imul(v,$)|0,n=(n=n+Math.imul(v,j)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,j)|0,e=e+Math.imul(g,V)|0,n=(n=n+Math.imul(g,Y)|0)+Math.imul(p,V)|0,o=o+Math.imul(p,Y)|0;var tw=(a+(e=e+Math.imul(m,K)|0)|0)+((8191&(n=(n=n+Math.imul(m,X)|0)+Math.imul(f,K)|0))<<13)|0;a=((o=o+Math.imul(f,X)|0)+(n>>>13)|0)+(tw>>>26)|0,tw&=67108863,e=Math.imul(E,G),n=(n=Math.imul(E,q))+Math.imul(N,G)|0,o=Math.imul(N,q),e=e+Math.imul(y,$)|0,n=(n=n+Math.imul(y,j)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,j)|0,e=e+Math.imul(v,V)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,Y)|0,e=e+Math.imul(g,K)|0,n=(n=n+Math.imul(g,X)|0)+Math.imul(p,K)|0,o=o+Math.imul(p,X)|0;var ty=(a+(e=e+Math.imul(m,Q)|0)|0)+((8191&(n=(n=n+Math.imul(m,tt)|0)+Math.imul(f,Q)|0))<<13)|0;a=((o=o+Math.imul(f,tt)|0)+(n>>>13)|0)+(ty>>>26)|0,ty&=67108863,e=Math.imul(R,G),n=(n=Math.imul(R,q))+Math.imul(S,G)|0,o=Math.imul(S,q),e=e+Math.imul(E,$)|0,n=(n=n+Math.imul(E,j)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,j)|0,e=e+Math.imul(y,V)|0,n=(n=n+Math.imul(y,Y)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Y)|0,e=e+Math.imul(v,K)|0,n=(n=n+Math.imul(v,X)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,X)|0,e=e+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,tt)|0)+Math.imul(p,Q)|0,o=o+Math.imul(p,tt)|0;var tb=(a+(e=e+Math.imul(m,ti)|0)|0)+((8191&(n=(n=n+Math.imul(m,te)|0)+Math.imul(f,ti)|0))<<13)|0;a=((o=o+Math.imul(f,te)|0)+(n>>>13)|0)+(tb>>>26)|0,tb&=67108863,e=Math.imul(I,G),n=(n=Math.imul(I,q))+Math.imul(U,G)|0,o=Math.imul(U,q),e=e+Math.imul(R,$)|0,n=(n=n+Math.imul(R,j)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,j)|0,e=e+Math.imul(E,V)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,Y)|0,e=e+Math.imul(y,K)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,X)|0,e=e+Math.imul(v,Q)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,e=e+Math.imul(g,ti)|0,n=(n=n+Math.imul(g,te)|0)+Math.imul(p,ti)|0,o=o+Math.imul(p,te)|0;var t_=(a+(e=e+Math.imul(m,to)|0)|0)+((8191&(n=(n=n+Math.imul(m,th)|0)+Math.imul(f,to)|0))<<13)|0;a=((o=o+Math.imul(f,th)|0)+(n>>>13)|0)+(t_>>>26)|0,t_&=67108863,e=Math.imul(O,G),n=(n=Math.imul(O,q))+Math.imul(k,G)|0,o=Math.imul(k,q),e=e+Math.imul(I,$)|0,n=(n=n+Math.imul(I,j)|0)+Math.imul(U,$)|0,o=o+Math.imul(U,j)|0,e=e+Math.imul(R,V)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Y)|0,e=e+Math.imul(E,K)|0,n=(n=n+Math.imul(E,X)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,X)|0,e=e+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,e=e+Math.imul(v,ti)|0,n=(n=n+Math.imul(v,te)|0)+Math.imul(M,ti)|0,o=o+Math.imul(M,te)|0,e=e+Math.imul(g,to)|0,n=(n=n+Math.imul(g,th)|0)+Math.imul(p,to)|0,o=o+Math.imul(p,th)|0;var tE=(a+(e=e+Math.imul(m,tu)|0)|0)+((8191&(n=(n=n+Math.imul(m,ta)|0)+Math.imul(f,tu)|0))<<13)|0;a=((o=o+Math.imul(f,ta)|0)+(n>>>13)|0)+(tE>>>26)|0,tE&=67108863,e=Math.imul(F,G),n=(n=Math.imul(F,q))+Math.imul(C,G)|0,o=Math.imul(C,q),e=e+Math.imul(O,$)|0,n=(n=n+Math.imul(O,j)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,j)|0,e=e+Math.imul(I,V)|0,n=(n=n+Math.imul(I,Y)|0)+Math.imul(U,V)|0,o=o+Math.imul(U,Y)|0,e=e+Math.imul(R,K)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,e=e+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,e=e+Math.imul(y,ti)|0,n=(n=n+Math.imul(y,te)|0)+Math.imul(b,t
vendor: 2,242 bytes, line 1
1i)|0,o=o+Math.imul(b,te)|0,e=e+Math.imul(v,to)|0,n=(n=n+Math.imul(v,th)|0)+Math.imul(M,to)|0,o=o+Math.imul(M,th)|0,e=e+Math.imul(g,tu)|0,n=(n=n+Math.imul(g,ta)|0)+Math.imul(p,tu)|0,o=o+Math.imul(p,ta)|0;var tN=(a+(e=e+Math.imul(m,tm)|0)|0)+((8191&(n=(n=n+Math.imul(m,tf)|0)+Math.imul(f,tm)|0))<<13)|0;a=((o=o+Math.imul(f,tf)|0)+(n>>>13)|0)+(tN>>>26)|0,tN&=67108863,e=Math.imul(B,G),n=(n=Math.imul(B,q))+Math.imul(D,G)|0,o=Math.imul(D,q),e=e+Math.imul(F,$)|0,n=(n=n+Math.imul(F,j)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,j)|0,e=e+Math.imul(O,V)|0,n=(n=n+Math.imul(O,Y)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,Y)|0,e=e+Math.imul(I,K)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(U,K)|0,o=o+Math.imul(U,X)|0,e=e+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,e=e+Math.imul(E,ti)|0,n=(n=n+Math.imul(E,te)|0)+Math.imul(N,ti)|0,o=o+Math.imul(N,te)|0,e=e+Math.imul(y,to)|0,n=(n=n+Math.imul(y,th)|0)+Math.imul(b,to)|0,o=o+Math.imul(b,th)|0,e=e+Math.imul(v,tu)|0,n=(n=n+Math.imul(v,ta)|0)+Math.imul(M,tu)|0,o=o+Math.imul(M,ta)|0,e=e+Math.imul(g,tm)|0,n=(n=n+Math.imul(g,tf)|0)+Math.imul(p,tm)|0,o=o+Math.imul(p,tf)|0;var tA=(a+(e=e+Math.imul(m,tg)|0)|0)+((8191&(n=(n=n+Math.imul(m,tp)|0)+Math.imul(f,tg)|0))<<13)|0;a=((o=o+Math.imul(f,tp)|0)+(n>>>13)|0)+(tA>>>26)|0,tA&=67108863,e=Math.imul(B,$),n=(n=Math.imul(B,j))+Math.imul(D,$)|0,o=Math.imul(D,j),e=e+Math.imul(F,V)|0,n=(n=n+Math.imul(F,Y)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,Y)|0,e=e+Math.imul(O,K)|0,n=(n=n+Math.imul(O,X)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,X)|0,e=e+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,tt)|0)+Math.imul(U,Q)|0,o=o+Math.imul(U,tt)|0,e=e+Math.imul(R,ti)|0,n=(n=n+Math.imul(R,te)|0)+Math.imul(S,ti)|0,o=o+Math.imul(S,te)|0,e=e+Math.imul(E,to)|0,n=(n=n+Math.imul(E,th)|0)+Math.imul(N,to)|0,o=o+Math.imul(N,th)|0,e=e+Math.imul(y,tu)|0,n=(n=n+Math.imul(y,ta)|0)+Math.imul(b,tu)|0,o=o+Math.imul(b,ta)|0,e=e+Math.imul(v,tm)|0,n=(n=n+Math.imul(v,tf)|0)+Math.imul(M,tm)|0,o=o+Math.imul(M,tf)|0;var tR=(a+(e=e+Math.imul(g,tg)|0)|0)+((8191&(n=(n=n+Math.imul(g,tp)|0)+Math.imul(p,tg)|0))<<13)|0;a=((o=o+Math.imul(p,tp)|0)+(n>>>13)|0)+(tR>>>26)|0,tR&=67108863,e=Math.imul(B,V),n=(n=Math.imul(B,Y))+Math.imul(D,V)|0,o=Math.imul(D,Y),e=e+Math.imul(F,K)|0,n=(n=n+Math.imul(F,X
vendor: 4,924 bytes, line 1
1)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,e=e+Math.imul(O,Q)|0,n=(n=n+Math.imul(O,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,e=e+Math.imul(I,ti)|0,n=(n=n+Math.imul(I,te)|0)+Math.imul(U,ti)|0,o=o+Math.imul(U,te)|0,e=e+Math.imul(R,to)|0,n=(n=n+Math.imul(R,th)|0)+Math.imul(S,to)|0,o=o+Math.imul(S,th)|0,e=e+Math.imul(E,tu)|0,n=(n=n+Math.imul(E,ta)|0)+Math.imul(N,tu)|0,o=o+Math.imul(N,ta)|0,e=e+Math.imul(y,tm)|0,n=(n=n+Math.imul(y,tf)|0)+Math.imul(b,tm)|0,o=o+Math.imul(b,tf)|0;var tS=(a+(e=e+Math.imul(v,tg)|0)|0)+((8191&(n=(n=n+Math.imul(v,tp)|0)+Math.imul(M,tg)|0))<<13)|0;a=((o=o+Math.imul(M,tp)|0)+(n>>>13)|0)+(tS>>>26)|0,tS&=67108863,e=Math.imul(B,K),n=(n=Math.imul(B,X))+Math.imul(D,K)|0,o=Math.imul(D,X),e=e+Math.imul(F,Q)|0,n=(n=n+Math.imul(F,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,e=e+Math.imul(O,ti)|0,n=(n=n+Math.imul(O,te)|0)+Math.imul(k,ti)|0,o=o+Math.imul(k,te)|0,e=e+Math.imul(I,to)|0,n=(n=n+Math.imul(I,th)|0)+Math.imul(U,to)|0,o=o+Math.imul(U,th)|0,e=e+Math.imul(R,tu)|0,n=(n=n+Math.imul(R,ta)|0)+Math.imul(S,tu)|0,o=o+Math.imul(S,ta)|0,e=e+Math.imul(E,tm)|0,n=(n=n+Math.imul(E,tf)|0)+Math.imul(N,tm)|0,o=o+Math.imul(N,tf)|0;var tx=(a+(e=e+Math.imul(y,tg)|0)|0)+((8191&(n=(n=n+Math.imul(y,tp)|0)+Math.imul(b,tg)|0))<<13)|0;a=((o=o+Math.imul(b,tp)|0)+(n>>>13)|0)+(tx>>>26)|0,tx&=67108863,e=Math.imul(B,Q),n=(n=Math.imul(B,tt))+Math.imul(D,Q)|0,o=Math.imul(D,tt),e=e+Math.imul(F,ti)|0,n=(n=n+Math.imul(F,te)|0)+Math.imul(C,ti)|0,o=o+Math.imul(C,te)|0,e=e+Math.imul(O,to)|0,n=(n=n+Math.imul(O,th)|0)+Math.imul(k,to)|0,o=o+Math.imul(k,th)|0,e=e+Math.imul(I,tu)|0,n=(n=n+Math.imul(I,ta)|0)+Math.imul(U,tu)|0,o=o+Math.imul(U,ta)|0,e=e+Math.imul(R,tm)|0,n=(n=n+Math.imul(R,tf)|0)+Math.imul(S,tm)|0,o=o+Math.imul(S,tf)|0;var tI=(a+(e=e+Math.imul(E,tg)|0)|0)+((8191&(n=(n=n+Math.imul(E,tp)|0)+Math.imul(N,tg)|0))<<13)|0;a=((o=o+Math.imul(N,tp)|0)+(n>>>13)|0)+(tI>>>26)|0,tI&=67108863,e=Math.imul(B,ti),n=(n=Math.imul(B,te))+Math.imul(D,ti)|0,o=Math.imul(D,te),e=e+Math.imul(F,to)|0,n=(n=n+Math.imul(F,th)|0)+Math.imul(C,to)|0,o=o+Math.imul(C,th)|0,e=e+Math.imul(O,tu)|0,n=(n=n+Math.imul(O,ta)|0)+Math.imul(k,tu)|0,o=o+Math.imul(k,ta)|0,e=e+Math.imul(I,tm)|0,n=(n=n+Math.imul(I,tf)|0)+Math.imul(U,tm)|0,o=o+Math.imul(U,tf)|0;var tU=(a+(e=e+Math.imul(R,tg)|0)|0)+((8191&(n=(n=n+Math.imul(R,tp)|0)+Math.imul(S,tg)|0))<<13)|0;a=((o=o+Math.imul(S,tp)|0)+(n>>>13)|0)+(tU>>>26)|0,tU&=67108863,e=Math.imul(B,to),n=(n=Math.imul(B,th))+Math.imul(D,to)|0,o=Math.imul(D,th),e=e+Math.imul(F,tu)|0,n=(n=n+Math.imul(F,ta)|0)+Math.imul(C,tu)|0,o=o+Math.imul(C,ta)|0,e=e+Math.imul(O,tm)|0,n=(n=n+Math.imul(O,tf)|0)+Math.imul(k,tm)|0,o=o+Math.imul(k,tf)|0;var tT=(a+(e=e+Math.imul(I,tg)|0)|0)+((8191&(n=(n=n+Math.imul(I,tp)|0)+Math.imul(U,tg)|0))<<13)|0;a=((o=o+Math.imul(U,tp)|0)+(n>>>13)|0)+(tT>>>26)|0,tT&=67108863,e=Math.imul(B,tu),n=(n=Math.imul(B,ta))+Math.imul(D,tu)|0,o=Math.imul(D,ta),e=e+Math.imul(F,tm)|0,n=(n=n+Math.imul(F,tf)|0)+Math.imul(C,tm)|0,o=o+Math.imul(C,tf)|0;var tO=(a+(e=e+Math.imul(O,tg)|0)|0)+((8191&(n=(n=n+Math.imul(O,tp)|0)+Math.imul(k,tg)|0))<<13)|0;a=((o=o+Math.imul(k,tp)|0)+(n>>>13)|0)+(tO>>>26)|0,tO&=67108863,e=Math.imul(B,tm),n=(n=Math.imul(B,tf))+Math.imul(D,tm)|0,o=Math.imul(D,tf);var tk=(a+(e=e+Math.imul(F,tg)|0)|0)+((8191&(n=(n=n+Math.imul(F,tp)|0)+Math.imul(C,tg)|0))<<13)|0;a=((o=o+Math.imul(C,tp)|0)+(n>>>13)|0)+(tk>>>26)|0,tk&=67108863;var tP=(a+(e=Math.imul(B,tg))|0)+((8191&(n=(n=Math.imul(B,tp))+Math.imul(D,tg)|0))<<13)|0;return a=((o=Math.imul(D,tp))+(n>>>13)|0)+(tP>>>26)|0,tP&=67108863,u[0]=tc,u[1]=tv,u[2]=tM,u[3]=tw,u[4]=ty,u[5]=tb,u[6]=t_,u[7]=tE,u[8]=tN,u[9]=tA,u[10]=tR,u[11]=tS,u[12]=tx,u[13]=tI,u[14]=tU,u[15]=tT,u[16]=tO,u[17]=tk,u[18]=tP,0!==a&&(u[19]=a,i.length++),i};function v(t,r,i){i.negative=r.negative^t.negative,i.length=t.length+r.length;for(var e=0,n=0,o=0;o<i.length-1;o++){var h=n;n=0;for(var s=67108863&e,u=Math.min(o,r.length-1),a=Math.max(0,o-t.length+1);a<=u;a++){var l=o-a,m=(0|t.words[l])*(0|r.words[a]),f=67108863&m;h=h+(m/67108864|0)|0,s=67108863&(f=f+s|0),n+=(h=h+(f>>>26)|0)>>>26,h&=67108863}i.words[o]=s,e=h,h=n}return 0!==e?i.words[o]=e:i.length--,i._strip()}function M(t,r){this.x=t,this.y=r}Math.imul||(c=p),o.prototype.mulTo=function(t,r){var i,e=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,r):e<63?p(this,t,r):v(this,t,r)},M.prototype.makeRBT=function(t){for(var r=Array(t),i=o.prototype._countBits(t)-1,e=0;e<t;e++)r[e]=this.revBin(e,i,t);return r},M.prototype.revBin=function(t,r,i){if(0===t||t===i-1)return t;for(var e=0,n=0;n<r;n++)e|=(1&t)<<r-n-1,t>>=1;return e},M.prototype.permute=function(t,r,i,e,n,o){for(var h=0;h<o;h++)e[h]=r[t[h]],n[h]=i[t[h]]},M.prototype.transform=function(t,r,i,e,n,o){this.permute(o,t,r,i,e,n);for(var h=1;h<n;h<<=1)for(var s=h<<1,u=Math.cos(2*Math.PI/s),a=Math.sin(2*Math.PI/s),l=0;l<n;l+=s)for(var m=u,f=a,d=0;d<h;d++){var g=i[l+d],p=e[l+d],c=i[l+d+h],v=e[l+d+h],M=m*c-f*v;
vendor: 19,988 bytes, line 1
1v=m*v+f*c,c=M,i[l+d]=g+c,e[l+d]=p+v,i[l+d+h]=g-c,e[l+d+h]=p-v,d!==s&&(M=u*m-a*f,f=u*f+a*m,m=M)}},M.prototype.guessLen13b=function(t,r){var i=1|Math.max(r,t),e=1&i,n=0;for(i=i/2|0;i;i>>>=1)n++;return 1<<n+1+e},M.prototype.conjugate=function(t,r,i){if(!(i<=1))for(var e=0;e<i/2;e++){var n=t[e];t[e]=t[i-e-1],t[i-e-1]=n,n=r[e],r[e]=-r[i-e-1],r[i-e-1]=-n}},M.prototype.normalize13b=function(t,r){for(var i=0,e=0;e<r/2;e++){var n=8192*Math.round(t[2*e+1]/r)+Math.round(t[2*e]/r)+i;t[e]=67108863&n,i=n<67108864?0:n/67108864|0}return t},M.prototype.convert13b=function(t,r,i,n){for(var o=0,h=0;h<r;h++)o+=0|t[h],i[2*h]=8191&o,o>>>=13,i[2*h+1]=8191&o,o>>>=13;for(h=2*r;h<n;++h)i[h]=0;e(0===o),e((-8192&o)==0)},M.prototype.stub=function(t){for(var r=Array(t),i=0;i<t;i++)r[i]=0;return r},M.prototype.mulp=function(t,r,i){var e=2*this.guessLen13b(t.length,r.length),n=this.makeRBT(e),o=this.stub(e),h=Array(e),s=Array(e),u=Array(e),a=Array(e),l=Array(e),m=Array(e),f=i.words;f.length=e,this.convert13b(t.words,t.length,h,e),this.convert13b(r.words,r.length,a,e),this.transform(h,o,s,u,e,n),this.transform(a,o,l,m,e,n);for(var d=0;d<e;d++){var g=s[d]*l[d]-u[d]*m[d];u[d]=s[d]*m[d]+u[d]*l[d],s[d]=g}return this.conjugate(s,u,e),this.transform(s,u,f,o,e,n),this.conjugate(f,o,e),this.normalize13b(f,e),i.negative=t.negative^r.negative,i.length=t.length+r.length,i._strip()},o.prototype.mul=function(t){var r=new o(null);return r.words=Array(this.length+t.length),this.mulTo(t,r)},o.prototype.mulf=function(t){var r=new o(null);return r.words=Array(this.length+t.length),v(this,t,r)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var r=t<0;r&&(t=-t),e("number"==typeof t),e(t<67108864);for(var i=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,h=(67108863&o)+(67108863&i);i>>=26,i+=(o/67108864|0)+(h>>>26),this.words[n]=67108863&h}return 0!==i&&(this.words[n]=i,this.length++),r?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var r=function(t){for(var r=Array(t.bitLength()),i=0;i<r.length;i++){var e=i/26|0,n=i%26;r[i]=t.words[e]>>>n&1}return r}(t);if(0===r.length)return new o(1);for(var i=this,e=0;e<r.length&&0===r[e];e++,i=i.sqr());if(++e<r.length)for(var n=i.sqr();e<r.length;e++,n=n.sqr())0!==r[e]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){e("number"==typeof t&&t>=0);var r,i=t%26,n=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var h=0;for(r=0;r<this.length;r++){var s=this.words[r]&o,u=(0|this.words[r])-s<<i;this.words[r]=u|h,h=s>>>26-i}h&&(this.words[r]=h,this.length++)}if(0!==n){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this._strip()},o.prototype.ishln=function(t){return e(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,r,i){e("number"==typeof t&&t>=0),n=r?(r-r%26)/26:0;var n,o=t%26,h=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o;if(n-=h,n=Math.max(0,n),i){for(var u=0;u<h;u++)i.words[u]=this.words[u];i.length=h}if(0===h);else if(this.length>h)for(this.length-=h,u=0;u<this.length;u++)this.words[u]=this.words[u+h];else this.words[0]=0,this.length=1;var a=0;for(u=this.length-1;u>=0&&(0!==a||u>=n);u--){var l=0|this.words[u];this.words[u]=a<<26-o|l>>>o,a=l&s}return i&&0!==a&&(i.words[i.length++]=a),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,r,i){return e(0===this.negative),this.iushrn(t,r,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){e("number"==typeof t&&t>=0);var r=t%26,i=(t-r)/26;return!(this.length<=i)&&!!(this.words[i]&1<<r)},o.prototype.imaskn=function(t){e("number"==typeof t&&t>=0);var r=t%26,i=(t-r)/26;return(e(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==r&&i++,this.length=Math.min(i,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this._strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return(e("number"==typeof t),e(t<67108864),t<0)?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},o.prototype.isubn=function(t){if(e("number"==typeof t),e(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,r,i){var n,o,h=t.length+i;this._expand(h);var s=0;for(n=0;n<t.length;n++){o=(0|this.words[n+i])+s;var u=(0|t.words[n])*r;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[n+i]=67108863&o}for(;n<this.length-i;n++)s=(o=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&o;if(0===s)return this._strip();for(e(-1===s),s=0,n=0;n<this.length;n++)s=(o=-(0|this.words[n])+s)>>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,r){var i,e=this.length-t.length,n=this.clone(),h=t,s=0|h.words[h.length-1];0!=(e=26-this._countBits(s))&&(h=h.ushln(e),n.iushln(e),s=0|h.words[h.length-1]);var u=n.length-h.length;if("mod"!==r){(i=new o(null)).length=u+1,i.words=Array(i.length);for(var a=0;a<i.length;a++)i.words[a]=0}var l=n.clone()._ishlnsubmul(h,1,u);0===l.negative&&(n=l,i&&(i.words[u]=1));for(var m=u-1;m>=0;m--){var f=(0|n.words[h.length+m])*67108864+(0|n.words[h.length+m-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(h,f,m);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(h,1,m),n.isZero()||(n.negative^=1);i&&(i.words[m]=f)}return i&&i._strip(),n._strip(),"div"!==r&&0!==e&&n.iushrn(e),{div:i||null,mod:n}},o.prototype.divmod=function(t,r,i){var n,h,s;return(e(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,r),"mod"!==r&&(n=s.div.neg()),"div"!==r&&(h=s.mod.neg(),i&&0!==h.negative&&h.iadd(t)),{div:n,mod:h}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),r),"mod"!==r&&(n=s.div.neg()),{div:n,mod:s.mod}):(this.negative&t.negative)!=0?(s=this.neg().divmod(t.neg(),r),"div"!==r&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,r)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),n=t.andln(1),o=i.cmp(e);return o<0||1===n&&0===o?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modrn=function(t){var r=t<0;r&&(t=-t),e(t<=67108863);for(var i=67108864%t,n=0,o=this.length-1;o>=0;o--)n=(i*n+(0|this.words[o]))%t;return r?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var r=t<0;r&&(t=-t),e(t<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*i;this.words[n]=o/t|0,i=o%t}return this._strip(),r?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){e(0===t.negative),e(!t.isZero());var r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var n=new o(1),h=new o(0),s=new o(0),u=new o(1),a=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++a;for(var l=i.clone(),m=r.clone();!r.isZero();){for(var f=0,d=1;(r.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(n.isOdd()||h.isOdd())&&(n.iadd(l),h.isub(m)),n.iushrn(1),h.iushrn(1);for(var g=0,p=1;(i.words[0]&p)==0&&g<26;++g,p<<=1);if(g>0)for(i.iushrn(g);g-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(s),h.isub(u)):(i.isub(r),s.isub(n),u.isub(h))}return{a:s,b:u,gcd:i.iushln(a)}},o.prototype._invmp=function(t){e(0===t.negative),e(!t.isZero());var r,i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var h=new o(1),s=new o(0),u=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,l=1;(i.words[0]&l)==0&&a<26;++a,l<<=1);if(a>0)for(i.iushrn(a);a-- >0;)h.isOdd()&&h.iadd(u),h.iushrn(1);for(var m=0,f=1;(n.words[0]&f)==0&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),h.isub(s)):(n.isub(i),s.isub(h))}return 0>(r=0===i.cmpn(1)?h:s).cmpn(0)&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),i=t.clone();r.negative=0,i.negative=0;for(var e=0;r.isEven()&&i.isEven();e++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=r.cmp(i);if(n<0){var o=r;r=i,i=o}else if(0===n||0===i.cmpn(1))break;r.isub(i)}return i.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){e("number"==typeof t);var r=t%26,i=(t-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var o=n,h=i;0!==o&&h<this.length;h++){var s=0|this.words[h];s+=o,o=s>>>26,s&=67108863,this.words[h]=s}return 0!==o&&(this.words[h]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var r,i=t<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)r=1;else{i&&(t=-t),e(t<=67108863,"Number is too big");var n=0|this.words[0];r=n===t?0:n<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var r=0,i=this.length-1;i>=0;i--){var e=0|this.words[i],n=0|t.words[i];if(e!==n){e<n?r=-1:e>n&&(r=1);break}}return r},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return e(!this.red,"Already a number in reduction context"),e(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return e(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return e(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function y(t,r){this.name=t,this.p=new o(r,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var r=o._prime(t);this.m=r.p,this.prime=r}else e(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function R(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var r,i=t;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var e=r<this.n?-1:i.ucmp(this.p);return 0===e?(i.words[0]=0,i.length=1):e>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,r){t.iushrn(this.n,0,r)},y.prototype.imulK=function(t){return t.imul(this.k)},n(b,y),b.prototype.split=function(t,r){for(var i=Math.min(t.length,9),e=0;e<i;e++)r.words[e]=t.words[e];if(r.length=i,t.length<=9){t.words[0]=0,t.length=1;return}var n=t.words[9];for(e=10,r.words[r.length++]=4194303&n;e<t.length;e++){var o=0|t.words[e];t.words[e-10]=(4194303&o)<<4|n>>>22,n=o}n>>>=22,t.words[e-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,i=0;i<t.length;i++){var e=0|t.words[i];r+=977*e,t.words[i]=67108863&r,r=64*e+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(_,y),n(E,y),n(N,y),N.prototype.imulK=function(t){for(var r=0,i=0;i<t.length;i++){var e=(0|t.words[i])*19+r,n=67108863&e;e>>>=26,t.words[i]=n,r=e}return 0!==r&&(t.words[t.length++]=r),t},o._prime=function(t){var r;if(w[t])return w[t];if("k256"===t)r=new b;else if("p224"===t)r=new _;else if("p192"===t)r=new E;else if("p25519"===t)r=new N;else throw Error("Unknown prime "+t);return w[t]=r,r},A.prototype._verify1=function(t){e(0===t.negative,"red works only with positives"),e(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,r){e((t.negative|r.negative)==0,"red works only with positives"),e(t.red&&t.red===r.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,r){this._verify2(t,r);var i=t.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},A.prototype.iadd=function(t,r){this._verify2(t,r);var i=t.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},A.prototype.sub=function(t,r){this._verify2(t,r);var i=t.sub(r);return 0>i.cmpn(0)&&i.iadd(this.m),i._forceRed(this)},A.prototype.isub=function(t,r){this._verify2(t,r);var i=t.isub(r);return 0>i.cmpn(0)&&i.iadd(this.m),i},A.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},A.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},A.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(e(r%2==1),3===r){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),h=0;!n.isZero()&&0===n.andln(1);)h++,n.iushrn(1);e(!n.isZero());var s=new o(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,n),f=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),g=h;0!==d.cmp(s);){for(var p=d,c=0;0!==p.cmp(s);c++)p=p.redSqr();e(c<g);var v=this.pow(m,new o(1).iushln(g-c-1));f=f.redMul(v),m=v.redSqr(),d=d.redMul(m),g=c}return f},A.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},A.prototype.pow=function(t,r){if(r.isZero())return new o(1).toRed(this);if(0===r.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var e=2;e<i.length;e++)i[e]=this.mul(i[e-1],t);var n=i[0],h=0,s=0,u=r.bitLength()%26;for(0===u&&(u=26),e=r.length-1;e>=0;e--){for(var a=r.words[e],l=u-1;l>=0;l--){var m=a>>l&1;if(n!==i[0]&&(n=this.sqr(n)),0===m&&0===h){s=0;continue}h<<=1,h|=m,(4==++s||0===e&&0===l)&&(n=this.mul(n,i[h]),s=0,h=0)}u=26}return n},A.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},A.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},o.mont=function(t){return new R(t)},n(R,A),R.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},R.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},R.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(r),e=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(e).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},R.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new o(0)._forceRed(this);var i=t.mul(r),e=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(e).iushrn(this.shift),h=n;return n.cmp(this.m)>=0?h=n.isub(this.m):0>n.cmpn(0)&&(h=n.iadd(this.m)),h._forceRed(this)},R.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.