UNPKG

free-swagger-userscript

Version:

free-swagger for tampermonkey

1 lines 4.69 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71e900d9"],{"0006":function(e,t,r){"use strict";var i=r("4a92");function n(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var a=n,o=Math.max;function s(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){var i=arguments,n=-1,s=o(i.length-t,0),u=Array(s);while(++n<s)u[n]=i[t+n];n=-1;var c=Array(t+1);while(++n<t)c[n]=i[n];return c[t]=r(u),a(e,this,c)}}var u=s;function c(e){return function(){return e}}var l=c,f=r("3f53"),p=f["a"]?function(e,t){return Object(f["a"])(e,"toString",{configurable:!0,enumerable:!1,value:l(t),writable:!0})}:i["a"],h=p,d=800,m=16,b=Date.now;function y(e){var t=0,r=0;return function(){var i=b(),n=m-(i-r);if(r=i,n>0){if(++t>=d)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var v=y,g=v(h),k=g;function w(e,t){return k(u(e,t,i["a"]),e+"")}var _=w,x=r("8c0c"),E=r("7e7c"),S=r("9715"),A=r("619b");function j(e,t,r){if(!Object(A["a"])(r))return!1;var i=typeof t;return!!("number"==i?Object(E["a"])(r)&&Object(S["a"])(t,r.length):"string"==i&&t in r)&&Object(x["a"])(r[t],e)}var P=j,T=r("cf0d"),D=Object.prototype,C=D.hasOwnProperty,O=_((function(e,t){e=Object(e);var r=-1,i=t.length,n=i>2?t[2]:void 0;n&&P(t[0],t[1],n)&&(i=1);while(++r<i){var a=t[r],o=Object(T["a"])(a),s=-1,u=o.length;while(++s<u){var c=o[s],l=e[c];(void 0===l||Object(x["a"])(l,D[c])&&!C.call(e,c))&&(e[c]=a[c])}}return e}));t["a"]=O},"0027":function(e,t,r){"use strict";var i=/^[a-z_$][a-z0-9_$-]*$/i,n=r("17dcf");function a(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!i.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){if(t.macro&&void 0!==t.valid)throw new Error('"valid" option cannot be used with macro keywords');var a=t.type;if(Array.isArray(a)){var o,s=a.length;for(o=0;o<s;o++)f(a[o]);for(o=0;o<s;o++)l(e,a[o],t)}else a&&f(a),l(e,a,t);var u=!0===t.$data&&this._opts.$data;if(u&&!t.validate)throw new Error('$data support: "validate" function is not defined');var c=t.metaSchema;c&&(u&&(c={anyOf:[c,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/$data.json#"}]}),t.validateSchema=this.compile(c,!0))}function l(e,t,i){for(var a,o=0;o<r.length;o++){var s=r[o];if(s.type==t){a=s;break}}a||(a={type:t,rules:[]},r.push(a));var u={keyword:e,definition:i,custom:!0,code:n,implements:i.implements};a.rules.push(u),r.custom[e]=u}function f(e){if(!r.types[e])throw new Error("Unknown type "+e)}return r.keywords[e]=r.all[e]=!0,this}function o(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}function s(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var i=t[r].rules,n=0;n<i.length;n++)if(i[n].keyword==e){i.splice(n,1);break}return this}e.exports={add:a,get:o,remove:s}},"0031":function(e,t,r){(function(e){(function(e,t){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"===typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(9).Buffer}catch(D){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function u(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function c(e,t,r,n){for(var a=0,o=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;a*=n,o=c>=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&o<n,"Invalid character"),a+=o}return a}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;"-"===e[0]&&(n++,this.negative=1),n<e.length&&(16===t?this._parseHex(e,n,r):(this._parseBase(e,t,n),"le"===r&&this._initArray(this.toArray(),t,r)))},a.prototype._initNumber=function(e,t,r){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):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var a,o,s=0;if("be"===r)for(n=e.length-1,a=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);else if("le"===r)for(n=0,a=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,a=0,o=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=u(e,t,i)<<a,this.words[o]|=67108863&n,a>=18?(a-=18,o+=1,this.words[o]|=n>>>26):a+=8;else{var s=e.length-t;for(i=s%2===0?t+1:t;i<e.length;i+=2)n=u(e,t,i)<<a,this.words[o]|=67108863&n,a>=18?(a-=18,o+=1,this.words[o]|=n>>>26):a+=8}this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,s=Math.min(a,a-o)+r,u=0,l=r;l<s;l+=i)u=c(e,l,l+i,t),this.imuln(n),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var f=1;for(u=c(e,l,e.length,t),l=0;l<o;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},a.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},a.prototype._move=function(e){l(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},a.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(D){a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","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"],h=[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],d=[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];a.prototype.toString=function(e,t){var r;if(e=e||10,t=0|t||1,16===e||"hex"===e){r="";for(var n=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=(16777215&(s<<n|a)).toString(16);a=s>>>24-n&16777215,n+=2,n>=26&&(n-=26,o--),r=0!==a||o!==this.length-1?p[6-u.length]+u+r:u+r}0!==a&&(r=a.toString(16)+r);while(r.length%t!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=d[e];r="";var f=this.clone();f.negative=0;while(!f.isZero()){var m=f.modrn(l).toString(e);f=f.idivn(l),r=f.isZero()?m+r:p[c-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%t!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.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&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var m=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function b(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=e.words[i]>>>n&1}return t}function y(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var c=1;c<i;c++){for(var l=u>>>26,f=67108863&u,p=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=p;h++){var d=c-h|0;n=0|e.words[d],a=0|t.words[h],o=n*a+f,l+=o/67108864|0,f=67108863&o}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),a=r||Math.max(1,n);i(n<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var o=m(e,a),s="le"===t?"LE":"BE";return this["_toArrayLike"+s](o,n),o},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===a?(r<e.length&&(e[r++]=o>>24&255),i=0,a=0):(i=o>>>24,a+=2)}if(r<e.length){e[r++]=i;while(r<e.length)e[r++]=0}},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===a?(r>=0&&(e[r--]=o>>24&255),i=0,a=0):(i=o>>>24,a+=2)}if(r>=0){e[r--]=i;while(r>=0)e[r--]=0}},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){while(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()},a.prototype.ior=function(e){return i(0===(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return i(0===(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return i(0===(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"===typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this._strip()},a.prototype.iadd=function(e){var t,r,i;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?(r=this,i=e):(r=e,i=this);for(var n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=67108863&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.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)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,i,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=e):(r=e,i=this);for(var a=0,o=0;o<i.length;o++)t=(0|r.words[o])-(0|i.words[o])+a,a=t>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)t=(0|r.words[o])+a,a=t>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,t,r){var i,n,a,o=e.words,s=t.words,u=r.words,c=0,l=0|o[0],f=8191&l,p=l>>>13,h=0|o[1],d=8191&h,m=h>>>13,b=0|o[2],y=8191&b,v=b>>>13,g=0|o[3],k=8191&g,w=g>>>13,_=0|o[4],x=8191&_,E=_>>>13,S=0|o[5],A=8191&S,j=S>>>13,P=0|o[6],T=8191&P,D=P>>>13,C=0|o[7],O=8191&C,I=C>>>13,F=0|o[8],N=8191&F,R=F>>>13,M=0|o[9],B=8191&M,L=M>>>13,q=0|s[0],U=8191&q,z=q>>>13,$=0|s[1],H=8191&$,V=$>>>13,K=0|s[2],W=8191&K,G=K>>>13,Y=0|s[3],Z=8191&Y,J=Y>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ie=te>>>13,ne=0|s[6],ae=8191&ne,oe=ne>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,pe=le>>>13,he=0|s[9],de=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19,i=Math.imul(f,U),n=Math.imul(f,z),n=n+Math.imul(p,U)|0,a=Math.imul(p,z);var be=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(be>>>26)|0,be&=67108863,i=Math.imul(d,U),n=Math.imul(d,z),n=n+Math.imul(m,U)|0,a=Math.imul(m,z),i=i+Math.imul(f,H)|0,n=n+Math.imul(f,V)|0,n=n+Math.imul(p,H)|0,a=a+Math.imul(p,V)|0;var ye=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(y,U),n=Math.imul(y,z),n=n+Math.imul(v,U)|0,a=Math.imul(v,z),i=i+Math.imul(d,H)|0,n=n+Math.imul(d,V)|0,n=n+Math.imul(m,H)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(f,W)|0,n=n+Math.imul(f,G)|0,n=n+Math.imul(p,W)|0,a=a+Math.imul(p,G)|0;var ve=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(k,U),n=Math.imul(k,z),n=n+Math.imul(w,U)|0,a=Math.imul(w,z),i=i+Math.imul(y,H)|0,n=n+Math.imul(y,V)|0,n=n+Math.imul(v,H)|0,a=a+Math.imul(v,V)|0,i=i+Math.imul(d,W)|0,n=n+Math.imul(d,G)|0,n=n+Math.imul(m,W)|0,a=a+Math.imul(m,G)|0,i=i+Math.imul(f,Z)|0,n=n+Math.imul(f,J)|0,n=n+Math.imul(p,Z)|0,a=a+Math.imul(p,J)|0;var ge=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(x,U),n=Math.imul(x,z),n=n+Math.imul(E,U)|0,a=Math.imul(E,z),i=i+Math.imul(k,H)|0,n=n+Math.imul(k,V)|0,n=n+Math.imul(w,H)|0,a=a+Math.imul(w,V)|0,i=i+Math.imul(y,W)|0,n=n+Math.imul(y,G)|0,n=n+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,i=i+Math.imul(d,Z)|0,n=n+Math.imul(d,J)|0,n=n+Math.imul(m,Z)|0,a=a+Math.imul(m,J)|0,i=i+Math.imul(f,X)|0,n=n+Math.imul(f,ee)|0,n=n+Math.imul(p,X)|0,a=a+Math.imul(p,ee)|0;var ke=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(A,U),n=Math.imul(A,z),n=n+Math.imul(j,U)|0,a=Math.imul(j,z),i=i+Math.imul(x,H)|0,n=n+Math.imul(x,V)|0,n=n+Math.imul(E,H)|0,a=a+Math.imul(E,V)|0,i=i+Math.imul(k,W)|0,n=n+Math.imul(k,G)|0,n=n+Math.imul(w,W)|0,a=a+Math.imul(w,G)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(y,J)|0,n=n+Math.imul(v,Z)|0,a=a+Math.imul(v,J)|0,i=i+Math.imul(d,X)|0,n=n+Math.imul(d,ee)|0,n=n+Math.imul(m,X)|0,a=a+Math.imul(m,ee)|0,i=i+Math.imul(f,re)|0,n=n+Math.imul(f,ie)|0,n=n+Math.imul(p,re)|0,a=a+Math.imul(p,ie)|0;var we=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(T,U),n=Math.imul(T,z),n=n+Math.imul(D,U)|0,a=Math.imul(D,z),i=i+Math.imul(A,H)|0,n=n+Math.imul(A,V)|0,n=n+Math.imul(j,H)|0,a=a+Math.imul(j,V)|0,i=i+Math.imul(x,W)|0,n=n+Math.imul(x,G)|0,n=n+Math.imul(E,W)|0,a=a+Math.imul(E,G)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(k,J)|0,n=n+Math.imul(w,Z)|0,a=a+Math.imul(w,J)|0,i=i+Math.imul(y,X)|0,n=n+Math.imul(y,ee)|0,n=n+Math.imul(v,X)|0,a=a+Math.imul(v,ee)|0,i=i+Math.imul(d,re)|0,n=n+Math.imul(d,ie)|0,n=n+Math.imul(m,re)|0,a=a+Math.imul(m,ie)|0,i=i+Math.imul(f,ae)|0,n=n+Math.imul(f,oe)|0,n=n+Math.imul(p,ae)|0,a=a+Math.imul(p,oe)|0;var _e=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(O,U),n=Math.imul(O,z),n=n+Math.imul(I,U)|0,a=Math.imul(I,z),i=i+Math.imul(T,H)|0,n=n+Math.imul(T,V)|0,n=n+Math.imul(D,H)|0,a=a+Math.imul(D,V)|0,i=i+Math.imul(A,W)|0,n=n+Math.imul(A,G)|0,n=n+Math.imul(j,W)|0,a=a+Math.imul(j,G)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(x,J)|0,n=n+Math.imul(E,Z)|0,a=a+Math.imul(E,J)|0,i=i+Math.imul(k,X)|0,n=n+Math.imul(k,ee)|0,n=n+Math.imul(w,X)|0,a=a+Math.imul(w,ee)|0,i=i+Math.imul(y,re)|0,n=n+Math.imul(y,ie)|0,n=n+Math.imul(v,re)|0,a=a+Math.imul(v,ie)|0,i=i+Math.imul(d,ae)|0,n=n+Math.imul(d,oe)|0,n=n+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0,i=i+Math.imul(f,ue)|0,n=n+Math.imul(f,ce)|0,n=n+Math.imul(p,ue)|0,a=a+Math.imul(p,ce)|0;var xe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(N,U),n=Math.imul(N,z),n=n+Math.imul(R,U)|0,a=Math.imul(R,z),i=i+Math.imul(O,H)|0,n=n+Math.imul(O,V)|0,n=n+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(T,W)|0,n=n+Math.imul(T,G)|0,n=n+Math.imul(D,W)|0,a=a+Math.imul(D,G)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(A,J)|0,n=n+Math.imul(j,Z)|0,a=a+Math.imul(j,J)|0,i=i+Math.imul(x,X)|0,n=n+Math.imul(x,ee)|0,n=n+Math.imul(E,X)|0,a=a+Math.imul(E,ee)|0,i=i+Math.imul(k,re)|0,n=n+Math.imul(k,ie)|0,n=n+Math.imul(w,re)|0,a=a+Math.imul(w,ie)|0,i=i+Math.imul(y,ae)|0,n=n+Math.imul(y,oe)|0,n=n+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,i=i+Math.imul(d,ue)|0,n=n+Math.imul(d,ce)|0,n=n+Math.imul(m,ue)|0,a=a+Math.imul(m,ce)|0,i=i+Math.imul(f,fe)|0,n=n+Math.imul(f,pe)|0,n=n+Math.imul(p,fe)|0,a=a+Math.imul(p,pe)|0;var Ee=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(B,U),n=Math.imul(B,z),n=n+Math.imul(L,U)|0,a=Math.imul(L,z),i=i+Math.imul(N,H)|0,n=n+Math.imul(N,V)|0,n=n+Math.imul(R,H)|0,a=a+Math.imul(R,V)|0,i=i+Math.imul(O,W)|0,n=n+Math.imul(O,G)|0,n=n+Math.imul(I,W)|0,a=a+Math.imul(I,G)|0,i=i+Math.imul(T,Z)|0,n=n+Math.imul(T,J)|0,n=n+Math.imul(D,Z)|0,a=a+Math.imul(D,J)|0,i=i+Math.imul(A,X)|0,n=n+Math.imul(A,ee)|0,n=n+Math.imul(j,X)|0,a=a+Math.imul(j,ee)|0,i=i+Math.imul(x,re)|0,n=n+Math.imul(x,ie)|0,n=n+Math.imul(E,re)|0,a=a+Math.imul(E,ie)|0,i=i+Math.imul(k,ae)|0,n=n+Math.imul(k,oe)|0,n=n+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,i=i+Math.imul(y,ue)|0,n=n+Math.imul(y,ce)|0,n=n+Math.imul(v,ue)|0,a=a+Math.imul(v,ce)|0,i=i+Math.imul(d,fe)|0,n=n+Math.imul(d,pe)|0,n=n+Math.imul(m,fe)|0,a=a+Math.imul(m,pe)|0,i=i+Math.imul(f,de)|0,n=n+Math.imul(f,me)|0,n=n+Math.imul(p,de)|0,a=a+Math.imul(p,me)|0;var Se=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(B,H),n=Math.imul(B,V),n=n+Math.imul(L,H)|0,a=Math.imul(L,V),i=i+Math.imul(N,W)|0,n=n+Math.imul(N,G)|0,n=n+Math.imul(R,W)|0,a=a+Math.imul(R,G)|0,i=i+Math.imul(O,Z)|0,n=n+Math.imul(O,J)|0,n=n+Math.imul(I,Z)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(T,X)|0,n=n+Math.imul(T,ee)|0,n=n+Math.imul(D,X)|0,a=a+Math.imul(D,ee)|0,i=i+Math.imul(A,re)|0,n=n+Math.imul(A,ie)|0,n=n+Math.imul(j,re)|0,a=a+Math.imul(j,ie)|0,i=i+Math.imul(x,ae)|0,n=n+Math.imul(x,oe)|0,n=n+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,i=i+Math.imul(k,ue)|0,n=n+Math.imul(k,ce)|0,n=n+Math.imul(w,ue)|0,a=a+Math.imul(w,ce)|0,i=i+Math.imul(y,fe)|0,n=n+Math.imul(y,pe)|0,n=n+Math.imul(v,fe)|0,a=a+Math.imul(v,pe)|0,i=i+Math.imul(d,de)|0,n=n+Math.imul(d,me)|0,n=n+Math.imul(m,de)|0,a=a+Math.imul(m,me)|0;var Ae=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(B,W),n=Math.imul(B,G),n=n+Math.imul(L,W)|0,a=Math.imul(L,G),i=i+Math.imul(N,Z)|0,n=n+Math.imul(N,J)|0,n=n+Math.imul(R,Z)|0,a=a+Math.imul(R,J)|0,i=i+Math.imul(O,X)|0,n=n+Math.imul(O,ee)|0,n=n+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(T,re)|0,n=n+Math.imul(T,ie)|0,n=n+Math.imul(D,re)|0,a=a+Math.imul(D,ie)|0,i=i+Math.imul(A,ae)|0,n=n+Math.imul(A,oe)|0,n=n+Math.imul(j,ae)|0,a=a+Math.imul(j,oe)|0,i=i+Math.imul(x,ue)|0,n=n+Math.imul(x,ce)|0,n=n+Math.imul(E,ue)|0,a=a+Math.imul(E,ce)|0,i=i+Math.imul(k,fe)|0,n=n+Math.imul(k,pe)|0,n=n+Math.imul(w,fe)|0,a=a+Math.imul(w,pe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(y,me)|0,n=n+Math.imul(v,de)|0,a=a+Math.imul(v,me)|0;var je=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(je>>>26)|0,je&=67108863,i=Math.imul(B,Z),n=Math.imul(B,J),n=n+Math.imul(L,Z)|0,a=Math.imul(L,J),i=i+Math.imul(N,X)|0,n=n+Math.imul(N,ee)|0,n=n+Math.imul(R,X)|0,a=a+Math.imul(R,ee)|0,i=i+Math.imul(O,re)|0,n=n+Math.imul(O,ie)|0,n=n+Math.imul(I,re)|0,a=a+Math.imul(I,ie)|0,i=i+Math.imul(T,ae)|0,n=n+Math.imul(T,oe)|0,n=n+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,i=i+Math.imul(A,ue)|0,n=n+Math.imul(A,ce)|0,n=n+Math.imul(j,ue)|0,a=a+Math.imul(j,ce)|0,i=i+Math.imul(x,fe)|0,n=n+Math.imul(x,pe)|0,n=n+Math.imul(E,fe)|0,a=a+Math.imul(E,pe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(k,me)|0,n=n+Math.imul(w,de)|0,a=a+Math.imul(w,me)|0;var Pe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(B,X),n=Math.imul(B,ee),n=n+Math.imul(L,X)|0,a=Math.imul(L,ee),i=i+Math.imul(N,re)|0,n=n+Math.imul(N,ie)|0,n=n+Math.imul(R,re)|0,a=a+Math.imul(R,ie)|0,i=i+Math.imul(O,ae)|0,n=n+Math.imul(O,oe)|0,n=n+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,i=i+Math.imul(T,ue)|0,n=n+Math.imul(T,ce)|0,n=n+Math.imul(D,ue)|0,a=a+Math.imul(D,ce)|0,i=i+Math.imul(A,fe)|0,n=n+Math.imul(A,pe)|0,n=n+Math.imul(j,fe)|0,a=a+Math.imul(j,pe)|0,i=i+Math.imul(x,de)|0,n=n+Math.imul(x,me)|0,n=n+Math.imul(E,de)|0,a=a+Math.imul(E,me)|0;var Te=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(B,re),n=Math.imul(B,ie),n=n+Math.imul(L,re)|0,a=Math.imul(L,ie),i=i+Math.imul(N,ae)|0,n=n+Math.imul(N,oe)|0,n=n+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,i=i+Math.imul(O,ue)|0,n=n+Math.imul(O,ce)|0,n=n+Math.imul(I,ue)|0,a=a+Math.imul(I,ce)|0,i=i+Math.imul(T,fe)|0,n=n+Math.imul(T,pe)|0,n=n+Math.imul(D,fe)|0,a=a+Math.imul(D,pe)|0,i=i+Math.imul(A,de)|0,n=n+Math.imul(A,me)|0,n=n+Math.imul(j,de)|0,a=a+Math.imul(j,me)|0;var De=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(De>>>26)|0,De&=67108863,i=Math.imul(B,ae),n=Math.imul(B,oe),n=n+Math.imul(L,ae)|0,a=Math.imul(L,oe),i=i+Math.imul(N,ue)|0,n=n+Math.imul(N,ce)|0,n=n+Math.imul(R,ue)|0,a=a+Math.imul(R,ce)|0,i=i+Math.imul(O,fe)|0,n=n+Math.imul(O,pe)|0,n=n+Math.imul(I,fe)|0,a=a+Math.imul(I,pe)|0,i=i+Math.imul(T,de)|0,n=n+Math.imul(T,me)|0,n=n+Math.imul(D,de)|0,a=a+Math.imul(D,me)|0;var Ce=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(B,ue),n=Math.imul(B,ce),n=n+Math.imul(L,ue)|0,a=Math.imul(L,ce),i=i+Math.imul(N,fe)|0,n=n+Math.imul(N,pe)|0,n=n+Math.imul(R,fe)|0,a=a+Math.imul(R,pe)|0,i=i+Math.imul(O,de)|0,n=n+Math.imul(O,me)|0,n=n+Math.imul(I,de)|0,a=a+Math.imul(I,me)|0;var Oe=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,i=Math.imul(B,fe),n=Math.imul(B,pe),n=n+Math.imul(L,fe)|0,a=Math.imul(L,pe),i=i+Math.imul(N,de)|0,n=n+Math.imul(N,me)|0,n=n+Math.imul(R,de)|0,a=a+Math.imul(R,me)|0;var Ie=(c+i|0)+((8191&n)<<13)|0;c=(a+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,i=Math.imul(B,de),n=Math.imul(B,me),n=n+Math.imul(L,de)|0,a=Math.imul(L,me);var Fe=(c+i|0)+((8191&n)<<13)|0;return c=(a+(n>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,u[0]=be,u[1]=ye,u[2]=ve,u[3]=ge,u[4]=ke,u[5]=we,u[6]=_e,u[7]=xe,u[8]=Ee,u[9]=Se,u[10]=Ae,u[11]=je,u[12]=Pe,u[13]=Te,u[14]=De,u[15]=Ce,u[16]=Oe,u[17]=Ie,u[18]=Fe,0!==c&&(u[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){var o=n;n=0;for(var s=67108863&i,u=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=u;c++){var l=a-c,f=0|e.words[l],p=0|t.words[c],h=f*p,d=67108863&h;o=o+(h/67108864|0)|0,d=d+s|0,s=67108863&d,o=o+(d>>>26)|0,n+=o>>>26,o&=67108863}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r._strip()}function k(e,t,r){return g(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(v=y),a.prototype.mulTo=function(e,t){var r,i=this.length+e.length;return r=10===this.length&&10===e.length?v(this,e,t):i<63?y(this,e,t):i<1024?g(this,e,t):k(this,e,t),r},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},w.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},w.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},w.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<n;l+=s)for(var f=u,p=c,h=0;h<o;h++){var d=r[l+h],m=i[l+h],b=r[l+h+o],y=i[l+h+o],v=f*b-p*y;y=f*y+p*b,b=v,r[l+h]=d+b,i[l+h]=m+y,r[l+h+o]=d-b,i[l+h+o]=m-y,h!==s&&(v=u*f-c*p,p=u*p+c*f,f=v)}},w.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},w.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},w.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},w.prototype.convert13b=function(e,t,r,n){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<n;++o)r[o]=0;i(0===a),i(0===(-8192&a))},w.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},w.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=new Array(i),s=new Array(i),u=new Array(i),c=new Array(i),l=new Array(i),f=new Array(i),p=r.words;p.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,c,i),this.transform(o,a,s,u,i,n),this.transform(c,a,l,f,i,n);for(var h=0;h<i;h++){var d=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=d}return this.conjugate(s,u,i),this.transform(s,u,p,a,i,n),this.conjugate(p,a,i),this.normalize13b(p,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),k(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"===typeof e),i(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,o=(67108863&a)+(67108863&r);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=b(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length;i++,r=r.sqr())if(0!==t[i])break;if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){i("number"===typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var n;i("number"===typeof e&&e>=0),n=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,u=r;if(n-=o,n=Math.max(0,n),u){for(var c=0;c<o;c++)u.words[c]=this.words[c];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=n);c--){var f=0|this.words[c];this.words[c]=l<<26-a|f>>>a,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return!1;var a=this.words[r];return!!(a&n)},a.prototype.imaskn=function(e){i("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return i("number"===typeof e),i(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)},a.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},a.prototype.isubn=function(e){if(i("number"===typeof e),i(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()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,a,o=e.length+r;this._expand(o);var s=0;for(n=0;n<e.length;n++){a=(0|this.words[n+r])+s;var u=(0|e.words[n])*t;a-=67108863&u,s=(a>>26)-(u/67108864|0),this.words[n+r]=67108863&a}for(;n<this.length-r;n++)a=(0|this.words[n+r])+s,s=a>>26,this.words[n+r]=67108863&a;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n<this.length;n++)a=-(0|this.words[n])+s,s=a>>26,this.words[n]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r=this.length-e.length,i=this.clone(),n=e,o=0|n.words[n.length-1],s=this._countBits(o);r=26-s,0!==r&&(n=n.ushln(r),i.iushln(r),o=0|n.words[n.length-1]);var u,c=i.length-n.length;if("mod"!==t){u=new a(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=i.clone()._ishlnsubmul(n,1,c);0===f.negative&&(i=f,u&&(u.words[c]=1));for(var p=c-1;p>=0;p--){var h=67108864*(0|i.words[n.length+p])+(0|i.words[n.length+p-1]);h=Math.min(h/o|0,67108863),i._ishlnsubmul(n,h,p);while(0!==i.negative)h--,i.negative=0,i._ishlnsubmul(n,1,p),i.isZero()||(i.negative^=1);u&&(u.words[p]=h)}return u&&u._strip(),i._strip(),"div"!==t&&0!==r&&i.iushrn(r),{div:u||null,mod:i}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*r;this.words[n]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();var n=new a(1),o=new a(0),s=new a(0),u=new a(1),c=0;while(t.isEven()&&r.isEven())t.iushrn(1),r.iushrn(1),++c;var l=r.clone(),f=t.clone();while(!t.isZero()){for(var p=0,h=1;0===(t.words[0]&h)&&p<26;++p,h<<=1);if(p>0){t.iushrn(p);while(p-- >0)(n.isOdd()||o.isOdd())&&(n.iadd(l),o.isub(f)),n.iushrn(1),o.iushrn(1)}for(var d=0,m=1;0===(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0){r.iushrn(d);while(d-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(c)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();var n,o=new a(1),s=new a(0),u=r.clone();while(t.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0){t.iushrn(c);while(c-- >0)o.isOdd()&&o.iadd(u),o.iushrn(1)}for(var f=0,p=1;0===(r.words[0]&p)&&f<26;++f,p<<=1);if(f>0){r.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return n=0===t.cmpn(1)?o:s,n.cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);do{while(t.isEven())t.iushrn(1);while(r.isEven())r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}while(1);return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"===typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var a=n,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.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},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new P(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function j(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){P.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}x.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength()}while(t>this.n);var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},n(E,x),E.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&r,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(S,x),n(A,x),n(j,x),j.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=19*(0|e.words[r])+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new S;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new j}return _[e]=t,t},P.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},P.prototype._verify2=function(e,t){i(0===(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},P.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},P.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},P.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},P.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},P.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},P.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},P.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},P.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},P.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},P.prototype.isqr=function(e){return this.imul(e,e.clone())},P.prototype.sqr=function(e){return this.mul(e,e)},P.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2===1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}var n=this.m.subn(1),o=0;while(!n.isZero()&&0===n.andln(1))o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new a(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,n),p=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),d=o;while(0!==h.cmp(s)){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b<d);var y=this.pow(f,new a(1).iushln(d-b-1));p=p.redMul(y),f=y.redSqr(),h=h.redMul(f),d=b}return p},P.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},P.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=new Array(1<<r);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var o=i[0],s=0,u=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],f=c-1;f>=0;f--){var p=l>>f&1;o!==i[0]&&(o=this.sqr(o)),0!==p||0!==s?(s<<=1,s|=p,u++,(u===r||0===n&&0===f)&&(o=this.mul(o,i[s]),u=0,s=0)):u=0}c=26}return o},P.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},P.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},n(T,P),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(e,this)}).call(this,r("4517")(e))},"004a":function(e,t,r){var i=r("b6d3"),n=r("6825"),a=r("85f0"),o=a&&a.isSet,s=o?n(o):i;e.exports=s},"0071":function(e,t,r){"use strict";var i=r("8716");e.exports=i("%Math.min%")},"0087":function(e,t,r){var i,n,a;(function(r,o){"use strict";n=[t],i=o,a="function"===typeof i?i.apply(t,n):i,void 0===a||(e.exports=a)})(0,(function(e){"use strict";var t,r,i,n,a,o,s,u,c,l,f,p,h,d,m,b,y,v;function g(e,t){if(!e)throw new Error("ASSERT: "+t)}function k(e){return e>=48&&e<=57}function w(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function _(e){return"01234567".indexOf(e)>=0}function x(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function E(e){return 10===e||13===e||8232===e||8233===e}function S(e){return 64==e||36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&s.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function A(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&s.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function j(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function P(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function T(e){return"eval"===e||"arguments"===e}function D(e){if(l&&P(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function C(e,t,r,i,n){var a;g("number"===typeof r,"Comment must have valid position"),y.lastCommentStart>=r||(y.lastCommentStart=r,a={type:e,value:t},v.range&&(a.range=[r,i]),v.loc&&(a.loc=n),v.comments.push(a),v.attachComment&&(v.leadingComments.push(a),v.trailingComments.push(a)))}function O(e){var t,r,i,n;t=f-e,r={start:{line:p,column:f-h-e}};while(f<d)if(i=c.charCodeAt(f),++f,E(i))return v.comments&&(n=c.slice(t+e,f-1),r.end={line:p,column:f-h-1},C("Line",n,t,f-1,r)),13===i&&10===c.charCodeAt(f)&&++f,++p,void(h=f);v.comments&&(n=c.slice(t+e,f),r.end={line:p,column:f-h},C("Line",n,t,f,r))}function I(){var e,t,r,i;v.comment